Revision 20367931
Réorganisation du code (controllers, etc)
Mise en place d'un système de plugin pour ajouter des colonnes à la volée
Internationalisation complète
Création de quelques tests
git-svn-id: https://vigilo-dev.si.c-s.fr/svn@274 b22e2e97-25c9-44ff-b637-2e5ceca36478
vigiboard/model/auth.py | ||
---|---|---|
37 | 37 |
Column('group_id', Integer, ForeignKey('tg_group.group_id', |
38 | 38 |
onupdate="CASCADE", ondelete="CASCADE")), |
39 | 39 |
Column('permission_id', Integer, ForeignKey('tg_permission.permission_id', |
40 |
onupdate="CASCADE", ondelete="CASCADE")) |
|
40 |
onupdate="CASCADE", ondelete="CASCADE")), |
|
41 |
mysql_engine='InnoDB', |
|
42 |
mysql_charset='utf8' |
|
41 | 43 |
) |
42 | 44 |
|
43 | 45 |
# This is the association table for the many-to-many relationship between |
... | ... | |
46 | 48 |
Column('user_id', Integer, ForeignKey('tg_user.user_id', |
47 | 49 |
onupdate="CASCADE", ondelete="CASCADE")), |
48 | 50 |
Column('group_id', Integer, ForeignKey('tg_group.group_id', |
49 |
onupdate="CASCADE", ondelete="CASCADE")) |
|
51 |
onupdate="CASCADE", ondelete="CASCADE")), |
|
52 |
mysql_engine='InnoDB', |
|
53 |
mysql_charset='utf8' |
|
50 | 54 |
) |
51 | 55 |
|
52 | 56 |
|
... | ... | |
62 | 66 |
""" |
63 | 67 |
|
64 | 68 |
__tablename__ = 'tg_group' |
65 |
|
|
69 |
__table_args__ = {'mysql_engine':'InnoDB','mysql_charset':'utf8'} |
|
70 |
|
|
66 | 71 |
#{ Columns |
67 | 72 |
|
68 | 73 |
group_id = Column(Integer, autoincrement=True, primary_key=True) |
... | ... | |
100 | 105 |
|
101 | 106 |
""" |
102 | 107 |
__tablename__ = 'tg_user' |
108 |
__table_args__ = {'mysql_engine':'InnoDB','mysql_charset':'utf8'} |
|
103 | 109 |
|
104 | 110 |
#{ Columns |
105 | 111 |
|
... | ... | |
204 | 210 |
""" |
205 | 211 |
|
206 | 212 |
__tablename__ = 'tg_permission' |
207 |
|
|
213 |
__table_args__ = {'mysql_engine':'InnoDB','mysql_charset':'utf8'} |
|
214 |
|
|
208 | 215 |
#{ Columns |
209 | 216 |
|
210 | 217 |
permission_id = Column(Integer, autoincrement=True, primary_key=True) |
Also available in: Unified diff