Hi, folks, this is in my controller:
if not dash_list:
# create a new dashboard
d_id = db.dashboard.insert(
name=T('My Dashboard', lazy=False), item_list=[])
query = (db.dashboard.id > 0)
query &= (db.dashboard.created_by == auth.user.id)
dash_list = db(query).select(db.dashboard.ALL)
auth.add_permission(0, 'owner', db.dashboard, d_id)
The logic is simple, if there is not a dashboard create one called "My
dashboard". The problem comes from not English users, they get the
same name.
I have verified the languages files, and the accepted language
header, all is fine, in the shell it work's correctly - prior setting
the language oc.
Some idea ?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
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/d/optout.