Hi Chris. I was scanning the lists looking for posts similar to this. Were you successful in getting something like this to work? Anyone else document anything like this? I wrote a different main.py at some point about a year or so ago so both twisted clients and servers to could be started up using schemas for zconfig but am looking at possibilities without and with other non ZODB backends. I see Philip provided some clues for a mixin that could be used to glue the publisher's traversal mechanism together with an alternative storage. Many thanks. Regards, David Chris Withers wrote:
Hey All,
I'm still continuing poking around (when I have the chance) to see how I'd get Zope running without ZODB.
Does the following line:
db = zope.app.appsetup.appsetup.multi_database(options.databases)[0][0]
...from:
http://svn.zope.org/Zope3/trunk/src/zope/app/server/main.py?rev=71011&view=m...
...mean that Zope 3 is currently hard-coded to need a ZODB?
If so, how should we go about making this optional?
(I am willing to put the work in to make this happen if people give me some hints...)
cheers,
Chris
David Pratt wrote:
Hi Chris. I was scanning the lists looking for posts similar to this. Were you successful in getting something like this to work? Anyone else document anything like this?
I wrote a different main.py at some point about a year or so ago so both twisted clients and servers to could be started up using schemas for zconfig but am looking at possibilities without and with other non ZODB backends. I see Philip provided some clues for a mixin that could be used to glue the publisher's traversal mechanism together with an alternative storage. Many thanks.
Regards, David I, too, am interested in this.
I'm taking a hard look at Sedna, http://modis.ispras.ru/sedna/ , a multi-user XML database, which seems to fit my brain and my current xml-ish bent a bit better than ZODB or rdb. The python modules advertised don't work reliably enough for me, though I have hacked together a protocol module that works to my satisfaction so far. If anyone wants to play with it, I'll throw it into the zif collective on Sourceforge. I'm thinking it may be possible to do an elementtree (with full XPath!) interface to Sedna. Anyway, Chris, any pointers on interfaces and configuration would be very much appreciated. -Jim Washington
try ore.wsgiapp in pypi, you provide a root utility and traversal begins from there, the zodb is never opened. the default publication looks up the app root via utility and traversal continues from there. i've been using it successfully for a number of relational apps without the zodb. hth, kapil On Jan 15, 2008 1:27 PM, Jim Washington <jwashin@vt.edu> wrote:
David Pratt wrote:
Hi Chris. I was scanning the lists looking for posts similar to this. Were you successful in getting something like this to work? Anyone else document anything like this?
I wrote a different main.py at some point about a year or so ago so both twisted clients and servers to could be started up using schemas for zconfig but am looking at possibilities without and with other non ZODB backends. I see Philip provided some clues for a mixin that could be used to glue the publisher's traversal mechanism together with an alternative storage. Many thanks.
Regards, David I, too, am interested in this.
I'm taking a hard look at Sedna, http://modis.ispras.ru/sedna/ , a multi-user XML database, which seems to fit my brain and my current xml-ish bent a bit better than ZODB or rdb.
The python modules advertised don't work reliably enough for me, though I have hacked together a protocol module that works to my satisfaction so far. If anyone wants to play with it, I'll throw it into the zif collective on Sourceforge. I'm thinking it may be possible to do an elementtree (with full XPath!) interface to Sedna.
Anyway, Chris, any pointers on interfaces and configuration would be very much appreciated.
-Jim Washington
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Kapil Thangavelu wrote:
try ore.wsgiapp in pypi, you provide a root utility and traversal begins from there, the zodb is never opened. the default publication looks up the app root via utility and traversal continues from there. i've been using it successfully for a number of relational apps without the zodb. Thanks, Kapil.
I spent a day on it, and never got past error pages. Maybe my problem was starting with a zopeproject. Anyway, it got me to take a good look at pylons, which I think is a better match for web development without ZODB. I found I can still use adapters and utilities by using zope.component and zope.interface. :) zif.sedna (newly beta2 in pypi) now has instructions for using its zope3 database adapter with repoze.tm in pylons. - Jim Washington
2008/2/15, Jim Washington <jwashin@vt.edu>:
Kapil Thangavelu wrote:
try ore.wsgiapp in pypi, you provide a root utility and traversal begins from there, the zodb is never opened. the default publication looks up the app root via utility and traversal continues from there. i've been using it successfully for a number of relational apps without the zodb.
Thanks, Kapil.
I spent a day on it, and never got past error pages. Maybe my problem was starting with a zopeproject.
Anyway, it got me to take a good look at pylons, which I think is a better match for web development without ZODB.
I found I can still use adapters and utilities by using zope.component and zope.interface. :)
Anyone know if there is any chance to use existing zcml declarations for this use case ? Is it possible to load a site.zcml in other python apps ? I'm using pylons too and i really like to use some zope.* packages with it (events, formlib, etc.). Doing this kind of things will show the power of zope3 packages to the world !
zif.sedna (newly beta2 in pypi) now has instructions for using its zope3 database adapter with repoze.tm in pylons.
- Jim Washington
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Cool Jim. Will take a look and read. This is what the wonderful world of packages and wsgi is all about :-). I am also going to check out Kapil's solution for some other things. I am pretty comfortable with the zope's publisher and configuration. Regards, David Jim Washington wrote:
Kapil Thangavelu wrote:
try ore.wsgiapp in pypi, you provide a root utility and traversal begins from there, the zodb is never opened. the default publication looks up the app root via utility and traversal continues from there. i've been using it successfully for a number of relational apps without the zodb. Thanks, Kapil.
I spent a day on it, and never got past error pages. Maybe my problem was starting with a zopeproject.
Anyway, it got me to take a good look at pylons, which I think is a better match for web development without ZODB.
I found I can still use adapters and utilities by using zope.component and zope.interface. :)
zif.sedna (newly beta2 in pypi) now has instructions for using its zope3 database adapter with repoze.tm in pylons.
- Jim Washington _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Pratt wrote:
Cool Jim. Will take a look and read. This is what the wonderful world of packages and wsgi is all about :-). I am also going to check out Kapil's solution for some other things. I am pretty comfortable with the zope's publisher and configuration.
For another take, 'repoze.obob'[1] exposes a hook for starting traversal from an arbitrary root object: 'repoze.kiss'[2] uses this hook, along with the Zope2 publisher as re-worked in 'repoze.zope2', to publish content from a filesystem directory. To test drive: $ bin/virtualenv /tmp/kiss $ cd /tmp/kiss $ bin/easy_install repoze.project $ bin/repozeproject repoze.kiss $ cp $SITE_PACKAGES/repoze.kiss-*/sample-repoze.ini ./kiss.ini $ vi kiss.ini # edit to point to a path $ bin/paster serve kiss.ini [1] http://svn.repoze.org/repoze.obob/trunk/ [2] http://svn.repoze.org/repoze.kiss/trunk/ [3] http://svn.repoze.org/repoze.zope2/trunk/ Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHtcxN+gerLs4ltQ4RAp7+AJ4w/32DQsxY/xNKIFtd/iONjO3VbQCaA0hD vNVR7lsJiTXMnlNkREs7eNQ= =tHTE -----END PGP SIGNATURE-----
Hi Tres. Appreciate your reply. I examine the packages you have identified. Many thanks. Regards, David Tres Seaver wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
David Pratt wrote:
Cool Jim. Will take a look and read. This is what the wonderful world of packages and wsgi is all about :-). I am also going to check out Kapil's solution for some other things. I am pretty comfortable with the zope's publisher and configuration.
For another take, 'repoze.obob'[1] exposes a hook for starting traversal from an arbitrary root object: 'repoze.kiss'[2] uses this hook, along with the Zope2 publisher as re-worked in 'repoze.zope2', to publish content from a filesystem directory.
To test drive:
$ bin/virtualenv /tmp/kiss $ cd /tmp/kiss $ bin/easy_install repoze.project $ bin/repozeproject repoze.kiss $ cp $SITE_PACKAGES/repoze.kiss-*/sample-repoze.ini ./kiss.ini $ vi kiss.ini # edit to point to a path $ bin/paster serve kiss.ini
[1] http://svn.repoze.org/repoze.obob/trunk/
[2] http://svn.repoze.org/repoze.kiss/trunk/
[3] http://svn.repoze.org/repoze.zope2/trunk/
Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHtcxN+gerLs4ltQ4RAp7+AJ4w/32DQsxY/xNKIFtd/iONjO3VbQCaA0hD vNVR7lsJiTXMnlNkREs7eNQ= =tHTE -----END PGP SIGNATURE-----
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Hi Kapil. Hoping to take a look at this before long. Many thanks for pointing out this package. Regards, David Kapil Thangavelu wrote:
try ore.wsgiapp in pypi, you provide a root utility and traversal begins from there, the zodb is never opened. the default publication looks up the app root via utility and traversal continues from there. i've been using it successfully for a number of relational apps without the zodb.
hth,
kapil
On Jan 15, 2008 1:27 PM, Jim Washington <jwashin@vt.edu <mailto:jwashin@vt.edu>> wrote:
David Pratt wrote: > Hi Chris. I was scanning the lists looking for posts similar to this. > Were you successful in getting something like this to work? Anyone > else document anything like this? > > I wrote a different main.py at some point about a year or so ago so > both twisted clients and servers to could be started up using schemas > for zconfig but am looking at possibilities without and with other non > ZODB backends. I see Philip provided some clues for a mixin that could > be used to glue the publisher's traversal mechanism together with an > alternative storage. Many thanks. > > Regards, > David I, too, am interested in this.
I'm taking a hard look at Sedna, http://modis.ispras.ru/sedna/ , a multi-user XML database, which seems to fit my brain and my current xml-ish bent a bit better than ZODB or rdb.
The python modules advertised don't work reliably enough for me, though I have hacked together a protocol module that works to my satisfaction so far. If anyone wants to play with it, I'll throw it into the zif collective on Sourceforge. I'm thinking it may be possible to do an elementtree (with full XPath!) interface to Sedna.
Anyway, Chris, any pointers on interfaces and configuration would be very much appreciated.
-Jim Washington
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org <mailto:Zope-Dev@zope.org> http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
participants (5)
-
David Pratt -
Gaël Pasgrimaud -
Jim Washington -
Kapil Thangavelu -
Tres Seaver