Re: [Zope-dev] z3c.form 2.0 release
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 z3c.form? I merged the zagy-sources branch to the trunk. Yours sincerely, -- Michael Howitz · [EMAIL PROTECTED] · software developer gocept gmbh co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 8 · fax +49 345 1229889 1 Zope and Plone consulting and development ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope Tests: 4 OK, 2 Failed
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 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-December/010631.html Subject: FAILED (failures=2) : Zope-trunk Python-2.5.2 : Linux From: Zope Tests Date: Wed Dec 10 20:33:39 EST 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-December/010632.html Tests passed OK --- Subject: OK : Zope-2.8 Python-2.3.7 : Linux From: Zope Tests Date: Wed Dec 10 20:26:08 EST 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-December/010627.html Subject: OK : Zope-2.9 Python-2.4.5 : Linux From: Zope Tests Date: Wed Dec 10 20:27:38 EST 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-December/010628.html Subject: OK : Zope-2.10 Python-2.4.5 : Linux From: Zope Tests Date: Wed Dec 10 20:29:08 EST 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-December/010629.html Subject: OK : Zope-2.11 Python-2.4.5 : Linux From: Zope Tests Date: Wed Dec 10 20:30:39 EST 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-December/010630.html ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
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 see any effect of this - in fact several packages now have an added dependency to zope.browser that wasn't there before. I'm sure there's a bit of the plan I don't understand yet - please enlighten me? Looking more, I've noticed that zc.sourcefactory replaces the dependency on zope.app.form with this package. That seems to be an improvement. Since I'm quite interested in this project, I'd like to hear much more about how we will determine which kind of dependency surgery we'll do next. Regards. Martijn ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] zope.browser?
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 same interfaces. Obviously we've gotta be careful of what goes in there. -- Brian Sutherland ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] zope.browser?
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 see any effect of this - in fact several packages now have an added dependency to zope.browser that wasn't there before. I'm sure there's a bit of the plan I don't understand yet - please enlighten me? Looking more, I've noticed that zc.sourcefactory replaces the dependency on zope.app.form with this package. That seems to be an improvement. Since I'm quite interested in this project, I'd like to hear much more about how we will determine which kind of dependency surgery we'll do next. 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) I didn't see any other (browser) interface which should go to this package because of real dependency problems yet. But sure if you see something which can solve problems, feel free to move interfaces, dependency less components or helper methods to this package. I think everything which goes to zope.browser must take very care on dependencies. I guess one important rule should be, zope.browser should depend on anything. Probably an exception whould be zope.schema, zope.messageid. Any other ideas? Regards Roger Ineichen Regards. Martijn ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] z3c.form 2.0 release
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 GROSZERmailto:[EMAIL PROTECTED] -- Quote of the day: No wonder I feel so tired - I'm older now than I've ever been before. ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
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 to depend on zope.app.browser. (zagy branch in z3c.form) I didn't see any other (browser) interface which should go to this package because of real dependency problems yet. But sure if you see something which can solve problems, feel free to move interfaces, dependency less components or helper methods to this package. 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 a component. We use it most of the time as mixin for browser views, content providers, menu items and everything else which has to deal with application state data, urls and queries. For IRequestMixin the implementation is almost finished (one function and some testing left - see base.py and base.txt if you're interested in), and for the pointed usecases there are convenience implementations. It would be great to see this or something like this in zope.browser package, dealing with request data and url's is almost every day's business and always more code than i could be. regards, robert I think everything which goes to zope.browser must take very care on dependencies. I guess one important rule should be, zope.browser should depend on anything. Probably an exception whould be zope.schema, zope.messageid. Any other ideas? Regards Roger Ineichen Regards. Martijn ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] zope.browser?
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 a component. While this is certainly an interesting package, I think the idea behind zope.browser is to keep dependencies to an absolute minimum. I'm not sure I see the point of just putting the *interface* IRequestMixin in zope.browser, and the implementation would almost certainly pull in more dependencies, right? (by the way, an interface called 'Mixin'? Isn't the mixin nature a property of a class, not an interface?) 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. Regards, Martijn ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] zope.browser?
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 http://dev.plone.org/collective/browser/cornerstone.browser/trunk/cornerstone/browser/interfaces.py might be a candidate for this or such a component. While this is certainly an interesting package, I think the idea behind zope.browser is to keep dependencies to an absolute minimum. I'm not sure I see the point of just putting the *interface* IRequestMixin in zope.browser, and the implementation would almost certainly pull in more dependencies, right? It would be possible to strip the implementation dependencies down to zope.interface and zope.component if IAbsoluteUrl (iirc) is moved as well and the ICookiePrefix default implementation returns something static. (by the way, an interface called 'Mixin'? Isn't the mixin nature a property of a class, not an interface?) Yes ;), the naming is not the best choice. The intention was to hint the reader how an implementation of this interface is supposed to be used. 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. you queried ideas. right? regards, robert Regards, Martijn ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) -- Robert Niederreiter IT-Architecture Engineering Aflingerstraße 7 A-6176 Völs +43 699 160 20 192 +43 512 89 00 77 Squarewave Computing WEB APPLICATIONS, ZOPE, PLONE, HOSTING BlueDynamics Allianceproduction: concept, development, design http://squarewave.at consulting: analysis, coaching, training http://bluedynamics.com management: projects, process, community ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] zope.browser?
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, Stephan -- Stephan Richter Web Software Design, Development and Training Google me. Zope Stephan Richter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] z3c.form 2.0 release
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 Training Google me. Zope Stephan Richter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Dependencies question
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 ``class`` directive, registered in zope.app.component. While the zope.app.keyreference doesn't depend on zope.app.component at all, but uses ``class`` directive as well. So, the question is: what's the common policy for that? Should we depend on packages that is used in ZCML or not? Or maybe ZCML-related dependencies should be in some extras_require, say zcml? Personally, I think, that extras_require way is a nice compromise for that. Because many of packages can be used greatly without ZCML configuration, but getting ZCML-reqired dependencies should be easy. PS BTW, I think that zope.app.keyreference should be moved to plain zope.keyreference, because it's really lightweight, useful outside of zope and it doesn't depend on any zope.app package. What do you people think? -- WBR, Dan Korostelev ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] zope.browser?
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, absolutly, nothing else right now. I came to a point where I really like to get rid of zope.app.rotterdam, zope.app.authentication and many other packages in my simple project setup. Right now, we have a very nice component architecture, but we can't use them as we like. There are to many packages grouped together with each other on zcml level or for just for using some minimal things. The next step whould be moving the IPasswordManager implementation from zope.app.authentication to zope.app.security. This makes it possible to provide a zope.app.authentication less zope.app.testing package. Also zope.app.keyreference and zope.app.intid should get ported to zope.* packages. Another part which I'll cleanup is the zope.app.i18n configure.zcml. This zcml file registers in line: 5 -28 different components from totaly different packages. Each of them should go to the right package where the components are defined. It doesn't make sense to configure them in zope/app/i18n/confiure.zcml. btw All I like to do is to remove the dependencies which are not needed for a minimal installation. But everything should be backward compatible and just work like before. I will not introduce new dependencies or implement new components. It's all about cleanup existing things. But as far as I can see, most people are happy with removing dependencies and make progress in this direction. Any participation or discussion is very welcome! I just like to keep the discussion to a minimum and be a more productive. I'll promiss to take care and do nothing which doesn't make sense. Does this Ok and does it make sense for you? Regards Roger Ineichen ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] zope.browser?
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 to depend on zope.app.browser. (zagy branch in z3c.form) I didn't see any other (browser) interface which should go to this package because of real dependency problems yet. But sure if you see something which can solve problems, feel free to move interfaces, dependency less components or helper methods to this package. We have written browser helper tools in a package named cornerstone.browser. especially IRequestMixin here http://dev.plone.org/collective/browser/cornerstone.browser/tr unk/cornerstone/browser/interfaces.py might be a candidate for this or such a component. I like this. But we should not mix the cleanup refactoring with any other new things. I think this will confuse people and will give us less aceptance for the really needed cleanup. Let's keep this pending and discuss at a later time again. Regards Roger Ineichen ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope] sorting ids in python
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 Document','ZipFolder','File','Image']): objs=context.objectValues(['Folder', 'DTMLDocument','ZipFolder','File','Image']) objs.sort() for o in objs: .. huh? Afaik there is no sort order defined on a per-object basis. This is my final working solution: ids = context.objectIds(['Folder', 'DTMLDocument','ZipFolder','File','Image']) ids.sort() for object in ids: object=context.restrictedTraverse(object) path=object.absolute_url() ... I think you can have it a little bit easier: use context.objectItems instead of objectIds context.objectItems returns (id, object) tuples. so your solution wold be: objs = context.objectItems(['Folder', 'DTMLDocument','ZipFolder','File','Image']) objs.sort() for id, object in objs: path=object.absolute_url() robert ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[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 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 l'erreur* NameError *Valeur de l'erreur* 'client' may not be used as an argument name in this context This other code does not work better : SELECT * FROM MyTable WHERE id in (dtml-in mylist prefix=myid dtml-sqlvar expr=myid_item type=int dtml-if sequence-lastdtml-else,/dtml-if /dtml-in) *Same error* However, if I use a dictionary list of this type [{'id':21},{'id':35}] with the following code, it works (but it's heavy) SELECT * FROM MyTable WHERE id in (dtml-in mylist mapping dtml-sqlvar id type=int dtml-if sequence-lastdtml-else,/dtml-if /dtml-in) The python script that calls my ZSQL method has already build the integer list and I would like to use it as is. Thanks for your help ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] sorting ids in python
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 context.objectValues(['Folder', 'DTML Document','ZipFolder','File','Image']): objs=context.objectValues(['Folder', 'DTMLDocument','ZipFolder','File','Image']) objs.sort() for o in objs: .. huh? Afaik there is no sort order defined on a per-object basis. This is my final working solution: ids = context.objectIds(['Folder', 'DTMLDocument','ZipFolder','File','Image']) ids.sort() for object in ids: object=context.restrictedTraverse(object) path=object.absolute_url() ... I think you can have it a little bit easier: use context.objectItems instead of objectIds context.objectItems returns (id, object) tuples. so your solution wold be: objs = context.objectItems(['Folder', 'DTMLDocument','ZipFolder','File','Image']) objs.sort() for id, object in objs: path=object.absolute_url() robert 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)) It's only a matter of time until you need something more advanced and then you shouldn't have to change how you use the objectXXX() iterator. E.g.: objs.sort(lambda x,y: cmp(x.title_or_id().lower(), y.title_or_id().lower())) -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] sorting ids in python
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 obj.getId() - nothing else. Andreas begin:vcard fn:Andreas Jung n:Jung;Andreas org:ZOPYX Ltd. Co. KG adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany email;internet:[EMAIL PROTECTED] title:CEO tel;work:+49-7071-793376 tel;fax:+49-7071-7936840 tel;home:+49-7071-793257 x-mozilla-html:FALSE url:www.zopyx.com version:2.1 end:vcard ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] problem with a form in IE 7
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 user selects a value from one of the select boxes, it submits the form and processes the selection. The error I receive is an IE error that says:Internet Explorer Cannot Display the Webpage. And for some reason, all of my selectbox values are showing in the URL as parameters. This is not supposed to happen. If I remove the parameters from the URL line and press enter, it works fine. I have another page that works similar to this one (with multiple select boxes that submit the form upon selection), that doesn't experience the same problem. I even changed my form action to go to a plain html page, and it still tries to pass all of my form variables in the URL string. I went to Microsoft's trouble shooting page for this error. I've tried deleting my browser history, clearing out any cached items, and also re-starting IE without Add-Ons. The server has been restarted as well. None of these options have resolved the issue. Neither the Apache log nor the Zope error log shows these errors. Has anyone encountered this problem? If so, what have you done to resolve the issue? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] problem with a form in IE 7
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 contains several select boxes. When the user selects a value from one of the select boxes, it submits the form and processes the selection. The error I receive is an IE error that says:Internet Explorer Cannot Display the Webpage. And for some reason, all of my selectbox values are showing in the URL as parameters. This is not supposed to happen. If I remove the parameters from the URL line and press enter, it works fine. I have another page that works similar to this one (with multiple select boxes that submit the form upon selection), that doesn't experience the same problem. I even changed my form action to go to a plain html page, and it still tries to pass all of my form variables in the URL string. I went to Microsoft's trouble shooting page for this error. I've tried deleting my browser history, clearing out any cached items, and also re-starting IE without Add-Ons. The server has been restarted as well. None of these options have resolved the issue. Neither the Apache log nor the Zope error log shows these errors. Has anyone encountered this problem? If so, what have you done to resolve the issue? Our uses are recommended to use Firefox, all these sorts of problems go away very quickly. Regards Garry ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Problem using dtml-in in ZSQL method
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: [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 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 l'erreur* NameError *Valeur de l'erreur* 'client' may not be used as an argument name in this context This other code does not work better : SELECT * FROM MyTable WHERE id in (dtml-in mylist prefix=myid dtml-sqlvar expr=myid_item type=int dtml-if sequence-lastdtml-else,/dtml-if /dtml-in) *Same error* However, if I use a dictionary list of this type [{'id':21},{'id':35}] with the following code, it works (but it's heavy) SELECT * FROM MyTable WHERE id in (dtml-in mylist mapping dtml-sqlvar id type=int dtml-if sequence-lastdtml-else,/dtml-if /dtml-in) The python script that calls my ZSQL method has already build the integer list and I would like to use it as is. Thanks for your help ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Problem using dtml-in in ZSQL method
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: 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 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 l'erreur* NameError *Valeur de l'erreur* 'client' may not be used as an argument name in this context This other code does not work better : SELECT * FROM MyTable WHERE id in (dtml-in mylist prefix=myid dtml-sqlvar expr=myid_item type=int dtml-if sequence-lastdtml-else,/dtml-if /dtml-in) *Same error* However, if I use a dictionary list of this type [{'id':21},{'id':35}] with the following code, it works (but it's heavy) SELECT * FROM MyTable WHERE id in (dtml-in mylist mapping dtml-sqlvar id type=int dtml-if sequence-lastdtml-else,/dtml-if /dtml-in) The python script that calls my ZSQL method has already build the integer list and I would like to use it as is. Thanks for your help ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Problem using dtml-in in ZSQL method
| - 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 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) select * from mytable dtml-sqlgroup where dtml-sqltest mylist multiple type=int /dtml-sqlgroup -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Problem using dtml-in in ZSQL method
+---[ 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 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) | | select * from mytable | dtml-sqlgroup where | dtml-sqltest mylist multiple type=int | /dtml-sqlgroup Actually the sqlgroup is superfluous in this case; name your mylist parameter as id and select * from mytable sqltest id multiple type=int or if you don't want to rename your parameter select * from mytable sqltest mylist multiple type=int column=id should work fine -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How manage error with zsql
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 Help -- DTML Reference -- try), this is possible. Note, however, that unqualified try ... except ... is dangerous, everywhere, both in Python as well as in DTML. Formerly, exceptions have been strings. Nowadays, exceptions are class instances. I am not sure whether the DTML-try already support non string exceptions. If you observe problems, then this might be the reason. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] nginx proxy zope/webdav, can't see files
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 that folder, if i mount directly to a folder where my user has permissions. but can´t see the files there. the folder is not empty. again, i can list the files using davfs without nginx as. on the nginx list i was told that the probem was most likely due to path formation. here is the client request, responces from nginx and zope and the configuration of nginx vhost. hopefully someone on this list can shed some light on the issue. Probably, the problem is that in nginx case you use PROPFIND /dav/nomndaa1/ while server responses to PROPFIND /nomndaa1/ or PROPFIND /plune/nomndaa1/ (according previously posted configuration). This may confuse the client, if it expect to see response to PROPFIND /dav/nomndaa1/: response may have /nomndaa1/ or /plune/nomndaa1/ pathes. so if i understand i should be able to fix this with a proxy_redirect like: proxy_redirect http://10.10.10.30:1980/nomndaa1/ http://$host:$server_port/dav/ this _is not_ working for me. the following is the client request, nginx and zope responces, as well as a modified vhost for nginx. client: Sending request headers: PROPFIND /dav/ HTTP/1.1 Host: lapalabradelagua.org User-Agent: davfs2/1.3.3 neon/0.28.2 Connection: TE TE: trailers Depth: 1 Content-Length: 314 Content-Type: application/xml nginx log: PROPFIND /dav/ HTTP/1.1 207 11500 - davfs2/1.3.3 neon/0.28.2 zope log: PROPFIND /nomndaa1/ HTTP/1.0 207 11784 davfs2/1.3.3 neon/0.28.2 complete nginx vhost: server { listen 10.10.10.20:80; server_name .myhost.org; if ($request_uri ~* ^/login_(.*)) { rewrite ^/login_(.*) https://$host/login_$1 permanent; break; } location /dav/ { proxy_pass http://10.10.10.30:1980/nomndaa1/; proxy_pass_header Server; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-For $remote_addr; proxy_redirect http://10.10.10.30:1980/nomndaa1/ http://$host:$server_port/dav/; } location / { proxy_pass http://10.10.10.30:6081/VirtualHostBase/http/myhost.org:80/nomndaa1/VirtualHostRoot/; proxy_set_header Host $http_host; } saludo, kev ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )