Commit 14986186 authored by Aurel's avatar Aurel

specify the portal type when calling newContent

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21208 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 33da283c
...@@ -73,7 +73,7 @@ else:\n ...@@ -73,7 +73,7 @@ else:\n
\n \n
pref = getattr(context.portal_preferences, "erp5_ui_test_preference", None)\n pref = getattr(context.portal_preferences, "erp5_ui_test_preference", None)\n
if pref is None:\n if pref is None:\n
pref = context.portal_preferences.newContent(id="erp5_ui_test_preference")\n pref = context.portal_preferences.newContent(id="erp5_ui_test_preference", portal_type="Preference")\n
pref.setPreferredSubversionWorkingCopyList(list)\n pref.setPreferredSubversionWorkingCopyList(list)\n
pref.enable()\n pref.enable()\n
\n \n
......
...@@ -115,7 +115,7 @@ resetSelection(\'foo_bar_selection\')\n ...@@ -115,7 +115,7 @@ resetSelection(\'foo_bar_selection\')\n
\n \n
pref = getattr(context.portal_preferences, "erp5_ui_test_preference", None)\n pref = getattr(context.portal_preferences, "erp5_ui_test_preference", None)\n
if pref is None:\n if pref is None:\n
pref = context.portal_preferences.newContent(id="erp5_ui_test_preference")\n pref = context.portal_preferences.newContent(id="erp5_ui_test_preference", portal_type="Preference")\n
pref.setPreferredListboxListModeLineCount(10)\n pref.setPreferredListboxListModeLineCount(10)\n
pref.enable()\n pref.enable()\n
\n \n
......
...@@ -122,7 +122,7 @@ resetSelection(\'bar_selection\')\n ...@@ -122,7 +122,7 @@ resetSelection(\'bar_selection\')\n
\n \n
pref = getattr(context.portal_preferences, "erp5_ui_test_preference", None)\n pref = getattr(context.portal_preferences, "erp5_ui_test_preference", None)\n
if pref is None:\n if pref is None:\n
pref = context.portal_preferences.newContent(id="erp5_ui_test_preference")\n pref = context.portal_preferences.newContent(id="erp5_ui_test_preference", portal_type="Preference")\n
pref.setPreferredListboxListModeLineCount(10)\n pref.setPreferredListboxListModeLineCount(10)\n
pref.enable()\n pref.enable()\n
\n \n
......
352 354
\ No newline at end of file \ No newline at end of file
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