Changeset 3212 in products for quintagroup.pfg.captcha
- Timestamp:
- May 4, 2011 11:24:37 AM (13 years ago)
- Location:
- quintagroup.pfg.captcha/trunk/quintagroup/pfg/captcha/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.pfg.captcha/trunk/quintagroup/pfg/captcha/tests/base.py
r3168 r3212 52 52 # Install PROJECT 53 53 qi = getattr(portal, 'portal_quickinstaller', None) 54 qi.installProduct("quintagroup.pfg.captcha") 54 for p in REQUIREMENTS: 55 if not qi.isProductInstalled(p): 56 qi.installProduct(p) 55 57 transaction.commit() 56 58 -
quintagroup.pfg.captcha/trunk/quintagroup/pfg/captcha/tests/testMigration.py
r3168 r3212 1 1 import unittest 2 from quintagroup.pfg.captcha.tests.base import TestCaseNotInstalled 2 from quintagroup.pfg.captcha.tests.base import TestCaseNotInstalled, \ 3 REQUIREMENTS 3 4 4 5 … … 35 36 def prepareToMigration(self): 36 37 # Install types 37 self.addProduct("quintagroup.pfg.captcha") 38 for p in REQUIREMENTS: 39 if not self.qi.isProductInstalled(p): 40 self.qi.installProduct(p) 38 41 # Add captcha field 39 42 self.portal.invokeFactory("FormFolder", 'test_form')
Note: See TracChangeset
for help on using the changeset viewer.