author | Nicolas Chauvat <nicolas.chauvat@logilab.fr> |
Thu, 13 Nov 2008 02:30:39 +0100 | |
changeset 51 | 8c5de7159cab |
parent 50 | d642f43eb87d |
child 90 | 7fd4ffeb082b |
permissions | -rw-r--r-- |
0 | 1 |
.. -*- coding: utf-8 -*- |
2 |
||
3 |
Frequently Asked Questions |
|
4 |
========================== |
|
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 |
|
b5303abf484a
Add a FAQ and started a section on views selector.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
0
diff
changeset
|
23 |
|
44
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
24 |
HOW TO |
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
25 |
====== |
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 |
* 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
|
28 |
|
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
29 |
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
|
30 |
|
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
31 |
* 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
|
32 |
|
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
33 |
* 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
|
34 |
|
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
35 |
[TO COMPLETE] |
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
36 |
|
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
37 |
* 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
|
38 |
|
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
39 |
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
|
40 |
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
|
41 |
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
|
42 |
|
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
43 |
# 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
|
44 |
# allow anonymous) |
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
45 |
anonymous-user=anon |
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
46 |
|
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
47 |
# 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
|
48 |
anonymous-password=anon |
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
49 |
|
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
50 |
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
|
51 |
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
|
52 |
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
|
53 |
|
7e62f9c9a3c8
Changes hierarchy in index pages. Merged FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
27
diff
changeset
|
54 |
* |
27
ef1c80154d6f
Add a little in FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
24
diff
changeset
|
55 |
|
ef1c80154d6f
Add a little in FAQ and HOWTO.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
24
diff
changeset
|
56 |