Very, very, very n00bie question
Hi, I'm moving from Apache/PHP/PERL to Zope/Python. I have a lot of books and URLs about Python, but i can't find any relevant information about the interaction of Zope/Python. This is to say i don't know how to access and treat data from Zope with Python. Is there some kind of an API for Python/Zope interaction ? Does anyone has some useful links about this tandem ? Yes, i've already searched Google :-) Thank you for your attention. Warm regards, Mário Gamito
Read the Zope Book first (to be found on zope.org). -aj --On Mittwoch, 18. Juni 2003 12:51 Uhr +0100 Mário Gamito <webmaster@dte.ua.pt> wrote:
Hi,
I'm moving from Apache/PHP/PERL to Zope/Python.
I have a lot of books and URLs about Python, but i can't find any relevant information about the interaction of Zope/Python.
This is to say i don't know how to access and treat data from Zope with Python. Is there some kind of an API for Python/Zope interaction ?
Does anyone has some useful links about this tandem ? Yes, i've already searched Google :-)
Thank you for your attention.
Warm regards, Mário Gamito
_______________________________________________ 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 )
On Wed, Jun 18, 2003 at 01:08:35PM +0100, M?rio Gamito wrote:
Hi,
Andreas Jung wrote:
Read the Zope Book first (to be found on zope.org). Already did that.
Specifically, the 2.6 edition (the one currently marked "in progress"). The "Advanced Scripting" chapter contains a lot of information about how to get things done using zope's Python Script and External Method objects. The API Reference section at the end of the book is also indispensable. If you want to build persistent classes in python, that's a bit trickier. These are called Products. The Zope Developer's Guide (at www.zope.org/Documentation/Books) is the canonical source of information here, though it may be rather confusing when just starting out. In that case, Max M's "Minimal" product tutorial is a very good starting place: http://www.zope.org/Members/maxm/HowTo/minimal_01 http://www.zope.org/Members/maxm/HowTo/minimal_02 -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's INFRA MAXIMIZED BOOJUM WARRIOR! (random hero from isometric.spaceninja.com)
Let me second Paul's comment. I'd read the minimal product tutorial and then begin building products with Max M's "A Simpler Way to Build Products", (http://www.zope.org/Members/maxm/HowTo/easyProduct). And, nothing is more educational than reading the code for existing products. On Wed, 18 Jun 2003, Paul Winkler wrote:
On Wed, Jun 18, 2003 at 01:08:35PM +0100, M?rio Gamito wrote:
Hi,
Andreas Jung wrote:
Read the Zope Book first (to be found on zope.org). Already did that.
Specifically, the 2.6 edition (the one currently marked "in progress"). The "Advanced Scripting" chapter contains a lot of information about how to get things done using zope's Python Script and External Method objects. The API Reference section at the end of the book is also indispensable.
If you want to build persistent classes in python, that's a bit trickier. These are called Products.
The Zope Developer's Guide (at www.zope.org/Documentation/Books) is the canonical source of information here, though it may be rather confusing when just starting out. In that case, Max M's "Minimal" product tutorial is a very good starting place:
http://www.zope.org/Members/maxm/HowTo/minimal_01 http://www.zope.org/Members/maxm/HowTo/minimal_02
You may also find the Zope Bible useful. And the Deveoloper's Guide (now slightly out of date as Zope moves from 2..1 to 2.7 at the bleeding edge) will also help. On Wed, 18 Jun 2003, [ISO-8859-1] M�rio Gamito wrote:
Hi,
Andreas Jung wrote:
Read the Zope Book first (to be found on zope.org). Already did that.
-- M�rio gamito
_______________________________________________ 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 )
On Wed, Jun 18, 2003 at 12:51:56PM +0100, Mário Gamito wrote:
Hi,
I'm moving from Apache/PHP/PERL to Zope/Python.
I have a lot of books and URLs about Python, but i can't find any relevant information about the interaction of Zope/Python.
This is to say i don't know how to access and treat data from Zope with Python. Is there some kind of an API for Python/Zope interaction ?
Have you done the tutorial? Go to the Zope Management Interface (also known as ZMI) and add a "Zope tutorial" (from the pulldown list). It will take you 10 minutes to walk through it and after that you will have a good idea of the basics. (it would be nice if somebody made a tutorial with page templates) -- __________________________________________________ "Nothing is as subjective as reality" Reinoud van Leeuwen reinoud.v@n.leeuwen.net http://www.xs4all.nl/~reinoud __________________________________________________
Hi, I'm unable to install the tutorial. I get this error: Request URL http://192.168.142.128:8080/manage_addProduct/ZopeTutorial/addTutorial Exception Type BadRequest Exception Value <strong>Invalid connection string: </strong><CODE>demo</CODE><br> <!-- gadfly_error invalid database error, demo --> Any help, please ? Warm regards, Mário Gamito
Do you have gadfly installed? Which version of zope are you using? On Wed, 18 Jun 2003, [ISO-8859-1] M�rio Gamito wrote:
Hi,
I'm unable to install the tutorial.
I get this error:
Request URL http://192.168.142.128:8080/manage_addProduct/ZopeTutorial/addTutorial Exception Type BadRequest Exception Value <strong>Invalid connection string: </strong><CODE>demo</CODE><br> <!-- gadfly_error invalid database error, demo -->
Any help, please ?
Warm regards, M�rio Gamito
_______________________________________________ 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 )
Can you add the tutorial directly from the ZMI? Since it appears to be that you want to do add the tutorial programatically, you probably need an object manager -- something like self.manage_addProduct['Zope Tutorial'].manageaddTutorial( id, title ) The actual form will vary depending upon the context (python, DTML, TAL, etc). On Wed, 18 Jun 2003, [ISO-8859-1] M�rio Gamito wrote:
Hi,
Dennis Allison wrote:
Do you have gadfly installed? Which version of zope are you using? Yes, i have. Zope 2.6.1
Warm regards, M�rio Gamito
Hmmm... I am assuming you have a default 2.6.1 installation. From the ZMI (the Zope management interface, probably http://localhost:8080/manage or something like that, there should be a pull-down menu to select products. Pull it down and select Zope Tutorial. That should take you to a page asking for an ID and title. Provide the ID and optionally a title, click the button, and you should be in business. If that does not do the job, please describe in detail what you did and the response. I just did the install on a clean 2.6.1 Zope, out of the box, without a problem. (BTW, what OS are you using? I run Linux & YMMV with Windows.) On Wed, 18 Jun 2003, [ISO-8859-1] M�rio Gamito wrote:
Hi, Dennis Allison wrote:
Can you add the tutorial directly from the ZMI? No, but that's what i want to :-)
Warm regards, M�rio Gamito
_______________________________________________ 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 )
participants (5)
-
Andreas Jung -
Dennis Allison -
Mário Gamito -
Paul Winkler -
Reinoud van Leeuwen