Chris B - JK at asciiking dot com wrote:
> # this code is a quite complete copy/paste from turbogears 1 identity
> class Predicate(object):
>     """Generic base class for testing true or false for a condition.
>     """
>     def eval_with_object(self, obj, errors=None):
>         """Determine whether the predicate is True or False for the
> given object.
>         """
>         raise NotImplementedError
> 
> 
> Does this mean that what I'm looking for in terms of being able to
> apply a given permission to a subset of data on the site is
> incomplete?

This is only an abstract base class. Read the full module source code
for predicate classes that implement the eval_with_object method in
various ways.

> Are there any Docs on writing for this module? If so, I'd like to take
> a closer look.

http://docs.turbogears.org/1.0/UsingIdentity

Chris

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to