The subject says it all really. Has anyone got the latest (beta2) working? If so have you got a custom_zodb.py I could take a look at? Thanks in advance. Phil
Hi Phil... this is for the Packless storage, but it should help a little... from Products.bsddb3Storage.Packless import Packless m = Packless env='var/bsddb3storage' Storage=m(name='PacklessBerkeleyStorage', env=env) ----- Original Message ----- From: "Phil Harris" <phil.harris@zope.co.uk> To: <zope@zope.org> Sent: Tuesday, May 08, 2001 3:31 PM Subject: [Zope] bsddb3Storage missing custom_zodb.py
The subject says it all really.
Has anyone got the latest (beta2) working? If so have you got a custom_zodb.py I could take a look at?
Thanks in advance.
Phil
_______________________________________________ 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 )
"CM" == Chris McDonough <chrism@digicool.com> writes:
CM> Hi Phil... this is for the Packless storage, but it should CM> help a little... CM> from Products.bsddb3Storage.Packless import Packless | m = Packless | env='var/bsddb3storage' CM> Storage=m(name='PacklessBerkeleyStorage', env=env) | ----- Original Message ----- | From: "Phil Harris" <phil.harris@zope.co.uk> | To: <zope@zope.org> | Sent: Tuesday, May 08, 2001 3:31 PM | Subject: [Zope] bsddb3Storage missing custom_zodb.py >> The subject says it all really. Has anyone got the latest >> (beta2) working? If so have you got a custom_zodb.py I could >> take a look at? Thanks in advance. Phil There is a sample custom_zodb.py in the docs/ directory of the beta2 distribution. -Barry
On Monday 07 May 2001 11:14, Barry A. Warsaw wrote:
"CM" == Chris McDonough <chrism@digicool.com> writes:
<snipped a bit>
There is a sample custom_zodb.py in the docs/ directory of the beta2 distribution.
Not in the distribution I downloaded today. This is the contents of the docs dir: total 52 drwxrwxr-x 2 889 889 4096 May 8 19:31 ./ drwxrwxr-x 5 889 889 4096 May 8 15:06 ../ -rw-rw-r-- 1 889 889 7461 Mar 29 19:17 FullImplementation.txt -rw-rw-r-- 1 889 889 533 Nov 9 2000 MinimalImplementation.txt -rw-rw-r-- 1 889 889 809 Nov 9 2000 MinimalReplicatedImplementation.txt -rw-rw-r-- 1 889 889 1582 Dec 11 17:07 PacklessImplementation.txt -rw-rw-r-- 1 889 889 12876 Mar 27 16:26 PacklessReadme.txt -rw-rw-r-- 1 889 889 2944 Nov 9 2000 TransactionStrategy.txt -rw-r--r-- 1 root root 0 May 8 19:31 a -rw-rw-r-- 1 889 889 2010 Nov 9 2000 notes Not one .py file amongst them. Thanks anyway, Phil
-Barry
"PH" == Phil Harris <phil.harris@zope.co.uk> writes:
>> There is a sample custom_zodb.py in the docs/ directory of the >> beta2 distribution. PH> Not in the distribution I downloaded today. This is the PH> contents of the docs dir: Darn, you're right. There was a typo in the MANIFEST file which caused it to be omitted. I append it below, and I've also uploaded a revised tarball that includes the file. -Barry -------------------- snip snip -------------------- # Uncomment the line corresponding to the storage you want to use # This syntax requires Python 2.x # #from bsddb3Storage.Packless import Packless as ConcreteStorage #from bsddb3Storage.Minimal import Minimal as ConcreteStorage from bsddb3Storage.Full import Full as ConcreteStorage import os env = os.path.join('var', 'bsddb3Storage') Storage = ConcreteStorage(name='BerkeleyStorage', env=env)
Hi all. I'm building a webfilter in python. My first option for server was Apache+mod_snake, but after a while that felt kind of shaky. So now I've been reading up on Zope for a couple of days. I haven't been able to find the solution for a problem that must be very common. I have an external method in the root folder linked to a script looking like this: #hello.py def hello(self, REQUEST): user = REQUEST.AUTHENTICATED_USER return 'Hello %s' % user Works great. Then I have another another external method linked to a script looking like this: #hello_with_import.py import testmodule def hello(self): return 'Hello %s' % testmodule.value Doesn't work at all. Just gives me: Error Type: ImportError Error Value: No module named testmodule The module testmodule is in the site-packages of my python installation. and importing it from any normal python program is no problem. What's the deal here? oivvio -- oivvio polite cell +46 (0)709 30 40 30 / work +46 (0)8 669 64 18 / fax +46 (0)8 84 00 18 varvsgatan 10A / s-117 29 stockholm / sweden
Never mind I've figured it out. On Tuesday 08 May 2001 15:31, Phil Harris wrote:
The subject says it all really.
Has anyone got the latest (beta2) working? If so have you got a custom_zodb.py I could take a look at?
Thanks in advance.
Phil
_______________________________________________ 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 )
What did you do? Thanks Norman -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Phil Harris Sent: 08 May 2001 20:40 To: zope@zope.org Subject: Re: [Zope] bsddb3Storage missing custom_zodb.py Never mind I've figured it out. On Tuesday 08 May 2001 15:31, Phil Harris wrote:
The subject says it all really.
Has anyone got the latest (beta2) working? If so have you got a custom_zodb.py I could take a look at?
Thanks in advance.
Phil
_______________________________________________ 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 )
Norman, I created the aforementioned custom_zodb.py with these contents: from bsddb3Storage import full ConcreteStorage=Full.Full Storage=ConcreteStorage('zbsddb') The zbsddb is a folder within INSTANCE_HOME (normally your ZopeDir). The files that bsddb3Storage needs are then created in there the next time Zope starts. hth Phil phil.harris@zope.co.uk On Monday 07 May 2001 11:16, Norman Khine wrote:
What did you do?
Thanks
Norman
participants (5)
-
barry@digicool.com -
Chris McDonough -
Norman Khine -
oivvio polite -
Phil Harris