hi in trying out the excellent CoreSessionTracking product, i encountered a little problem. the doc reference a no-undo external db to house the data. i remember one such beast which were alpha (berkerly dbm(?)), but can't locate it at zope.org. also, will there ever be a no undo db for use with zope? since such product is a must to run zope in real world. hints, urls welcome thanks -- http://www.kedai.com.my/kk http://www.kedai.com.my/eZine Strange how laughter looks like crying with no sound, and raindrops taste like tears .. without the pain
I think this howto is still applicable: http://www.zope.org/Members/andyd/zopeberkeleydb ----- Original Message ----- From: "Bak@kedai" <kedai@kedai.com.my> To: <zope@zope.org> Sent: Tuesday, January 30, 2001 9:28 PM Subject: [Zope] CoreSessionTracking and noundo db
hi in trying out the excellent CoreSessionTracking product, i encountered a little problem. the doc reference a no-undo external db to house the data. i remember one such beast which were alpha (berkerly dbm(?)), but can't locate it at zope.org.
also, will there ever be a no undo db for use with zope? since such product is a must to run zope in real world. hints, urls welcome
thanks
--
http://www.kedai.com.my/kk http://www.kedai.com.my/eZine
Strange how laughter looks like crying with no sound, and raindrops taste like tears .. without the pain
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Oops, I forgot to mention ExternalMount: http://www.zope.org/Members/hathawsh/ExternalMount ----- Original Message ----- From: "Bak@kedai" <kedai@kedai.com.my> To: <zope@zope.org> Sent: Tuesday, January 30, 2001 9:28 PM Subject: [Zope] CoreSessionTracking and noundo db
hi in trying out the excellent CoreSessionTracking product, i encountered a little problem. the doc reference a no-undo external db to house the data. i remember one such beast which were alpha (berkerly dbm(?)), but can't locate it at zope.org.
also, will there ever be a no undo db for use with zope? since such product is a must to run zope in real world. hints, urls welcome
thanks
--
http://www.kedai.com.my/kk http://www.kedai.com.my/eZine
Strange how laughter looks like crying with no sound, and raindrops taste like tears .. without the pain
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
And a third message... The SessionStorage.py file that ships with CoreSessionTracking is a storage of its own that's RAM based. It's based on an (as yet unreleased) "packless" Berkeley storage implementation that Jim Fulton created. I'd really like to get the Berkeley version of this architecture released, because it's also nonundoing and doesn't require any packing unless your database has circular references. We've been in a sort of limbo in releasing it because I think we wanted to release a "full" implementation (one which supported undo and versioning), but I'm going to see if I can get the packless piece onto Zope.org without waiting for the rest of it. ----- Original Message ----- From: "Chris McDonough" <chrism@digicool.com> To: <bak@nstp.com.my>; <zope@zope.org> Sent: Tuesday, January 30, 2001 10:58 PM Subject: Re: [Zope] CoreSessionTracking and noundo db
Oops, I forgot to mention ExternalMount:
http://www.zope.org/Members/hathawsh/ExternalMount
----- Original Message ----- From: "Bak@kedai" <kedai@kedai.com.my> To: <zope@zope.org> Sent: Tuesday, January 30, 2001 9:28 PM Subject: [Zope] CoreSessionTracking and noundo db
hi in trying out the excellent CoreSessionTracking product, i encountered a little problem. the doc reference a no-undo external db to house the data. i remember one such beast which were alpha (berkerly dbm(?)), but can't locate it at zope.org.
also, will there ever be a no undo db for use with zope? since such product is a must to run zope in real world. hints, urls welcome
thanks
--
http://www.kedai.com.my/kk http://www.kedai.com.my/eZine
Strange how laughter looks like crying with no sound, and raindrops taste like tears .. without the pain
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
On Wednesday 31 January 2001 12:09, Chris McDonough wrote:
And a third message...
thanks for the prompt replies. to recap, i have -Berkeley DB -External Mount -something that i'm not too sure of :) as i see it, i can use External mount to mount berkeley Db. that will then give me a nonundo, nonversioning db.. right? if i use FileStorage with ExternalMount, it'll be just another ZODB. i hope i'm right. if i want to use it across ZEO Clients, i *must* use ZEO.ClientStorage. correct me if i'm wrong, please. to test a simple setup, i tried FileStorage with External Mount. and i encountered a little problem. here's what i have -ExternalMount -External Method[1] when i tried adding an ExternalMount, i got this[2] traceback. help? p/s - what about storing CoreSessionTracking data in RDB? -- [1] ---ExtDB.py import ZODB from ZODB.FileStorage import FileStorage def createDB(): return ZODB.DB(FileStorage('/home/kdie/Zope/var/ext.fs')) ---- [2] <P><STRONG>NameError</STRONG></P> Sorry, a Zope error occurred.<p> <!-- Traceback (innermost last): File /home/kdie/Zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/kdie/Zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/kdie/Zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /home/kdie/Zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/kdie/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_addExternalMount) File /home/kdie/Zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_addExternalMount) File /home/kdie/Zope/lib/python/Products/ExternalMount/ExternalMount.py, line 112, in manage_addExternalMount (Object: ApplicationDefaultPermissions) File /home/kdie/Zope/lib/python/ZODB/Mount.py, line 279, in _test (Object: A) File /home/kdie/Zope/lib/python/ZODB/Mount.py, line 246, in _getOrOpenObject (Object: A) NameError: mcc ---- http://www.kedai.com.my/kk http://www.kedai.com.my/eZine as you woke this morning, and open up your eyes, did you notice the tear stains lining your face were mine..
thanks for the prompt replies. to recap, i have -Berkeley DB -External Mount -something that i'm not too sure of :)
as i see it, i can use External mount to mount berkeley Db. that will then give me a nonundo, nonversioning db.. right?
Well, I know you're using ZEO with a FileStorage as your "main" storage, so you'll need to mount a ClientStorage which talks to a ZEO server backed by a nonundo db. The ZEO docs give some info about using a single ZEO server to serve two databases (see the -S switch to the ZEO 'start' command). So basically, you need do do something like: Client Client Client | | | | | | | | | Zeo Storage Server / \ nonundostorage (mounted) filestorage (main) Where all clients have a "main" database that is the ZSS' filestorage and all clients additionally have a ClientStorage mounted (via exmount or another way) that points to the ZSS' nonundo storage. An alternate way is: Client Client Client | | | | | | | | | Zeo Storage Server | | nonundostorage (main) In this case, all clients use a "main" database that is nonundoing, so you can put the external data container right in there without worrying about any mounting.
if i use FileStorage with ExternalMount, it'll be just another ZODB. i hope i'm right.
Yes.
if i want to use it across ZEO Clients, i *must* use ZEO.ClientStorage. correct me if i'm wrong, please.
Yes.
to test a simple setup, i tried FileStorage with External Mount. and i encountered a little problem. here's what i have -ExternalMount -External Method[1]
when i tried adding an ExternalMount, i got this[2] traceback. help?
I think this exposes an error in Mount.py. :-( Is there anything in your debug log?
p/s - what about storing CoreSessionTracking data in RDB?
It's my hope that people will write session data managers that do just this. The session tracking stuff is extensible. As a matter of fact, I don't think it would be too hard to adapt the existing FSSession and SQLSession products to be session data managers.
-- [1] ---ExtDB.py
import ZODB from ZODB.FileStorage import FileStorage
def createDB(): return ZODB.DB(FileStorage('/home/kdie/Zope/var/ext.fs')) ---- [2] <P><STRONG>NameError</STRONG></P>
Sorry, a Zope error occurred.<p> <!-- Traceback (innermost last): File /home/kdie/Zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/kdie/Zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/kdie/Zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /home/kdie/Zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/kdie/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_addExternalMount) File /home/kdie/Zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_addExternalMount) File /home/kdie/Zope/lib/python/Products/ExternalMount/ExternalMount.py, line 112, in manage_addExternalMount (Object: ApplicationDefaultPermissions) File /home/kdie/Zope/lib/python/ZODB/Mount.py, line 279, in _test (Object: A) File /home/kdie/Zope/lib/python/ZODB/Mount.py, line 246, in _getOrOpenObject (Object: A) NameError: mcc
----
http://www.kedai.com.my/kk http://www.kedai.com.my/eZine
as you woke this morning, and open up your eyes, did you notice the tear stains lining your face were mine..
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Bak@kedai -
Chris McDonough