Re: [Zope] Re: OOP and Zope.

2005-08-26 Thread Fernando Lujan
On 8/22/05, Lennart Regebro [EMAIL PROTECTED] 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?v=glance


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


[Zope] Re: OOP and Zope.

2005-08-26 Thread Josef Meile
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

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


[Zope] Re: OOP and Zope.

2005-08-22 Thread Josef Meile

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

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


Re: [Zope] Re: OOP and Zope.

2005-08-22 Thread Fernando Lujan
On 8/22/05, Josef Meile [EMAIL PROTECTED] 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
___
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 )


Re: [Zope] Re: OOP and Zope.

2005-08-22 Thread Lennart Regebro
On 8/22/05, Fernando Lujan [EMAIL PROTECTED] 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?v=glance

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/002-4460899-6725627?v=glances=booksst=*
(Also available online, if you don't like paper:
http://www.zope.org/DevHome/Wikis/DevSite/Projects/ComponentArchitecture/Zope3Book).


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


Re: [Zope] Re: OOP and Zope.

2005-08-22 Thread Dieter Maurer
Fernando Lujan wrote at 2005-8-22 06:01 -0600:
 
I have a good knowledge of using python, there's some tutorial about
using it inside Zope with  a OO design?

The Zope Developper Guide?

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