correction
darcs-hash:20061006190300-f46e9-ba03e7ab42bebc037a3a0d104e1ada30188bcde3.gz
This commit is contained in:
parent
7d4c2f9e68
commit
dfeabde3b1
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
from cherrypy.filters.basefilter import BaseFilter
|
||||
import cherrypy._cputil, os
|
||||
import cherrypy, os
|
||||
from Cheetah.Template import Template
|
||||
|
||||
# ######################################################## #
|
||||
|
@ -8,7 +8,7 @@ from Cheetah.Template import Template
|
|||
|
||||
def serverSidePath(self, path):
|
||||
if (cherrypy.config.configMap["global"]["server.environment"] == "development"):
|
||||
if os.path.isfile(os.getcwd()+'/templates/'+path+".dev"):
|
||||
if os.path.isfile(cherrypy.config.configMap["global"]["rootDir"]+'/templates/'+path+".dev"):
|
||||
return cherrypy.config.configMap["global"]["rootDir"]+'/templates/'+path+".dev"
|
||||
# les template se trouve dans le dossier template
|
||||
return cherrypy.config.configMap["global"]["rootDir"]+'/templates/'+path
|
||||
|
@ -47,6 +47,7 @@ class TemplatesFilter(BaseFilter):
|
|||
return True
|
||||
return True
|
||||
|
||||
|
||||
def _getBodyNameSpace(self, body):
|
||||
if isinstance(body, dict):
|
||||
if body.has_key('values'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue