Raj schrieb:
> I am storing all the allowed IP addresses inside a look up table. So,
> I need to provide dynamic data within the from_host() function like
> from_host(ipaddresslist)

You can check against a list of IP addresses with the 
identity.from_any_host(hostlist) predicate. But the 'hostlist' iterator 
will be consumed at instantiation time of the predicate, so providin a 
dynamic hostlist is no use. For this you have to write your own identity 
predicate. This isn't difficult. Look at the source of 
turbogears.identity.conditions and the docs here:

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

HTH, 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