bug in svn version
Michele Petrazzo <[email protected]>
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
Hi list,
I'm doing some test on svn spyce and I see that there is a bug in
template.py, At line 49 I see:
def cheetahGenerate(filename):
# check permissions
if not os.path.exists(filename):
raise spyceException.spyceNotFound()
if not os.access(filename, os.R_OK):
raise spyceException.spyceForbidden()
but the spyceNotFound and spyceForbidden must have a parameter at first
argument, so become:
def cheetahGenerate(filename):
# check permissions
if not os.path.exists(filename):
raise spyceException.spyceNotFound(filename)
if not os.access(filename, os.R_OK):
raise spyceException.spyceForbidden(filename)
Other question/advice:
I (the community) think that is better that all the exceptions are to
inherit from Exception... why you don't so?
Michele
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642