Commit 6717d2c8 authored by Ivan Tyagov's avatar Ivan Tyagov

Typos. Clean up.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40844 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a9bdd957
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -55,7 +52,7 @@
<key> <string>_body</string> </key>
<value> <string>"""\n
Can user add a gadget on context. \n
This script is usefull to determine if respective "Add gadget" link should be show.\n
This script is useful to determine if respective "Add gadget" link should be show.\n
"""\n
request = context.REQUEST\n
portal = context.getPortalObject()\n
......@@ -66,7 +63,6 @@ if portal.portal_membership.isAnonymousUser() or \\\n
list_mode == True or \\\n
dialog_mode == True:\n
return False\n
\n
return True\n
</string> </value>
</item>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -118,7 +115,7 @@ return user_pref\n
</item>
<item>
<key> <string>title</string> </key>
<value> <string>GEt Global preference for knoledge pads</string> </value>
<value> <string>Get global preference for knowledge pads</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -54,9 +51,6 @@
<item>
<key> <string>_body</string> </key>
<value> <string>toggable_pad = None\n
method_mapping = {\'erp5_front\': \'view\',\n
\'web_front\': \'view\',\n
\'web_section\': \'view\'}\n
all_knowledge_pads = context.ERP5Site_getKnowledgePadListForUser(mode=mode)\n
if isinstance(knowledge_pad_url, basestring):\n
toggable_pad = context.restrictedTraverse(knowledge_pad_url)\n
......@@ -71,7 +65,7 @@ if toggable_pad is not None:\n
if pad.getObject()!=toggable_pad and pad.getValidationState()==\'visible\':\n
pad.invisible()\n
if redirect:\n
context.Base_redirect(method_mapping.get(mode, \'view\'))\n
context.Base_redirect(\'view\')\n
</string> </value>
</item>
<item>
......@@ -113,7 +107,6 @@ if redirect:\n
<string>redirect</string>
<string>None</string>
<string>toggable_pad</string>
<string>method_mapping</string>
<string>_getattr_</string>
<string>context</string>
<string>all_knowledge_pads</string>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="Folder" module="OFS.Folder"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -21,7 +18,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
<value> <string>Gadgets for ERP5 Web Mode</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -82,11 +79,6 @@ url = "%s?portal_status_message=%s&active_pad_url=%s" %(cancel_url, \n
context.Base_translateString(\'Sticked.\'), \n
new_knowledge_pad.getRelativeUrl())\n
context.REQUEST.RESPONSE.redirect(url)\n
#context.Base_redirect(cancel_url,\n
# keep_items= {\'active_pad_url\':\n
# new_knowledge_pad.getRelativeUrl(),\n
# \'portal_status_message\': \n
# context.Base_translateString(\'Sticked.\')})\n
]]></string> </value>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -59,9 +56,6 @@ knowledge_pad.delete()\n
url = "%s?portal_status_message=%s" %(cancel_url, \n
context.Base_translateString(\'Unsticked.\'))\n
context.REQUEST.RESPONSE.redirect(url)\n
#context.Base_redirect(cancel_url,\n
# keep_items= {\'portal_status_message\': \n
# context.Base_translateString(\'Unsticked.\')})\n
</string> </value>
</item>
<item>
......
620
\ No newline at end of file
621
\ 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