[Zope-Checkins] SVN: Zope/branches/jim-fix-zclasses/lib/python/ZClasses/_pmc.txt Added configuration of class factory.

2005-04-04 Thread Jim Fulton
Log message for revision 29868: Added configuration of class factory. Changed: U Zope/branches/jim-fix-zclasses/lib/python/ZClasses/_pmc.txt -=- Modified: Zope/branches/jim-fix-zclasses/lib/python/ZClasses/_pmc.txt === ---

[Zope-Checkins] SVN: Zope/branches/jim-fix-zclasses/lib/python/ZODB/ Added ZClass-independent test of (and possible base class for)

2005-04-04 Thread Jim Fulton
Log message for revision 29870: Added ZClass-independent test of (and possible base class for) persistent-class support machinery. Changed: A Zope/branches/jim-fix-zclasses/lib/python/ZODB/persistentclass.py A Zope/branches/jim-fix-zclasses/lib/python/ZODB/persistentclass.txt A

[Zope-Checkins] SVN: Zope/trunk/lib/python/AccessControl/Permissions.py - Forward port missing change from 2.7 branch. Humm, 1 year, 22 weeks ago, according to: http://thread.gmane.org/gmane.comp.web

2005-04-04 Thread Sidnei da Silva
Log message for revision 29877: - Forward port missing change from 2.7 branch. Humm, 1 year, 22 weeks ago, according to: http://thread.gmane.org/gmane.comp.web.zope.cvs/11080 Changed: U Zope/trunk/lib/python/AccessControl/Permissions.py -=- Modified:

[Zope-Checkins] CVS: Packages/ZODB/tests - MTStorage.py:1.10.2.2

2005-04-04 Thread Tim Peters
Update of /cvs-repository/Packages/ZODB/tests In directory cvs.zope.org:/tmp/cvs-serv6932/ZODB/tests Modified Files: Tag: Zope-2_7-branch MTStorage.py Log Message: The various flavors of the ``check2ZODBThreads`` and ``check7ZODBThreads`` tests are much less likely to suffer

[Zope-dev] HEADS UP: QA Problems with Zope 2

2005-04-04 Thread Christian Theune
Hi, as I'm the guy who clicks the build button for the Zope 2 Windows releases I have the unfortunate honor to write his complaining mail: Situation = a) Zope 2.8 as of release a2 does not run bin/test.py anymore. Neither on Linux nor on Windows. Unfortunately this is the only

[Zope-dev] Re: HEADS UP: QA Problems with Zope 2

2005-04-04 Thread yuppie
Christian Theune wrote: a) I'm not able to look into the test runners (that are not broken solely on windows) nor to look into Five integration problems. I'd love if someone could a) either fix test.py or b) deprecate it and give me the hint to some other runner that works. test.py

RE: [Zope-dev] HEADS UP: QA Problems with Zope 2

2005-04-04 Thread Mark Hammond
b): I can either create branches for WinBuilders responding to the Zope Versions. Or (what I like better) I can put the WinBuilders somewhere in the Zope 2 tree to allow versioning along a branch automatically so continuous tests know where to get the WinBuilders from. +1

RE: [Zope-dev] HEADS UP: QA Problems with Zope 2

2005-04-04 Thread Christian Theune
Hi, Am Montag, den 04.04.2005, 21:12 +1000 schrieb Mark Hammond: d) I have no idea about zopectl on windows. Is there some knowledge around on this? I recall a message from Tim saying it has never worked and probably never will. IIUC correctly, its functionality isn't as desired on

Re: [Zope-dev] post publishing hook

2005-04-04 Thread Christian Theune
Am Montag, den 04.04.2005, 13:39 +0200 schrieb Florent Guillaume: Yes we need it for CPS which currently works with 2.7 (no customer is ready to move to 2.8 yet). Neither is 2.8. ;) -- gocept gmbh co. kg - schalaunische str. 6 - 06366 koethen - germany www.gocept.com - [EMAIL PROTECTED] -

Re: [Zope-dev] opinion: speeding up large PUT uploads

2005-04-04 Thread Florent Guillaume
Chris McDonough [EMAIL PROTECTED] wrote: Zope's ZPublisher.HTTPRequest.HTTPRequest class has a method named processInputs. This method is responsible for parsing the body of all requests. It parses all upload bodies regardless of method: PUT, POST, GET, HEAD, etc. In doing so, it uses

[Zope-dev] Re: brain.getObject and traversal

2005-04-04 Thread Chris Withers
Hi Tres, We really need to follow a deprecation-style model here: the risk of breaking major third party components is pretty high. Agreed. I see you started working on this, thanks! Since this is a bug, and it looks like it's going to be fixed with a config option, would anyone mind if I ported

Re: [Zope-dev] brain.getObject and traversal

