My application was set this way for a long time, so when users were added a
user specific group is added, even though I don't use these individual
groups - I have groups defined for roles like "accounting", "admin", etc.
It has been some time since a new user was added, and web2py has been
updated to current version 2.3.2. When adding a new user web2py fails:
Traceback
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
Traceback (most recent call last):
File "C:\Documents and Settings\David Manns\My
Documents\ocsnedb\gluon\restricted.py", line 212, in restricted
exec ccode in environment
File "C:/Documents and Settings/David Manns/My
Documents/ocsnedb/applications/init/controllers/default.py"
<http://127.0.0.1:8000/admin/default/edit/init/controllers/default.py>, line
2228, in <module>
File "C:\Documents and Settings\David Manns\My
Documents\ocsnedb\gluon\globals.py", line 193, in <lambda>
self._caller = lambda f: f()
File "C:/Documents and Settings/David Manns/My
Documents/ocsnedb/applications/init/controllers/default.py"
<http://127.0.0.1:8000/admin/default/edit/init/controllers/default.py>, line
2209, in user
return dict(form=auth())
File "C:\Documents and Settings\David Manns\My
Documents\ocsnedb\gluon\tools.py", line 1240, in __call__
return getattr(self, args[0])()
File "C:\Documents and Settings\David Manns\My
Documents\ocsnedb\gluon\tools.py", line 2257, in register
self.settings.create_user_groups % form.vars, description)
TypeError: unsupported operand type(s) for %: 'bool' and 'Storage'
If I modify the model to set create_user_groups = False, registration
works (and of course does not create a user specific group). So this
workaround is fine for me, but its still a bug!
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.