On Apr 4, 2006, at 6:19 PM, [EMAIL PROTECTED] wrote:

> and decorator @ is not supported in python 2.3.x

Correct, instead of:

@pylons.rest.restrict('POST')
def something(self):

You will need

def something(self):
     #stuff here
something = pylons.rest.restrict('POST')(something)

I'm not sure how it "became complex" since it didn't exist earlier.  
It went from not existing, to having a fairly easy decorator to  
either restrict what method is accepted, or change the dispatch.

HTH,
Ben

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss
-~----------~----~----~----~------~----~------~--~---

Reply via email to