Hi!
@Suggestion 4:
- it doesn't become very clear to the user by reading the code, that
tg.acess.has_permission('edit')
is actually something different than importing the permission class in
the template and using
has_permission('edit')

- Moreover it really suggests repeat yourself.
So defining the permission somewhere, decorating the controller with
it and
importing the permission itself in the template would be discouraged.

I would really appreciate to hear more opionions regarding the topic,
as all
solutions are somehow imperfect.
Michael

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to