Commit 12899a58 authored by Yusei Tahara's avatar Yusei Tahara

2007-11-26 Yusei

* Add bookmark feature for km.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17784 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4f5e18e4
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<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>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>portal_preferences = context.portal_preferences\n
\n
path = context.getRelativeUrl()\n
bookmark_list = portal_preferences.getPreferredDocumentBookmarkList()\n
\n
if not path in bookmark_list:\n
bookmark_list.append(path)\n
\n
preference = portal_preferences.getActivePreference()\n
if preference.getPreferenceState()!=\'enabled\':\n
p = portal_preferences.newContent()\n
p.setTitle(\'Bookmark\')\n
p.enable()\n
preference = p\n
\n
preference.setPreferredDocumentBookmark(bookmark_list)\n
\n
return context.Base_redirect(form_id,\n
keep_items=dict(portal_status_message=context.Base_translateString("Added bookmark.")),\n
**kw)\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>form_id, **kw</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>form_id</string>
<string>kw</string>
<string>_getattr_</string>
<string>context</string>
<string>portal_preferences</string>
<string>path</string>
<string>bookmark_list</string>
<string>preference</string>
<string>p</string>
<string>_apply_</string>
<string>dict</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Document_addBookmark</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5Form.Form</string>
<string>ERP5Form</string>
</tuple>
<none/>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -96,7 +93,9 @@
<item>
<key> <string>right</string> </key>
<value>
<list/>
<list>
<string>my_preferred_document_bookmark_list</string>
</list>
</value>
</item>
</dictionary>
......
2007-11-26 Yusei
* Add bookmark feature for km.
2007-11-21 Yusei
* Search predecessor only from document type documents.
......
708
\ No newline at end of file
709
\ 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