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 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -55,7 +52,7 @@ ...@@ -55,7 +52,7 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>"""\n <value> <string>"""\n
Can user add a gadget on context. \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 """\n
request = context.REQUEST\n request = context.REQUEST\n
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
...@@ -66,7 +63,6 @@ if portal.portal_membership.isAnonymousUser() or \\\n ...@@ -66,7 +63,6 @@ if portal.portal_membership.isAnonymousUser() or \\\n
list_mode == True or \\\n list_mode == True or \\\n
dialog_mode == True:\n dialog_mode == True:\n
return False\n return False\n
\n
return True\n return True\n
</string> </value> </string> </value>
</item> </item>
......
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -118,7 +115,7 @@ return user_pref\n ...@@ -118,7 +115,7 @@ return user_pref\n
</item> </item>
<item> <item>
<key> <string>title</string> </key> <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>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
......
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -54,9 +51,6 @@ ...@@ -54,9 +51,6 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>toggable_pad = None\n <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 all_knowledge_pads = context.ERP5Site_getKnowledgePadListForUser(mode=mode)\n
if isinstance(knowledge_pad_url, basestring):\n if isinstance(knowledge_pad_url, basestring):\n
toggable_pad = context.restrictedTraverse(knowledge_pad_url)\n toggable_pad = context.restrictedTraverse(knowledge_pad_url)\n
...@@ -71,7 +65,7 @@ if toggable_pad is not None:\n ...@@ -71,7 +65,7 @@ if toggable_pad is not None:\n
if pad.getObject()!=toggable_pad and pad.getValidationState()==\'visible\':\n if pad.getObject()!=toggable_pad and pad.getValidationState()==\'visible\':\n
pad.invisible()\n pad.invisible()\n
if redirect:\n if redirect:\n
context.Base_redirect(method_mapping.get(mode, \'view\'))\n context.Base_redirect(\'view\')\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -113,7 +107,6 @@ if redirect:\n ...@@ -113,7 +107,6 @@ if redirect:\n
<string>redirect</string> <string>redirect</string>
<string>None</string> <string>None</string>
<string>toggable_pad</string> <string>toggable_pad</string>
<string>method_mapping</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>all_knowledge_pads</string> <string>all_knowledge_pads</string>
......
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <global name="Folder" module="OFS.Folder"/>
<global name="Folder" module="OFS.Folder"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -21,7 +18,7 @@ ...@@ -21,7 +18,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string>Gadgets for ERP5 Web Mode</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -82,11 +79,6 @@ url = "%s?portal_status_message=%s&active_pad_url=%s" %(cancel_url, \n ...@@ -82,11 +79,6 @@ url = "%s?portal_status_message=%s&active_pad_url=%s" %(cancel_url, \n
context.Base_translateString(\'Sticked.\'), \n context.Base_translateString(\'Sticked.\'), \n
new_knowledge_pad.getRelativeUrl())\n new_knowledge_pad.getRelativeUrl())\n
context.REQUEST.RESPONSE.redirect(url)\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> ]]></string> </value>
......
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -59,9 +56,6 @@ knowledge_pad.delete()\n ...@@ -59,9 +56,6 @@ knowledge_pad.delete()\n
url = "%s?portal_status_message=%s" %(cancel_url, \n url = "%s?portal_status_message=%s" %(cancel_url, \n
context.Base_translateString(\'Unsticked.\'))\n context.Base_translateString(\'Unsticked.\'))\n
context.REQUEST.RESPONSE.redirect(url)\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> </string> </value>
</item> </item>
<item> <item>
......
620 621
\ 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