Kim L. Jacobsen a écrit :
Philipp,
Regarding this subject... When I try the examples from chapter 7 in your book,
I get the following error, when I try to add a Recipe. I simple can't figure
out, how to resolve it. Any suggestions?
I'm using Zope 3.2.1
Regards,
Kim
Kim L. Jacobsen wrote:
Philipp,
Regarding this subject... When I try the examples from chapter 7 in
your book, I get the following error, when I try to add a Recipe. I
simple can't figure out, how to resolve it. Any suggestions?
I'm using Zope 3.2.1
This is a known erratum:
* page 96,
Thanks Philipp and Sébastien
Don't know why I missed that errata.
Regards,
Kim
-Oprindelig meddelelse-
Fra: Philipp von Weitershausen [mailto:[EMAIL PROTECTED]
Sendt: 10. september 2006 10:22
Til: Kim L. Jacobsen
Cc: zope3-users@zope.org
Emne: Re: Books example
Kim L.
On 9/10/06, Christophe Combelles [EMAIL PROTECTED] wrote:
First, thanks to all the z3-experienced people who answer beginners' questions
here, and particularly to Stephan Richter who answered my own ones.
I have added his answers on the kpug wiki. May I suggest that all people asking
something
Hi,
I have an add form (and later, an edit form) that may be invoked from a
particular view among a few choices. That is, the user can be at @@foo
or @@bar, click add X or edit Y.
When the form is successfully submitted (i.e. validated) I want to send
the user back to @@foo or @@bar
Hi Martin.
I did it this way :
The Edit Form implementation :
class AddClub(zope.formlib.form.AddForm):
base_template =zope.formlib.form.AddForm.template
template = ViewPageTemplateFile('club_add.pt')
...
def referer(self):
returnself.request.form.get('referer')\
Jürgen Kartnaller wrote:
I did it this way :
The Edit Form implementation :
class AddClub(zope.formlib.form.AddForm):
base_template =zope.formlib.form.AddForm.template
template = ViewPageTemplateFile('club_add.pt')
...
def referer(self):
return
Hi,
z3c.traverser and zope.contentprovider are helpful packages with good
and clear doctests. It didn't much time to get up and running with them.
However the packages do not include an example of how to configure my
new useful code into my project.
I got it figured (well, ... it works):
Hi there,
I've got a few global constants that I'd like to be available to my
application and a .zcml file seems to be a sensible place. I'm thinking
of something like a .zcml file with, e.g.:
applicationSettings
setting name=name1 value=value1/
setting name=name2