Changeset 1279
- Timestamp:
- 04/18/08 18:49:29 (8 months ago)
- Files:
-
- pleiades.policy/trunk/pleiades/policy/Extensions/Install.py (modified) (1 diff)
- pleiades.policy/trunk/pleiades/policy/configure.zcml (modified) (1 diff)
- pleiades.policy/trunk/pleiades/policy/tests/base.py (modified) (2 diffs)
- pleiades.policy/trunk/pleiades/policy/tests/test_setup.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
pleiades.policy/trunk/pleiades/policy/Extensions/Install.py
r1271 r1279 2 2 from Products.CMFCore.utils import getToolByName 3 3 4 PRODUCT_DEPENDENCIES = ('ATVocabularyManager', 'PleiadesEntity', 'pleiades.vocabulary') 4 PRODUCT_DEPENDENCIES = ( 5 'ATVocabularyManager', 6 'PleiadesEntity', 7 'pleiades.vocabulary', 8 'pleiades.theme' 9 ) 5 10 6 11 EXTENSION_PROFILES = ('pleiades.policy:default',) pleiades.policy/trunk/pleiades/policy/configure.zcml
r1271 r1279 6 6 > 7 7 8 <include package="pleiades.theme"/> 8 9 <include package="pleiades.vocabulary"/> 9 10 pleiades.policy/trunk/pleiades/policy/tests/base.py
r1271 r1279 29 29 ztc.installProduct('pleiades.policy') 30 30 ztc.installProduct('pleiades.vocabulary') 31 ztc.installProduct('pleiades.theme') 31 32 32 33 # The order here is important: We first call the (deferred) function which … … 35 36 36 37 setup_pleiades_policy() 37 ptc.setupPloneSite(products=['ATVocabularyManager', 'PleiadesEntity', 'pleiades.policy']) 38 ptc.setupPloneSite( 39 products=['ATVocabularyManager', 'PleiadesEntity', 'pleiades.policy'] 40 ) 38 41 39 42 class PleiadesPolicyTestCase(ptc.PloneTestCase): pleiades.policy/trunk/pleiades/policy/tests/test_setup.py
r1271 r1279 32 32 self.portal.permissionsOfRole('Reader') if r['selected']]) 33 33 34 def test_ structure(self):34 def test_policy_structure(self): 35 35 self.failUnless('disclaimer' in self.portal.keys()) 36 36 self.failUnless('front-page' in self.portal.keys()) … … 40 40 self.failUnless('places' in self.portal.keys()) 41 41 42 def test_vocabulary_ installed(self):42 def test_vocabulary_setup(self): 43 43 self.failUnless('vocabulary' in self.portal.keys()) 44 45 def test_theme_setup(self): 44 46 skins = getToolByName(self.portal, 'portal_skins') 45 layer = skins.getSkinPath('Pleiades Vocabulary') 46 self.failUnless('pleiades_vocabulary_custom_templates' in layer) 47 47 layer = skins.getSkinPath('Pleiades Theme') 48 self.failUnless('pleiades_theme_custom_images' in layer) 49 self.failUnless('pleiades_theme_custom_templates' in layer) 50 self.failUnless('pleiades_theme_styles' in layer) 48 51 49 52 def test_suite():
