Commit d8b0a4d3 authored by Łukasz Nowak's avatar Łukasz Nowak

Store enabled global *site* preferences in BT5.

parent 52c12238
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Preference" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Access_contents_information_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Auditor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Add_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Delete_objects_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_View_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Auditor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_count</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_local_properties</string> </key>
<value>
<tuple>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>preferred_accounting_transaction_gap_root</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>preferred_quantity_field_width</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>preferred_money_quantity_field_width</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key> <string>_mt_index</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>_tree</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>contributors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>The default parameters for the site are set on this preference.\n
It\'s the lowest priority one; ie. managers can create higher priority preference for a group of users and users can create individals (per user) preferences that will be top level priority.</string> </value>
</item>
<item>
<key> <string>effective_date</string> </key>
<value>
<object>
<klass>
<global id="1.1" name="DateTime" module="DateTime.DateTime"/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>978325200.0</float>
<string>US/Eastern</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key> <string>expiration_date</string> </key>
<value>
<object>
<klass> <reference id="1.1"/> </klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>253402146000.0</float>
<string>US/Eastern</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key> <string>format</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>vifib_default_site_preference</string> </value>
</item>
<item>
<key> <string>id_group</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>language</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Preference</string> </value>
</item>
<item>
<key> <string>preferred_accounting_transaction_at_date</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>preferred_accounting_transaction_currency</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>preferred_accounting_transaction_from_date</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>preferred_accounting_transaction_gap</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>preferred_accounting_transaction_gap_root</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>preferred_accounting_transaction_section_category</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>preferred_accounting_transaction_simulation_state</string> </key>
<value>
<tuple>
<string>stopped</string>
<string>delivered</string>
</tuple>
</value>
</item>
<item>
<key> <string>preferred_accounting_transaction_source_section</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>preferred_campaign_resource</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>preferred_category_child_item_list_method_id</string> </key>
<value> <string>getCategoryChildTranslatedLogicalPathItemList</string> </value>
</item>
<item>
<key> <string>preferred_date_order</string> </key>
<value> <string>ymd</string> </value>
</item>
<item>
<key> <string>preferred_document_file_name_regular_expression</string> </key>
<value> <string encoding="cdata"><![CDATA[
(?P<reference>[A-Z&é@{]{3,7})-(?P<language>[a-z]{2})-(?P<version>[0-9]{3})
]]></string> </value>
</item>
<item>
<key> <string>preferred_document_reference_regular_expression</string> </key>
<value> <string encoding="cdata"><![CDATA[
(?P<reference>[A-Z&é@{]{3,7})(-(?P<language>[a-z]{2}))?(-(?P<version>[0-9]{3}))?
]]></string> </value>
</item>
<item>
<key> <string>preferred_event_assessment_form_id</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>preferred_event_resource</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>preferred_html_style_access_tab</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>preferred_html_style_acknowledgeable_message</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>preferred_html_style_contextual_help</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>preferred_html_style_developper_mode</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>preferred_html_style_translator_mode</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>preferred_listbox_list_mode_line_count</string> </key>
<value> <int>40</int> </value>
</item>
<item>
<key> <string>preferred_listbox_view_mode_line_count</string> </key>
<value> <int>15</int> </value>
</item>
<item>
<key> <string>preferred_medium_image_height</string> </key>
<value> <int>480</int> </value>
</item>
<item>
<key> <string>preferred_meeting_resource</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>preferred_money_quantity_field_width</string> </key>
<value> <int>10</int> </value>
</item>
<item>
<key> <string>preferred_ooodoc_server_address</string> </key>
<value> <string>localhost</string> </value>
</item>
<item>
<key> <string>preferred_ooodoc_server_port_number</string> </key>
<value> <int>8008</int> </value>
</item>
<item>
<key> <string>preferred_quantity_field_width</string> </key>
<value> <int>5</int> </value>
</item>
<item>
<key> <string>preferred_report_format</string> </key>
<value> <string>pdf</string> </value>
</item>
<item>
<key> <string>preferred_report_style</string> </key>
<value> <string>ODT</string> </value>
</item>
<item>
<key> <string>preferred_sale_opportunity_resource</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>preferred_section_category</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>preferred_string_field_width</string> </key>
<value> <int>30</int> </value>
</item>
<item>
<key> <string>preferred_subversion_user_name</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>preferred_subversion_working_copy</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>preferred_support_request_resource</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>preferred_textarea_height</string> </key>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>preferred_textarea_width</string> </key>
<value> <int>80</int> </value>
</item>
<item>
<key> <string>preferred_visible_module</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>priority</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>rights</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>subject</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="Length" module="BTrees.Length"/>
</pickle>
<pickle> <int>0</int> </pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<global name="OOBTree" module="BTrees.OOBTree"/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<global name="OOBTree" module="BTrees.OOBTree"/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
100
\ No newline at end of file
101
\ No newline at end of file
vifib_default_site_preference
vifib_default_system_preference
\ No newline at end of file
......@@ -201,16 +201,6 @@ class testVifibMixin(ERP5TypeTestCase):
self.portal._p_changed = 1
transaction.commit()
def setPreference(self):
# Enable default preference
preference = self.portal.portal_preferences.default_site_preference
# XXX-Luke: checking for preference state is no op (in such early state
# this preference is disabled anyway), but in my environment enable does
# not work, UNTIL getPreferenceState is called. Possibly cache/
# /configuration issue, to be checked later
if preference.getPreferenceState() == 'disabled':
preference.enable()
def getDefaultSitePreferenceId(self):
"""Default id, usefull method to override
"""
......@@ -311,7 +301,6 @@ class testVifibMixin(ERP5TypeTestCase):
self.login()
self.setupVifibMachineAuthenticationPlugin()
self.setupVifibShadowAuthenticationPlugin()
self.setPreference()
self.prepareTestUsers()
self.prepareVifibAccountingPeriod()
transaction.commit()
......
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