author | Graziella Toutoungis <graziella.toutoungis@logilab.fr> |
Tue, 31 Mar 2009 17:09:38 +0200 | |
changeset 1194 | e224f064a268 |
parent 93 | 9c919a47e140 |
permissions | -rw-r--r-- |
0 | 1 |
.. -*- coding: utf-8 -*- |
2 |
||
93
9c919a47e140
[doc] total file reorganisation - phase 1 complete
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
90
diff
changeset
|
3 |
Foire Aux Questions |
9c919a47e140
[doc] total file reorganisation - phase 1 complete
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
90
diff
changeset
|
4 |
=================== |
0 | 5 |
|
6 |
[FILL ME] |
|
7 |
||
24
b5303abf484a
Add a FAQ and started a section on views selector.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
0
diff
changeset
|
8 |
* A quoi servent les crochets? |
b5303abf484a
Add a FAQ and started a section on views selector.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
0
diff
changeset
|
9 |
|
b5303abf484a
Add a FAQ and started a section on views selector.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
0
diff
changeset
|
10 |
Les crochets sont appeles lorsqu'une requete RQL est executee. Cela |
b5303abf484a
Add a FAQ and started a section on views selector.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
0
diff
changeset
|
11 |
permet d'executer des actions specifiques lors d'un acces a la base |
b5303abf484a
Add a FAQ and started a section on views selector.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
0
diff
changeset
|
12 |
de donnees, ce qui donne un controle de la base de donnees afin de |
b5303abf484a
Add a FAQ and started a section on views selector.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
0
diff
changeset
|
13 |
prevenir l'insertion de `mauvaises` entites dans la base. |
0 | 14 |
|
27
ef1c80154d6f
Add a little in FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
24
diff
changeset
|
15 |
* Quand utiliser un template HTML plutot qu'un composant graphique? |
ef1c80154d6f
Add a little in FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
24
diff
changeset
|
16 |
|
ef1c80154d6f
Add a little in FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
24
diff
changeset
|
17 |
Un template HTML ne peut contenir de logique, il ne permettra donc |
ef1c80154d6f
Add a little in FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
24
diff
changeset
|
18 |
que de definir une vue statique. Un composant permet lui de gerer |
ef1c80154d6f
Add a little in FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
24
diff
changeset
|
19 |
plus de logique et d'operations sur le contexte dans lequel il |
ef1c80154d6f
Add a little in FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
24
diff
changeset
|
20 |
s'applique. Il faut donc bien reflechir avant de decider de l'un ou |
ef1c80154d6f
Add a little in FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
24
diff
changeset
|
21 |
de l'autre, mais vous avez la possibilite de choisir. |
24
b5303abf484a
Add a FAQ and started a section on views selector.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
0
diff
changeset
|
22 |
|
44
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
23 |
* Comment mettre à jour une base de données après avoir modifié le schéma? |
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
24 |
|
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
25 |
Cela dépend de ce qui a été modifié dans le schéma. |
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
26 |
|
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
27 |
* Modification d'une relation non finale |
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
28 |
|
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
29 |
* Modification d'une relation finale |
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
30 |
|
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
31 |
[TO COMPLETE] |
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
32 |
|
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
33 |
* Comment créer un utilisateur anonyme? |
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
34 |
|
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
35 |
Cela vous permet d'acceder a votre site sans avoir besoin de vous authentifier. |
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
36 |
Dans le fichier ``all-in-one.conf`` de votre instance, définir l'utilisateur |
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
37 |
anonyme en initilisant les valeurs des variables suivantes :: |
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
38 |
|
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
39 |
# login of the Erudi user account to use for anonymous user (if you want to |
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
40 |
# allow anonymous) |
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
41 |
anonymous-user=anon |
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
42 |
|
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
43 |
# password of the Erudi user account matching login |
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
44 |
anonymous-password=anon |
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
45 |
|
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
46 |
Vous devez aussi vous assurer que cet utilisateur `anon` existe dans la base |
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
47 |
de données, le plus simple étant de s'identifier sur votre application en |
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
48 |
administrateur et de rajouter l'utilisateur `anon` via l'interface d'administration. |
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
49 |
|
93
9c919a47e140
[doc] total file reorganisation - phase 1 complete
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
90
diff
changeset
|
50 |
* Quelle est la différence entre `AppRsetObject` et `AppObject` ? |
27
ef1c80154d6f
Add a little in FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
24
diff
changeset
|
51 |
|
93
9c919a47e140
[doc] total file reorganisation - phase 1 complete
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
90
diff
changeset
|
52 |
La différence entre la classe `AppRsetObject` et la classe `AppObject` est que |
9c919a47e140
[doc] total file reorganisation - phase 1 complete
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
90
diff
changeset
|
53 |
les instances de la premières sont séléctionnées pour une requête et un "result |
9c919a47e140
[doc] total file reorganisation - phase 1 complete
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
90
diff
changeset
|
54 |
set" et alors que les secondes ne sont séléctionnées qu'en fonction de leur |
9c919a47e140
[doc] total file reorganisation - phase 1 complete
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
90
diff
changeset
|
55 |
identifiant. |