[Zope-Checkins]
SVN: Zope/trunk/lib/python/AccessControl/requestmethod.py
Add backward compatible postonly decorator
Martijn Pieters
mj at zopatista.com
Tue Mar 20 05:54:38 EDT 2007
Log message for revision 73395:
Add backward compatible postonly decorator
Changed:
U Zope/trunk/lib/python/AccessControl/requestmethod.py
-=-
Modified: Zope/trunk/lib/python/AccessControl/requestmethod.py
===================================================================
--- Zope/trunk/lib/python/AccessControl/requestmethod.py 2007-03-20 09:34:33 UTC (rev 73394)
+++ Zope/trunk/lib/python/AccessControl/requestmethod.py 2007-03-20 09:54:37 UTC (rev 73395)
@@ -72,4 +72,6 @@
return _methodtest
-__all__ = ('requestmethod',)
+postonly = requestmethod('POST')
+
+__all__ = ('requestmethod', 'postonly')
More information about the Zope-Checkins
mailing list