Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: nh2 <[email protected]>
Sender: [email protected]
Date: Mon, 3 Jan 2011 08:03:13 
To: TurboGears<[email protected]>
Reply-To: [email protected]
Subject: [TurboGears] Disable controller with decorator

How would you write a decorator that checks a predicate (e.g. a
MY_FEATURE_ENABLED=False bool in the configuration or
does_this_feature_work_today() function) and based on that executes
the controller or throws something like HTTP 501 Not implemented or
whatever custom error?

Is something like this already there in Turbogears 2.1?

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

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