Changeset 3430 in products


Ignore:
Timestamp:
Apr 19, 2012 11:31:07 AM (8 years ago)
Author:
vmaksymiv
Message:

merged changes from http://svn.quintagroup.com/products/quintagroup.pfg.captcha/branches/broken_types.

Location:
quintagroup.pfg.captcha/trunk
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.pfg.captcha/trunk

    • Property svn:mergeinfo
      •  

        old new  
         1/quintagroup.pfg.captcha/branches/broken_types:3424-3429 
        12/quintagroup.pfg.captcha/branches/migration:2711-2735 
  • quintagroup.pfg.captcha/trunk/quintagroup/pfg/captcha/field.py

    r3168 r3430  
    3737 
    3838def addCaptchaField(self, id, **kwargs): 
    39     id = CAPTCHA_ID 
    4039    obj = CaptchaField(id) 
    4140    notify(ObjectCreatedEvent(obj)) 
     
    4948class CaptchaField(FGStringField): 
    5049 
    51     _at_rename_after_creation = False 
     50    _at_rename_after_creation = True 
    5251    schema = CaptchaFieldSchema 
    5352 
  • quintagroup.pfg.captcha/trunk/quintagroup/pfg/captcha/tests/testInstalled.py

    r3168 r3430  
    6161        self.folder.invokeFactory('FormFolder', 'ff1') 
    6262        self.ff1 = getattr(self.folder, 'ff1') 
    63         self.ff1.invokeFactory('CaptchaField', 'captcha_field') 
    64  
    65     def testId(self): 
    66         """CaptchaField has always CAPTCHA_ID id.""" 
    67         self.assertEqual(CAPTCHA_ID in self.ff1, True) 
    68         self.assertNotEqual('captcha_field' in self.ff1, True) 
     63        self.ff1.invokeFactory('CaptchaField', CAPTCHA_ID) 
    6964 
    7065    def testSchema(self): 
  • quintagroup.pfg.captcha/trunk/quintagroup/pfg/captcha/tests/testMigration.py

    r3212 r3430  
    11import unittest 
     2from quintagroup.pfg.captcha.field import CAPTCHA_ID 
    23from quintagroup.pfg.captcha.tests.base import TestCaseNotInstalled, \ 
    34    REQUIREMENTS 
     
    4243        self.portal.invokeFactory("FormFolder", 'test_form') 
    4344        test_form = self.portal['test_form'] 
    44         test_form.invokeFactory("CaptchaField", 'test_captcha_field') 
     45        test_form.invokeFactory("CaptchaField", CAPTCHA_ID) 
    4546        self.cf_path = "test_form/key" 
    4647        self.old_cf = self.portal.unrestrictedTraverse(self.cf_path) 
Note: See TracChangeset for help on using the changeset viewer.