Re: [Zope] sorting ids in python

2008-12-11 Thread robert rottermann
Garry Saddington schrieb: On Tuesday 09 December 2008 03:15, Andreas Jung wrote: On 08.12.2008 21:11 Uhr, robert rottermann wrote: Garry Saddington schrieb: Can anyone help me sort the following by id in a python script? for object in context.objectValues(['Folder', 'DTML

[Zope] Problem using dtml-in in ZSQL method

2008-12-11 Thread Françoise CONIL
*Hello, *My ZSQL method receive a *mylist* parameter that should be an integer list : [21,35] The following code does not work : SELECT * FROM MyTable WHERE id in (dtml-in mylist dtml-sqlvar sequence-item type=int dtml-if sequence-lastdtml-else,/dtml-if /dtml-in) *Type de

Re: [Zope] sorting ids in python

2008-12-11 Thread Peter Bengtsson
2008/12/11 robert rottermann [EMAIL PROTECTED]: Garry Saddington schrieb: On Tuesday 09 December 2008 03:15, Andreas Jung wrote: On 08.12.2008 21:11 Uhr, robert rottermann wrote: Garry Saddington schrieb: Can anyone help me sort the following by id in a python script? for object in

Re: [Zope] sorting ids in python

2008-12-11 Thread Andreas Jung
On 11.12.2008 12:28 Uhr, Peter Bengtsson wrote: Personally I prefer to always use objectValues(). Sorting isn't objectXXX()'s problem. It's something you do in your view. objs = list(self.objectValues()) objs.sort(lambda x,y: cmp(x.id, y.id)) Never ever use obj.id. The official API is

[Zope] problem with a form in IE 7

2008-12-11 Thread C
We are running Zope 2.9.8 on Macintosh OS X Server 10.5.5 behind Apache 2.x. I am having a problem when trying to submit one of my forms in IE 7. This only happens on Windows XP and it only started happening recently (we think in the past week). The form contains several select boxes. When the

Re: [Zope] problem with a form in IE 7

2008-12-11 Thread garry
Quoting C [EMAIL PROTECTED]: We are running Zope 2.9.8 on Macintosh OS X Server 10.5.5 behind Apache 2.x. I am having a problem when trying to submit one of my forms in IE 7. This only happens on Windows XP and it only started happening recently (we think in the past week). The form

Re: [Zope] Problem using dtml-in in ZSQL method

2008-12-11 Thread Jeff Peterson
Shouldn't this: dtml-sqlvar sequence-item type=int be dtml-var sequence-item type=int ? -- Jeffrey D Peterson Webmaster Crary Industries, Inc. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Françoise CONIL Sent: Thursday, December 11, 2008 4:21 AM To: zope@zope.org Subject:

Re: [Zope] Problem using dtml-in in ZSQL method

2008-12-11 Thread Jaroslav Lukesh
first, convert mylist to string before calling ZSQL method: dtml-call REQUEST.set('strmylist', _.str(mylist)) And then call the ZSQL method: params strmylist:string=[0] /params SELECT * FROM MyTable WHERE id in (dtml-var strmylist[1:-1] sql_quote) - Original Message - From:

Re: [Zope] Problem using dtml-in in ZSQL method

2008-12-11 Thread Andrew Milton
| - Original Message - | From: Fran?oise CONIL | To: zope@zope.org | Sent: Thursday, December 11, 2008 11:21 AM | Subject: [Zope] Problem using dtml-in in ZSQL method | | | Hello, | | My ZSQL method receive a *mylist* parameter that should be an integer list : | [21,35] | | The

Re: [Zope] Problem using dtml-in in ZSQL method

2008-12-11 Thread Andrew Milton
+---[ Andrew Milton ]-- | | - Original Message - | | From: Fran?oise CONIL | | To: zope@zope.org | | Sent: Thursday, December 11, 2008 11:21 AM | | Subject: [Zope] Problem using dtml-in in ZSQL method | | | | | | Hello, | | | | My ZSQL method receive a *mylist*

Re: [Zope] How manage error with zsql

2008-12-11 Thread Dieter Maurer
Miguel Beltran R. wrote at 2008-12-9 13:42 -0600: is possible have a general except and inside show what type is? in dtml was dtml-try ... dtml-except type:dtml-var error_type value: dtml-var error_value /dtml-try According to the documentation (-- embedded online documentation (aka Help) --

[Zope] nginx proxy zope/webdav, can't see files

2008-12-11 Thread mictlan tecutli
hi, i´m trying to connect davfs to zope/webdav by way of nginx. this works fine (once davfs is configured correctly) conecting directly (that is w/out nginx in the middle). with nginx in the middle i can not see the files. that is ls /davfs/mout/point shows an empty folder. i can upload to

Re: [Zope-dev] z3c.form 2.0 release

2008-12-11 Thread Michael Howitz
Am 09.12.2008 um 12:15 schrieb Roger Ineichen: [...] Should I do that tomorrow? And adjust all related packages like zope.app.form, z3c.form etc. Are there other packages which use ITerms except the one in zope.*? Christian, are you fine with this? Can you based on that merge your branch to

[Zope-dev] Zope Tests: 4 OK, 2 Failed

2008-12-11 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Wed Dec 10 12:00:00 2008 UTC to Thu Dec 11 12:00:00 2008 UTC. There were 6 messages: 6 from Zope Tests. Test failures - Subject: FAILED (failures=2) : Zope-trunk Python-2.4.5 : Linux From: Zope Tests Date: Wed Dec 10 20:32:09 EST

Re: [Zope-dev] zope.browser?

2008-12-11 Thread Martijn Faassen
Martijn Faassen wrote: Hi there, I saw that Roger Ineichen created and released a package called zope.browser. I assume that this package is intended to reduce dependencies, which is a project I applaud. So far I don't see any effect of this - in fact several packages now have an

Re: [Zope-dev] zope.browser?

2008-12-11 Thread Brian Sutherland
On Thu, Dec 11, 2008 at 03:20:25PM +0100, Martijn Faassen wrote: I'm sure there's a bit of the plan I don't understand yet - please enlighten me? AFAIKR, it's a package that mostly contains interfaces for well accepted browser design paradigms. That way different implementations can share the

Re: [Zope-dev] zope.browser?

2008-12-11 Thread Roger Ineichen
Hi Martijn Betreff: Re: [Zope-dev] zope.browser? Martijn Faassen wrote: Hi there, I saw that Roger Ineichen created and released a package called zope.browser. I assume that this package is intended to reduce dependencies, which is a project I applaud. So far I don't

Re: [Zope-dev] z3c.form 2.0 release

2008-12-11 Thread Adam GROSZER
Hello, A different question now: Do we need the attributes size= alt= maxlength= for *hidden* text and textarea inputs? I'm not an HTML guru, but does not seem to make much sense. (textarea does not have a hidden pt yet, but soon) -- Best regards, Adam GROSZER

Re: [Zope-dev] zope.browser?

2008-12-11 Thread Robert Niederreiter
Hi, Am Donnerstag, den 11.12.2008, 17:13 +0100 schrieb Roger Ineichen: I just moved the zope.app.form.interfaces.ITerms interface to this package. Which makes it possible to implement ISource and their widgets in z3c.form wihtout to depend on zope.app.browser. (zagy branch in z3c.form)

Re: [Zope-dev] zope.browser?

2008-12-11 Thread Martijn Faassen
Hi there, Robert Niederreiter wrote: [snip] We have written browser helper tools in a package named cornerstone.browser. especially IRequestMixin here http://dev.plone.org/collective/browser/cornerstone.browser/trunk/cornerstone/browser/interfaces.py might be a candidate for this or such

Re: [Zope-dev] zope.browser?

2008-12-11 Thread Robert Niederreiter
Am Donnerstag, den 11.12.2008, 18:18 +0100 schrieb Martijn Faassen: Hi there, Robert Niederreiter wrote: [snip] We have written browser helper tools in a package named cornerstone.browser. especially IRequestMixin here

Re: [Zope-dev] zope.browser?

2008-12-11 Thread Stephan Richter
On Thursday 11 December 2008, Martijn Faassen wrote: I think we should be careful not to introduce more functionality into zope.browser right now that isn't moved from some other zope.* package. The goal after all, as I understand it, is to reduce installation dependencies. +1 Regards,

Re: [Zope-dev] z3c.form 2.0 release

2008-12-11 Thread Stephan Richter
On Thursday 11 December 2008, Adam GROSZER wrote: size= alt= maxlength= for *hidden* text and textarea inputs? I'm not an HTML guru, but does not seem to make much sense. No, I think they are not even valid HTML. Regards, Stephan -- Stephan Richter Web Software Design, Development and

[Zope-dev] Dependencies question

2008-12-11 Thread Dan Korostelev
I was looking at dependencies of various zope.* packages and see that some packages depend on other because of ZCML directives and some are not. For example: The zope.app.catalog package depends on zope.app.component, but doesn't use it anywhere in non-testing code, however it does use the

Re: [Zope-dev] zope.browser?

2008-12-11 Thread Roger Ineichen
Hi Martijn Betreff: Re: [Zope-dev] zope.browser? [...] I think we should be careful not to introduce more functionality into zope.browser right now that isn't moved from some other zope.* package. The goal after all, as I understand it, is to reduce installation dependencies. Yes,

Re: [Zope-dev] zope.browser?

2008-12-11 Thread Roger Ineichen
Hi Robert Betreff: Re: [Zope-dev] zope.browser? Hi, Am Donnerstag, den 11.12.2008, 17:13 +0100 schrieb Roger Ineichen: I just moved the zope.app.form.interfaces.ITerms interface to this package. Which makes it possible to implement ISource and their widgets in z3c.form wihtout