revision, sorry forgot to put *editable=False, deletable=**False** *if the
condition is not True
def search_shared_services():
* if db.SharedService.created_by==auth.user:*
grid = SQLFORM.smartgrid(db.SharedService,
linked_tables=['SharedServicePartnerIntersection'],
maxtextlength={'SharedServicePartnerIntersection.sharedServiceID':140,
'SharedService.shortSharedServiceTitle':140,'SharedService.shortSharedServiceDescription':140},
*editable=True, deletable=True*)
else:
grid = SQLFORM.smartgrid(db.SharedService,
linked_tables=['SharedServicePartnerIntersection'],
maxtextlength={'SharedServicePartnerIntersection.sharedServiceID':140,
'SharedService.shortSharedServiceTitle':140,'SharedService.shortSharedServiceDescription':140},
*editable=False, deletable=**False*)
return dict(grid=grid)
--
---
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.