Seeking advice on Zope implementation
I have searched on this topic a bit but then could not find what I am looking for so posting my Zope questions here. Scenario: We have decided to use Zope as the web frontend to our python based application. So this will be implemented as Zope product. We have already started reading the docs available on zope.org. So far we have decided to use zope behind apache+fastcgi server to take advantage of apache rewrite engine and to serve static content. Questions: 1. Startup custmization: How can one configure zope to load instance of this as product (my application) on the startup but not the ZMI and other zope stuff. 2. We want to generate xml using ZPTs and then apply xsl. Is the server side transformation supported? 3. Is there any good doc available that describes how to do things you do in ZMI programmatically? 4. Zope 2.7 / 3 ? Any pointers/suggestions? If you know any links that addresses above topics please let me know. TIA.
--On Dienstag, 17. Mai 2005 19:33 Uhr +0530 pythonic <pythonic@gmail.com> wrote:
reading the docs available on zope.org. So far we have decided to use zope behind apache+fastcgi server to take advantage of apache rewrite engine and to serve static content.
You should run Zope as standalone server + Apache/Squid as reverse proxy. Using Fastcgi is uncommon and in general obsolete. -aj
On 5/17/05, pythonic <pythonic@gmail.com> wrote:
Scenario: We have decided to use Zope as the web frontend to our python based application. So this will be implemented as Zope product. [...] 4. Zope 2.7 / 3 ?
Zope 3 in that case, since you want an application framework, mostly. Zope 3 is better in that respect. It still lacks good content management tools (although this is in the works) so for content management applications I'd recommend Zope2. -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/
On Tue, May 17, 2005 at 07:33:30PM +0530, pythonic wrote:
Questions: 1. Startup custmization: How can one configure zope to load instance of this as product (my application) on the startup but not the ZMI and other zope stuff.
You can't really prevent zope from starting up the ZMI.
2. We want to generate xml using ZPTs and then apply xsl. Is the server side transformation supported?
I don't know, but there's plenty of suggestive hits on google. http://www.google.com/search?hl=en&q=zope+xslt&btnG=Google+Search
3. Is there any good doc available that describes how to do things you do in ZMI programmatically?
This should be useful: http://www.plope.com/Books/2_7Edition/AppendixB.stx Also, you can look at the dtml source of the ZMI in lib/python/App/dtml - this can be helpful even just for a cursory glance to see the names of methods that forms submit to. Also check out http://www.zopelabs.com which has many relevant recipes. FWIW, everything I said applies to zope 2 only. I can't really give helpful advice about Z3, I haven't spent much time with it yet. -- Paul Winkler http://www.slinkp.com
Hi, it all depends what your app is like. Can you describe it some more? On Tuesday 17 May 2005 10:03, pythonic wrote:
1. Startup custmization: How can one configure zope to load instance of this as product (my application) on the startup but not the ZMI and other zope stuff.
In Zope 3 you can turn off as many unwanted features as you like. So from this point of view Zope 3 would be good.
2. We want to generate xml using ZPTs and then apply xsl. Is the server side transformation supported?
Why? You first use ZPT to create XML and then an XSLT engine to create HTML. This seems like a slow approach to me. ZPT can generate HTML right away, which is much faster. Unless you already have your content in XML, an XSLT engine is total overkill.
3. Is there any good doc available that describes how to do things you do in ZMI programmatically?
Zope 3 does not rely as heavily on the ZMI as Zope 2 and in fact all code is developed on the filesystem, so in this case it might be better for you.
4. Zope 2.7 / 3 ?
I think you should go with Zope 3. Several projects have already successfully integrated their Pyton code into Zope 3. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training
participants (5)
-
Andreas Jung -
Lennart Regebro -
Paul Winkler -
pythonic -
Stephan Richter