Hi, I try to find information about programming in Zope with the OO paradigm. I didn't find many documentation... For instance, how can I define classes and instances once I just work with dtml-methods and dtml-documents? Thanks. Fernando Lujan
--On 19. August 2005 12:16:55 -0600 Fernando Lujan <flujan@gmail.com> wrote:
Hi,
I try to find information about programming in Zope with the OO paradigm. I didn't find many documentation...
For instance, how can I define classes and instances once I just work with dtml-methods and dtml-documents?
dtml-methods and dtml-documents have nothing to do with OO programming. Their purpose is to provide a markup language to write views on objects or whatever. Btw. forget DTML and learn ZPT. When you talk about OO programming: look at the Zope Developers Guide and learn how to write first class Zope objects. But before you should go through the Zope Book and learn about the basic of Zope before starting Zope Product development. -aj
--On 19. August 2005 12:16:55 -0600 Fernando Lujan <flujan@gmail.com> wrote:
Hi,
I try to find information about programming in Zope with the OO paradigm. I didn't find many documentation...
For instance, how can I define classes and instances once I just work with dtml-methods and dtml-documents?
And btw. if you are familiar with Python you should perhaps look first at Zope 3 which is more pythonic for doing OO-like web programming. -aj
Fernando Lujan wrote at 2005-8-19 12:16 -0600:
I try to find information about programming in Zope with the OO paradigm. I didn't find many documentation...
For instance, how can I define classes and instances once I just work with dtml-methods and dtml-documents?
You can look at ZClasses. Note, that there are people that recommend not to use ZClasses because they want to drop ZClass support in some future Zope release. -- Dieter
Dieter Maurer wrote:
Fernando Lujan wrote at 2005-8-19 12:16 -0600:
I try to find information about programming in Zope with the OO paradigm. I didn't find many documentation...
For instance, how can I define classes and instances once I just work with dtml-methods and dtml-documents?
You can look at ZClasses.
Note, that there are people that recommend not to use ZClasses because they want to drop ZClass support in some future Zope release. Yes, some people wants to drop them, but that is just a part of the problem. Their bugs aren't a priority know, so, if I were the OP, I wouldn't use them for a new development. I would use python based products, which are also OO.
Regards, Josef
On 8/22/05, Josef Meile <jmeile@hotmail.com> wrote:
Yes, some people wants to drop them, but that is just a part of the problem. Their bugs aren't a priority know, so, if I were the OP, I wouldn't use them for a new development. I would use python based products, which are also OO.
I have a good knowledge of using python, there's some tutorial about using it inside Zope with a OO design? Thanks. Fernando Lujan
On 8/22/05, Fernando Lujan <flujan@gmail.com> wrote:
I have a good knowledge of using python, there's some tutorial about using it inside Zope with a OO design?
For Zope2, the previously mentioned Zope Developers Guide: http://www.zope.org/Documentation/Books/ZDG/current ZopeWiki put a lot of reference at your fingertips: http://zopewiki.org/ZopeDevelopment For Zope3, a good start is "Web Component Development with Zope 3": http://www.amazon.com/exec/obidos/tg/detail/-/3540223592/002-4460899-6725627... and the "Zope 3 Developer's Handbook" is a handy reference: http://www.amazon.com/exec/obidos/tg/detail/-/0672326175/ref=pd_bxgy_text_1/... (Also available online, if you don't like paper: http://www.zope.org/DevHome/Wikis/DevSite/Projects/ComponentArchitecture/Zop...). Decide if you are gonna go with Zope2 or Zope3 first. They are quite different. Ask again if you need help with the choice. :) -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/
On 8/22/05, Lennart Regebro <regebro@gmail.com> wrote:
For Zope3, a good start is "Web Component Development with Zope 3": http://www.amazon.com/exec/obidos/tg/detail/-/3540223592/002-4460899-6725627...
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? Fernando Lujan
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 = """ \ <html> <body> This is a test </body> </html> """ return html Regards, Josef
participants (5)
-
Andreas Jung -
Dieter Maurer -
Fernando Lujan -
Josef Meile -
Lennart Regebro