RE : [Zope] zope 2.8.5 becomes unresponsive.

2006-04-20 Thread Sébastien VINOT
> -Message d'origine- > De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De > la part de Paul Winkler > Envoyé : jeudi 20 avril 2006 15:30 > À : zope@zope.org > Objet : Re: [Zope] zope 2.8.5 becomes unresponsive. > > > On Thu, Apr 20, 2006 at 05:58:29AM -0700, Erik Myllymaki wrote: > >

[Zope] Re: Zope product update question

2006-04-20 Thread Cyrille Bonnet
Hi guys, thanks for your replies. It is very helpful. Essentially, I was trusting the Quick Installer tool too much: files on the file system will be used, regardless if you've installed the product or not. Thanks for your help. Cyrille Jens Vagelpohl wrote: -BEGIN PGP SIGNED MESSAGE-

Re: [Zope] Zope product update question

2006-04-20 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 20 Apr 2006, at 22:51, J Cameron Cooper wrote: What is exactly the difference between a non-installed product on the file system and an installed product? Is the only difference that the Install.py is run when you install the product?? Yes.

Re: [Zope] Zope product update question

2006-04-20 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 20 Apr 2006, at 22:39, Cyrille Bonnet wrote: Hi there, I have a question regarding product update. I have updated a product (ATContentTypes) on the file system. Upon restarting the server, the new version of the product appears in red in t

Re: [Zope] Zope product update question

2006-04-20 Thread J Cameron Cooper
Cyrille Bonnet wrote: I have a question regarding product update. I have updated a product (ATContentTypes) on the file system. Upon restarting the server, the new version of the product appears in red in the QuickInstaller (as expected). Even though I haven't re-installed the product, some

[Zope] Zope product update question

2006-04-20 Thread Cyrille Bonnet
Hi there, I have a question regarding product update. I have updated a product (ATContentTypes) on the file system. Upon restarting the server, the new version of the product appears in red in the QuickInstaller (as expected). Even though I haven't re-installed the product, some changes are

Re: [Zope] Regular Expressions

2006-04-20 Thread Tino Wildenhain
April Lekin wrote: > Can you use regular expressions in Zope? > > I'm trying to do a date match, something like this: > > date = re.match(l_date, '\d\d\d\d\/\d\d/\d\d') > > Looks like it doesn't like the "re.match"? Well, if you look into the zope API documentation you find all modules you can

Re: [Zope] Regular Expressions

2006-04-20 Thread Dennis Allison
Regular expressions are usually precluded as a potential security risk. You can enable imports into Python Scripts (see instructions in the source) fairly easily. Or you can do the regular expression processing you need in an External Method or Product. And, of course, you'll need to "import

[Zope] Regular Expressions

2006-04-20 Thread April Lekin
Can you use regular expressions in Zope? I'm trying to do a date match, something like this: date = re.match(l_date, '\d\d\d\d\/\d\d/\d\d') Looks like it doesn't like the "re.match"? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/li

Re: [Zope] Documentation and Books

2006-04-20 Thread Dieter Maurer
Erik Billing wrote at 2006-4-19 23:04 +0200: >Yes, the developers guide I've seen, and the Zope Book of course, they are >both pretty good I guess, but certainly the Zope book seams pretty outdated >if you ask me. You must look at the 2.7 edition of the Zope book (online). -- Dieter

Re: [Zope] Python Generators and Zope question

