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
Ivan Tyagov
slapos.core
Commits
7385e47a
Commit
7385e47a
authored
Dec 16, 2011
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicated zsql method.
parent
7f0c4f5c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
111 deletions
+2
-111
master/bt5/vifib_data_simulation/SkinTemplateItem/portal_skins/vifib_simulation/VifibInvoiceTransaction_selectInvoiceMovement.xml
...ulation/VifibInvoiceTransaction_selectInvoiceMovement.xml
+1
-1
master/bt5/vifib_data_simulation/SkinTemplateItem/portal_skins/vifib_simulation/VifibInvoiceTransaction_zSelectMovement.xml
...ib_simulation/VifibInvoiceTransaction_zSelectMovement.xml
+0
-109
master/bt5/vifib_data_simulation/bt/revision
master/bt5/vifib_data_simulation/bt/revision
+1
-1
No files found.
master/bt5/vifib_data_simulation/SkinTemplateItem/portal_skins/vifib_simulation/VifibInvoiceTransaction_selectInvoiceMovement.xml
View file @
7385e47a
...
@@ -66,7 +66,7 @@ kw[\'grand_parent_simulation_state\'] = [\'confirmed\']\n
...
@@ -66,7 +66,7 @@ kw[\'grand_parent_simulation_state\'] = [\'confirmed\']\n
search_kw = kw.copy()\n
search_kw = kw.copy()\n
search_kw.update(context.portal_catalog.buildSQLQuery(**search_kw))\n
search_kw.update(context.portal_catalog.buildSQLQuery(**search_kw))\n
\n
\n
normal_movement_list = [movement for movement in context.
Vifib
InvoiceTransaction_zSelectMovement(**search_kw)]\n
normal_movement_list = [movement for movement in context.InvoiceTransaction_zSelectMovement(**search_kw)]\n
\n
\n
# update query to search for movements which are children of Trade Model Rule\n
# update query to search for movements which are children of Trade Model Rule\n
kw.pop(\'grand_parent_simulation_state\')\n
kw.pop(\'grand_parent_simulation_state\')\n
...
...
master/bt5/vifib_data_simulation/SkinTemplateItem/portal_skins/vifib_simulation/VifibInvoiceTransaction_zSelectMovement.xml
deleted
100644 → 0
View file @
7f0c4f5c
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"SQL"
module=
"Products.ZSQLMethods.SQL"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Use_Database_Methods_Permission
</string>
</key>
<value>
<list>
<string>
Member
</string>
</list>
</value>
</item>
<item>
<key>
<string>
allow_simple_one_argument_traversal
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
arguments_src
</string>
</key>
<value>
<string>
from_table_list:list\r\n
where_expression\r\n
order_by_expression
</string>
</value>
</item>
<item>
<key>
<string>
cache_time_
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
class_file_
</string>
</key>
<value>
<string>
ZSQLCatalog.zsqlbrain
</string>
</value>
</item>
<item>
<key>
<string>
class_name_
</string>
</key>
<value>
<string>
ZSQLBrain
</string>
</value>
</item>
<item>
<key>
<string>
connection_hook
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
connection_id
</string>
</key>
<value>
<string>
erp5_sql_connection
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
VifibInvoiceTransaction_zSelectMovement
</string>
</value>
</item>
<item>
<key>
<string>
max_cache_
</string>
</key>
<value>
<int>
100
</int>
</value>
</item>
<item>
<key>
<string>
max_rows_
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
src
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
SELECT\n
catalog.uid,\n
catalog.path,\n
catalog.relative_url,\n
catalog.id\n
\n
FROM\n
movement\n
<dtml-in prefix="table" expr="from_table_list">
\n
<dtml-if
expr=
"table_key not in (\'catalog\', \'movement\')"
>
\n
,
<dtml-var
table_item
>
AS
<dtml-var
table_key
>
\n
</dtml-if>
\n
</dtml-in>
\n
, catalog\n
LEFT JOIN category \n
ON (catalog.uid = category.uid\n
AND category.base_category_uid =
<dtml-sqlvar
"portal_categories.delivery.getUid()"
type=
"int"
>
)\n
WHERE\n
1=1\n
<dtml-if
where_expression
>
\n
AND
<dtml-var
where_expression
>
\n
</dtml-if>
\n
\n
AND movement.uid = catalog.uid\n
AND movement.resource_uid is not NULL\n
AND category.category_uid is NULL\n
\n
<dtml-if
order_by_expression
>
\n
ORDER BY
<dtml-var
order_by_expression
>
\n
</dtml-if>
\n
\n
]]>
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/vifib_data_simulation/bt/revision
View file @
7385e47a
50
51
\ 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