*('Admin', False, URL('admin')) if (auth.user_id != None) and
((auth.has_membership(role = 'admin'))) else None*
it's not worked it raise an error :
TypeError: 'NoneType' object is not subscriptable
should be
*('Admin', False, URL('admin')) if (auth.user_id != None) and
((auth.has_membership(role = 'admin'))) else **('', False, **False**)*
*
*
or
sub_menu = []
if (auth.user_id != None) and ((auth.has_membership(role = 'admin'))):
sub_menu = [('Admin', False, URL('admin')), ]
should be
sub_menu = [('', False, False), ]
if (auth.user_id != None) and ((auth.has_membership(role = 'admin'))):
sub_menu = [('Admin', False, URL('admin')), ]
but it will leave an empty little space under the last menu 'Cut Charge
Tables'
any idea how to make it clean?
thanks and best regards,
stifan
--
---
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.