Commit 4d5f5ab8 authored by Gabriel Monnerat's avatar Gabriel Monnerat

2010-12-16 gabriel

* Implemented feature to change the state of Document via UNG Theme

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41496 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a50efb43
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </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>if action_name is not None:\n
context.portal_workflow.doActionFor(context, action_name)\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>action_name=None</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>action_name</string>
<string>None</string>
<string>_getattr_</string>
<string>context</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<none/>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Base_changeWorkflowState</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -74,6 +74,7 @@ function updateWebPage(){\n
}\n
});\n
}\n
\n
function checkConversion(){\n
parameterList = getUrlParameterList();\n
$.get("Base_getDocumentConversionState?path=" + parameterList.document_path, {},\n
......@@ -155,6 +156,19 @@ $(document).ready(function(){\n
if ($("div.listbox-navigation").text() == "null")\n
$("div.listbox-navigation").hide();\n
}\n
else {\n
$("div.action_menu ul li a").click(function(event){\n
event.preventDefault();\n
herfList = this.getAttribute("href").split("?");\n
action_name = herfList[herfList.length-1].split("=")[1];\n
$.ajax({url: "Base_changeWorkflowState", \n
data: "action_name=" + action_name,\n
success: function(){\n
window.location.reload();\n
},\n
});\n
});\n
}\n
$("#edit_document").dialog({\n
autoOpen: false,\n
height: 146,\n
......
2010-12-16 gabriel
* Implemented feature to change the state of Document via UNG Theme
2010-12-14 gabriel
* Added default reference for templates.
* Refactor code to create the documents allowed in UNG using ERP5 System Templates.
......
127
\ No newline at end of file
129
\ 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