[Zope3-Users] Should I be using a more basic form in Formlib than EditForm?

2006-12-30 Thread Adam Summers
Hi all, I have an edit form: class claimEditForm(form.EditForm): form_fields = form.Fields(Iclaim).omit('__name__', '__parent__') @form.action(_(MyApply), condition=form.haveInputWidgets) def handle_edit_action(self, action, data): if self.context.modify(data):

[Zope3-Users] Re: Should I be using a more basic form in Formlib than EditForm?

2006-12-30 Thread Adam Summers
Once more, with formatting: Hi all, I have an edit form: class claimEditForm(form.EditForm): form_fields = form.Fields(Iclaim).omit('__name__', '__parent__') @form.action(_("MyApply"), condition=form.haveInputWidgets) def handle_edit_action(self, action, data): if

Re: [Zope3-Users] Re: register and unregister Utility

2006-12-30 Thread Florian Lindner
Am Mittwoch, 27. Dezember 2006 21:42 schrieb Jürgen Kartnaller: Florian Lindner wrote: Am Mittwoch, 27. Dezember 2006 19:15 schrieb Jürgen Kartnaller: component.provideUtility for a global utility. I've found that. See zope.component.interfaces.IComponentRegistrationConvenience

[Zope3-Users] how to examine parent attributes in add process?

2006-12-30 Thread Adam Summers
Hi all, I have an object which when editing, checks for some attributes in the parents containing folder by using the following type of code: (this is called during a form.Editform call) def _completeValues(self): if self.a is None and self.__parent__.def_c == self.c: