[ZPT] Newbie: Timetable didn't work at new page template

Clemens Robbenhaar zpt@zope.org
Wed, 30 Oct 2002 21:12:28 +0100


Hi Zhou Zhen,


 > Hi,all
 > I am new to zope, tested TimetableColspan at my server, my server info:
 > 
 > Zope Version  (Zope 2.6.0 (binary release, python 2.1, linux2-x86), python
 > 2.1.3, linux2)
 > Python Version  2.1.3 (#1, Sep 19 2002, 13:15:46) [GCC egcs-2.91.66
 > 19990314/Linux (egcs-1.1.2 release)]
 > System Platform  linux2
 > SOFTWARE_HOME  /home/zhouzhen/Mydoc/Zope-2.6.0-linux2-x86/lib/python
 > ZOPE_HOME  /home/zhouzhen/Mydoc/Zope-2.6.0-linux2-x86
 > INSTANCE_HOME  /home/zhouzhen/Mydoc/Zope-2.6.0-linux2-x86
 > CLIENT_HOME  /home/zhouzhen/Mydoc/Zope-2.6.0-linux2-x86/var
 > Process Id  10331 (8194)
 > Running For  52 min 45 sec
 > 

Thanks for the information, but which version of TimetableColspan are
You using ?

 > and I tested a new page template as abc, contents as follow as the example
 > from timetablecolspan:
 > <html>
 >   <head>
 >     <title tal:content="template/title_or_id">The title</title>
 >   </head>
 >   <body>
 >     <div tal:define="tt_data python:[{'time_start':'9:00',
 >                          'time_end':'10:00',
 >                          'title':'Hello World!'}]"
 >          tal:omit-tag="">
 >                <table metal:use-macro
 >   ="modules/Products/TimetableColspan/timetable/macros/timetable">
 >      Dummy text: a timetable goes here
 >      </table>
 >     </div>
 >    </body>
 > </html>
 > 
 > When I test it, the following messages jumped to me:
 > 
 > Zope Error
 > Zope has encountered an error while publishing this resource.
 > 
 > Error Type: AttributeError
 > Error Value: timetable
 > 

 This may happen, if the TimetableColspan Product is broken.
Did You check via the /Control_Panel/Products, if the TimetableColspan
is still alive? 

 Additionally I guess there should be a traceback in the HTML-Source.
(However I do not know if this feature is still enabled with Zope2.6)

Cheers,
Clemens