Back to index

plone3  3.1.7
isTranslatable.py
Go to the documentation of this file.
00001 ## Script (Python) "isTranslatable"
00002 ##bind container=container
00003 ##bind context=context
00004 ##bind namespace=
00005 ##bind script=script
00006 ##bind subpath=traverse_subpath
00007 ##parameters=
00008 ##title=
00009 ##
00010 from ZODB.POSException import ConflictError
00011 
00012 try :
00013     return context.portal_url.getPortalObject().plone_utils.isTranslatable(context)
00014 except ConflictError:
00015     raise
00016 except:
00017     return 0