예제 #1
0
    def __init__(self, oid="test", init_transforms=0, **kwargs):
        BaseContent.__init__(self, oid, **kwargs)
        self.portal_transforms = TransformTool()
        if init_transforms:
            from Products.PortalTransforms import transforms

            transforms.initialize(self.portal_transforms)
예제 #2
0
 def manage_afterAdd(self, item, container):
     """ overload manage_afterAdd to finish initialization when the
     transform tool is added
     """
     Folder.manage_afterAdd(self, item, container)
     try:
         initialize(self)
     except TransformException:
         # may fail on copy or zexp import
         pass
예제 #3
0
 def manage_afterAdd(self, item, container):
     """ overload manage_afterAdd to finish initialization when the
     transform tool is added
     """
     Folder.manage_afterAdd(self, item, container)
     try:
         initialize(self)
     except TransformException:
         # may fail on copy or zexp import
         pass
예제 #4
0
 def __init__(self, oid='test', init_transforms=0, **kwargs):
     atapi.BaseContent.__init__(self, oid, **kwargs)
     self.portal_transforms = TransformTool()
     if init_transforms:
         from Products.PortalTransforms import transforms
         transforms.initialize(self.portal_transforms)
예제 #5
0
 def manage_afterAdd(self, item, container):
     """ overload manage_afterAdd to finish initialization when the
     transform tool is added
     """
     Folder.manage_afterAdd(self, item, container)
     transforms.initialize(self)