Re: [Zope3-Users] z3c.form: how to use invariant/validator?

2007-08-06 Thread Stephan Richter
On Sunday 05 August 2007 16:51, Peter Piehler wrote: > recently I started working with Zope3 and z3c.form. > The figures in the form should be checked, for instance that the first name > and the surname are not identical. Therefore I write an invariant-check: > > class IAddress(zope.interface.Inter

Re: [Zope3-Users] How to access "request" variable from vocabulary

2007-08-06 Thread Benji York
Yow, the whitespace in my last message was seriously messed up. Let me try again. Adam Groszer wrote: > I'm using something like this: > > def getCurrentRequest(): > return getInteraction().participations[0] It is, of course, better if you can structure your app so you don't have to pull th

Re: [Zope3-Users] How to access "request" variable from vocabulary

2007-08-06 Thread Benji York
Adam Groszer wrote: I'm using something like this: def getCurrentRequest(): return getInteraction().participations[0] It is, of course, better if you can structure your app so you don't have to pull the request "out of thin air", but if you do, I'd be a little more careful about it. Lik

Re: [Zope3-Users] How to access "request" variable from vocabulary

2007-08-06 Thread Adam Groszer
Hello Hermann, I'm using something like this: def getCurrentRequest(): return getInteraction().participations[0] Monday, August 6, 2007, 6:32:16 PM, you wrote: > Hi, > I have a simple function that is registered a vocabulary for a Choice-widget. > My problem is that the vocabulary should

[Zope3-Users] How to access "request" variable from vocabulary

2007-08-06 Thread Hermann Himmelbauer
Hi, I have a simple function that is registered a vocabulary for a Choice-widget. My problem is that the vocabulary should access the session, which seems to be only possible if I somehow get the "request" variable, which is available in a view. (A common way to retrieve the session seems to be

[Zope3-Users] Contract Work

2007-08-06 Thread David Johnson
Hello. I am heading the engineering for JSA Technologies in the United States. We are building an application in Zope 3 that will link colleges and universities around the world on a financial network. We are looking for Zope 3 contractors to help us complete the project. The project may

[Zope3-Users] z3c.form: How to hide a button/define action without a button?

2007-08-06 Thread Hermann Himmelbauer
Hi, I have form that has two actions, one for searching data, one for storing parts of this data into the session. The idea is to have some input fields and a search button. If data is found, a list of links is displayed. If the user clicks on a link, the other action of the form should be trig

[Zope3-Users] FTP permissions

2007-08-06 Thread Fergus Doyle
Hi, I am having trouble restricting the view on contained objects when being represented as a filesystem specifically being accessed via FTP. I pasted the python code and configuration at http://paste.lisp.org/display/45391 Essentially i want to restrict users so they may only view their ow

[Zope3-Users] FTP permissions

2007-08-06 Thread Fergus Doyle
Hi, I am having trouble restricting the view on contained objects when being represented as a filesystem specifically being accessed via FTP. I pasted the python code and configuration at http://paste.lisp.org/display/45391 Essentially i want to restrict users so they may only view their ow

Re: [Zope3-Users] Rendering subobjects in pages

2007-08-06 Thread Hermann Himmelbauer
Am Montag, 6. August 2007 14:21 schrieb Greg Baker: > How can I specify a template to render a sub-object within one of my > content objects? > > For example, pretend I have a Contact object which contains a Person > object. I am rendering the Contact object through a page template. > > class Conta

Re: [Zope3-Users] Rendering subobjects in pages

2007-08-06 Thread Frank Burkhardt
Hi, On Mon, Aug 06, 2007 at 09:51:18AM -0230, Greg Baker wrote: > How can I specify a template to render a sub-object within one of my content > objects? > > For example, pretend I have a Contact object which contains a Person object. > I am rendering the Contact object through a page template

[Zope3-Users] Rendering subobjects in pages

2007-08-06 Thread Greg Baker
How can I specify a template to render a sub-object within one of my content objects? For example, pretend I have a Contact object which contains a Person object. I am rendering the Contact object through a page template. class Contact: person = Person() In all the examples I see, renderi

Re: [Zope3-Users] z3c.recipe.runscript

2007-08-06 Thread Stephan Richter
On Thursday 02 August 2007 11:40, David Pratt wrote: > Thank you Stephan for z3c.recipe.runscript. I am just going through some > recipe's and was also thinking about something like this. I'll be > checking it out in the next day or so. Many thanks. You are welcome. Regards, Stephan -- Stephan R

Re: [Zope3-Users] Is a view persistent?

2007-08-06 Thread Hermann Himmelbauer
Am Donnerstag, 2. August 2007 13:37 schrieb Fred Drake: > On 8/2/07, Hermann Himmelbauer <[EMAIL PROTECTED]> wrote: > > mylist = [] > > > > @button.buttonAndHandler(_(u'Suchen'), name='suchen') > > def handle_suchen(self, action): > > self.mylist.append(123) > > > > When I