Re: [Zope3-Users] Error when calling addform

2007-02-18 Thread Stephan Richter
On Sunday 18 February 2007 12:06, Florian Lindner wrote: >     def create(self, data): >         comment = BlogComment() >         comment.name = data["name"] >         comment.email = data["email"] >         comment.content = data["content"] >         return comment > > If I just omit create is co

Re: [Zope3-Users] Error when calling addform

2007-02-18 Thread Dominique Lederer
Florian Lindner schrieb: > Am Dienstag, 13. Februar 2007 12:04 schrieb Stephan Richter: >> On Monday 12 February 2007 15:56, David Johnson wrote: >>> Many people have offered approaches. I find the simplest and >>> cleanest approach for declaring interfaces is as follows: >> The cleanest way, in

Re: [Zope3-Users] Error when calling addform

2007-02-18 Thread Florian Lindner
Am Dienstag, 13. Februar 2007 12:04 schrieb Stephan Richter: > On Monday 12 February 2007 15:56, David Johnson wrote: > > Many people have offered approaches.  I find the simplest and   > > cleanest approach for declaring interfaces is as follows: > > The cleanest way, in my opinion, is just not to

Re: [Zope3-Users] Error when calling addform

2007-02-15 Thread Marius Gedminas
On Tue, Feb 13, 2007 at 07:15:11PM +0100, David Johnson wrote: > I thought zope.formlib was more complex. That may be true, under the hood, but it is certainly simpler to use. I never fully understood how to use (and extend) forms generated by ZCML / directives. > As I understand you must > c

Re: [Zope3-Users] Error when calling addform

2007-02-13 Thread David Johnson
I thought zope.formlib was more complex. As I understand you must create custom browser classes, and page templates. Then you must register those with a page or view ZCML browser directive, each of which is more complicated than the addform. My point is that if there is something new her

Re: [Zope3-Users] Error when calling addform

2007-02-13 Thread Benji York
Stephan Richter wrote: On Monday 12 February 2007 15:56, David Johnson wrote: Many people have offered approaches. I find the simplest and cleanest approach for declaring interfaces is as follows: The cleanest way, in my opinion, is just not to use the addform directive altogether. zope.for

Re: [Zope3-Users] Error when calling addform

2007-02-13 Thread Stephan Richter
On Monday 12 February 2007 15:56, David Johnson wrote: > Many people have offered approaches.  I find the simplest and   > cleanest approach for declaring interfaces is as follows: The cleanest way, in my opinion, is just not to use the addform directive altogether. zope.formlib is the wildly acc

Re: [Zope3-Users] Error when calling addform

2007-02-13 Thread David Johnson
Many people have offered approaches. I find the simplest and cleanest approach for declaring interfaces is as follows: class IContactList(IContainer): contains('.IContact') class IContact(Interface): ...schema fields... class IContactContained(IContained): containers(IConta

Re: [Zope3-Users] Error when calling addform

2007-02-11 Thread Marius Gedminas
On Sun, Feb 11, 2007 at 07:26:21PM +0100, Florian Lindner wrote: > Hello, > I have an addform registered: > > label="Add Blog Comment" > name="AddBlogComment.html" > schema="..interfaces.IBlogComment" > content_factory="..blog.BlogComment" > permission=

RE: [Zope3-Users] Error when calling addform

2007-02-11 Thread Roger Ineichen
Hi Florian > Subject: [Zope3-Users] Error when calling addform > > Hello, > I have an addform registered: > > label="Add Blog Comment" > name="AddBlogComment.html" > schema="..interfaces.IBlogComme

Re: [Zope3-Users] Error when calling addform

2007-02-11 Thread Tom Dossis
Florian Lindner wrote: > Hello, > I have an addform registered: > > label="Add Blog Comment" > name="AddBlogComment.html" > schema="..interfaces.IBlogComment" > content_factory="..blog.BlogComment" > permission="Blog.AddComment" > /> > >

[Zope3-Users] Error when calling addform

2007-02-11 Thread Florian Lindner
Hello, I have an addform registered: class IBlogComment(IContained): containers(IBlogEntry) name = TextLine( title = u"Your name", description = u"Your name or nickname", default = u"Guest", required = True) email = TextLi