[z3-five] formlib acquisition error

Daniel Nouri daniel at infrae.com
Mon Feb 5 15:35:00 CET 2007


Hi!

I'm using Five 1.4.1 with Zope 2.9.6 and using the (base-) classes

   Products.Five.formlib.formbase.PageForm
   Products.Five.browser.pagetemplatefile.ViewPageTemplateFile

I'm trying to call self.template() in an action handler, but that fails
because self (the form) is not acquistion-wrapped (at all) in the body
of the action handler, thus

      @form.action("foo")
      def action_foo(self, action, data):
          return self.template()

is bound to fail.


-- 
Daniel Nouri
Infrae × http://infrae.com



More information about the z3-five mailing list