2005-04-04 Thread Chris Withers
Florent Guillaume wrote: Is everyone ok with returning - the object if it can be accessed - raise Unauthorized if it can't be accessed - raise NotFound if it's not there Please don't catch any exceptions and re-raise them in a different type, just let them pass through. I specifically don't

Re: [Zope-dev] Re: brain.getObject and traversal

2005-04-04 Thread Florent Guillaume
Chris Withers wrote: Florent Guillaume wrote: Ok, thanks a lot to Tres for having gone ahead and done that. I just merged his branch. All 5645 tests pass (man, with Zope 3 included that's way more than before!) Did you check with Tres that his branc hwas ready to merge? ;-) Yes. Florent -- Florent

Re: [Zope-dev] HEADS UP: QA Problems with Zope 2

2005-04-04 Thread Tim Peters
[Christian Theune] ... I have a compiled Zope 2.8a2 around here, but I'm not able to run the unit tests on it and I'm not willing to publish it therefore because I have the suspicion that this branch never has seen windows before except the one pass of unit tests before 2.8a1. FYI, I usually

[Zope-dev] Re: brain.getObject and traversal

2005-04-04 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Withers wrote: We really need to follow a deprecation-style model here: the risk of breaking major third party components is pretty high. Agreed. I see you started working on this, thanks! Since this is a bug, and it looks like it's

Re: [Zope-dev] HEADS UP: QA Problems with Zope 2

2005-04-04 Thread Tim Peters
... [Christian Theune] d) I have no idea about zopectl on windows. Is there some knowledge around on this? [Mark Hammond] I recall a message from Tim saying it has never worked and probably never will. Well, everything that builds on zdaemon is Unix-specific -- the underlying machinery

[Zope-dev] Re: HEADS UP: QA Problems with Zope 2

2005-04-04 Thread yuppie
Tim Peters wrote: [Christian Theune] ... I have a compiled Zope 2.8a2 around here, but I'm not able to run the unit tests on it and I'm not willing to publish it therefore because I have the suspicion that this branch never has seen windows before except the one pass of unit tests before 2.8a1.

Re: [Zope-dev] HEADS UP: QA Problems with Zope 2

2005-04-04 Thread Lennart Regebro
On Apr 4, 2005 4:53 PM, Tim Peters [EMAIL PROTECTED] wrote: Unix-heads certainly want it anyway; Windows-heads aren't used to anything better than the Windows services API, so they don't even bring it up. Well, it's not so much as API, but the fact that Windows people are used to starting a

Re: [Zope-dev] post publishing hook

2005-04-04 Thread Florent Guillaume
Jim Fulton wrote: Florent Guillaume wrote: I really could use a post publishing hook. Standard use case: delay indexing at the end of the request to only do it once per object even if the object has been modified 4 times. Today there's the REQUEST._hold() hack with an instance having a __del__,

[Zope-dev] Re: [Zope2.8a2] ...to be released by tomorrow....

2005-04-04 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 yuppie wrote: Tres Seaver wrote: I still have a notion that some improvements made on the 2.7 branch are not merged into the SVN trunk, e.g. http://cvs.zope.org/Zope/lib/python/AccessControl/Attic/ZopeGuards.py.diff?r1=1.16.2.3r2=1.16.2.4

[Zope-dev] Re: [Zope2.8a2] ...to be released by tomorrow....

2005-04-04 Thread yuppie
Tres Seaver wrote: http://cvs.zope.org/Zope/lib/python/AccessControl/Attic/ZopeGuards.py.diff?r1=1.16.2.3r2=1.16.2.4 [...] Hmm, that change hadn't landed on the gmane.org version of the checkins. I have it merged in my sandbox now, along with two apparently related changes (to the 'actual_python'

Re: [Zope-dev] opinion: speeding up large PUT uploads

2005-04-04 Thread Chris McDonough
On Mon, 2005-04-04 at 14:27, Dieter Maurer wrote: Even a PUT may get a multipart entity. But it never actually does in practice. Or if it does, I've never seen it. And if it did, would an implementation just store the multipart-encoded body? I suppose it could do anything, but it seems like

[Zope-dev] Re: ZPT: defer expression fix

2005-04-04 Thread Evan Simpson
Christian Heimes wrote: That's an interessting use case. Do you want me to keep the code and make up a new expression? I'm thinking about lazy:. If you have a particular use for defer: that would justify the split, please go ahead. I have no particular interest in keeping it. Cheers, Evan @

[Zope] Re: login page problem

2005-04-04 Thread prabuddha ray
Hi list, never before i got such a holistic advice. thanks so much Cliff. About the 1st mail, On Sat, 02 Apr 2005 17:03:56 +0100, Cliff Ford [EMAIL PROTECTED] wrote: Customisation of the login sequence is quite difficult for Newbies because there are lots of different ways to approach the

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-04 Thread Yuri
Yes, but BEFORE do a tool to convert them in a python product or archetype similar, a tool to change base classes, a tool to convert a zclass based on catagaware to one based on catalogPATHaware, or merge the two. Or you just deprecate something that is used and don't deprecate some code that

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-04 Thread Yuri
Andreas Jung ha scritto: --On Montag, 4. April 2005 9:58 Uhr +0200 Yuri [EMAIL PROTECTED] wrote: Yes, but BEFORE do a tool to convert them in a python product or archetype similar, a tool to change base classes, a tool to convert a zclass based on catagaware to one based on catalogPATHaware, or

Re: [Zope] script or external method ?

2005-04-04 Thread J Cameron Cooper
[EMAIL PROTECTED] wrote: Hi all, i'm a new user of Zope; i'm studing it since two weeks and i think it's very interesting, 'cause has the same power of j2ee application server but it is much more easy to use! While i was developing my first Zope application i fell into this trouble: i would like

Re: [Zope] script or external method ?

2005-04-04 Thread Lennart Regebro
Congratulations: You immediately ran into a limitation of Python Scripts, and then equally quickly into one of external methods. That's good, because that means you don't get stuck into the wrong way of programming. :-) The right way of doing Zope development is with filesystem python products.

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-04 Thread Andreas Jung
--On Montag, 4. April 2005 10:23 Uhr +0200 Yuri [EMAIL PROTECTED] wrote: Andreas Jung ha scritto: --On Montag, 4. April 2005 9:58 Uhr +0200 Yuri [EMAIL PROTECTED] wrote: Yes, but BEFORE do a tool to convert them in a python product or archetype similar, a tool to change base classes, a tool to

Re: [Zope] role, user defined roles, and inclusion

2005-04-04 Thread Chris Withers
Florent Guillaume wrote: When doing user.getRoles(). Because as Tres said more clearly than me, every user can do what the Anonymous role can, so it's just being consistent to express that in user.getRoles(). IMHO. Well yours is the only userfolder implementation that does. While I agree in the

Re: [Zope] zygopetale.py

2005-04-04 Thread Chris Withers
Sounds like you're really after LDAPUserFolder :-) Chris Yahya AZZOUZ wrote: hi, i m looking for zygopetale.py ( it allow to interact with ldap). could someone send me it. thanks. ___ Zope maillist - Zope@zope.org

Re: [Zope] Plone/Zope on Debian Sarge

2005-04-04 Thread Chris Withers
The moral of this whole story seems to shine through: Don't install Zope from OS packages like debian, they never get it right and you will just end up getting confused ;-) cheers, Chris Andreas Pakulat wrote: On 01.Apr 2005 - 14:34:22, Peter Bittner wrote: Hi there! I am running a Debian Linux

Re: [Zope] role, user defined roles, and inclusion

2005-04-04 Thread Florent Guillaume
Chris Withers wrote: Florent Guillaume wrote: When doing user.getRoles(). Because as Tres said more clearly than me, every user can do what the Anonymous role can, so it's just being consistent to express that in user.getRoles(). IMHO. Well yours is the only userfolder implementation that does.

Re: [Zope] RSS feed: post-processing?

2005-04-04 Thread Chris Withers
Sorry Eva, You'll need to explain your problem more succintly for people to be able to help. If you really do need to scrape the urls from the text, then a combination of python's xml handling and regular expressions is probably what you're after, best done in an external method and not a

Re: [Zope] role, user defined roles, and inclusion

2005-04-04 Thread Chris Withers
Florent Guillaume wrote: OTOH Anonymous and Authenticated really shouldn't be roles but groups, and indeed in CPS we have special groups representing Anonymous and Authenticated. That makes things *much* more orthogonal, and local roles (local group roles actually) can be used with them to

Re: [Zope] getting all fields from dynamic checkboxes

2005-04-04 Thread Chris Withers
Phillip Hutchings wrote: You need to keep a server-side list of the checkboxes and check which ones aren't there. Web browsers don't send back checkboxes that aren't checked - it's an HTML feature. Well, server side lists don't scale. I've found keeping a hidden html input with a list of the

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-04 Thread Garito
Chris Withers escribió: Well, you know what I'm gonna say... +1 for their demise. +1 for DTML going too, oops, wait, Andreas said not to bring that up ;-) cheers, Chris Jim Fulton wrote: ZClasses are a feature that support through-the-web development. Many people have found them useful in the

Re: [Zope] Plone/Zope on Debian Sarge

