Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
10c9f862
Commit
10c9f862
authored
Apr 03, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_credential: fix wrongly configured properties
parent
4320819e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
9 deletions
+38
-9
bt5/erp5_credential/PropertySheetTemplateItem/portal_property_sheets/CredentialOrganisationProperties/organisation_default_address_property.xml
...ationProperties/organisation_default_address_property.xml
+4
-4
bt5/erp5_credential/PropertySheetTemplateItem/portal_property_sheets/CredentialOrganisationProperties/organisation_default_telephone_property.xml
...ionProperties/organisation_default_telephone_property.xml
+4
-4
bt5/erp5_credential/bt/revision
bt5/erp5_credential/bt/revision
+1
-1
product/ERP5/tests/testERP5Credential.py
product/ERP5/tests/testERP5Credential.py
+29
-0
No files found.
bt5/erp5_credential/PropertySheetTemplateItem/portal_property_sheets/CredentialOrganisationProperties/organisation_default_address_property.xml
View file @
10c9f862
...
@@ -50,9 +50,7 @@
...
@@ -50,9 +50,7 @@
<item>
<item>
<key>
<string>
acquisition_base_category
</string>
</key>
<key>
<string>
acquisition_base_category
</string>
</key>
<value>
<value>
<tuple>
<tuple/>
<string>
region
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
@@ -71,7 +69,9 @@
...
@@ -71,7 +69,9 @@
</item>
</item>
<item>
<item>
<key>
<string>
acquisition_portal_type
</string>
</key>
<key>
<string>
acquisition_portal_type
</string>
</key>
<value>
<string>
python: (\'Category\',)
</string>
</value>
<value>
<none/>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
acquisition_sync_value
</string>
</key>
<key>
<string>
acquisition_sync_value
</string>
</key>
...
...
bt5/erp5_credential/PropertySheetTemplateItem/portal_property_sheets/CredentialOrganisationProperties/organisation_default_telephone_property.xml
View file @
10c9f862
...
@@ -50,9 +50,7 @@
...
@@ -50,9 +50,7 @@
<item>
<item>
<key>
<string>
acquisition_base_category
</string>
</key>
<key>
<string>
acquisition_base_category
</string>
</key>
<value>
<value>
<tuple>
<tuple/>
<string>
region
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
@@ -71,7 +69,9 @@
...
@@ -71,7 +69,9 @@
</item>
</item>
<item>
<item>
<key>
<string>
acquisition_portal_type
</string>
</key>
<key>
<string>
acquisition_portal_type
</string>
</key>
<value>
<string>
python: (\'Category\',)
</string>
</value>
<value>
<none/>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
acquisition_sync_value
</string>
</key>
<key>
<string>
acquisition_sync_value
</string>
</key>
...
...
bt5/erp5_credential/bt/revision
View file @
10c9f862
420
421
\ No newline at end of file
\ No newline at end of file
product/ERP5/tests/testERP5Credential.py
View file @
10c9f862
...
@@ -136,6 +136,7 @@ class TestERP5Credential(ERP5TypeTestCase):
...
@@ -136,6 +136,7 @@ class TestERP5Credential(ERP5TypeTestCase):
'site/dakar'
,
'site/dakar'
,
'site/paris'
,
'site/paris'
,
'site/tokyo'
,
'site/tokyo'
,
'region/europe/fr'
,
)
)
def
beforeTearDown
(
self
):
def
beforeTearDown
(
self
):
...
@@ -1359,6 +1360,34 @@ class TestERP5Credential(ERP5TypeTestCase):
...
@@ -1359,6 +1360,34 @@ class TestERP5Credential(ERP5TypeTestCase):
sequence_list.addSequenceString(sequence_string)
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
sequence_list.play(self)
def test_credential_request_properties(self):
# test to prevent regression with a bug in property sheet definition
cr = self.portal.credential_request_module.newContent(
portal_type='Credential Request')
self.assertEquals(cr.getDefaultAddressCity(), None)
self.assertEquals(cr.getDefaultAddressRegion(), None)
self.assertEquals(cr.getOrganisationDefaultAddressCity(), None)
self.assertEquals(cr.getOrganisationDefaultAddressRegion(), None)
cr.setDefaultAddressRegion('europe/fr')
self.assertEquals(cr.getDefaultAddressCity(), None)
self.assertEquals(cr.getDefaultAddressRegion(), 'europe/fr')
self.assertEquals(cr.getOrganisationDefaultAddressCity(), None)
self.assertEquals(cr.getOrganisationDefaultTelephoneText(), None)
self.assertEquals(cr.getOrganisationDefaultAddressRegion(), None)
cr.deleteContent('default_address')
cr.setOrganisationDefaultAddressCity('Lille')
cr.setOrganisationDefaultAddressRegion('europe/fr')
self.assertEquals(cr.getOrganisationDefaultAddressCity(), 'Lille')
self.assertEquals(cr.getOrganisationDefaultAddressRegion(), 'europe/fr')
self.assertEquals(cr.getDefaultAddressCity(), None)
self.assertEquals(cr.getDefaultAddressRegion(), None)
def test_suite():
def test_suite():
suite = unittest.TestSuite()
suite = unittest.TestSuite()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment