Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
alecs_myu
erp5
Commits
2814ff75
Commit
2814ff75
authored
Dec 14, 2011
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Followup
47e774f1
parent
47e774f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
bt5/erp5_archive/SkinTemplateItem/portal_skins/erp5_archive/Archive_createInventory.xml
...tem/portal_skins/erp5_archive/Archive_createInventory.xml
+7
-7
bt5/erp5_archive/bt/revision
bt5/erp5_archive/bt/revision
+1
-1
No files found.
bt5/erp5_archive/SkinTemplateItem/portal_skins/erp5_archive/Archive_createInventory.xml
View file @
2814ff75
...
...
@@ -92,7 +92,7 @@ for inventory in node_inventory_list:\n
inv = node_inventory_dict[inventory.node_relative_url]\n
\n
inv.setDefaultActivateParameterDict(activate_kw)\n
inv.setDefaultReindexParameter
s(sql_catalog_id=destination_sql_catalog_id
)\n
inv.setDefaultReindexParameter
Dict(dict(sql_catalog_id=destination_sql_catalog_id)
)\n
# Create one line per resource\n
inv_line = inv.newContent(portal_type = "Archive Inventory Line",\n
resource=inventory.resource_relative_url,\n
...
...
@@ -100,7 +100,7 @@ for inventory in node_inventory_list:\n
activate_kw = activate_kw,\n
reindex_kw = {"sql_catalog_id" : destination_sql_catalog_id})\n
inv_line.setDefaultActivateParameterDict(activate_kw)\n
inv_line.setDefaultReindexParameter
s(sql_catalog_id=destination_sql_catalog_id
)\n
inv_line.setDefaultReindexParameter
Dict(dict(sql_catalog_id=destination_sql_catalog_id)
)\n
# This is a hack so that price is now and not at reindexing part\n
inv_line.getPrice()\n
\n
...
...
@@ -128,7 +128,7 @@ for inventory in node_inventory_list:\n
category_list = filter(lambda k_item: k_item is not None, k)\n
cell = inv_line.newCell(*k, **line_kwd)\n
cell.setDefaultActivateParameterDict(activate_kw)\n
cell.setDefaultReindexParameter
s(sql_catalog_id=destination_sql_catalog_id
)\n
cell.setDefaultReindexParameter
Dict(dict(sql_catalog_id=destination_sql_catalog_id)
)\n
\n
mapped_value_list = [\'price\', \'quantity\']\n
cell.edit( membership_criterion_category_list = category_list\n
...
...
@@ -143,7 +143,7 @@ for inventory in node_inventory_list:\n
# deliver all inventory\n
for inv in node_inventory_dict.values(): \n
inv.setDefaultActivateParameterDict(activate_kw)\n
inv.setDefaultReindexParameter
s(sql_catalog_id=destination_sql_catalog_id
)\n
inv.setDefaultReindexParameter
Dict(dict(sql_catalog_id=destination_sql_catalog_id)
)\n
inv.deliver()\n
\n
\n
...
...
@@ -166,7 +166,7 @@ for inventory in payment_inventory_list:\n
inv = payment_inventory_dict[inventory.payment_uid]\n
\n
inv.setDefaultActivateParameterDict(activate_kw)\n
inv.setDefaultReindexParameter
s(sql_catalog_id=destination_sql_catalog_id
)\n
inv.setDefaultReindexParameter
Dict(dict(sql_catalog_id=destination_sql_catalog_id)
)\n
# Create one line per resource\n
inv_line = inv.newContent(portal_type = "Archive Inventory Line",\n
resource=inventory.resource_relative_url,\n
...
...
@@ -174,7 +174,7 @@ for inventory in payment_inventory_list:\n
activate_kw = activate_kw,\n
reindex_kw = {"sql_catalog_id" : destination_sql_catalog_id})\n
inv_line.setDefaultActivateParameterDict(activate_kw)\n
inv_line.setDefaultReindexParameter
s(sql_catalog_id=destination_sql_catalog_id
)\n
inv_line.setDefaultReindexParameter
Dict(dict(sql_catalog_id=destination_sql_catalog_id)
)\n
inv_line.edit(quantity=inventory.total_quantity)\n
# This is a hack so that price is now and not at reindexing part\n
inv_line.getPrice()\n
...
...
@@ -183,7 +183,7 @@ for inventory in payment_inventory_list:\n
# deliver all inventory\n
for inv in payment_inventory_dict.values(): \n
inv.setDefaultActivateParameterDict(activate_kw)\n
inv.setDefaultReindexParameter
s(sql_catalog_id=destination_sql_catalog_id
)\n
inv.setDefaultReindexParameter
Dict(dict(sql_catalog_id=destination_sql_catalog_id)
)\n
inv.deliver()\n
...
...
bt5/erp5_archive/bt/revision
View file @
2814ff75
95
\ No newline at end of file
96
\ 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