Re: [Zope] Confusing DateTime().strftime behavior

2005-10-16 Thread Peter Bengtsson
Are you using Python 2.4? I've seen other people here on the list having problems witht he DateTime module and it being a day off. Search the archive on 'strftime' and hope. 2005/10/15, Kirk Strauser [EMAIL PROTECTED]: I'm upgrading our server from a FoxPro backend to PostgreSQL, using the

Re: [Zope] Confusing DateTime().strftime behavior

2005-10-16 Thread Kirk Strauser
On Saturday 15 October 2005 01:24, Andreas Jung wrote: If you speak of DateTime instances then you should be able to write to two-line testcase that shows the issue with a standard Zope installation. If you can provide such a testcase we are able to look at it in detail. date =

Re: [Zope] Confusing DateTime().strftime behavior

2005-10-16 Thread Andreas Jung
--On 16. Oktober 2005 10:41:19 -0500 Kirk Strauser [EMAIL PROTECTED] wrote: On Saturday 15 October 2005 01:24, Andreas Jung wrote: If you speak of DateTime instances then you should be able to write to two-line testcase that shows the issue with a standard Zope installation. If you can

Re: [Zope] REQUEST not accessible

2005-10-16 Thread Dieter Maurer
Jürgen Herrmann wrote at 2005-10-13 12:39 +0200: ... it seems this isn't working anymore, the catalog would return all brains instead of seraching the relevant ones... (completely ignoreing everything in REQUEST) This should still work in Zope 2.8.1. The relevant code is in

RE: [Zope] Packaging a zope application

2005-10-16 Thread Dieter Maurer
Joshua Burvill wrote at 2005-10-10 10:19 +1000: ... We put everything we can into the filesystem (e.g. via CMFCore's Filesystem Directory View) and use CVS/SVN to manage and distribute it. ... I guess that means creating a kind of product. The CMF comes with such a product: Filesystem Directory

Re: [Zope] __getitem__ and returning a PageTemplateFile instance

2005-10-16 Thread Dieter Maurer
Anders Bruun Olsen wrote at 2005-10-14 11:53 +0200: ... I am trying to make a product where-in I want to be able to return a page based on the url, think something like /product/username which would return a page with the users details. For this purpose I am using __getitem__, but when I return a

Re: [Zope] POSKeyError nightmare

2005-10-16 Thread Dieter Maurer
Kevin Carlson wrote at 2005-10-10 18:37 -0400: ... I'm not sure I understand what you mean by fixing them all as shown above. You mention loading the object from the ZODB and deleting the broken references, but I'm not sure how to do that. fsrefs tells you the OID of objects containing broken

Re: [Zope] Deleting objects from an external method

2005-10-16 Thread Dieter Maurer
Nikko Wolf wrote at 2005-10-14 15:37 -0600: I'm trying to allow users to delete objects that have been accidentally created. I have criteria for what that means, but since I *DO NOT* want them to delete object except by this method, I want to avoid granting Delete objects to them

Re: [Zope] Error on starting and stopping Zope 2.8.2

2005-10-16 Thread Dennis Allison
whrandom is a deprecated python library package which should be replaced by random. Python 2.3.5 does not produce the deprecation warning but lacks some of the features of the Python 2.4.X series. On Fri, 14 Oct 2005 [EMAIL PROTECTED] wrote: Hello. On starting and stopping Zope 2.8.2

Re: [Zope] Error on starting and stopping Zope 2.8.2

2005-10-16 Thread Andreas Jung
--On 16. Oktober 2005 11:27:36 -0700 Dennis Allison [EMAIL PROTECTED] wrote: whrandom is a deprecated python library package which should be replaced by random. Python 2.3.5 does not produce the deprecation warning but lacks some of the features of the Python 2.4.X series. It is

RE: [Zope] Error on starting and stopping Zope 2.8.2

2005-10-16 Thread Dennis Allison
Pascal, Why does Zope lag the release of Python by so very long? The Python 2.4.X series includes language features and poerformance enhancements which ought to be available in Zope. For the most part, Python 2.3.5 is a subset of Python 2.4.X. Compatibility is a language and implementation

Re: [Zope] Error on starting and stopping Zope 2.8.2

2005-10-16 Thread Jens Vagelpohl
On 16 Oct 2005, at 19:54, Dennis Allison wrote: Why does Zope lag the release of Python by so very long? Because someone has to spend considerable time to assess impacts on the Zope 2 security machinery. This has been mentioned on this and other Zope lists on various occasions. My

Re: [Zope] Error on starting and stopping Zope 2.8.2

2005-10-16 Thread Dennis Allison
Andreas, Aside from a security audit what problems have been reported using Python 2.4.X? Those of use who run Python 2.4.X do it becasue we want access to the language features and performance. If there are stability issues attributed to that choice, we'd like to know what they are.

RE: [Zope] Error on starting and stopping Zope 2.8.2

2005-10-16 Thread Andreas Jung
--On 16. Oktober 2005 11:54:18 -0700 Dennis Allison [EMAIL PROTECTED] wrote: IMHO it would be wise to track the releases of Python a bit more closely. Software components choosen for a framework have to be solid and approved. There is no reason to run after every new python version or

Re: [Zope] Error on starting and stopping Zope 2.8.2

2005-10-16 Thread Andreas Jung
--On 16. Oktober 2005 12:01:00 -0700 Dennis Allison [EMAIL PROTECTED] wrote: If the reason for trying to stick with 2.3.5 is to maintain a stable test and development environment for Zope 2.8, so be it. It is much much easier to fix one of the multitude of possible variables in a complex

RE: [Zope] Error on starting and stopping Zope 2.8.2

2005-10-16 Thread Dennis Allison
Andreas, I understand both the importance of stability and the need for a security audit at some point. (I do wish we had the funds or I had the time to help move it forward, but I don't.) I also understand the need for a consistent framework for reporting and resolving bugs. It is

Re: [Zope] __getitem__ and returning a PageTemplateFile instance

2005-10-16 Thread Anders Bruun Olsen
On Sun, Oct 16, 2005 at 06:50:09PM +0200, Dieter Maurer wrote: I am trying to make a product where-in I want to be able to return a page based on the url, think something like /product/username which would return a page with the users details. For this purpose I am using __getitem__, but when

RE: [Zope] Error on starting and stopping Zope 2.8.2

2005-10-16 Thread Chris McDonough
On Sun, 2005-10-16 at 12:29 -0700, Dennis Allison wrote: What does concern me is the way in which the recommendation to use (at the moment) Python 2.3.5 is explained. I may be willing to accept the risks of using a system which has not yet been audited in terms of security, but I want to

[Zope-Annce] MailTemplates 1.1.0 Released!

2005-10-16 Thread Chris Withers
These allow you to use the full power of the the python email package along with Zope's Page Template technology to easily build and send fully standards compliant emails. This release adds the ability to create attachments using string data. It also fixes a long list of bugs uncovered by

[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ - ZSQLMethod.manage_main: Moved the error message that warns of a

2005-10-16 Thread Jens Vagelpohl
Log message for revision 39474: - ZSQLMethod.manage_main: Moved the error message that warns of a non-existing or closed database connection next to the Connection ID dropdown and present it using red to increase its visibility. Changed: U

[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/lib/python/Products/ZSQLMethods/dtml/edit.dtml - be a little more helpful by revealing the vanished database connection ID

2005-10-16 Thread Jens Vagelpohl
Log message for revision 39476: - be a little more helpful by revealing the vanished database connection ID Changed: U Zope/branches/Zope-2_8-branch/lib/python/Products/ZSQLMethods/dtml/edit.dtml -=- Modified:

[Zope-Coders] Zope tests: 8 OK

2005-10-16 Thread Zope tests summarizer
Summary of messages to the zope-tests list. Period Sat Oct 15 11:01:01 2005 UTC to Sun Oct 16 11:01:01 2005 UTC. There were 8 messages: 8 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux From: Zope Unit Tests Date: Sat Oct 15 22:27:07 EDT

[Zope-dev] Re: [Zope-CMF] Re: RestrictedPython, TALES Expressions and CMF

2005-10-16 Thread Dieter Maurer
Tres Seaver wrote at 2005-10-11 08:58 -0400: ... 'call_with_ns' should be invoked only for objects with either a '__render_with_namespace__' attribute (PythonScripts fit here) or those with 'isDocTemp' true. Its only real purpose is to set up the namespace before calling a DTMLMethod; I don't

Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/trunk/lib/python/Shared/DC/ZRDB/ Collector #556: sqlvar now returns 'null' rather than 'None'.

2005-10-16 Thread Dieter Maurer
Chris Withers wrote at 2005-10-11 07:50 +0100: ... I dunno, it's very handy to be able to rely on something RDB-like being installed when you want to tests things like ZSQL methods... But, for ZSQL method tests you do not need a real DA; a DA fake is sufficient (you test ZSQL methods and not