2006-04-20 Thread Dieter Maurer
Palermo, Tom wrote at 2006-4-20 10:52 -0400: >I have a site that uses CookieCrumbler for user login. I need to track how >many incorrect login attempts a user makes. I am trying to use a python >generator to do this but it makes Zope hang when I try to do an invalid >login (eg. no password or incor

Re: [Zope] Automatically adding properties (keywords) to folders

2006-04-20 Thread Dieter Maurer
Terry Jones wrote at 2006-4-20 17:30 +0200: >I'd like to set up a folder in Zope with the property that when an object >is put into it, the object has a keyword added to it automatically (and >when the object is moved out of the folder, the keyword is removed). Thus, you want to customize the fold

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Dieter Maurer
Gaute Amundsen wrote at 2006-4-19 19:03 +0200: >I want to retrieve the form fields in the order that they where submitted in >the http POST. I know this has been brought up before, and that the answer is >"You cant." You might be able to do it. Try "REQUEST['BODY']". For a "POST" request, it

[Zope] Re: Automatically adding properties (keywords) to folders

2006-04-20 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Terry Jones wrote: > Hi Tres > > Thanks for your answer. Could I trouble you a little bit more please? > > I don't know where I'd put these fragments (and the last one seems > incomplete, perhaps intentionally?). I'm happy to read and code myself, so

RE: [Zope] Custom 404 - Resource not found

2006-04-20 Thread Andy Yates
> > ... > >Changing standard_error_message does not seem change this error page. > > Maybe, you made a mistake? Yes, I made a mistake! In standard_error_message: My TEST Site Error ... 404 errors hit the dtml-if and other errors, like attribute errors, go to the dtml-else. I was just

[Zope] Re: Automatically adding properties (keywords) to folders

2006-04-20 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Terry Jones wrote: > I'd like to set up a folder in Zope with the property that when an object > is put into it, the object has a keyword added to it automatically (and > when the object is moved out of the folder, the keyword is removed). > > If you

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread David H
Gaute Amundsen wrote: On Thursday 20 April 2006 15:46, Tino Wildenhain wrote: Gaute Amundsen schrieb: ... The order of the form elements that goes into mail headers is ofcourse irelevant. I'ts the rest of the form, you know name, adress, street, etc. that are the p

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Gaute Amundsen
On Thursday 20 April 2006 17:16, Tino Wildenhain wrote: > > Any hints to get me statred on the zpt version? > > No, you would not do this in ZPT. ZPT is the templating > engine. You write your logic in python. External Method > for example if you dont want to write a complete product. I have the f

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Gaute Amundsen
On Thursday 20 April 2006 15:46, Tino Wildenhain wrote: > Gaute Amundsen schrieb: > ... > > > The order of the form elements that goes into mail headers is ofcourse > > irelevant. I'ts the rest of the form, you know name, adress, street, etc. > > that are the problem. > > It's a purely visual thing

[Zope] Automatically adding properties (keywords) to folders

2006-04-20 Thread Terry Jones
I'd like to set up a folder in Zope with the property that when an object is put into it, the object has a keyword added to it automatically (and when the object is moved out of the folder, the keyword is removed). If you could do this, you would have a nice way to maintain a collection of such fo

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Tino Wildenhain
Gaute Amundsen schrieb: On Thursday 20 April 2006 13:23, Andrew Milton wrote: +---[ Gaute Amundsen ]-- | On Thursday 20 April 2006 12:15, Andrew Milton wrote: | > +---[ Gaute Amundsen ]-- | But, why render the page, when I could just parse i

[Zope] Python Generators and Zope question

2006-04-20 Thread Palermo, Tom
All,   I have a site that uses CookieCrumbler for user login. I need to track how many incorrect login attempts a user makes. I am trying to use a python generator to do this but it makes Zope hang when I try to do an invalid login (eg. no password or incorrect password). Here's a snippet:  

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Tino Wildenhain
Gaute Amundsen schrieb: ... The order of the form elements that goes into mail headers is ofcourse irelevant. I'ts the rest of the form, you know name, adress, street, etc. that are the problem. It's a purely visual thing, but when you have a form with perhaps 50 fields, that the client has ca

Re: [Zope] zope 2.8.5 becomes unresponsive.

2006-04-20 Thread Paul Winkler
On Thu, Apr 20, 2006 at 05:58:29AM -0700, Erik Myllymaki wrote: > Environment is RHEL 3, Zope v2.8.5 (Python 2.3.5). > > Every couple of days the zope instance will become unresponsive and require > a restart. ZMI is inaccessible at these times so I have to do run "service > my_zope_service rest

[Zope] zope 2.8.5 becomes unresponsive.

2006-04-20 Thread Erik Myllymaki
Environment is RHEL 3, Zope v2.8.5 (Python 2.3.5). Every couple of days the zope instance will become unresponsive and require a restart. ZMI is inaccessible at these times so I have to do run "service my_zope_service restart" in the usual redhat way. There is nothing in the logs, and if I do

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Gaute Amundsen
On Thursday 20 April 2006 14:01, Andrew Milton wrote: > +---[ Gaute Amundsen ]-- > > | On Thursday 20 April 2006 13:23, Andrew Milton wrote: > | > +---[ Gaute Amundsen ]-- > | > > | > | On Thursday 20 April 2006 12:15, Andrew Milton wrote: > | > | > +

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Andrew Milton
+---[ Gaute Amundsen ]-- | On Thursday 20 April 2006 13:23, Andrew Milton wrote: | > +---[ Gaute Amundsen ]-- | > | > | On Thursday 20 April 2006 12:15, Andrew Milton wrote: | > | > +---[ Gaute Amundsen ]-- | | > | But, why re

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Gaute Amundsen
On Thursday 20 April 2006 13:23, Andrew Milton wrote: > +---[ Gaute Amundsen ]-- > > | On Thursday 20 April 2006 12:15, Andrew Milton wrote: > | > +---[ Gaute Amundsen ]-- > | But, why render the page, when I could just parse it to get the field > |

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Andrew Milton
+---[ Gaute Amundsen ]-- | On Thursday 20 April 2006 12:15, Andrew Milton wrote: | > +---[ Gaute Amundsen ]-- | > | > | Hm.. ok. | > | I have these 100 forms, all over the place. They live in user editable | > | html. To have to track down and alter t

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Gaute Amundsen
On Thursday 20 April 2006 12:15, Andrew Milton wrote: > +---[ Gaute Amundsen ]-- > > | Hm.. ok. > | I have these 100 forms, all over the place. They live in user editable > | html. To have to track down and alter them all is out of the question. > | Yet the users expect the

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Gaute Amundsen
On Thursday 20 April 2006 12:09, Tino Wildenhain wrote: > Gaute Amundsen schrieb: > > On Wednesday 19 April 2006 21:47, Tino Wildenhain wrote: > >>Gaute Amundsen wrote: > >>>I want to retrieve the form fields in the order that they where > >>> submitted > >> > >>I'd say blaming zope for not reading

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Andrew Milton
+---[ Gaute Amundsen ]-- | | Hm.. ok. | I have these 100 forms, all over the place. They live in user editable html. | To have to track down and alter them all is out of the question. | Yet the users expect the form fields to appear in their emails in the order | that they

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Tino Wildenhain
Gaute Amundsen schrieb: On Wednesday 19 April 2006 21:47, Tino Wildenhain wrote: Gaute Amundsen wrote: I want to retrieve the form fields in the order that they where submitted I'd say blaming zope for not reading the docs is somewhat arrogant .-) I have been reading the docs for thee la

Re: [Zope] Permissions, files and folders

2006-04-20 Thread Stefan H. Holek
I recommend to install DocFinderTab. And there is something at http:// api.plone.org/ for those who like such things ;-) Stefan On 18. Apr 2006, at 13:21, Erik Billing wrote: Is there any complete api reference avalible? -- Anything that happens, happens. --Douglas Adams ___

Re: [Zope] Re: REQUEST.form variables order

2006-04-20 Thread Gaute Amundsen
On Wednesday 19 April 2006 21:26, Tres Seaver wrote: > Gaute Amundsen wrote: > > I want to retrieve the form fields in the order that they where submitted > > The answer isn't arrogant, and we aren't *preventing* you from gaining > access to that information. The implementation which we use for >

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Gaute Amundsen
On Wednesday 19 April 2006 21:47, Tino Wildenhain wrote: > Gaute Amundsen wrote: > > I want to retrieve the form fields in the order that they where submitted > > I'd say blaming zope for not reading the docs is somewhat arrogant .-) I have been reading the docs for thee last 3 years my friend. Co