Back to index

plone3  3.1.7
at_isEditable.py
Go to the documentation of this file.
00001 ## Script (Python) "at_isEditable"
00002 ##title=Check if an at object is editable
00003 ##bind container=container
00004 ##bind context=context
00005 ##bind namespace=
00006 ##bind script=script
00007 ##bind subpath=traverse_subpath
00008 ##parameters=fields
00009 
00010 # the script is assuming that an object is editable if the given field list is
00011 # not empty
00012 if len(fields) == 0:
00013     from AccessControl import Unauthorized
00014     raise Unauthorized, context