Back to index

plone3  3.1.7
Namespaces | Functions
CMFEditions.tests Namespace Reference

Namespaces

namespace  DummyTools
namespace  FAQ
namespace  test_ArchivistTool
namespace  test_ATContentTypes
namespace  test_ATReferences
namespace  test_ContentTypes
namespace  test_CopyModifyMergeRepositoryTool
namespace  test_doctests
namespace  test_FAQ
namespace  test_IntegrationTests
namespace  test_KeepLastNVersionsTool
namespace  test_ModifierRegistryTool
namespace  test_ZVCStorageTool

Functions

def installProduct

Detailed Description

\
Unit test package for CMFEditions

Function Documentation

def CMFEditions.tests.installProduct (   portal,
  name,
  optional = False 
)
Use this to optionaly load products.

Returns True if a product could be installed.

Definition at line 5 of file __init__.py.

00005 
00006 def installProduct(portal, name, optional=False):
00007     """Use this to optionaly load products.
00008     
00009     Returns True if a product could be installed.
00010     """
00011     quickinstaller = portal.portal_quickinstaller
00012     if optional:
00013         try:
00014             quickinstaller.installProduct(name)
00015         except AttributeError:
00016             return False
00017     else:
00018         quickinstaller.installProduct(name)
00019     return True

Here is the caller graph for this function: