def afterSetUp(self):
     super(MarshallerTest, self).afterSetUp()
     self.loginPortalOwner()
     registry.manage_addRegistry(self.portal)
     self.tool = getToolByName(self.portal, tool_id)
     self.infile = open(self.input, 'rb+')
     self.portal.invokeFactory(self.type_name, self.type_name.lower())
     self.obj = self.portal._getOb(self.type_name.lower())
Esempio n. 2
0
def install_tool(context):
    tool = getToolByName(context, TOOL_ID, None)
    if tool is not None:
        logger.info('Registry was already installed.')
        return
    portal = getToolByName(context, 'portal_url').getPortalObject()
    registry.manage_addRegistry(portal)
    logger.info('Registry installed sucessfully.')
Esempio n. 3
0
 def afterSetUp(self):
     super(PredicateTest, self).afterSetUp()
     self.loginPortalOwner()
     registry.manage_addRegistry(self.portal)
     self.tool = getToolByName(self.portal, tool_id)
Esempio n. 4
0
 def afterSetUp(self):
     super(ExportTest, self).afterSetUp()
     self.loginAsPortalOwner()
     registry.manage_addRegistry(self.portal)
     self.tool = getToolByName(self.portal, tool_id)
Esempio n. 5
0
 def afterSetUp(self):
     super(BlobMarshallTest, self).afterSetUp()
     self.loginAsPortalOwner()
     registry.manage_addRegistry(self.portal)
     self.tool = getToolByName(self.portal, tool_id)
     self.marshaller = getComponent('atxml')
Esempio n. 6
0
 def afterSetUp(self):
     super(BlobMarshallTest, self).afterSetUp()
     self.loginAsPortalOwner()
     registry.manage_addRegistry(self.portal)
     self.tool = getToolByName(self.portal, tool_id)
     self.marshaller = getComponent('atxml')
 def afterSetUp(self):
     super(DocumentationTest, self).afterSetUp()
     self.loginPortalOwner()
     registry.manage_addRegistry(self.portal)