def _my_method(self, **kwargs):
       # do stuff


   @expose()
   def my_method(self, **kwargs):
      return self._my_method(**kwargs)

Of course, it's not that I hadn't considered this method. Something
about it just grated on me. But you're right: it probably is cleaner,
especially when you try to define what happens if you navigate to
http://mysite.com/my_method?tg_format=python


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