Hallo Niphlod, Thanks for your attention to this problemm.
On 10 March 2014 22:03, Niphlod <[email protected]> wrote: unfortunately I can't replicate the issue. The strange thing is that if the > session gets loaded, so **should** groups attached to it (because > update_groups() is called WITHIN login_bare()). > Without any replicable scenario, can you just try to add a few debug lines > on gluon/tools.py within update_groups() to see what's going on ? > I was uncertain how to do that on the server because I normally do all my debugging on my laptop. So I tried the following: def update_groups(self): l = open('/home/www-data/web2py/debug_update_groups', 'a') if not self.user: l.write('No self.user\n') return user_groups = self.user_groups = {} l.write("self.user_groups = %s\n" % repr(user_groups)) if current.session.auth: current.session.auth.user_groups = self.user_groups l.write("current.session.auth.user_groups = %s\n" % repr(user_groups)) table_group = self.table_group() l.write ("table_group = %s\n" % repr(table_group)) table_membership = self.table_membership() l.write("table_membership = %s\n" % repr(table_membership)) memberships = self.db( table_membership.user_id == self.user.id).select() for membership in memberships: l.write("memberships = %s\n" % repr(memberships)) group = table_group(membership.group_id) l.write("group = %s\n" % repr(group)) if group: user_groups[membership.group_id] = group.role l.write("group.role = %s\n" % repr(group.role)) l.close() And no /home/www-data/web2py/debug_update_groups appeared on the system. Does that mean that update_groups was not executed? Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3) -- 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.

