On 5/31/07, voltron <[EMAIL PROTECTED]> wrote: > > I wish we could edit posts. Anyway, I took a look at the docs again, > so I modified my error.py accordingly, but I still get a trace: > > > response = self._dispatch_call() > File "c:\python24\lib\site-packages\Pylons-0.9.5-py2.4.egg\pylons > \controllers. > py", line 161, in _dispatch_call > File "c:\python24\lib\site-packages\Pylons-0.9.5-py2.4.egg\pylons > \controllers. > py", line 161, in _dispatch_call > response = self._inspect_call(func) > response = self._inspect_call(func) > File "c:\python24\lib\site-packages\Pylons-0.9.5-py2.4.egg\pylons > \controllers. > py", line 135, in _inspect_call > File "c:\python24\lib\site-packages\Pylons-0.9.5-py2.4.egg\pylons > \controllers. > py", line 135, in _inspect_call > result = func(**args) > result = func(**args) > File "D:\Projects\Pylons_projects\gameolymp\gameolymp\controllers > \error.py", l > ine 24, in document > File "D:\Projects\Pylons_projects\gameolymp\gameolymp\controllers > \error.py", l > ine 24, in document > my_template=""" > my_template=""" > AttributeError: MultiDict instance has no __call__ method > > Any idea what I´m doing wrong?
You probably already fixed this by now, but I'll answer anyway. Generally, if you see "instance has no __call__ method" that means you wrote something like "a()" and "a" isn't a function like you think it is. In this case, it's a MultiDict, i.e. request.params. I don't see where you're doing something like "request.params(...)", but conceptually, something like that is happening. 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 -~----------~----~----~----~------~----~------~--~---
