I bought the book... But while it don't arrive, let me ask a last question...
Is there a tutorial which allows me to work with pages in the .py
format? Then, I could only use python to generate the content... :D
I've seen a lot of pages in this format... Does Zope works with it?
If you mean to embedded html in python, it is possible, but not elegant. That's why there is zpt and dtml; to separate content from logic. However, there are some cases you may need to do it.

Anyway, if you still want to do it, then you can do something like:

def myPage():
  """Generates html"""
  html = """ \
      This is a test
  return html


Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to