Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thomas Leymonerie
slapos.core
Commits
ceb811bb
Commit
ceb811bb
authored
Oct 18, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reintroduce scripts for accounting removal.
parent
583853fe
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
16 deletions
+31
-16
master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/AccountingTransaction_delete.xml
...tal_skins/vifib_upgrader/AccountingTransaction_delete.xml
+3
-2
master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/ERP5Site_initiateAccountingModuleRemoval.xml
...fib_upgrader/ERP5Site_initiateAccountingModuleRemoval.xml
+5
-2
master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/ERP5Site_initiateInvoiceAppliedRuleDeletion.xml
..._upgrader/ERP5Site_initiateInvoiceAppliedRuleDeletion.xml
+17
-5
master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/InvoiceAppliedRule_delete.xml
...portal_skins/vifib_upgrader/InvoiceAppliedRule_delete.xml
+5
-6
master/bt5/vifib_upgrader/bt/revision
master/bt5/vifib_upgrader/bt/revision
+1
-1
No files found.
master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader
_20120423
/AccountingTransaction_delete.xml
→
master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/AccountingTransaction_delete.xml
View file @
ceb811bb
...
@@ -51,8 +51,9 @@
...
@@ -51,8 +51,9 @@
<item>
<item>
<key>
<string>
_body
</string>
</key>
<key>
<string>
_body
</string>
</key>
<value>
<string>
accounting_module = context.getParentValue()\n
<value>
<string>
accounting_module = context.getParentValue()\n
if accounting_module.getPortalType() != \'Accounting Transaction Module\':\n
\n
raise ValueError(\'%s is not children of Accounting Transaction Module\')\n
assert accounting_module.getPortalType() == \'Accounting Transaction Module\'\n
\n
accounting_module.deleteContent(context.getId())\n
accounting_module.deleteContent(context.getId())\n
</string>
</value>
</string>
</value>
</item>
</item>
...
...
master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader
_20120423/AccountingModule_initiateDelete
.xml
→
master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader
/ERP5Site_initiateAccountingModuleRemoval
.xml
View file @
ceb811bb
...
@@ -52,8 +52,11 @@
...
@@ -52,8 +52,11 @@
<key>
<string>
_body
</string>
</key>
<key>
<string>
_body
</string>
</key>
<value>
<string>
context.getPortalObject().portal_catalog.searchAndActivate(\n
<value>
<string>
context.getPortalObject().portal_catalog.searchAndActivate(\n
parent_uid=context.getPortalObject().accounting_module.getUid(),\n
parent_uid=context.getPortalObject().accounting_module.getUid(),\n
method_id=\'AccountingTransaction_delete\'\n
method_id=\'AccountingTransaction_delete\',\n
activate_kw={\'tag\': \'AccountingTransaction_delete\'}\n
)\n
)\n
\n
return \'Deletion initiated.\'\n
</string>
</value>
</string>
</value>
</item>
</item>
<item>
<item>
...
@@ -62,7 +65,7 @@
...
@@ -62,7 +65,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
AccountingModule_initiateDelete
</string>
</value>
<value>
<string>
ERP5Site_initiateAccountingModuleRemoval
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader
_20120423/RootAppliedRule_delete
.xml
→
master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader
/ERP5Site_initiateInvoiceAppliedRuleDeletion
.xml
View file @
ceb811bb
...
@@ -50,10 +50,22 @@
...
@@ -50,10 +50,22 @@
</item>
</item>
<item>
<item>
<key>
<string>
_body
</string>
</key>
<key>
<string>
_body
</string>
</key>
<value>
<string>
simulation_tool = context.getParentValue()\n
<value>
<string>
portal = context.getPortalObject()\n
if simulation_tool.getPortalType() != \'Simulation Tool\':\n
\n
raise ValueError(\'%s is not children of Simulation Tool\')\n
rule_uid_list = [\n
simulation_tool.deleteContent(context.getId())\n
portal.portal_rules.vifib_invoice_simulation_rule.getUid(),\n
portal.portal_rules.vifib_invoice_root_simulation_rule.getUid()\n
]\n
\n
portal.portal_catalog.searchAndActivate(\n
portal_type=\'Applied Rule\',\n
specialise_uid=rule_uid_list,\n
method_id=\'InvoiceAppliedRule_delete\',\n
method_kw={\'rule_uid_list\': rule_uid_list},\n
activate_kw={\'tag\': \'InvoiceAppliedRule_delete\'}\n
)\n
\n
return \'Invoice Applied Rule deletion initated.\'\n
</string>
</value>
</string>
</value>
</item>
</item>
<item>
<item>
...
@@ -62,7 +74,7 @@ simulation_tool.deleteContent(context.getId())\n
...
@@ -62,7 +74,7 @@ simulation_tool.deleteContent(context.getId())\n
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
RootAppliedRule_delete
</string>
</value>
<value>
<string>
ERP5Site_initiateInvoiceAppliedRuleDeletion
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader
_20120423/SimulationTool_initiateD
elete.xml
→
master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader
/InvoiceAppliedRule_d
elete.xml
View file @
ceb811bb
...
@@ -50,19 +50,18 @@
...
@@ -50,19 +50,18 @@
</item>
</item>
<item>
<item>
<key>
<string>
_body
</string>
</key>
<key>
<string>
_body
</string>
</key>
<value>
<string>
context.getPortalObject().portal_catalog.searchAndActivate(\n
<value>
<string>
assert context.getSpecialiseUid() in rule_uid_list\n
parent_uid=context.getPortalObject().portal_simulation.getUid(),\n
\n
method_id=\'RootAppliedRule_delete\'\n
context.getParentValue().deleteContent(context.getId())\n
)\n
</string>
</value>
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
<value>
<string>
rule_uid_list
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
SimulationTool_initiateD
elete
</string>
</value>
<value>
<string>
InvoiceAppliedRule_d
elete
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
master/bt5/vifib_upgrader/bt/revision
View file @
ceb811bb
152
153
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment