Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-07-06 Thread Hermann Himmelbauer
Am Freitag, 6. Juli 2007 03:14 schrieb Matt Bowen: Stephan and Hermann, maximum recursion depth exceeded That is a good hint, so you're recursively calling something. /opt/zope/zope-3.4.0a1 /lib/python/zope/tal/talinterpreter.py(379)do_startEndTag() - self.do_startTag(stuff, self.endsep,

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-07-06 Thread Matt Bowen
Hi again Hermann, Thanks again for replying -- the part that perplexed me was that none of my code was ever mentioned in the trackback -- I wasn't sure how I could be causing zope to recurse at all. It turned out that it couldn't find the form code because z3c.formui's zcml files weren't copied

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-07-05 Thread Maciej Wisniowski
On Tuesday 03 July 2007 05:38, Maciej Wisniowski wrote: TraversalError: (ErrorViewSnippet for RequiredMissing, 'widget') People that got this error had either old versions of the code (run buildout without -N) and/or had a PYTHONPATH set. Please make sure you have no entry in

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-07-05 Thread Stephan Richter
On Thursday 05 July 2007 06:59, Maciej Wisniowski wrote: I found in another post that you've changed something in i18n so I have tried to get new zope.i18n package but with no effect. What else should I have? Okay, I would suggest the following: 1. Try to get the formdemo running with the

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-07-05 Thread Matt Bowen
Stephan and Hermann, Thank you both so much for all of your help; I can now display my object -- it turned out that my z3c.form had not put its configs in my package-includes, so Stephan's #3 made my display work. Of course, I also fixed some other things that you both suggested, so I know I had

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-07-04 Thread Hermann Himmelbauer
Am Mittwoch, 4. Juli 2007 00:33 schrieb Matt Bowen: That was not at all a silly question! That got me a little closer -- I am new enough not to have understood that i needed the ++skin++. Now, instead of a 404 page, I get the following when I try to display my object: 127.0.0.1 - -

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-07-04 Thread Matt Bowen
Hi again, I now have all three forms giving me the component lookup error -- as you sugguested, I changed zope.ManageContent to zope.Public; I'd rather have one problem at a time. I also have a full traceback, because I realized that I didn't include one last night:

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-07-04 Thread Stephan Richter
On Wednesday 04 July 2007 06:21, Hermann Himmelbauer wrote: I know that it is probably a bad style to temporarily modify the framework source but I can't think of a better solution. I do this all the time! :-) Regards, Stephan -- Stephan Richter CBU Physics Chemistry (B.S.) / Tufts Physics

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-07-04 Thread Stephan Richter
On Wednesday 04 July 2007 12:59, Matt Bowen wrote: File /opt/zope/python2.4/lib/python2.4/site-packages/z3c.form- 1.3.0-py2.4.egg/z3c/form/form.py, line 144, in __call__ self.update() File /opt/zope/python2.4/lib/python2.4/site-packages/z3c.form- 1.3.0-py2.4.egg/z3c/form/form.py, line

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-07-04 Thread Stephan Richter
On Wednesday 04 July 2007 14:00, Hermann Himmelbauer wrote:   File /opt/zope/python2.4/lib/python2.4/site-packages/z3c.form- 1.3.0-py2.4.egg/z3c/form/form.py, line 167, in updateWidgets     self.widgets = zope.component.getMultiAdapter(   File

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-07-04 Thread Stephan Richter
On Tuesday 03 July 2007 08:57, Matt Bowen wrote: from z3c.form.interfaces import IFormLayer from z3c.layer.pagelet import IPageletBrowserLayer class IMovingTargetBrowserLayer(IFormLayer, IPageletBrowserLayer): The moving target browser skin layer and registered it: !-- Moving

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-07-04 Thread Stephan Richter
On Tuesday 03 July 2007 05:38, Maciej Wisniowski wrote: TraversalError: (ErrorViewSnippet for RequiredMissing, 'widget') People that got this error had either old versions of the code (run buildout without -N) and/or had a PYTHONPATH set. Please make sure you have no entry in PYTHONPATH.

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-07-03 Thread Maciej Wisniowski
On Friday 22 June 2007 14:36, Mats Nordgren wrote: I'm still having the ErrorViewSnippet problem. I've gone over and over the message example in formdemo and can't see anything different in my setup from the demo. The demo works fine but mine throws the ErrorViewSnippet error when I

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-07-03 Thread Matt Bowen
Hi Stephen I'm in the same place as Hermann -- I've followed formdemo's message package as closely as I can and made an object in debug mode, but when I try to view or edit it, zope says it can't find index.html or edit.html. At some point I realized that I was retyping code I had previously

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-07-03 Thread Matt Bowen
That was not at all a silly question! That got me a little closer -- I am new enough not to have understood that i needed the ++skin++. Now, instead of a 404 page, I get the following when I try to display my object: 127.0.0.1 - - [03/Jul/2007:18:26:54 -0400] GET

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-06-22 Thread Stephan Richter
On Thursday 21 June 2007 15:03, Mats Nordgren wrote: I have now got the sub form to render in browser.  Much appreciated. Cool. A few more questions though.  In the create method, the data is only the parent data.  The self.widgets.extract() returns only parent data.  The only place I see

RE: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-06-22 Thread Mats Nordgren
Stephan, Thanks again for you help. I'm still having the ErrorViewSnippet problem. I've gone over and over the message example in formdemo and can't see anything different in my setup from the demo. The demo works fine but mine throws the ErrorViewSnippet error when I submit an AddForm with

RE: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-06-22 Thread Mats Nordgren
Just access your sub-form. In the new Address Book demo of z3c.formdemo, the sub-forms are responsible of creating sub-objects, so there you simply can ask for the content like this: form.subForm.getContent(). In edit forms you do not have to do anything, because you are modifying thos sub-

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-06-22 Thread Stephan Richter
On Friday 22 June 2007 14:36, Mats Nordgren wrote: I'm still having the ErrorViewSnippet problem.  I've gone over and over the message example in formdemo and can't see anything different in my setup from the demo.  The demo works fine but mine throws the ErrorViewSnippet error when I submit

RE: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-06-21 Thread Mats Nordgren
it? Thanks, Mats Nordgren -Original Message- From: Stephan Richter [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 19, 2007 2:49 PM To: zope3-users@zope.org Cc: gnosis Subject: Re: [Zope3-Users] z3c.form and subforms in an AddForm? On Friday 15 June 2007 13:52, gnosis wrote: browser

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-06-19 Thread Hermann Himmelbauer
Am Freitag, 15. Juni 2007 19:52 schrieb gnosis: I've been trying out the new z3c form package and like what I see. I am having problems getting a subform in an AddForm though. The subform.txt covers EditForms where you have a context object to work on, in an AddForm the context is the

AW: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-06-19 Thread Roger Ineichen
Hi Hermann Cc: gnosis Betreff: Re: [Zope3-Users] z3c.form and subforms in an AddForm? Am Freitag, 15. Juni 2007 19:52 schrieb gnosis: I've been trying out the new z3c form package and like what I see. I am having problems getting a subform in an AddForm though. The subform.txt

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-06-19 Thread Stephan Richter
On Friday 15 June 2007 13:52, gnosis wrote: browser/restaurant.py class RestaurantAddForm(AddFormLayoutSupport, form.AddForm): Add form ... You do not need the layout support here, since this view does not render as a standalone Web page. ... def update(self): self.address

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-06-19 Thread Stephan Richter
On Saturday 16 June 2007 12:02, Marius Gedminas wrote: On Fri, Jun 15, 2007 at 10:52:24AM -0700, gnosis wrote: I've been trying out the new z3c form package and like what I see. I am having problems getting a subform in an AddForm though. The subform.txt covers EditForms where you have a

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-06-19 Thread Stephan Richter
On Tuesday 19 June 2007 11:49, Hermann Himmelbauer wrote: I have currently the problem that I registered my pagelets but I cannot access them. There are no errors, though, but my registered pagelets (e.g. edit.html / index.html) are not found by zope. Are you sure your skin has the correct

AW: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-06-17 Thread Roger Ineichen
Hi Marius Betreff: Re: [Zope3-Users] z3c.form and subforms in an AddForm? On Fri, Jun 15, 2007 at 10:52:24AM -0700, gnosis wrote: I've been trying out the new z3c form package and like what I see. I am having problems getting a subform in an AddForm though. The subform.txt covers

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-06-16 Thread Marius Gedminas
On Fri, Jun 15, 2007 at 10:52:24AM -0700, gnosis wrote: I've been trying out the new z3c form package and like what I see. I am having problems getting a subform in an AddForm though. The subform.txt covers EditForms where you have a context object to work on, in an AddForm the context is

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-06-16 Thread gnosis
Thanks for your response Marius Really? Usually in Zope 3 (zope.app.form or zope.formlib) the context of an add form is the IAdding view. To get the container you have to use self.context.context. The default implementation according to z3c.form documentation is that an AddForm is registered