> --
> You received this message because you are subscribed to the Google Groups "rum-discuss" group.
> To post to this group, send email to rum-d...@googlegroups.com.
> To unsubscribe from this group, send email to rum-discuss...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rum-discuss?hl=en.
>
>
Regarding the username problem.
RUM constructs the form twice
once on the action
edit (form display)
once on
update (validation and update values).
It generates a toscawidgets form, which validates with a formencode Schema.
On of the parameters of this schema is to raise an error when there appear unexpected arguments.
So, I suppose, that two different forms are generated, one with username and one without.
Do you have any customizations, policy, widgets...?
You should provide rum with the same rules for edit and update.
Cheers,
Michael
-------------------------------------------
Dr. rer. nat. Michael Brickenstein
Mathematisches Forschungsinstitut Oberwolfach gGmbH
Schwarzwaldstr. 9 - 11
77709 Oberwolfach
Tel.: 07834/979-31
Fax: 07834/979-38
The explanation is fully correct, but both errors are not specific to your application.
Before christmas I implemented the wonderful 'join'-feature (you will see)
on heavy user requirements and as it
handles common problems in a good way.
Unfortunately, I had to change nearly the complete rum source code
to adapt to the functionality.
While I have already fixed most bugs, these hit me surprisingly.
Many thanks for the bug reports!!!
I hope that I can give an update until the end of the day.
Cheers,
Michael
Thanks again for your feedback and sorry for your inconveniences.
You can find
an update in our repository
or on PYPI
easy_install -U rum
Cheers,
Michael
URL: http://localhost:5000/admin/users/
File '/home/robert/pylons-env/lib/python2.6/site-packages/WebError-0.10.3-py2.6.egg/weberror/evalexception.py',
line 431 in respond
app_iter = self.application(environ, detect_start_response)
File '/home/robert/pylons-env/lib/python2.6/site-packages/Beaker-1.5.4-py2.6.egg/beaker/middleware.py',
line 152 in __call__
return self.wrap_app(environ, session_start_response)
File '/home/robert/pylons-env/lib/python2.6/site-packages/routes/middleware.py',
line 131 in __call__
response = self.app(environ, start_response)
File '/home/robert/pylons-env/lib/python2.6/site-packages/Pylons-1.0-py2.6.egg/pylons/wsgiapp.py',
line 107 in __call__
response = self.dispatch(controller, environ, start_response)
File '/home/robert/pylons-env/lib/python2.6/site-packages/Pylons-1.0-py2.6.egg/pylons/wsgiapp.py',
line 312 in dispatch
return controller(environ, start_response)
File '/media/OS/Users/Robert/workspace/shirtsbyme/shirtsbyme/controllers/admin.py',
line 62 in AdminController
return dynamic_app(req.environ, start_response)
File '/home/robert/pylons-env/lib/python2.6/site-packages/rum/wsgiapp.py',
line 314 in __call__
return self.wsgi_app(environ, start_response)
File '/home/robert/pylons-env/lib/python2.6/site-packages/paste/registry.py',
line 379 in __call__
app_iter = self.application(environ, start_response)
File '/home/robert/pylons-env/lib/python2.6/site-packages/WebError-0.10.3-py2.6.egg/weberror/evalexception.py',
line 235 in __call__
return self.respond(environ, start_response)
File '/home/robert/pylons-env/lib/python2.6/site-packages/WebError-0.10.3-py2.6.egg/weberror/evalexception.py',
line 418 in respond
return self.application(environ, start_response)
File '/home/robert/pylons-env/lib/python2.6/site-packages/repoze/tm/__init__.py',
line 23 in __call__
result = self.application(environ, save_status_and_headers)
File '/home/robert/pylons-env/lib/python2.6/site-packages/tw/core/middleware.py',
line 43 in __call__
return self.wsgi_app(environ, start_response)
File '/home/robert/pylons-env/lib/python2.6/site-packages/tw/core/middleware.py',
line 68 in wsgi_app
resp = req.get_response(self.application)
File '/home/robert/pylons-env/lib/python2.6/site-packages/webob/request.py',
line 937 in get_response
application, catch_exc_info=False)
File '/home/robert/pylons-env/lib/python2.6/site-packages/webob/request.py',
line 906 in call_application
app_iter = application(self.environ, start_response)
File '/home/robert/pylons-env/lib/python2.6/site-packages/rum/wsgiapp.py',
line 325 in wsgi_app
return self.dispatch(request)(environ, start_response)
File '/home/robert/pylons-env/lib/python2.6/site-packages/rum/router.py',
line 23 in __call__
return next_app(environ, start_response)
File '/home/robert/pylons-env/lib/python2.6/site-packages/rum/controller.py',
line 98 in __call__
output = self.call_action(routes)
File '<generated code>', line ? in call_action
File '/home/robert/pylons-env/lib/python2.6/site-packages/rum/controller.py',
line 592 in _initialize_repository
return next_method(self, routes)
File '/home/robert/pylons-env/lib/python2.6/site-packages/rum/controller.py',
line 560 in _validate_input
validator = self._get_view(routes)
File '/home/robert/pylons-env/lib/python2.6/site-packages/rum/controller.py',
line 263 in _get_view
routes_['fields']=self.fields
AttributeError: 'CRUDController' object has no attribute 'fields'