Hello

 I want to fill the options of a singleselect field based on the
identity.group
 a user belongs too:

 something like :

  def myoptions():
           s=[]
           if not ("ADMINGROUP" in identity.current.groups):
                            s=['Revised','Wait','Cancel','Message']
           else :
                            s=['OK','Processing','Message','Revised','Wait','No
Funds','Cancel']

           return s

  I looked into the docs and tried  to put the function into a class
like suggested:

  class MyController(controllers.Controller, identity.SecureResource):

  which results in :

  AttributeError: SecureResource requires a require attribute either
on the controller
  class itself or in the config file


  What am I missing here?
  Thanks for any ideas.


--~--~---------~--~----~------------~-------~--~----~
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