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

zhouzhen@zope.homelinux.org zhouzhen@zope.homelinux.org
Wed, 30 Oct 2002 14:55:35 -0800 (GMT+8)


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

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

-------------------------------------------------------------------

Troubleshooting Suggestions

The URL may be incorrect.
The parameters passed to this resource may be incorrect.
A resource that this resource relies on may be encountering an error.
For more detailed information about the error, please refer to the HTML
source for this page.

If the error persists please contact the site maintainer. Thank you for
your patience.


Any points will be appreciated.

Zhou Zhen