Opened 23 months ago

#1 new defect

error when attempting to add additional section to a recipe

Reported by: megan@… Owned by: somebody
Priority: major Milestone:
Component: component1 Version:
Keywords: Cc:

Description

I also have a print out.

TypeError?
TypeError?: write_auth() takes exactly 1 argument (2 given)

Traceback (most recent call last)
File "/home/insertmeal/webapps/imh/lib/python2.7/site-packages/tg/wsgiapp.py", line 105, in call
response = self.wrapped_dispatch(controller, environ, context)
File "/home/insertmeal/webapps/imh/lib/python2.7/site-packages/tgext.mailer-0.0.1-py2.7.egg/tgext/mailer/plugmailer.py", line 56, in call
return self.dispatcher(controller, environ, context)
File "/home/insertmeal/webapps/imh/lib/python2.7/site-packages/tg/wsgiapp.py", line 278, in dispatch
return controller(environ, context)
File "/home/insertmeal/webapps/imh/insertmealhere/insertmealhere/lib/base.py", line 30, in call
return TGController.call(self, environ, context)
File "/home/insertmeal/webapps/imh/lib/python2.7/site-packages/tg/controllers/dispatcher.py", line 132, in call
response = self._perform_call(context)
File "/home/insertmeal/webapps/imh/lib/python2.7/site-packages/tg/controllers/dispatcher.py", line 113, in _perform_call
r = self._call(func, params, remainder=remainder, context=context)
File "/home/insertmeal/webapps/imh/lib/python2.7/site-packages/tg/controllers/decoratedcontroller.py", line 120, in _call
output = controller_caller(context_config, bound_controller_callable, remainder, params)
File "/home/insertmeal/webapps/imh/lib/python2.7/site-packages/tg/decorators.py", line 41, in _decorated_controller_caller
return application_controller_caller(tg_config, controller, remainder, params)
File "/home/insertmeal/webapps/imh/lib/python2.7/site-packages/tgext/pluggable/i18n.py", line 22, in _add_pluggable_translations
return next_caller(config, controller, remainder, params)
File "/home/insertmeal/webapps/imh/lib/python2.7/site-packages/tg/configuration/app_config.py", line 124, in call_controller
return controller(*remainder, params)
File "/home/insertmeal/webapps/imh/insertmealhere/insertmealhere/controllers/recipe_controller.py", line 349, in save_section
if not rep.write_auth(user.user_id): # make sure that the user can add to this recipe
TypeError?: write_auth() takes exactly 1 argument (2 given)
The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.
To switch between the interactive traceback and the plaintext one, you can click on the "Traceback" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.

You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:

dump() shows all variables in the frame
dump(obj) dumps all that's known about the object
ctx the context of the failed request
Backlash, using the Werkzeug Debugger.

Change History (0)

Note: See TracTickets for help on using tickets.