[silva-dev] can't get Silva to work from CVS

Clemens Robbenhaar robbenhaar at espresto.com
Tue Aug 12 11:50:37 CEST 2003


Hi Joachim,


 > Request URL 	http://127.0.0.1:8880/Infrae/Silva/edit/index_html
 > Exception Type 	TypeError
 > Exception Value 	unsubscriptable object

 ... this means the "tab_edit.pt" has some error. Unfortunarely the
FileSystemSite has a small bug in the error handling, shadowing the
original error message with another error.

Try to apply the patch below to the FSPageTemplate.py of the
FileSystemSite product and retry; You may get a more meanungfill error
message instead.

Hope this helps,
clemens



RCS file: /cvs/infrae/FileSystemSite/FSPageTemplate.py,v
retrieving revision 1.2
diff -w -u -r1.2 FSPageTemplate.py
--- FSPageTemplate.py   10 Feb 2003 14:50:53 -0000      1.2
+++ FSPageTemplate.py   12 Aug 2003 09:48:08 -0000
@@ -141,6 +141,9 @@
         except RuntimeError:
             if Globals.DevelopmentMode:
                 err = FSPageTemplate.inheritedAttribute( 'pt_errors' )( self )
+               if err is None:
+                  # Runtime error is no copmile error: reraise
+                  raise
                 err_type = err[0]
                 err_msg = '<pre>%s</pre>' % replace( err[1], "\'", "'" )
                 msg = 'FS Page Template %s has errors: %s.<br>%s' % (



More information about the silva-dev mailing list