Commit 4ede85da authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki
parent 4f0015b0
...@@ -183,7 +183,7 @@ class Transform(SimpleItem): ...@@ -183,7 +183,7 @@ class Transform(SimpleItem):
self._load_transform() self._load_transform()
return self._v_transform.__doc__ return self._v_transform.__doc__
security.declarePublic('get_documentation') security.declarePrivate('convert')
def convert(self, *args, **kwargs): def convert(self, *args, **kwargs):
""" return apply the transform and return the result """ """ return apply the transform and return the result """
if not hasattr(self, '_v_transform'): if not hasattr(self, '_v_transform'):
......
...@@ -76,6 +76,7 @@ class TransformTool(UniqueObject, ActionProviderBase, Folder): ...@@ -76,6 +76,7 @@ class TransformTool(UniqueObject, ActionProviderBase, Folder):
# mimetype oriented conversions (iengine interface) # mimetype oriented conversions (iengine interface)
security.declarePrivate('unregisterTransform')
def unregisterTransform(self, name): def unregisterTransform(self, name):
""" unregister a transform """ unregister a transform
name is the name of a registered transform name is the name of a registered transform
...@@ -85,6 +86,7 @@ class TransformTool(UniqueObject, ActionProviderBase, Folder): ...@@ -85,6 +86,7 @@ class TransformTool(UniqueObject, ActionProviderBase, Folder):
self._delObject(name) self._delObject(name)
security.declarePrivate('convertTo')
def convertTo(self, target_mimetype, orig, data=None, object=None, def convertTo(self, target_mimetype, orig, data=None, object=None,
usedby=None, context=None, **kwargs): usedby=None, context=None, **kwargs):
"""Convert orig to a given mimetype """Convert orig to a given mimetype
...@@ -587,6 +589,7 @@ class TransformTool(UniqueObject, ActionProviderBase, Folder): ...@@ -587,6 +589,7 @@ class TransformTool(UniqueObject, ActionProviderBase, Folder):
# mimetype oriented conversions (iengine interface) # mimetype oriented conversions (iengine interface)
security.declarePrivate('registerTransform')
def registerTransform(self, transform): def registerTransform(self, transform):
"""register a new transform """register a new transform
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment