[Zope-dev] DateTime, strftime and TimeError

2005-05-11 Thread Santi Camps
Hi all, I think its known that using strftime method of DateTime module with dates = 1900 or = 2038, a TimeError is raised. For instance: d = DateTime('2045/30/01') d.strftime('%d/%m/%Y') DateTime.DateTime.TimeError: The time 2369343600.00 is beyond the range of this Python

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

2005-05-11 Thread Andrew Langmead
On May 11, 2005, at 10:08 AM, Santi Camps wrote:I think its known that using strftime method of DateTime module with dates = 1900 or = 2038, a TimeError is raised.   For instance:DateTime can handle dates with larger ranges, it just can't display them with the strftime method.DateTime's strftime

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

2005-05-11 Thread Santi Camps
En/na Andrew Langmead ha escrit: On May 11, 2005, at 10:08 AM, Santi Camps wrote: I think its known that using strftime method of DateTime module with dates = 1900 or = 2038, a TimeError is raised. For instance: DateTime can handle dates with larger ranges, it just can't display them with

Re: [Zope-dev] SMTP socket error

2005-05-11 Thread Dieter Maurer
Shilpa P wrote at 2005-5-11 06:13 +0100: I am trying to send mail using python.I tried the command import smtplib s=smtplib.SMTP(localhost) I get the following error socket.error: (10053, 'Software caused connection abort') Your SMTP server does not like your process -- almost surely

[Zope] Re: Refcounts, ZODB Cache and memory leaks?

2005-05-11 Thread Dylan Jay
I've been going some testing with gc.set_debug etc and it looks like there isn't a memory leak or at least not one the garbage collector can find. That means that the data must be remaining reachable somehow. -- Dylan Jay --- http://www.meetmemap.com - makes giving directions easy

[Zope] ZODB question

2005-05-11 Thread Pascal Peregrina
Hi, In a Zope / Zeo configuration (2.7.6), is there a way, on the Zope instance, to know when the database (Zeo) was last packed ? Thanks. Pascal ** This email and any files transmitted with it are confidential and intended

Re: [Zope] container and context for folderish objects

2005-05-11 Thread Milos Prudek
Milos Prudek wrote: I created a very simple folderish product. Everything works fine. But I was surprised that context and container seem to behave differently for folderish object than for normal Folder. To answer my own question: I misunderstood what container does. Desired behaviour can be

[Zope] LDAPUserFolder and roles/groups assignment Problem

2005-05-11 Thread Bernard Lange
Hi , I've instantiated a Group User Folder object for my Zope+Plone application and configured it to take users from an LDAP server in order to get users id and passwords validated against LDAP. So far, so good users can log in using their LDAP credentials. The underlying users source is a

Re: [Zope] LDAPUserFolder and roles/groups assignment Problem

2005-05-11 Thread Jens Vagelpohl
On May 11, 2005, at 11:21, Bernard Lange wrote: Traceback (innermost last): * Module ZPublisher.Publish, line 101, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Products.GroupUserFolder.GroupUserFolder, line

[Zope] Re: ZODB question

2005-05-11 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pascal Peregrina wrote: In a Zope / Zeo configuration (2.7.6), is there a way, on the Zope instance, to know when the database (Zeo) was last packed ? Thanks. Repozo knows this for the underlying FileStorage:

RE: [Zope] Re: ZODB question

2005-05-11 Thread Pascal Peregrina
Thanks -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de Tres Seaver Envoyé : mercredi 11 mai 2005 15:47 À : zope@zope.org Cc : zodb-dev@zope.org Objet : [Zope] Re: ZODB question ** This

[Zope] monitor / icp server

2005-05-11 Thread Sylvain Thénault
Hey ! I'm experiencing some problem trying to use the monitor server. I've zope 2.7.6 running, with an emergency user defined in the instance's access file, with password stored as clear text. When I try to run the monitor_client.py script, I type my password and everything I get (except a

[Zope] How to find out the full URL

2005-05-11 Thread Hong Yuan
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 full URL from

[Zope] How do I logout using DTML

2005-05-11 Thread Allen Huang
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: AttributeErrorError Value: logout What did I do wrong?? Yahoo! Mail Mobile

