[intranet|squeeze] On enlève le déprécié

Ignore-this: d0485c9ec2225694207cef0b5b733a08

darcs-hash:20120212223013-28565-3bd4cb29bcee856ac8ab038d7b4e672e73f19914.gz
This commit is contained in:
Daniel STAN 2012-02-12 23:30:13 +01:00
parent 18e313470c
commit ce8c817aca
6 changed files with 10 additions and 4 deletions

View file

@ -30,6 +30,7 @@ make_path = os.path.join
import crans.utils.exceptions import crans.utils.exceptions
from ClassesIntranet.AuthorisationsManager import setDroits from ClassesIntranet.AuthorisationsManager import setDroits
from crans.mail import quickSend from crans.mail import quickSend
import imp
class Intranet: class Intranet:
# ######################################################## # # ######################################################## #
@ -48,10 +49,10 @@ class Intranet:
# faire ici l'importation # faire ici l'importation
# importer le fichier main.py # importer le fichier main.py
try: try:
#module_path = MODULES_DIR + un_module + "/main" #module_path = MODULES_DIR + un_module
module_path = make_path(un_module, "main") module_path = make_path(MODULES_DIR,un_module)
# import n'aime pas les chemins absolus !! f, filename, desc = imp.find_module('main', [module_path])
mon_module = __import__(module_path) mon_module = imp.load_module('main', f, filename, desc)
module_root = mon_module.main() module_root = mon_module.main()
# on ajoute la classe a l'arborescence de cherrypy : # on ajoute la classe a l'arborescence de cherrypy :
setattr( self, un_module, module_root) setattr( self, un_module, module_root)

View file

@ -1,3 +1,4 @@
#encoding:utf-8
<div class="framed_gray"> <div class="framed_gray">
#for a_category in $modules #for a_category in $modules
<fieldset> <fieldset>

View file

@ -1,3 +1,4 @@
#encoding:utf-8
<!-- img src="/static/images/petitCr@ns.png" alt="logocr@ns" / --> <!-- img src="/static/images/petitCr@ns.png" alt="logocr@ns" / -->
<img style="float:left;clear:left;" src="/static/images/traveaux.png" alt="Traveaux" /> <img style="float:left;clear:left;" src="/static/images/traveaux.png" alt="Traveaux" />
<div style="margin-left:200px;"> <div style="margin-left:200px;">

View file

@ -1,3 +1,4 @@
#encoding:utf-8
<!-- img src="/static/images/petitCr@ns.png" alt="logocr@ns" / --> <!-- img src="/static/images/petitCr@ns.png" alt="logocr@ns" / -->
<img style="float:left;clear:left;" src="/static/images/DoNotEnter.png" alt="Do Not Enter" /> <img style="float:left;clear:left;" src="/static/images/DoNotEnter.png" alt="Do Not Enter" />
<div style="margin-left:200px;"> <div style="margin-left:200px;">

View file

@ -1,3 +1,4 @@
#encoding:utf-8
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>

View file

@ -1,4 +1,5 @@
#import cherrypy #import cherrypy
#encoding:utf-8
#set bugMail = cherrypy.config.get("mail.bugreport", "nounous@crans.org") #set bugMail = cherrypy.config.get("mail.bugreport", "nounous@crans.org")
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"