scripts/intranet/ClassesIntranet/__init__.py
gdetrez 8713311bc1 Modification de la structure de l'intranet
darcs-hash:20070124113425-f46e9-b0dc2101073d5c4d896539104cc418693bab419a.gz
2007-01-24 12:34:25 +01:00

8 lines
206 B
Python

import cherrypy
def current_module():
current_path = cherrypy.request.object_path
module_name = current_path.split('/')[1]
if module_name != 'index':
return module_name
return None