On 4/1/07, C. Handel <[EMAIL PROTECTED]> wrote: > Maybe I'm braindead, but what's broken with this: > > from formbuild.form import FormBase > from formbuild.builder.field.basic import HtmlFields > from formbuild.builder.layout.basic import HtmlLayout > > class MForm(FormBase): > field = HtmlFields() > layout = HtmlLayout() > def test(self): > print "test" > > t = MForm() > t.test() > > Traceback (most recent call last): > File "test.py", line 11, in ? > t = MForm() > File "/usr/lib/python2.4/site-packages/FormBuild-0.1.6b-py2.4.egg/ > formbuild/form/__init__.py", line 56, in __init__ > getattr(self, attribute)(self) > TypeError: test() takes exactly 1 argument (2 given)
I don't have FormBuild installed, but it looks like it's calling your test method from within its constructor (line 56), and it's expecting your test method to take an argument. You might look at FormBase.test. Best Regards, -jj -- http://jjinux.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