Re: [Zope] How do I logout using DTML

2005-05-11 Thread Dennis Allison
Looks like your userfolder does not support a logout method as an inspection of the code would have established. In fact, the only logout method that appears to be supported is in the App manager for the ZMI. You may want to look at the code and adapt it for your purposes. On Wed, 11 May

Re: [Zope] Zope Sybase database connection keeps closing

2005-05-11 Thread Dieter Maurer
Abhilasha Chaudhary wrote at 2005-5-10 14:14 -0400: My zope Sybase database connections keep closing for no apparent reason. This may happen when the DA instance is flushed from the ZODB. Usually, it reopens automatically either when it is loaded again or when used. When I try to reopen the

Re: [Zope] what are the dtml for logout and deleting a existing user??

2005-05-11 Thread Dieter Maurer
Allen Huang wrote at 2005-5-10 09:26 -0700: what are the dtml for logout of an account and deleting a existing user?? When you are using basic HTML authentication, then logout is a browser operation (and not a server one). You can use the following DTML Method to facilitate logout somehow

Re: [Zope] ValueError: I/O operation on closed file

2005-05-11 Thread Dieter Maurer
Brian Hickey wrote at 2005-5-10 21:09 +0100: Relative newbie to Zope, trying to install Plone on FreeBSD. Have run into the following problem: - I have followed the instructions as per the guide at http://www.netvironments.org/laurazWiki/InstallingPlone - After copying the directories into the

[Zope] Underscoring Inaugural Address

2005-05-11 Thread Dan Pozmanter
Hello there Zopatistas, In my inaugural post, I should like to enquire about getting to a url like so: http://myzopeserver.something.clever/a/path/to/a/file/named/__init__.py Getting to the object "__init__.py" is difficult (it acts like it doesn't exist.) Is there a way to muck about

Re: [Zope] Underscoring Inaugural Address

2005-05-11 Thread Andreas Jung
--On Mittwoch, 11. Mai 2005 15:00 Uhr -0400 Dan Pozmanter [EMAIL PROTECTED] wrote: Is there a way to muck about with getattr, traversal, or something related so that, for a particular kind of object (eg with a particular attribute), Zope ignores the cannot start with a '_' rule? I think it is a

Re: [Zope] Underscoring Inaugural Address

2005-05-11 Thread J Cameron Cooper
Dan Pozmanter wrote: Hello there Zopatistas, In my inaugural post, I should like to enquire about getting to a url like so: http://myzopeserver.something.clever/a/path/to/a/file/named/__init__.py Getting to the object __init__.py is difficult (it acts like it doesn't exist.) Is there a

Re: [Zope] Underscoring Inaugural Address

2005-05-11 Thread Paul Winkler
On Wed, May 11, 2005 at 03:00:02PM -0400, Dan Pozmanter wrote: Hello there Zopatistas, In my inaugural post, I should like to enquire about getting to a url like so: http://myzopeserver.something.clever/a/path/to/a/file/named/__init__.py Getting to the object __init__.py is difficult

RE: [Zope] Underscoring Inaugural Address

2005-05-11 Thread Dan Pozmanter
Ugh. I suppose I could ignore the '_' bit (and override BaseRequest.traverse), but the problems are: 1. Keeping this thing synced with Zope. 2. Accessing the object being traversed to to ensure it is of the correct type. There is no other way to do this? Is there a way to have a path pretend

Re: [Zope] Underscoring Inaugural Address

2005-05-11 Thread Paul Winkler
On Wed, May 11, 2005 at 03:50:00PM -0400, Dan Pozmanter wrote: Ugh. I suppose I could ignore the '_' bit (and override BaseRequest.traverse), but the problems are: 1. Keeping this thing synced with Zope. 2. Accessing the object being traversed to to ensure it is of the correct type.

[Zope] How to make a ZPT-based form that calls itself?

2005-05-11 Thread Ken Winter
Hi Zopers - I'm trying to make a ZPT-based HTML form that: 1. Displays the records in a MySQL 'Person' table; 2. Offers a field for updating this table (in my simple test example, it accepts the Id of a Person to delete); 3. When you push its 'Submit' button, updates the database; and then 4.

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

2005-05-11 Thread J Cameron Cooper
Hong Yuan wrote: 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] How to make a ZPT-based form that calls itself?

2005-05-11 Thread J Cameron Cooper
Ken Winter wrote: Hi Zopers - I'm trying to make a ZPT-based HTML form that: 1. Displays the records in a MySQL 'Person' table; 2. Offers a field for updating this table (in my simple test example, it accepts the Id of a Person to delete); 3. When you push its 'Submit' button, updates the

Re: [Zope] what are the dtml for logout and deleting a existing user??

2005-05-11 Thread Andreas Pakulat
On 11.Mai 2005 - 20:32:33, Dieter Maurer wrote: Allen Huang wrote at 2005-5-10 09:26 -0700: what are the dtml for logout of an account and deleting a existing user?? When you are using basic HTML authentication, then logout is a browser operation (and not a server one). Right. You can

[Zope] Z SQL Methods and the SQL LIMIT clause

2005-05-11 Thread Asad Habib
Is there a reason why Z SQL methods do not allow the use of the LIMIT clause? I am absolutely certain that my query has the right syntax since I executed it against the MySQL server and it gave me the correct results. FYI, I have provided the query below: SELECT course_id FROM course WHERE

Re: [Zope] what are the dtml for logout and deleting a existing user??

2005-05-11 Thread Jens Vagelpohl
On May 11, 2005, at 22:32, Andreas Pakulat wrote: That's not necessary, look at the ZMI, there is a logout option in the dropdown box. I never digged into zmi_logout (IIRC it has that name) but I think it is not accessible by _any_ Zope-User even not the Emergency User, so regardless of what you

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

2005-05-11 Thread Andy Dustman
On 5/11/05, Asad Habib [EMAIL PROTECTED] wrote: Is there a reason why Z SQL methods do not allow the use of the LIMIT clause? I am absolutely certain that my query has the right syntax since I executed it against the MySQL server and it gave me the correct results. FYI, I have provided the

RE: [Zope] How to make a ZPT-based form that calls itself?

2005-05-11 Thread Ken Winter
-Original Message- From: J Cameron Cooper [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 11, 2005 4:27 PM To: [EMAIL PROTECTED] Cc: zope@zope.org Subject: Re: [Zope] How to make a ZPT-based form that calls itself? Ken Winter wrote: Hi Zopers - I'm trying to make a ZPT-based

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

2005-05-11 Thread Phillip Hutchings
Ideally, I'd like to get back the whole URL as entered in the browser as a string. From the REQUEST I have to put together URL and QUERY_STRING, and the section (#xxx) part of the url can not be found in REQUEST. Unfortunately the CGI vars don't make provision for the anchor component or

Re: [Zope] How to make a ZPT-based form that calls itself?

2005-05-11 Thread Phillip Hutchings
Case A: return context.some_page() Case B: context.REQUEST.RESPONSE.redirect('some_page') GREAT!! Case B works perfectly (and it would have taken me forever to guess this solution). Case A didn't work when written as return context.deltest.htm() Of course it didn't,

Re: [Zope] How to make a ZPT-based form that calls itself?

2005-05-11 Thread J Cameron Cooper
Ken Winter wrote: -Original Message- From: J Cameron Cooper [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 11, 2005 4:27 PM To: [EMAIL PROTECTED] Cc: zope@zope.org Subject: Re: [Zope] How to make a ZPT-based form that calls itself? Ken Winter wrote: Hi Zopers - I'm trying to make a

[Zope] Running out of sockets

2005-05-11 Thread Gaute Amundsen
Coming out of lurk mode here with a really tricky one. We had just moved our server from: Zope Version (unreleased version, python 2.3.3, linux2) Python Version 2.3.3 (#2, Feb 21 2004, 21:17:53) [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] To: Zope Version (Zope 2.7.5-1.fc3, python 2.3.4,

Re: [Zope] How to make a ZPT-based form that calls itself?

2005-05-11 Thread Paul Winkler
On Wed, May 11, 2005 at 04:51:33PM -0500, J Cameron Cooper wrote: Look at your Python. It understands a dot as an attribute access. That's why Zope historically avoids dotted object names. Witness 'index_html'. You may use dictionary lookup: context['deltest.htm']() or getattr. But