TurboGears / tg2

Python web framework with full-stack layer implemented on top of a microframework core with support for SQL DBMS, MongoDB and Pluggable Applications
http://www.turbogears.org/
Other
806 stars 78 forks source link

Add http verb based predicates #5

Closed pedersen closed 9 years ago

pedersen commented 12 years ago

This issue existed in Trac. The original can be viewed at http://trac.turbogears.org/ticket/2231

This issue existed on SourceForge. The original can be viewed at https://sourceforge.net/p/turbogears2/tickets/60

pedersen commented 12 years ago

Original Author: pedersen, Original Timestamp: 2011-03-29 01:58:30.416000

Original Body: It will be great if we could have http verb predicates.

Use cases,

You want a subset of your users have read-only access to a section of your site. (ie, view admin but not edit it)

Or you want to make your site 100% private.


02/21/09 07:30:28 changed by mramm

This will likely not make it into b6, but if it's just new predicates and the're well tested it could go into one of the RC's I suppose. Otherwise it'll be 2.1.

pedersen commented 12 years ago

Original Author: pedersen, Original Timestamp: 2012-08-24 01:40:50.528000

Original Body: - version: 2.1.0 --> 2.1.5

amol- commented 9 years ago

It's not really clear to me what they should do.

Suppose you want to limit the access to only GET for some users that can be easily done using the @require decorator over a RestController. So what should the verb predicates do?

amol- commented 9 years ago

Got no feedbacks on this, please re-open if still meaningful