[Zope-Coders] Zope tests: 8 OK

2005-08-29 Thread Zope tests summarizer
Summary of messages to the zope-tests list. Period Sun Aug 28 11:01:02 2005 UTC to Mon Aug 29 11:01:02 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: Sun Aug 28 22:22:49 EDT

[Zope-dev] medusa licence inconsistency

2005-08-29 Thread Martin Kudlvasr
Hi, in Zope-2.7.7-final, there are two licences for ZServer/medusa: Zope-2.7.7-final/lib/python/ZServer/medusa/docs/README.html and Zope-2.7.7-final/lib/python/ZServer/medusa/dist/license.html Can someone please remove this inconsistency? By deleting one of these of clearing the situation

[Zope] Zope3 i18n

2005-08-29 Thread Pascal Peregrina
Hi, I am starting to have a look at Zope3 (I am a Zope 2 product developper). In Zope2, I currently use MessageCatalogs/Localizer/TranslationService for i18n. Where can I find documentation about the corresponding functionality in Zope3 (which appears to be i18n enabled) ? I would be

Re: [Zope] dtml-if

2005-08-29 Thread Tino Wildenhain
Am Montag, den 29.08.2005, 14:08 +1000 schrieb michael: Thanks thats it! Why is it like that? ... On 8/28/05, michael [EMAIL PROTECTED] wrote: What am I doing wrong here? dtml-var last -- this prints out the variable sent from last (referring) page fine dtml-var id -- this

Re: [Zope] Zope3 i18n

2005-08-29 Thread Stephan Richter
On Monday 29 August 2005 02:47, Pascal Peregrina wrote: I am starting to have a look at Zope3 (I am a Zope 2 product developper).   In Zope2, I currently use MessageCatalogs/Localizer/TranslationService for i18n.   Where can I find documentation about the corresponding functionality in

[Zope] SQLObject and Zope2

2005-08-29 Thread David Pratt
I would like to use SQLObject module from Ian Bicking in Zope2. Has anyone any thoughts on how it could be used and still work with adapters and zope transactions. If I could handle sql this way, there is very little effort in moving the code to Zope3 afterwards. Regards David

[Zope] passing parameters from form to script

2005-08-29 Thread Roman Klesel
Hello everyone, I'm dynamically generate a form e.g like this: form action=paramtest method=post table class=normal tr valign=top align=left tal:repeat=item python:context.Templates.AddressTemplate.propertyIds() td tal:content=itembla/td tdinput type=text

Re: [Zope] passing parameters from form to script

2005-08-29 Thread Peter Bengtsson
2 options: - don't have a parameter on your 'paramtest' script and instead iterate on context.REQUEST.form.items() - keep a hidden variable in the form creation. eg. input type=hidden name=keys:list tal:attributes=value item / then make 'keys' the only parameter of 'paramtest' and use this

[Zope] date formatting

2005-08-29 Thread garry saddington
I am trying to format a dtml-var date by using fmt=Day dtml-var foo fmt=Day returns error: Error Type: TypeError Error Value: not all arguments converted during string formatting while dtml-var ZopeTime fmt=Day works fine. The date is International format and I have Zope set up to parse

Re: [Zope] date formatting

2005-08-29 Thread Peter Bengtsson
If dtml-var ZopeTime fmt=Day but dtml-var foo fmt=Day doesn't then there's nothing wrong with how you're using the fmt parameter but something is wrong with foo. Try:: dtml-var foo.strftime('Day') On 8/29/05, garry saddington [EMAIL PROTECTED] wrote: I am trying to format a dtml-var date by

Re: [Zope] date formatting

2005-08-29 Thread garry saddington
On Mon, 2005-08-29 at 14:51 +0100, Peter Bengtsson wrote: If dtml-var ZopeTime fmt=Day but dtml-var foo fmt=Day doesn't then there's nothing wrong with how you're using the fmt parameter but something is wrong with foo. Try:: dtml-var foo.strftime('Day') this gives the following error:

Re: [Zope] date formatting

2005-08-29 Thread Peter Bengtsson
That means that 'foo' is NOT a DateTime object like ZopeTime is. On 8/29/05, garry saddington [EMAIL PROTECTED] wrote: On Mon, 2005-08-29 at 14:51 +0100, Peter Bengtsson wrote: If dtml-var ZopeTime fmt=Day but dtml-var foo fmt=Day doesn't then there's nothing wrong with how you're using

[Zope] Weird ZPT/Python mail problem

2005-08-29 Thread James O'Keefe
Hi all, At work, I am testing our software that sends a postback via http to a test server on a periodic basis. I wrote the test server on our plone system. I have a page template that calls a python script. The python script gets all of the parameters and writes out their value to printed and

[Zope] File objects with illegal characters

2005-08-29 Thread Peter Bengtsson
What is the best way to deal with file uploads with illegal characters? I have no problem stripping the filenames such that _Peter[1].doc becomes Peter1.doc before it's manage_addFile'ed. But suppose I want to maintain the exact filename as it was on the harddrive, how do you deal with that? --

Re: [Zope] File objects with illegal characters

2005-08-29 Thread Jens Vagelpohl
On 29 Aug 2005, at 16:13, Peter Bengtsson wrote: What is the best way to deal with file uploads with illegal characters? I have no problem stripping the filenames such that _Peter[1].doc becomes Peter1.doc before it's manage_addFile'ed. But suppose I want to maintain the exact filename as it

Re: [Zope] File objects with illegal characters

2005-08-29 Thread Peter Bengtsson
What is the best way to deal with file uploads with illegal characters? I have no problem stripping the filenames such that _Peter[1].doc becomes Peter1.doc before it's manage_addFile'ed. But suppose I want to maintain the exact filename as it was on the harddrive, how do you deal

Re: [Zope] File objects with illegal characters

2005-08-29 Thread Dieter Maurer
Jens Vagelpohl wrote at 2005-8-29 16:17 +0100: ... If a filename is illegal as a URL then that's that. In fact, an URL does not disallow any characters. It only requires that some of them need to be escaped. Thus, a Zope id could contain any character, would Zope properly escape all characters

Re: [Zope] Weird ZPT/Python mail problem

2005-08-29 Thread Dieter Maurer
James O'Keefe wrote at 2005-8-29 10:25 -0400: I wrote the test server on our plone system. I have a page template that calls a python script. The python script gets all of the parameters and writes out their value to printed and then mails it off to a list of email addresses. Pretty simple

Re: [Zope] File objects with illegal characters

2005-08-29 Thread Jens Vagelpohl
On 29 Aug 2005, at 18:39, Dieter Maurer wrote: Jens Vagelpohl wrote at 2005-8-29 16:17 +0100: ... If a filename is illegal as a URL then that's that. In fact, an URL does not disallow any characters. It only requires that some of them need to be escaped. Thus, a Zope id could contain any

[Zope] [Win XP] Installation problems

2005-08-29 Thread Benmania Guin
Hi guys, I have some troubles to install Zope on my Windows XP Home Edition operating system. The installation procedure went on without any problems but whenever I tried to start the Zope server, either in Console or as an instance, the server would not run. There was simply a window

Re: [Zope] [Win XP] Installation problems

2005-08-29 Thread Eric Banford
At 02:43 PM 8/29/2005, Benmania Guin wrote: I have some troubles to install Zope on my Windows XP Home Edition operating system. The installation procedure went on without any problems but whenever I tried to start the Zope server, either in Console or as an instance, the server would not run.

[Zope] passing a parameter - namespace and dtml-with

2005-08-29 Thread Sean Kelley
I am trying to pass the title of a page to a dtml method which is in another folder named links. If I pass the actual title like below everything works. However, when I try to pass the value of the current title to category_results using various other methods it does not. What is the syntax so

Re: [Zope] passing a parameter - namespace and dtml-with

2005-08-29 Thread John Eikenberry
Sean Kelley wrote: I am trying to pass the title of a page to a dtml method which is in another folder named links. If I pass the actual title like below everything works. However, when I try to pass the value of the current title to category_results using various other methods it does

Re: [Zope] NauScheduler problem

2005-08-29 Thread Chris Withers
Barry Drake wrote: Chris, Tried that first. The email on the page for this product returns and unknown recipient. Also, there is zero documentation. In that situation, I'd look for an alternative product ;-) What are you looking to do? Chris -- Simplistix - Content Management, Zope

Re: [Zope] Where to authenticate during traversal

2005-08-29 Thread Chris Withers
Dieter Maurer wrote: How do you explain that Zope 2.8.x does *NOT* use a simple restrictedTraverse (in Products.ZCatalog.CatalogBrains.AbstractCatalogBrain.getObject) but instead an unrestrictedTraverse to the parent followed by a restrictedTraverse for the last step? Using a simple

[Zope] zope 2.8 command line tracebacks

2005-08-29 Thread Ed Colmar
The 2.8 version of zope no longer displays tracebacks in the terminal window (after excecuting ./runzope). It just stops execution at any errors. I am trying to troubleshoot a page that is called from another server, so I do not get to view the error document. I have debug mode turned on.

[Zope] passing a parameter - namespace and dtml-with

2005-08-29 Thread Sean Kelley
I tried using orig_title in the format dtml-var orig_titlein the called dtml-method (category_results) and I get a zope error which I don't understand: Error Type: TypeErrorError Value: sequence index must be integer When I call it in the orignal page which I want the title for it works fine.

Re: [Zope] zope 2.8 command line tracebacks

2005-08-29 Thread Jens Vagelpohl
On 29 Aug 2005, at 23:38, Ed Colmar wrote: The 2.8 version of zope no longer displays tracebacks in the terminal window (after excecuting ./runzope). It just stops execution at any errors. I am trying to troubleshoot a page that is called from another server, so I do not get to view the

Re: [Zope] passing a parameter - namespace and dtml-with

2005-08-29 Thread Peter Bengtsson
Better dtml-let orig_title='Hannoverian Stallions Lauries Crusador ' dtml-with links dtml-var catagory_results(_, _.None, title1=orig_title) /dtml-with /dml-let Use dtml-let and notice the extra _ in the parameters. I doubt that DTML methods accept plain arguments except self, REQUEST and

Re: [Zope] NauScheduler problem

2005-08-29 Thread Barry Drake
Thanks Chris, This was solved a few days ago. Someone (sorry don't recall the name) on the list pointed me to the ScheduleList object created by NauSchedule at the root of Zope. After removing that, I was able to reenstall the product and start using it again. NauSchedule is a very cool