Re: [Zope] Class instances changing address?

2006-01-20 Thread Chris Withers
Jeff Gentry wrote: I wish I could post some relevent code but the code base but given that I'm not at all sure what section of the code might be causing this and the code base is several thousand lines long, that'sn ot really possible :( I'm afraid that what you need to do is get as small as

Re: [Zope] zeopack: No handlers could be found for logger ZEO.zrpc

2006-01-20 Thread Chris Withers
Tim Peters wrote: Is it true that you don't know how to edit Python code? The first response to that message suggested adding: import logging logging.basicConfig() Have bugs for zeoup and zeopack been opened for these? I'm guessing they should both really use the stuff setup in

[Zope] Re: Class instances changing address?

2006-01-20 Thread Florent Guillaume
Jeff Gentry wrote: I'm running Zope 2.7.3 w/ python 2.4.1. I'm in the process of developing a FS based product as a primary class w/ many sub-classes. I've been experiencing a problem which I thought I had completely nixed but apparently only partly so and now am out of ideas as to what might

[Zope] Zope and Sqlite3 adapter

2006-01-20 Thread David Pratt
Hi can someone advise whether there is an adapter for sqlite3 for zope. I normally use Postgres but I am curious about this for lightweight use. I realize sqlite3 is not multi-threaded itself but might be fine for small volume sites (if it can be forced to use a single thread for interaction

[Zope] LocalFS under Zope2.9

2006-01-20 Thread Dennis Allison
This is the LocalFS-1.3-andreas version. Later releases do not appear to address this issue. 2006-01-20T09:22:51 ERROR Zope Couldn't install LocalFS Traceback (most recent call last): File /usr/local/src/zope/Zope2.9/lib64/python/OFS/Application.py, line 763, in install_product

[Zope] Zope 2.9 and product installation

2006-01-20 Thread Dennis Allison
IssueTracker 0.6.13 Zope 2.9.0 64-bit linux 2006-01-20T09:22:49 WARNING Init Class Products.IssueTrackerProduct.IssueTracker.IssueTracker has a security declaration for nonexistent method 'index_html' -- 2006-01-20T09:22:49 WARNING Init Class

Re: [Zope] Zope 2.9 and product installation

2006-01-20 Thread Paul Winkler
On Fri, Jan 20, 2006 at 10:23:30AM -0800, Dennis Allison wrote: IssueTracker 0.6.13 Zope 2.9.0 64-bit linux 2006-01-20T09:22:49 WARNING Init Class Products.IssueTrackerProduct.IssueTracker.IssueTracker has a security declaration for nonexistent method 'index_html' (snip) These are

Re: [Zope] Zope and Sqlite3 adapter

2006-01-20 Thread Dieter Maurer
David Pratt wrote at 2006-1-20 10:00 -0400: Hi can someone advise whether there is an adapter for sqlite3 for zope. I normally use Postgres but I am curious about this for lightweight use. I realize sqlite3 is not multi-threaded itself but might be fine for small volume sites (if it can be

Re: [Zope] Class instances changing address?

2006-01-20 Thread Dieter Maurer
Jeff Gentry wrote at 2006-1-19 16:55 -0500: ... As background, the primary class (A) maintains a handle to an instance of another class (B) which handles interaction w/ a psycopg db controller. Class A also will instantiate several instances of Class C and as part of the construction will pass

Re: [Zope] NewBee, Do I have to code to do this?

2006-01-20 Thread John Huttley
Thanks for your help on this. I'll study it up shortly. Regards, John ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope] LocalFS under Zope2.9

2006-01-20 Thread J├╝rgen Herrmann
change the line from OFS.content_types... to from zope.app.content_types in LocalFS.py regrds, juergen herrmann On Fri, January 20, 2006 19:07, Dennis Allison wrote: This is the LocalFS-1.3-andreas version. Later releases do not appear to address this issue. 2006-01-20T09:22:51 ERROR

Re: [Zope] Class instances changing address?

2006-01-20 Thread Jeff Gentry
On Fri, 20 Jan 2006, Chris Withers wrote: I'm afraid that what you need to do is get as small as possible an example that reproduces the problem by hacking out lots of your code until the problem stops occuring. Doing this usually helps me fix the problem, but if not, you can at least post

Re: [Zope] Re: Class instances changing address?

2006-01-20 Thread Jeff Gentry
On Fri, 20 Jan 2006, Florent Guillaume wrote: We say that A and B are persistent classes, while C is not. You have to be aware that persistent classes have special needs, and using them has consequences. One being that, due to transactional behaviour, several versions of the same instance

[Zope] returning list from PythonScript

2006-01-20 Thread Slobodan Jovcic
Hi, I'm trying to pass a list of values between the script and external method. ZPT contains the following: tal:block tal:define=whatever python: container.myExtMethod ( container.myScript() ) / container.myScript() is a Python Script that returns a list of values. container.myExtMethod()

Re: [Zope] Class instances changing address?

2006-01-20 Thread Jeff Gentry
On Fri, 20 Jan 2006, Dieter Maurer wrote: Your B instance above, is apparently not acquisition wrapped. Acquisition wrapped instances usually include the container path in their repr (if the intermediate objects have an id/getId -- this is the case of instances with ZMI representation

Re: [Zope] returning list from PythonScript

2006-01-20 Thread J Cameron Cooper
Slobodan Jovcic wrote: Hi, I'm trying to pass a list of values between the script and external method. ZPT contains the following: tal:block tal:define=whatever python: container.myExtMethod ( container.myScript() ) / container.myScript() is a Python Script that returns a list of values.

Re: [Zope] Class instances changing address?

2006-01-20 Thread Jeff Gentry
Sorry for the self followup, but some update info. On Fri, 20 Jan 2006, Jeff Gentry wrote: running through the system looking at the repr() of these instances (both 'B' and 'C'). What I saw was that 'B' would say: B instance at 2a9e9274e0 (or some other mem address) while 'C' would say: C

Re: [Zope] returning list from PythonScript

2006-01-20 Thread Slobodan Jovcic
True. Somehow, some of the latest changes in the script were lost, probably by closing the browser without save, including a change of: print result return printed to: return result Very stupid. Jovca _ Slobodan Jovcic Teaching Enhancement Center Office of

Re: [Zope] returning list from PythonScript

2006-01-20 Thread David
J Cameron Cooper wrote: Slobodan Jovcic wrote: Hi, I'm trying to pass a list of values between the script and external method. ZPT contains the following: tal:block tal:define=whatever python: container.myExtMethod ( container.myScript() ) / container.myScript() is a Python Script

Re: [Zope] Class instances changing address?

2006-01-20 Thread Gabriel Genellina
At Friday 20/1/2006 20:07, Jeff Gentry wrote: As background, the primary class (A) maintains a handle to an instance of another class (B) which handles interaction w/ a psycopg db controller. Class A also will instantiate several instances of Class C and as part of the construction will pass

Re: [Zope] returning list from PythonScript

2006-01-20 Thread Slobodan Jovcic
I'd probably just call container.MyScript() as self.MyScript() in the external method. I'm trying to keep external method versatile. But i'm curious as to why your example doesn't work. There was an error in the script that I fixed, but never saved the file. Doh! Thanks, Jovca

[Zope] Can not authenticate witn zope http server

2006-01-20 Thread papi mac
I have been using Zope 2.7.5 (with python 2.3.5) for a long time on a Red Hat 9 server. I migrated to a new machine 2 weeks ago that has FC4 where I installed Zope 2.8.5 (and python 2.3.5 for its use). The old server started dveloping some internittent crashes that I think could be due to the

Re: [Zope] Zope and Sqlite3 adapter

2006-01-20 Thread David Pratt
Hi Dieter. Many thanks. :-) I was hoping there might be something but if I cannot locate anything existing, I will likely go this route if I can find a bit more time. Regards, David Dieter Maurer wrote: David Pratt wrote at 2006-1-20 10:00 -0400: Hi can someone advise whether there is an

[Zope-Annce] Python/Zope Job Available

2006-01-20 Thread Bob Corriher
P-Wave Inc has an opening for a software engineer: with Python and Zope experience. The job will require relocation to the southeastern PA area. Forward resumes/salary requirements to [EMAIL PROTECTED] Detailed job requirements are as follows: Software Engineer: The position will support

[Zope-Annce] [ANN] IncrementalSearch[2] -- Bugfix release

2006-01-20 Thread Dieter Maurer
I found a bug in IncrementalSearch[2] that can cause wrong results under rare circumstances. One requirement is a not search embedded in an or search (but this is not sufficient to cause the problem). You find fixed versions at http://www.dieter.handshake.de/pyprojects/zope

[Zope-Checkins] CVS: Packages/ZODB - config.py:1.13.4.1.38.2

2006-01-20 Thread Jim Fulton
Update of /cvs-repository/Packages/ZODB In directory cvs.zope.org:/tmp/cvs-serv6069 Modified Files: Tag: jim-test-storage config.py Log Message: Make sure providing as-of implies read-only. === Packages/ZODB/config.py 1.13.4.1.38.1 = 1.13.4.1.38.2 === ---

[Zope-Checkins] CVS: Packages/ZODB - DemoStorage.py:1.18.10.2.4.1

2006-01-20 Thread Jim Fulton
Update of /cvs-repository/Packages/ZODB In directory cvs.zope.org:/tmp/cvs-serv15107/ZODB Modified Files: Tag: jim-test-storage DemoStorage.py Log Message: Added lastTransaction, which ZEO wants === Packages/ZODB/DemoStorage.py 1.18.10.2 = 1.18.10.2.4.1 === ---

[Zope-Checkins] CVS: Packages/ZODB - BaseStorage.py:1.34.4.6.2.1

2006-01-20 Thread Jim Fulton
Update of /cvs-repository/Packages/ZODB In directory cvs.zope.org:/tmp/cvs-serv15074/ZODB Modified Files: Tag: jim-test-storage BaseStorage.py Log Message: Should be OK to ask for new_oid in read-only mode. Demo storage wants it. Maybe need a max_oid. ===

[Zope-Checkins] CVS: Packages/ZODB - FileStorage.py:1.135.6.9.2.1

2006-01-20 Thread Jim Fulton
Update of /cvs-repository/Packages/ZODB In directory cvs.zope.org:/tmp/cvs-serv15139/ZODB Modified Files: Tag: jim-test-storage FileStorage.py Log Message: Don't read a saved index if we are reading as of a given time. === Packages/ZODB/FileStorage.py 1.135.6.9 = 1.135.6.9.2.1

[Zope-Checkins] CVS: Packages/ZODB - config.py:1.13.4.1.38.3

2006-01-20 Thread Jim Fulton
Update of /cvs-repository/Packages/ZODB In directory cvs.zope.org:/tmp/cvs-serv15174/ZODB Modified Files: Tag: jim-test-storage config.py Log Message: Args to TimeStamp must be ints. === Packages/ZODB/config.py 1.13.4.1.38.2 = 1.13.4.1.38.3 === ---

Re: [Zope-dev] [ZPublisher] specifiying 'charset' for the content-type header

2006-01-20 Thread Chris Withers
Andreas Jung wrote: --On 19. Januar 2006 18:37:35 + Chris Withers [EMAIL PROTECTED] wrote: Andreas Jung wrote: Ah, okay, and how would I indicate in my PythonScript return that I'm returning something different to what is specified in zpublisher_default_encoding? By setting the

Re: [Zope-dev] [ZPublisher] specifiying 'charset' for the content-type header

2006-01-20 Thread Andreas Jung
--On 20. Januar 2006 10:03:03 + Chris Withers [EMAIL PROTECTED] wrote: set' set. A cool :-) Where's the code that checks if this header is present so I can take a look? ZPublisher/HTTPResponse.py (where else :-)) Oh :-S I was expecting a different patch... so this only affects

[Zope-dev] Zope tests: 8 OK

2006-01-20 Thread Zope tests summarizer
Summary of messages to the zope-tests list. Period Thu Jan 19 12:01:01 2006 UTC to Fri Jan 20 12:01:01 2006 UTC. There were 8 messages: 8 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux From: Zope Unit Tests Date: Thu Jan 19 21:03:09 EST

Re: [Zope-dev] Re: [Zope3-dev] December release post-mortem

2006-01-20 Thread Jim Fulton
Chris Withers wrote: ... On a side note, I see python now includes doctest.py, why are we still maintaining our own copy in zope.testing? doctest has been in Python for a long time, far longer than we've been using it. Now that we use it aggressively and are aggressively contributing to it,

[Zope-dev] Re: [Zope3-dev] December release post-mortem

2006-01-20 Thread Dieter Maurer
Martijn Faassen wrote at 2006-1-19 19:37 +0100: ... I'm talking about a Zope 2 release including (most of) what's in a Zope 3 release, so that Five developers can work on exposing *that* in Zope 2 too (which can then be part of the next Zope 2 release as we integrate the newer Five in it). I

[Zope-dev] Re: December release post-mortem

2006-01-20 Thread Philipp von Weitershausen
Martijn Faassen wrote: Yes, but Zope 2 included *less* than Zope 3 in the most recent release, and I'd like *all* packages that are in a Zope 3 release to be available in a Zope 2 release. I.e. Five doesn't want packages that aren't in a Zope 3 release, but not less either. I'm surprised

Re: [Zope-DB] Warnings from mxODBC in 2.8.5

2006-01-20 Thread M.-A. Lemburg
Chris Withers wrote: Hi All, I get the following warnings from mxODBC on Zope 2.8.5: lib/python/OFS/Application.py:788: DeprecationWarning: __init__.py of Products.mxODBCZopeDA has a long deprecated '__ac_permissions__' attribute. '__ac_permissions__' will be ignored by install_product

Re: [Zope-DB] mxODBC Zope DB2 adapter - how to specify the current schema?

2006-01-20 Thread M.-A. Lemburg
Gergana Silvanova wrote: Dear all, I'm using Zope with IBM DB2... the adapter which I use is mxODBC DA from eGenix... in the database connection string, I can specify DSN, UID, PWD and adapter-specific stuffdoes someone know if there is a way to specify the current schema? I looked

Re: [Zope-DB] Warnings from mxODBC in 2.8.5

2006-01-20 Thread Charlie Clark
On Fri, 20 Jan 2006 08:27:25 +0100, Chris Withers [EMAIL PROTECTED] wrote: Have other people seen this? I tried adding a warning filter but it didn't have any effect. My only guess is becuase mxODBC ships only as .pyc files :- S Anyway, I guess this is mainly aimed at the eGenix people: