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

zhouzhen@zope.homelinux.org zhouzhen@zope.homelinux.org
Thu, 31 Oct 2002 08:56:25 -0800 (GMT+8)


> 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 ?

I use http://www.zope.org/Members/rklahn/TimetableColspan, 0.4

>  > 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?

Yes, it really alive well.

>
>  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)

wow, I really have no idea about this traceback function, how to use this
function to check HTML-source. I wonder that Zope 2.6 change something
from Zope 2.5 maybe quite big, so I want to try at Zope 2.5, and then lets
see the results.

>
> Cheers,
> Clemens

anyway, thanks for help.

Zhou Zhen