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. Could

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 snip 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] 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] 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

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 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 the docs is

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 form

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 them

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 ]-- snip | 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 13:23, Andrew Milton wrote: | +---[ Gaute Amundsen ]-- | | | On Thursday 20 April 2006 12:15, Andrew Milton wrote: | | +---[ Gaute Amundsen ]-- | snip | | But, why

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: | | +---[

[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] 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 restart

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

[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 incorrectlogin 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: On Thursday 20 April 2006 13:23, Andrew Milton wrote: +---[ Gaute Amundsen ]-- | On Thursday 20 April 2006 12:15, Andrew Milton wrote: | +---[ Gaute Amundsen ]-- snip | But, why render the page, when I could just

[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

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, but when

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

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

[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] 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: dtml-if error_message dtml-var error_message dtml-else h2My TEST Site Error/h2 ... 404 errors hit the dtml-if and other errors, like

[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 I

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 should

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

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

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

[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

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

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 use in

[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] 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,

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

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.

[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

[Zope-Checkins] SVN: Zope/branches/publication-refactor/lib/python/ZPublisher/ Replace the ZPublisher.Publish.publish method with the

2006-04-20 Thread Michael Kerrin
Log message for revision 67177: Replace the ZPublisher.Publish.publish method with the Zope3 equivalent zope.publisher.publish. This way the publish_module_standard and similar are just wrappers around the Zope3 method that sets up the request correctly and performs some other stuff I

[Zope-Checkins] SVN: Zope/branches/publication-refactor/lib/python/zope/ update the externals on this branch in order to get

2006-04-20 Thread Michael Kerrin
Log message for revision 67184: update the externals on this branch in order to get the small change to the zope.publisher.publish module. Changed: _U Zope/branches/publication-refactor/lib/python/zope/ -=- Property changes on: Zope/branches/publication-refactor/lib/python/zope

[Zope-Checkins] SVN: Products.Five/branches/1.2/ Merge regebro's r66790 from 1.3 branch and bump version number for next

2006-04-20 Thread Philipp von Weitershausen
Log message for revision 67185: Merge regebro's r66790 from 1.3 branch and bump version number for next 1.2.x release. Changed: U Products.Five/branches/1.2/CHANGES.txt U Products.Five/branches/1.2/i18n.py U Products.Five/branches/1.2/version.txt -=- Modified:

[Zope-Checkins] SVN: Products.Five/branches/1.2/ Fix traversable bug reported by Jordan Baker (http://codespeak.net/pipermail/z3-five/2006q2/001309.html)

2006-04-20 Thread Philipp von Weitershausen
Log message for revision 67186: Fix traversable bug reported by Jordan Baker (http://codespeak.net/pipermail/z3-five/2006q2/001309.html) Changed: U Products.Five/branches/1.2/browser/tests/test_traversable.py U Products.Five/branches/1.2/traversable.py -=- Modified:

[Zope-Checkins] SVN: Products.Five/branches/1.0/traversable.py Merge r67186 from 1.2 branch:

2006-04-20 Thread Philipp von Weitershausen
Log message for revision 67187: Merge r67186 from 1.2 branch: Fix traversable bug reported by Jordan Baker (http://codespeak.net/pipermail/z3-five/2006q2/001309.html) Changed: U Products.Five/branches/1.0/traversable.py -=- Modified: Products.Five/branches/1.0/traversable.py

[Zope-Checkins] SVN: Products.Five/branches/1.3/version.txt bump version number

2006-04-20 Thread Philipp von Weitershausen
Log message for revision 67188: bump version number Changed: U Products.Five/branches/1.3/version.txt -=- Modified: Products.Five/branches/1.3/version.txt === --- Products.Five/branches/1.3/version.txt 2006-04-20

[Zope-Checkins] SVN: Products.Five/branches/1.2/CHANGES.txt don't forget changes

2006-04-20 Thread Philipp von Weitershausen
Log message for revision 67189: don't forget changes Changed: U Products.Five/branches/1.2/CHANGES.txt -=- Modified: Products.Five/branches/1.2/CHANGES.txt === --- Products.Five/branches/1.2/CHANGES.txt 2006-04-20

[Zope-Checkins] SVN: Products.Five/branches/1.3/ Merge r67186 from 1.2 branch:

2006-04-20 Thread Philipp von Weitershausen
Log message for revision 67190: Merge r67186 from 1.2 branch: Fix traversable bug reported by Jordan Baker (http://codespeak.net/pipermail/z3-five/2006q2/001309.html) Changed: U Products.Five/branches/1.3/CHANGES.txt U Products.Five/branches/1.3/browser/tests/test_traversable.py

[Zope-Checkins] SVN: Products.Five/branches/1.4/version.txt bump version number

2006-04-20 Thread Philipp von Weitershausen
Log message for revision 67191: bump version number Changed: U Products.Five/branches/1.4/version.txt -=- Modified: Products.Five/branches/1.4/version.txt === --- Products.Five/branches/1.4/version.txt 2006-04-20

[Zope-Checkins] SVN: Products.Five/branches/1.4/ Merge r67186 from 1.2 branch:

2006-04-20 Thread Philipp von Weitershausen
Log message for revision 67192: Merge r67186 from 1.2 branch: Fix traversable bug reported by Jordan Baker (http://codespeak.net/pipermail/z3-five/2006q2/001309.html) Changed: U Products.Five/branches/1.4/CHANGES.txt U Products.Five/branches/1.4/browser/tests/test_traversable.py

[Zope-Checkins] SVN: Products.Five/trunk/ Merge r67186 from 1.2 branch:

2006-04-20 Thread Philipp von Weitershausen
Log message for revision 67193: Merge r67186 from 1.2 branch: Fix traversable bug reported by Jordan Baker (http://codespeak.net/pipermail/z3-five/2006q2/001309.html) Changed: U Products.Five/trunk/CHANGES.txt U Products.Five/trunk/browser/tests/test_traversable.py U

[Zope-Checkins] SVN: Zope/branches/2.9/ Collector #2072: Applied patch to fix problem with overly restrictive __bobo_traverse__ security and tests.

2006-04-20 Thread Alec Mitchell
Log message for revision 67194: Collector #2072: Applied patch to fix problem with overly restrictive __bobo_traverse__ security and tests. Changed: U Zope/branches/2.9/doc/CHANGES.txt U Zope/branches/2.9/lib/python/OFS/Traversable.py U

[Zope-Checkins] SVN: Zope/trunk/lib/python/OFS/ Merge fix for #2072 into trunk

2006-04-20 Thread Alec Mitchell
Log message for revision 67196: Merge fix for #2072 into trunk Changed: U Zope/trunk/lib/python/OFS/Traversable.py U Zope/trunk/lib/python/OFS/tests/testTraverse.py -=- Modified: Zope/trunk/lib/python/OFS/Traversable.py

Re: [Zope-dev] Re: cvs.zope.org/Products - svn.zope.org?

2006-04-20 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rocky, since this whole issue seems to have petered out, if you want to follow up with the respective product authors and have them contact me I'll get them moved. I just don't want to do that without having a consensus first. jens On 18

Re: [Zope-dev] Traversal issue which affects Five

2006-04-20 Thread Dieter Maurer
Andreas Jung wrote at 2006-4-19 20:13 +0200: --On 19. April 2006 18:38:05 +0200 Dieter Maurer [EMAIL PROTECTED] wrote: ... Do you accept it? ;-) As release manager I don't have to dig into every problem. Patches + tests are of course accepted if there is some consensus that a proposed

Re: [Zope-dev] Re: Zope 2.9.3 release

2006-04-20 Thread Dieter Maurer
Tres Seaver wrote at 2006-4-19 15:30 -0400: ... Is Alec's traversal patch or Dieter's alternative being considered? I'll note that I have a client who can't move forward from 2.9.1 to 2.9.3 because the changes to traversal semantics in that release break every view lookup in the application

Re: [Zope-dev] Re: Zope 2.9.3 release

2006-04-20 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dieter Maurer wrote: Tres Seaver wrote at 2006-4-19 15:30 -0400: ... Is Alec's traversal patch or Dieter's alternative being considered? I'll note that I have a client who can't move forward from 2.9.1 to 2.9.3 because the changes to traversal

[Zope-DB] Patches to SybaseDA v2.0b2

2006-04-20 Thread Doug Morse
Hi, In migrating from Sybase 11.0.3 (old, free version for Linux) to Sybase 15 (free Linux Express version), I've had quite a number of troubles getting SybaseDAv2b2 to work (under Zope 2.5.1). That said, the problems probably had more to do with changing from Python 2.1.3 (Redhat 7.2) to Python

Re: [Zope-DB] Patches to SybaseDA v2.0b2

2006-04-20 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 20 Apr 2006, at 23:40, Doug Morse wrote: I hope this is helpful to some soul or souls out there. :) Sybase ASE 15 is a great product, free for Linux for up to 5gb DBs and 2gb RAM, and worthy of partnering with Zope for the presentation side