[Zope3-Users] browser:form

David Johnson djohnson at jsatech.com
Mon Feb 20 22:14:10 EST 2006


I've implemented the browser:form ZCML directive. The implementation works
well until I add an __init__ method to my view class.  The following error
is generated.

 

  File
"/home/myuser/Zope-3.2.0/build/lib.linux-i686-2.4/zope/app/form/browser/edit
view.py", line 76, in widgets

    return [getattr(self, name+'_widget')

AttributeError: 'SimpleViewClass from edit.pt' object has no attribute
'name_widget'

 

 

Here is the __init__ that leads to the error

 

---:

class Function(object):

    """A transaction function."""

 

    __used_for__ = ITPM

 

    def __init__(self, context, request, base_url=''):

        self.context = context

        self.request = request

        self.base_url = base_url

 

    def setData(self):

        """Bland setData implementation."""

---

 

 

--

David Johnson

djohnson at jsatech.com

201 Main Street Suite 1320

Fort Worth, TX 76102

(877) 572-8324 x2200

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-users/attachments/20060220/ecb528f8/attachment.htm


More information about the Zope3-users mailing list