[Zope-Checkins] SVN: Zope/trunk/ Move to ZODB 3.4a9.

2005-05-12 Thread Tim Peters
Log message for revision 30350: Move to ZODB 3.4a9. Among other things, contains fixes for longstanding off-by-1 errors in undoLog() and undoInfo(). Changed: _U Zope/trunk/lib/python/ _U Zope/trunk/utilities/ -=- Property changes on: Zope/trunk/lib/python

Re: [Zope-dev] DateTime, strftime and TimeError

2005-05-12 Thread Andreas Jung
--On Mittwoch, 11. Mai 2005 16:08 Uhr +0200 Santi Camps [EMAIL PROTECTED] wrote: d = DateTime('2045/30/01') d.strftime('%d/%m/%Y') DateTime.DateTime.TimeError: The time 2369343600.00 is beyond the range of this Python implementation I've read that the reason was a validation to avoid

Re: [Zope-dev] DateTime, strftime and TimeError

2005-05-12 Thread Santi Camps
En/na Andreas Jung ha escrit: --On Mittwoch, 11. Mai 2005 16:08 Uhr +0200 Santi Camps [EMAIL PROTECTED] wrote: d = DateTime('2045/30/01') d.strftime('%d/%m/%Y') DateTime.DateTime.TimeError: The time 2369343600.00 is beyond the range of this Python implementation I've read that the

Re: [Zope-dev] DateTime, strftime and TimeError

2005-05-12 Thread Andreas Jung
--On Donnerstag, 12. Mai 2005 18:34 Uhr +0200 Santi Camps [EMAIL PROTECTED] wrote: En/na Andreas Jung ha escrit: --On Mittwoch, 11. Mai 2005 16:08 Uhr +0200 Santi Camps [EMAIL PROTECTED] wrote: d = DateTime('2045/30/01') d.strftime('%d/%m/%Y') DateTime.DateTime.TimeError: The time

Re: [Zope-dev] DateTime, strftime and TimeError

2005-05-12 Thread Santi Camps
En/na Andreas Jung ha escrit: --On Donnerstag, 12. Mai 2005 18:34 Uhr +0200 Santi Camps [EMAIL PROTECTED] wrote: En/na Andreas Jung ha escrit: --On Mittwoch, 11. Mai 2005 16:08 Uhr +0200 Santi Camps [EMAIL PROTECTED] wrote: d = DateTime('2045/30/01') d.strftime('%d/%m/%Y')

Re: [Zope-dev] DateTime, strftime and TimeError

2005-05-12 Thread Dieter Maurer
Andreas Jung wrote at 2005-5-12 14:24 +0200: ... After some testing: datetime has the same problems and it is unlikely that we can solve this problem in Zope as long as the underlying implementation in the libc sux (or better is constrained on 32 bit systems). It would not be too difficult to

[Zope-dev] copyzopeskel.py patch

2005-05-12 Thread Dale Hirt
Hi all, Wonderful product, more than appreciate all the hard work that has been put into Zope and all the various products that are out there. Came across a small issue, and wrote a quick patch for it. Didn't know who to send it to, so I thought I'd send it here. When creating a new zope

[Zope-dev] Re: copyzopeskel.py patch

2005-05-12 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dale Hirt wrote: Wonderful product, more than appreciate all the hard work that has been put into Zope and all the various products that are out there. Came across a small issue, and wrote a quick patch for it. Didn't know who to send it to, so

[Zope-dev] Re: DateTime, strftime and TimeError

2005-05-12 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Santi Camps wrote: En/na Andreas Jung ha escrit: --On Donnerstag, 12. Mai 2005 18:34 Uhr +0200 Santi Camps [EMAIL PROTECTED] wrote: En/na Andreas Jung ha escrit: --On Mittwoch, 11. Mai 2005 16:08 Uhr +0200 Santi Camps [EMAIL PROTECTED]

[Zope] dollars-and-cents display fails

2005-05-12 Thread Greg Fischer
Hi all, I just moved my zope app from 2.7.3 to 2.7.6, plus the mysql db from 5.0.0 to 5.0.4. After moving everything, I noticed all of my decimal fields that will no longer display their values in DTML unless I remove the dollars-and-cents fmt option. I tried all kinds of things in mysql

Re: [Zope] How to find out the full URL

2005-05-12 Thread Hong Yuan
J Cameron Cooper wrote: If you simply print the request object, you'll see everything available. The CGI environment variables are available: http://hoohoo.ncsa.uiuc.edu/cgi/env.html You can use ACTUAL_URL or URL0 to get the full url+path. You can use PATH_TRANSLATED or PATH_INFO to get just

[Zope] Re: How do I logout using DTML

2005-05-12 Thread Josef Meile
How do I logout current user using DTML I used dtml-call expr=acl_users.logout(REQUEST) but it didn't work and zope gave me this. Site Error An error was encountered while publishing this resource. *Error Type: AttributeError* *Error Value: logout* ** *What did I do wrong??* You didn't

[Zope] Can't see new Plone installation

2005-05-12 Thread Brian Hickey
Hi all, Can't seem to figure this one out: - Just installed Plone and added a Plone site through the ZMI - After the install the redirect to view the Plone site doesn't complete, and I get an 'Action Canceled' error in thebrowser (IE6). However, it seems to install fine (a Plone site is

[Zope] Re: How to find out the full URL

2005-05-12 Thread Tonico Strasser
Hong Yuan schrieb: I have a page template, say 'products.pt', which takes traverse_subpath[0] as one of the variables, so e.g. the URL: http://myserver/products/100 will actually call products.pt, which get 100 from the URL and displays it in the template. Now my question is how can I get the

Re: [Zope] Can't see new Plone installation

2005-05-12 Thread Andreas Jung
--On Donnerstag, 12. Mai 2005 10:29 Uhr +0100 Brian Hickey [EMAIL PROTECTED] wrote: Hi all, Can't seem to figure this one out: - Just installed Plone and added a Plone site through the ZMI - After the install the redirect to view the Plone site doesn't complete, and I get an 'Action Canceled'

[Zope] How to disable anonymous sessions

2005-05-12 Thread Gaute Amundsen
I thought this must be in the FAQ or something, but 20 min googling does not turn up much usefull. Closest I got was this: http://svn.nuxeo.org/trac/pub/ticket/600 At the moment we have 657 objects in /temp_folder/session_data and this must be quite a bit of overhead. We also have over a

[Zope] Export/import preserving bobobase_modification_time?

2005-05-12 Thread Marcin Kasperski
Is it possible to somehow export data from Zope instance and import into another one preserving somehow bobobase_modification_time info? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML

Re: [Zope] Export/import preserving bobobase_modification_time?

2005-05-12 Thread Jens Vagelpohl
On May 12, 2005, at 12:28, Marcin Kasperski wrote: Is it possible to somehow export data from Zope instance and import into another one preserving somehow bobobase_modification_time info? No it is not. If you need a time value to store a time you are interested in you should create and maintain

[Zope] How do I delete acl_users using DTML??

2005-05-12 Thread Allen Huang
How do I delete acl_users using DTML code?? Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone.___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! **

[Zope] Re: Can't see new Plone installation

2005-05-12 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: --On Donnerstag, 12. Mai 2005 10:29 Uhr +0100 Brian Hickey [EMAIL PROTECTED] wrote: Hi all, Can't seem to figure this one out: - Just installed Plone and added a Plone site through the ZMI - After the install the

Re: [Zope] Z SQL Methods and the SQL LIMIT clause

2005-05-12 Thread Garth B.
Assuming MySQL, I found the fix for this was to go the Advanced tab for the ZSQL Method (in the ZMI) and set Maximum Rows to Retrieve to zero. After that, my limit clause worked without a problem. On 5/11/05, Asad Habib [EMAIL PROTECTED] wrote: Is there a reason why Z SQL methods do not allow the

[Zope] Re: Can't see new Plone installation

2005-05-12 Thread Jochen Knuth
Hi Brian, Brian Hickey wrote: Hi all, Can't seem to figure this one out: - Just installed Plone and added a Plone site through the ZMI - After the install the redirect to view the Plone site doesn't complete, and I get an 'Action Canceled' error in the browser (IE6). However, it seems to

Re: [Zope] Re: Can't see new Plone installation

2005-05-12 Thread Brian Hickey
Hi Jochen, Thanks for the info. This is a strange one - it's a little awkward to find out what's going on, as it's a shared hosting facility with some kind of virtual private server setup on it. There seems to be two versions of python - 2.3.4 and 2.1.3. The 2.1.3 was installed when I

[Zope] URL rewriting (VHM and browser Id manager)

2005-05-12 Thread Victor Kolisinski
My zope application needs support for sessions without cookies, so url rewriting based on Browser Id manager is used. However when Virtual Host Monster is included in environment browser manager doesn't rewrite URL. Is it possible that Virtual Host Monster and Browser Id. My installation is

RE: [Zope] Underscoring Inaugural Address

2005-05-12 Thread Dan Pozmanter
Is sort of do, since the final object is a wrapper around a unique path. What about messing aroound with the url? Is there a way to have it show: http://foo.com/__init__.py But really point to http://foo.com/supercoolfileat__init__.py ? -Original Message- From: [EMAIL PROTECTED]

[Zope] ZODB caching issue

2005-05-12 Thread David Chandek-Stark
Setup: Zope 2.7.0 Python 2.3.3 Linux2 CMF 1.4.4 Problem Area: ZPT which contains a call to a ZPT macro The ZPT macro gets data from a parsed RSS feed Now using CMFSin 0.6.1 Previously used RDFSummary 2.4 Symptom: When a new item is added to the RSS feed (b/c a news item was

Re: [Zope] Underscoring Inaugural Address

2005-05-12 Thread Paul Winkler
On Thu, May 12, 2005 at 10:52:03AM -0400, Dan Pozmanter wrote: Is sort of do, since the final object is a wrapper around a unique path. What about messing aroound with the url? Is there a way to have it show: http://foo.com/__init__.py But really point to

[Zope] ack! Zope stopped starting as a Windows Service

2005-05-12 Thread Chris Curvey
Everything was going so well today, too Zope was installed as part of the Plone 2 installer on Win2K. Has been running fine for several months. I was adding some issues to my collector, and things started hanging up on my system. After reboot, the Zope service did not start, trying to

[Zope] Zope developers needed in Vietnam

2005-05-12 Thread Tracy R Reed
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anyone here Vietnamese or know anyone in Vietnam who develops for zope/plone? My company really needs someone. No, we aren't going to outsource or contract with your company so please don't ask. They have to be our full time employees here in our

Re: [Zope] monitor / icp server

2005-05-12 Thread Dieter Maurer
Sylvain Thénault wrote at 2005-5-11 18:03 +0200: ... warning: unhandled connect event This is a medusa/asyncore message indicating a bug: no application specific connect method was defined for the asynchronous connect event. -- Dieter ___ Zope

Re: [Zope] How do I delete acl_users using DTML??

2005-05-12 Thread Dieter Maurer
Allen Huang wrote at 2005-5-12 04:28 -0700: How do I delete acl_users using DTML code?? In the same way, you delete any other (site building) object: container.manage_deleteObjects(ids_of_objects_to_delete) ids_of_objects_to_delete can be either a single id (a string) or a list of ids. --

Re: [Zope] Running out of sockets

2005-05-12 Thread Dieter Maurer
Gaute Amundsen wrote at 2005-5-12 00:17 +0200: ... Restarting zope has fixed it for now, but ... lsof -a -U -uzope and lsof -uzope | wc -l Shows the number of open sockets steadily growing, and apparently none closing.. You might be able to determine the second partner for the socket (with

Re: [Zope] How to disable anonymous sessions

2005-05-12 Thread Dieter Maurer
Gaute Amundsen wrote at 2005-5-12 12:15 +0200: ... At the moment we have 657 objects in /temp_folder/session_data and this must be quite a bit of overhead. Sessions are created on demand. When you do not use them, they are not created. That you see sessions means that you application code uses

Re: [Zope] URL rewriting (VHM and browser Id manager)

2005-05-12 Thread Dieter Maurer
Victor Kolisinski wrote at 2005-5-12 07:13 -0700: My zope application needs support for sessions without cookies, so url rewriting based on Browser Id manager is used. However when Virtual Host Monster is included in environment browser manager doesn't rewrite URL. That's surprising. Maybe a

[Zope] Re: ZODB caching issue

2005-05-12 Thread David Chandek-Stark
Dieter Maurer wrote: Symptom: When a new item is added to the RSS feed (b/c a news item was published), my ZPT displays the RSS data inconsistently with each browser refresh -- sometimes the new item appears, sometimes not. A bug in RDFSummary which uses a ZODB cache to maintain the fetched

[Zope] Re: Strage behavior in Scripts

2005-05-12 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Luiz Fernando B. Ribeiro wrote: Hello, I have lost already 2 days in it and can't figure whats wrong. I'm using PIL to generate barcodes and writen an external method to handle this. The script runs fine in the console but inside Zope it raises

Re: [Zope] ack! Zope stopped starting as a Windows Service

2005-05-12 Thread J Cameron Cooper
Chris Curvey wrote: Everything was going so well today, too Zope was installed as part of the Plone 2 installer on Win2K. Has been running fine for several months. I was adding some issues to my collector, and things started hanging up on my system. After reboot, the Zope service did not

Re: [Zope] custom_zodb.py and Control_Panel

2005-05-12 Thread Chris Withers
Jens Vagelpohl wrote: I suppose it could be argued that custom_zodb.py should simply not be read in any longer, or throw big fat warnings. Why wouldn't it still work fine, apart from some minor Control Panel barfage? Chris -- Simplistix - Content Management, Zope Python Consulting -

Re: [Zope] Firefox manage_changePermissions issue?

2005-05-12 Thread Chris Withers
Hi Tony, Sory for the age in replying... Tony Addyman wrote: Chris: Can you recall whose Firefox you would have been using at the time? I have been using the RPM version from SUSE 9.2. I would have been using a recent Windows binary. The problem occurs a number of times when using POST with the

Re: [Zope] Generating and Downloading PDF.

2005-05-12 Thread Chris Withers
Fernando Lujan wrote: I'm calling this external method through a dtml-var gerar_tce_pdf() tag, inside a DTML DOCUMENT. Um? What else is that method returning? I'd suggest you call getrarTCE directly by URL, check you're setting the correct content-type and maybe set a content disposition too...

Re: [Zope] Python2.4.1 and Zope 2.7.X

2005-05-12 Thread Chris Withers
Andreas Jung wrote: Has anyone had problems with Python 2.4.1 with the latest Zope 2.7.X versions? As documented in doc/INSTALL.txt: Python 2.4 is *not* supported. But apart from that, the answer is you'd probably be okay ;-) Heck, I hope Zope runs on Python 2.4 at SOME stage... Chris --

Re: [Zope] question about login

2005-05-12 Thread Chris Withers
Phillip Hutchings wrote: On 03/05/05, Dennis Allison [EMAIL PROTECTED] wrote: Another option is to look at the other User Folder products which do things differently. Alternatively, you could modify the CookieCrumbler product to make it fit your model. I've used exUserFolder before, it can store

Re: [Zope] question about login

2005-05-12 Thread Phillip Hutchings
On 13/05/05, Chris Withers [EMAIL PROTECTED] wrote: Phillip Hutchings wrote: On 03/05/05, Dennis Allison [EMAIL PROTECTED] wrote: Another option is to look at the other User Folder products which do things differently. Alternatively, you could modify the CookieCrumbler product to make it

Re: [Zope] custom_zodb.py and Control_Panel

2005-05-12 Thread Jens Vagelpohl
On May 12, 2005, at 21:45, Chris Withers wrote: Jens Vagelpohl wrote: I suppose it could be argued that custom_zodb.py should simply not be read in any longer, or throw big fat warnings. Why wouldn't it still work fine, apart from some minor Control Panel barfage? You will agree that it is

Re: [Zope] dollars-and-cents display fails

2005-05-12 Thread Greg Fischer
Thanks Andy. I do have those versions. But Python is 2.3.5 because I didnt want to move to 2.4.x as I think I read something in the README for Zope stating it was not tested for compatibility. (right?) I guess my thought is... Does 2.3.5 have the same issue as 2.4 regarding the decimals? For

Re: [Zope] dollars-and-cents display fails

2005-05-12 Thread Jens Vagelpohl
On May 13, 2005, at 03:21, Greg Fischer wrote: Thanks Andy. I do have those versions. But Python is 2.3.5 because I didnt want to move to 2.4.x as I think I read something in the README for Zope stating it was not tested for compatibility. (right?) Yes, that is correct. Do not use it if you

Re: [Zope] dollars-and-cents display fails

2005-05-12 Thread Greg Fischer
Darn! That didnt fix it. I just setup python 2.3.4, setup Zope 2.7.6 again, along with mysql-python 1.2.0 and ZMySQLDA-2.0.9b3, and fmt=dollars-and-cents will not display the data. Also, I tried just using the c-style formatting: fmt=$%.2f and I have a different issue, I get a Type Error -

Re: [Zope] dollars-and-cents display fails

2005-05-12 Thread Andy Dustman
On 5/12/05, Greg Fischer [EMAIL PROTECTED] wrote: Thanks Andy. I do have those versions. But Python is 2.3.5 because I didnt want to move to 2.4.x as I think I read something in the README for Zope stating it was not tested for compatibility. (right?) I guess my thought is... Does 2.3.5

Re: [Zope] dollars-and-cents display fails

2005-05-12 Thread Greg Fischer
Oh, it is a decimal(15,2) column. (all of them are) Just thought I'd mention everything too... Running Ubuntu 5.0.4, has the Python 2.4.1 package installed, but I have Python 2.3.4 compiled and installed separately for Zope. Zope is compiled with the --with-python flag. Just tried your

[Zope] Delete user from acl_users folder

2005-05-12 Thread Allen Huang
I tried your method before and it didn't work I have a folder called conference and inside it there is acl_users folder and I write all my dtmls in the conference folder (by the way, your are talking about manage_delObjects() instead deleteObjects() right??) I tried to use dtml-call