2005-04-04 Thread Andreas Pakulat
On 04.Apr 2005 - 14:02:43, Chris Withers wrote: The moral of this whole story seems to shine through: Don't install Zope from OS packages like debian, they never get it right and you will just end up getting confused ;-) Yepp, especially, since Zope is that easy to install into your home...

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-04 Thread AM Thomas
I agree that ZClasses are not good to use. However, I have a product based on ZClasses that I wrote several years ago (after reading the printed Zope book - doh!), and it's working well for several of my clients. If future versions of Zope were to not support it, that would be a huge problem

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-04 Thread Garito
AM Thomas escribió: I agree that ZClasses are not good to use. However, I have a product based on ZClasses that I wrote several years ago (after reading the printed Zope book - doh!), and it's working well for several of my clients. If future versions of Zope were to not support it, that

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-04 Thread Lennart Regebro
On Apr 4, 2005 5:14 PM, Garito [EMAIL PROTECTED] wrote: Perhaps will be a good choice to make ZClasses as an installable product (I don't know if this is possible or not Sure it is, but the problem is that supporting it in future versions of Zope very well may need changes in Zope itself.

[Zope] Re: ImportError: DBTab.ClassFactories.autoClassFactory

2005-04-04 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 TERRIEN Mickael wrote: Hello, i have the same problem with my zope running... i have seen your post at the address : http://mail.zope.org/pipermail/zope/2004-October/154258.html http://mail.zope.org/pipermail/zope/2004-October/154249.html

Re: [Zope] script or external method ?

2005-04-04 Thread Dieter Maurer
[EMAIL PROTECTED] wrote at 2005-4-4 00:49 +0200: ... The code i've writed imports date object from datetime package: this makes it doesn't work like a script (python), so i adapt code as an external method; but when i run the method Zope says that he can't find symbol 'container'... (mumble) You

Potential PythonScript bug (was: Re: [Zope] question about manipulating zcatalog query results)

2005-04-04 Thread Dieter Maurer
Ira Sher wrote at 2005-4-3 13:32 -0700: ... NameError: global name _getiter_ not defined... if sorton == 'id': res=[(row.id.split().pop(), row) for row in results] res.sort() return res This doesn't work, either, in zope 2.7.4 or 2.7.5 with python 2.3.4 and 2.3.5 respectively, as far as

Re: [Zope] getting all fields from dynamic checkboxes

2005-04-04 Thread Dieter Maurer
Dan E wrote at 2005-4-3 17:00 -0400: Has anyone found a way to get a list of boolean values from dynamically created checkboxes. I have created a bunch of checkboxes within a repeat loop like this: input type=checkbox class=noborder

Re: [Zope] Re: login page problem

2005-04-04 Thread Dieter Maurer
prabuddha ray wrote at 2005-4-4 01:41 -0700: ... A combination of exUserFolder and MySQL would do. i don know about them, something like mysqluserfolder or simpleuserfolder components ? exUserFolder is something like the big brother of SimpleUserFolder -- much more complex but also much more

Re: [Zope] role, user defined roles, and inclusion

2005-04-04 Thread Dieter Maurer
Chris Withers wrote at 2005-4-4 14:14 +0100: Florent Guillaume wrote: OTOH Anonymous and Authenticated really shouldn't be roles but groups, and indeed in CPS we have special groups representing Anonymous and Authenticated. That makes things *much* more orthogonal, and local roles (local

[Zope] Iron Python

2005-04-04 Thread Brian Sullivan
I am trying to digest what if anything the introduction of Iron Python(http://www.gotdotnet.com/workspaces/workspace.aspx?id=ad7acff7-ab1e-4bcb-99c0-57ac5a3a9742) (and Microsoft's involvement/leadership investment) will mean to Zope or in general. Thoughts? Is this positive, negative or neutral?

[Zope] Problem with Z Psycopg

2005-04-04 Thread Jason Leach
I'm having a problem with Z Psycopg. From time to time (quite often) it looses the connection with the database and I get: Site Error An error was encountered while publishing this resource. Error Type: OperationalError Error Value: no connection to the server Then I have to login

Re: [Zope] Iron Python

2005-04-04 Thread Lennart Regebro
On Apr 4, 2005 11:50 PM, Brian Sullivan [EMAIL PROTECTED] wrote: I am trying to digest what if anything the introduction of Iron Python(http://www.gotdotnet.com/workspaces/workspace.aspx?id=ad7acff7-ab1e-4bcb-99c0-57ac5a3a9742) (and Microsoft's involvement/leadership investment) will mean to

[Zope] Set MIME type using ZPT

2005-04-04 Thread srikanth
Hi, I am using an external method to load an Image from the harddrive. The external method is as follows: from email.MIMEImage import MIMEImage ##parameters=filename def getDocument(filename): fname = '/mnt/'+filename; input = open(fname,'r') content = MIMEImage(

Re: [Zope] Problem with Z Psycopg

2005-04-04 Thread Barry Pederson
Jason Leach wrote: I'm having a problem with Z Psycopg. From time to time (quite often) it looses the connection with the database and I get: Site Error An error was encountered while publishing this resource. Error Type: OperationalError Error Value: no connection to the server Then