# set a method to be publically accessible - all TTW code can
# call this directly
security.declarePublic('publicMethod')
def publicMethod(self):
# ... (docstring and method body)
# set a method to be private - no TTW code can call this directly
security.declarePrivate('privateMethod')
def privateMethod(self):
# ... (docstring and method body)
# set a method to be protected by a given permission.
# Only users with this permission in the context can call
security.declareProtecte(CMFCorePermissions.View, 'protectedMethod')
def protectedMethod(self):
# ... (docstring and method body)