[Zope-dev] Import Libraries into Python Script

2001-02-15 Thread Chris Withers
Hi, What's the 'approved' way of validating standard python modules so they can be imported in Python Scripts? I want to import imaplib but can't find out how :-( cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] [Newbie Alert] How to make an existing class catalog-aware

2001-02-15 Thread Erik Enge
[stefano ciccarelli] | Is there any way to make an existing class catalog aware? Is this ZClasses or Python classes, and are there any objects that exist already? ___ Zope-Dev maillist - [EMAIL PROTECTED]

[Zope-dev] Re: More Feedback on Refresh

2001-02-15 Thread Chris Withers
Shane Hathaway wrote: Oh, here's a hypothesis... if, in __init__.py, you use "import" within the initialize() method rather than at module scope, Refresh can't detect the module dependency correctly. We're not using import in this way but are still seeing icon wierdities. Also, if you use

[Zope-dev] Getting the parent of a container in a Python Script

2001-02-15 Thread Cyril Elkaim
Hi all, My question is in the title. I think I'm stupid because I have really searched anywhere, and found nothing. The answer is certainly trivial but too many hours you know... :-) I'm able to get all the children of the current container or context but unable to get its parent.

RE: [Zope-dev] Import Libraries into Python Script

2001-02-15 Thread Brian Lloyd
This needs to be documented (and made a little easier), but heres a quick primer: o Create a new directory in your 'Products' directory (called ModuleAssertions or something like that - the name is unimportant). o Create an '__init__.py' file in the new directory. o Add

Re: [Zope-dev] Getting the parent of a container in a Python Script

2001-02-15 Thread Morten W. Petersen
[Cyril Elkaim] |Hi all, Hia Cyril, [snip] | Aside from my problems Zope rocks really. Yes it does. And you can find usable information in $ZOPE_INSTANCE/lib/python/OFS/ZDOM.py . Hope this helps, Morten ___ Zope-Dev maillist - [EMAIL

Re: [Zope-dev] Getting the parent of a container in a Python Script

2001-02-15 Thread Erik Enge
[Cyril Elkaim] | Of course I have tried REQUEST.PARENTS[0] but this is the parent | inside the URL, I'm searching the PARENT inside the object system. yourobject.getParentNode() should do the trick. Have a read at lib/python/OFS/ZDOM.py | Another question how can I get a reference of any

Re: [Zope-dev] Getting the parent of a container in a Python Script

2001-02-15 Thread Tom Jenkins
Do you mean the aq_parent? I believe that is the property that you want. Cyril Elkaim wrote: Hi all, My question is in the title. I think I'm stupid because I have really searched anywhere, and found nothing. The answer is certainly trivial but too many hours you know... :-)

Re: [Zope-dev] Getting the parent of a container in a Python Script

2001-02-15 Thread Erik Enge
[Cyril Elkaim] | I want to give the id (eventually qualified) of an object and get a | reference to it. I'm talking about persistent objects inside the | ZODB. What do you need the reference for? How are you going to use it? And when you're talking about inside ZODB, does that mean that

[Zope-dev] How to read ZODB with Python script?

2001-02-15 Thread Petr Knapek
Hi Zopists, I would like to know how to connect to running Zope ZODB from a python script. I would like to have possibility to read only objects from ZODB? Is there any possibility how to do it when Zope application server is running and not to corrupt the ZODB? Thanks, Petr -- Petr Knpek

Re: [Zope-dev] How to read ZODB with Python script?

2001-02-15 Thread Chris McDonough
Hi Petr, Look into ZEO. You'll be able to connect to a ZODB database from multiple processes with ZEO. - C - Original Message - From: "Petr Knapek" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 15, 2001 11:34 AM Subject: [Zope-dev] How to read ZODB with Python

Re: [Zope-dev] How to read ZODB with Python script?

2001-02-15 Thread Steve Alexander
Petr Knapek wrote: I would like to know how to connect to running Zope ZODB from a python script. I would like to have possibility to read only objects from ZODB? Is there any possibility how to do it when Zope application server is running and not to corrupt the ZODB? This was

Re: [Zope-dev] How to read ZODB with Python script?

2001-02-15 Thread Shane Hathaway
Steve Alexander wrote: Petr Knapek wrote: I would like to know how to connect to running Zope ZODB from a python script. I would like to have possibility to read only objects from ZODB? Is there any possibility how to do it when Zope application server is running and not

Re: [Zope-dev] Getting the parent of a container in a Python Script

2001-02-15 Thread Cyril Elkaim
Erik, What do you need the reference for? How are you going to use it? And when you're talking about «inside ZODB», does that mean that you're not using Zope to access it? I'm using Zope but I made up my application by components. So I want to access an object anywhere in

[Zope-dev] DA for DB2 ?

2001-02-15 Thread Philipp Auersperg
I have looked around for a DB2 database adapter for Zope and did not find any. But I have found that there exists a DB2 driver for Python under: ftp://people.linuxkorea.co.kr/pub/DB2 This driver claims to be Python DB API compliant, so it should be possible to port for example the ZOracleDA.

[Zope-dev] 2gb ZODB size limit

2001-02-15 Thread Tim McLaughlin
Is this true on windows too? I saw some mention of this limit be lifted, but if so, in what version? ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope-dev] 2gb ZODB size limit

