Commit 6271d9f9 authored by Łukasz Nowak's avatar Łukasz Nowak

Merge remote-tracking branch 'origin/master' into lazy_simulation_causality

parents f7dc56af 9e31191f
......@@ -102,6 +102,7 @@
<string>my_reference</string>
<string>my_version</string>
<string>my_trade_phase_list</string>
<string>my_same_total_quantity</string>
</list>
</value>
</item>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>my_same_total_quantity</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_checkbox</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>edit_order</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>enctype</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>group_list</string> </key>
<value>
<list>
<string>left</string>
</list>
</value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
<dictionary>
<item>
<key> <string>left</string> </key>
<value>
<list/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Solver_viewConfigurationFormBox</string> </value>
</item>
<item>
<key> <string>method</string> </key>
<value> <string>POST</string> </value>
</item>
<item>
<key> <string>name</string> </key>
<value> <string>Solver_viewConfiguration</string> </value>
</item>
<item>
<key> <string>pt</string> </key>
<value> <string>embedded_form_render</string> </value>
</item>
<item>
<key> <string>row_length</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>stored_encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Configuration</string> </value>
</item>
<item>
<key> <string>unicode_mode</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>update_action</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>update_action_title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
167
\ No newline at end of file
168
\ No newline at end of file
......@@ -90,7 +90,7 @@
</item>
<item>
<key> <string>configuration_form_id</string> </key>
<value> <string>Solver_viewConfigurationFormBox</string> </value>
<value> <string>GenericSolver_viewConfigurationFormBox</string> </value>
</item>
<item>
<key> <string>configuration_property_list</string> </key>
......
......@@ -109,7 +109,7 @@
</item>
<item>
<key> <string>configuration_form_id</string> </key>
<value> <string>Solver_viewConfigurationFormBox</string> </value>
<value> <string>GenericSolver_viewConfigurationFormBox</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......
......@@ -90,7 +90,7 @@
</item>
<item>
<key> <string>configuration_form_id</string> </key>
<value> <string>Solver_viewConfigurationFormBox</string> </value>
<value> <string>GenericSolver_viewConfigurationFormBox</string> </value>
</item>
<item>
<key> <string>configuration_property_list</string> </key>
......
......@@ -111,7 +111,7 @@
</item>
<item>
<key> <string>configuration_form_id</string> </key>
<value> <string>Solver_viewConfigurationFormBox</string> </value>
<value> <string>GenericSolver_viewConfigurationFormBox</string> </value>
</item>
<item>
<key> <string>configuration_groupable</string> </key>
......
......@@ -80,7 +80,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Solver_viewConfigurationFormBox</string> </value>
<value> <string>GenericSolver_viewConfigurationFormBox</string> </value>
</item>
<item>
<key> <string>method</string> </key>
......
......@@ -231,7 +231,7 @@ class PortalTypeMetaClass(GhostBaseMetaClass, PropertyHolder):
cls.loadClass()
return getattr(cls, name)
raise AttributeError
raise AttributeError("'%r' has no attribute '%s'" % (cls, name))
def generatePortalTypeAccessors(cls, site, portal_type_category_list):
category_tool = getattr(site, 'portal_categories', None)
......
......@@ -522,6 +522,16 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase):
self.assertEquals(set(a), set(b), msg)
assertSameSet = failIfDifferentSet
def assertHasAttribute(self, obj, attribute, msg=None):
self.failIfEqual(None, getattr(obj, attribute, None),
msg or "'%r': no attribute '%s'" % (obj,
attribute))
def failIfHasAttribute(self, obj, attribute, msg=None):
self.assertEquals(None, getattr(obj, attribute, None),
msg or "'%r': attribute '%s' present" % (obj,
attribute))
def assertWorkflowTransitionFails(self, object, workflow_id, transition_id,
error_message=None, state_variable='simulation_state'):
"""
......
......@@ -616,16 +616,6 @@ class TestZodbPropertySheet(ERP5TypeTestCase):
transaction.commit()
self.test_module.getId()
def assertHasAttribute(self, obj, attribute, msg=None):
self.failIfEqual(None, getattr(obj, attribute, None),
msg or '%s: no attribute %s' % (obj.__name__,
attribute))
def failIfHasAttribute(self, obj, attribute, msg=None):
self.assertEquals(None, getattr(obj, attribute, None),
msg or '%s: attribute %s present' % (obj.__name__,
attribute))
def testAssignUnassignZodbPropertySheet(self):
"""
From an existing portal type, assign ZODB Property Sheets and
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment