Modification de la structure de l'intranet
darcs-hash:20070124113425-f46e9-b0dc2101073d5c4d896539104cc418693bab419a.gz
This commit is contained in:
parent
0570881d34
commit
8713311bc1
13 changed files with 331 additions and 191 deletions
18
intranet/ClassesIntranet/ModuleBase.py
Normal file
18
intranet/ClassesIntranet/ModuleBase.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
import cherrypy
|
||||
from AuthorisationsManager import verifDroits
|
||||
|
||||
class ModuleBase:
|
||||
def category(self):
|
||||
return "Personnel"
|
||||
def title(self):
|
||||
return "Titre"
|
||||
def icon(self):
|
||||
return "icon.png"
|
||||
|
||||
_droits = []
|
||||
def droits(self):
|
||||
return self._droits
|
||||
|
||||
def accessible(self):
|
||||
return verifDroits(cherrypy.session['droits'], self.droits())
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue