dtml is a markup language and allows access to a restricted number of python modules. the restriction is because of security! dtml is not python and python is not dtml. -aj --On Samstag, 4. Oktober 2003 16:53 Uhr +0900 Chihiro Kuraya <kuraya@s-cradle.com> wrote:
Thank you for answer.
But such a simple calculation needs an ExternalMethod ? DTML is not so useful, isn't it.
I'm a beginner of Zope, and feel that DTML is not so powerful to develop my custom application.
checkout pythons 'monthcalendar' module. wrap it into an Externalmethod.
-aj
--On Freitag, 3. Oktober 2003 19:24 Uhr +0900 Chihiro Kuraya <kuraya@s-cradle.com> wrote:
Greetings,
How can I calculate number of days of a month in DTML method ?
--- Chihiro Kuraya
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )