Parce que «Ça peut toujours servir»™ et que de toutes façons il y en a déjà des bouts qui sont dans le dépôt et que c'est chiant de git add -f.
Et puis bon, ça fait que 3Mo
This commit is contained in:
parent
29f50c2ed9
commit
3bde363deb
299 changed files with 17466 additions and 0 deletions
34
archive/bdd/comptes.py
Normal file
34
archive/bdd/comptes.py
Normal file
|
@ -0,0 +1,34 @@
|
|||
from sqlobject import *
|
||||
#from comptes import CompteUnix
|
||||
|
||||
class Attribut(SQLObject):
|
||||
nom = UnicodeCol()
|
||||
url_desc = StringCol(default=None)
|
||||
permissions = RelatedJoin('Permission')
|
||||
groupes_unix = RelatedJoin('GroupeUnix')
|
||||
comptes = RelatedJoin('CompteUnix')
|
||||
|
||||
class Permission(SQLObject):
|
||||
nom = UnicodeCol()
|
||||
attributs = RelatedJoin('Attribut')
|
||||
|
||||
class CompteUnix(SQLObject):
|
||||
proprio = ForeignKey('Proprio')
|
||||
solde = FloatCol()
|
||||
attributs = RelatedJoin('Attribut')
|
||||
|
||||
# Champs standards
|
||||
username = StringCol(unique=True)
|
||||
passwd = UnicodeCol()
|
||||
uid = IntCol(unique=True)
|
||||
homedir = StringCol()
|
||||
shell = StringCol()
|
||||
gecos = StringCol()
|
||||
pwdexpire = DateTimeCol(default=None)
|
||||
gid = IntCol()
|
||||
|
||||
class GroupeUnix(SQLObject):
|
||||
gid = IntCol(unique=True)
|
||||
nom = StringCol(unique=True)
|
||||
descr = UnicodeCol()
|
||||
passwd = StringCol(default='!')
|
Loading…
Add table
Add a link
Reference in a new issue