Jorge Vargas wrote: > On 10/14/06, Kevin Dangoor <[EMAIL PROTECTED]> wrote: > > > > if not getattr(method[1], "exposed", False) > > > > we do indeed set exposed on exposed methods (otherwise CP would > > ignore them) > > > umm why it doesn't works? as method[1].exposed? I guess CP does > something more then just setting a flag. >
CP just looks for the presence of exposed=True. I think you're getting problem by accessing directly method[1].exposed since *only* exposed method have this attribute (usually with a True value) that's why you should use a failsafe solution like getattr since you may find other methods that lacks it. Ciao Michele --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" group. To post to this group, send email to turbogears-trunk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears-trunk -~----------~----~----~----~------~----~------~--~---