2001-02-15 Thread Andy McKay
Yes, you will hit this limit. Windows uses a 32 bit integer for file size... No matter what MS says, Ive hit it on Win2k. -- Andy McKay. - Original Message - From: "Tim McLaughlin" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 15, 2001 1:13 PM Subject: [Zope-dev]

Re: [Zope-dev] 2gb ZODB size limit

2001-02-15 Thread Morten W. Petersen
[Tim McLaughlin] | Is this true on windows too? I saw some mention of this limit be lifted, | but if so, in what version? It's not a problem on Windows, AFAIK. It's a problem with Linux, if you want to be able to use databases 2GB in size on Linux, a kernel = 2.4.0 is required. Hope this

Re: [Zope-dev] 2gb ZODB size limit

2001-02-15 Thread Morten W. Petersen
[Andy McKay] | Yes, you will hit this limit. Windows uses a 32 bit integer for file size... | No matter what MS says, Ive hit it on Win2k. Interesting. Are you sure the problem lies with Win2K and not Python or something else? Cheers, Morten ___

Re: [Zope-dev] 2gb ZODB size limit

2001-02-15 Thread Andy McKay
Windows, according to Trent Mick a Developer here at ActiveState who added in some large file support for Python platforms for python 2.0 (and has looked at this in detail). I heard a rumour Solaris does not have this problem. -- Andy McKay. - Original Message - From: "Morten W.

Re: [Zope-dev] Calling Catalog from python script

2001-02-15 Thread Erik Enge
[[EMAIL PROTECTED]] | Where did getobject come from? I know about Catalog.data, but I've never | seen a getobject() method... It's a method of the brain ;). If you have a data_record_id, you can use getobject() to retrieve the object it represents.

Re: [Zope-dev] 2gb ZODB size limit

2001-02-15 Thread Erik Enge
[Morten W. Petersen] | It's a problem with Linux, if you want to be able to use databases | 2GB in size on Linux, a kernel = 2.4.0 is required. Nope. First, the limit is at file-level, not database-level (mind you, a problem with the filesystem, not Linux per se). You can have tons and tons

Re: [Zope-dev] How to read ZODB with Python script?

2001-02-15 Thread Michel Pelletier
http://www.kuchling.com/zodb/guide/ -Michel On 15 Feb 2001, Petr Knapek wrote: Hi Zopists, I would like to know how to connect to running Zope ZODB from a python script. I would like to have possibility to read only objects from ZODB? Is there any possibility how to do it when Zope

Re: [Zope-dev] 2gb ZODB size limit

2001-02-15 Thread Morten W. Petersen
[Erik Enge] | [Morten W. Petersen] | | | It's a problem with Linux, if you want to be able to use databases | | 2GB in size on Linux, a kernel = 2.4.0 is required. | | Nope. First, the limit is at file-level, not database-level (mind | you, a problem with the filesystem, not Linux per se).

Re: [Zope-dev] 2gb ZODB size limit

2001-02-15 Thread Erik Enge
[Morten W. Petersen] | BTW, there is a list called [EMAIL PROTECTED], for ZODB specific | questions. Actually, I think its called ZODB-Dev; [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev

Re: [Zope-dev] 2gb ZODB size limit

2001-02-15 Thread Morten W. Petersen
[Erik Enge] | [Morten W. Petersen] | | | BTW, there is a list called [EMAIL PROTECTED], for ZODB specific | | questions. | | Actually, I think its called ZODB-Dev; [EMAIL PROTECTED] I stand corrected. Cheers, Morten ___ Zope-Dev maillist -

[Zope-dev] ANNOUNCE: Zope 2.3.1 beta 1 released...

2001-02-15 Thread Brian Lloyd
Hello all, Zope 2.3.1 beta 1 has been released - you can download it from Zope.org: http://www.zope.org/Products/Zope/2.3.1b1/ Zope 2.3.1b1 fixes a number of issues that have come up through usage of 2.3.0, as well as some previously reported issues from the Zope bug collector.

Re: [Zope-dev] 2gb ZODB size limit

2001-02-15 Thread Chris Withers
FileStorage type database was implicit, as we're discussing ZODB, and that's one file per database. Not necessarily ;-) http://www.zope.org/Members/hathawsh/PartitionedFileStorage ...thanks Shane! *grinz* Chris ___ Zope-Dev maillist - [EMAIL

Re: [Zope-dev] 2gb ZODB size limit

2001-02-15 Thread Bill Anderson
On 15 Feb 2001 23:28:18 +0100, Morten W. Petersen wrote: [Tim McLaughlin] | Is this true on windows too? I saw some mention of this limit be lifted, | but if so, in what version? It's not a problem on Windows, AFAIK. It's a problem with Linux, if you want to be able to use databases

Re: [Zope-dev] 2gb ZODB size limit

2001-02-15 Thread Barry A. Warsaw
"MWP" == Morten W Petersen [EMAIL PROTECTED] writes: MWP BTW, there is a list called [EMAIL PROTECTED], for ZODB MWP specific questions. Make that [EMAIL PROTECTED] now! -Barry ___ Zope-Dev maillist - [EMAIL PROTECTED]

[Zope-dev] Zope 2.2.4 Dying

2001-02-15 Thread Andre Schubert
Hi, since the last time i had some problems with my zope server. The zope 2.2.4 running under linux dies unexpectly with the following messages. 2001-02-16T01:50:08 ERROR(200) zdaemon zdaemon: Fri Feb 16 02:50:08 2001: Aiieee! 5451 exited with error code: 13 -- 2001-02-16T02:29:38