[intranet|squeeze] On enlève le déprécié
Ignore-this: d0485c9ec2225694207cef0b5b733a08 darcs-hash:20120212223013-28565-3bd4cb29bcee856ac8ab038d7b4e672e73f19914.gz
This commit is contained in:
parent
18e313470c
commit
ce8c817aca
6 changed files with 10 additions and 4 deletions
|
@ -30,6 +30,7 @@ make_path = os.path.join
|
|||
import crans.utils.exceptions
|
||||
from ClassesIntranet.AuthorisationsManager import setDroits
|
||||
from crans.mail import quickSend
|
||||
import imp
|
||||
|
||||
class Intranet:
|
||||
# ######################################################## #
|
||||
|
@ -48,10 +49,10 @@ class Intranet:
|
|||
# faire ici l'importation
|
||||
# importer le fichier main.py
|
||||
try:
|
||||
#module_path = MODULES_DIR + un_module + "/main"
|
||||
module_path = make_path(un_module, "main")
|
||||
# import n'aime pas les chemins absolus !!
|
||||
mon_module = __import__(module_path)
|
||||
#module_path = MODULES_DIR + un_module
|
||||
module_path = make_path(MODULES_DIR,un_module)
|
||||
f, filename, desc = imp.find_module('main', [module_path])
|
||||
mon_module = imp.load_module('main', f, filename, desc)
|
||||
module_root = mon_module.main()
|
||||
# on ajoute la classe a l'arborescence de cherrypy :
|
||||
setattr( self, un_module, module_root)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#encoding:utf-8
|
||||
<div class="framed_gray">
|
||||
#for a_category in $modules
|
||||
<fieldset>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#encoding:utf-8
|
||||
<!-- img src="/static/images/petitCr@ns.png" alt="logocr@ns" / -->
|
||||
<img style="float:left;clear:left;" src="/static/images/traveaux.png" alt="Traveaux" />
|
||||
<div style="margin-left:200px;">
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#encoding:utf-8
|
||||
<!-- 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" />
|
||||
<div style="margin-left:200px;">
|
||||
|
|
|
@ -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">
|
||||
<html>
|
||||
<head>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#import cherrypy
|
||||
#encoding:utf-8
|
||||
#set bugMail = cherrypy.config.get("mail.bugreport", "nounous@crans.org")
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue