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/editview.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


201 Main Street Suite 1320

Fort Worth, TX 76102

(877) 572-8324 x2200


Zope3-users mailing list

Reply via email to