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
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
erp5
Commits
3d7d6d5e
Commit
3d7d6d5e
authored
Feb 27, 2024
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_shadir: index shadir entries in catalog
parent
bd4b8d10
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
372 additions
and
0 deletions
+372
-0
bt5/erp5_web_shadir/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_shadir.catalog_keys.xml
...catalog/erp5_mysql_innodb/z0_drop_shadir.catalog_keys.xml
+5
-0
bt5/erp5_web_shadir/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_shadir.sql
...eItem/portal_catalog/erp5_mysql_innodb/z0_drop_shadir.sql
+1
-0
bt5/erp5_web_shadir/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_shadir.xml
...eItem/portal_catalog/erp5_mysql_innodb/z0_drop_shadir.xml
+66
-0
bt5/erp5_web_shadir/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_shadir.catalog_keys.xml
...og/erp5_mysql_innodb/z0_uncatalog_shadir.catalog_keys.xml
+5
-0
bt5/erp5_web_shadir/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_shadir.sql
.../portal_catalog/erp5_mysql_innodb/z0_uncatalog_shadir.sql
+1
-0
bt5/erp5_web_shadir/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_shadir.xml
.../portal_catalog/erp5_mysql_innodb/z0_uncatalog_shadir.xml
+82
-0
bt5/erp5_web_shadir/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_shadir_list.catalog_keys.xml
.../erp5_mysql_innodb/z_catalog_shadir_list.catalog_keys.xml
+5
-0
bt5/erp5_web_shadir/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_shadir_list.sql
...ortal_catalog/erp5_mysql_innodb/z_catalog_shadir_list.sql
+32
-0
bt5/erp5_web_shadir/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_shadir_list.xml
...ortal_catalog/erp5_mysql_innodb/z_catalog_shadir_list.xml
+90
-0
bt5/erp5_web_shadir/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_shadir.catalog_keys.xml
...atalog/erp5_mysql_innodb/z_create_shadir.catalog_keys.xml
+5
-0
bt5/erp5_web_shadir/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_shadir.sql
...Item/portal_catalog/erp5_mysql_innodb/z_create_shadir.sql
+6
-0
bt5/erp5_web_shadir/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_shadir.xml
...Item/portal_catalog/erp5_mysql_innodb/z_create_shadir.xml
+66
-0
bt5/erp5_web_shadir/CatalogResultTableTemplateItem/result_table_list.xml
...adir/CatalogResultTableTemplateItem/result_table_list.xml
+3
-0
bt5/erp5_web_shadir/bt/template_catalog_method_id_list
bt5/erp5_web_shadir/bt/template_catalog_method_id_list
+4
-0
bt5/erp5_web_shadir/bt/template_catalog_result_table_list
bt5/erp5_web_shadir/bt/template_catalog_result_table_list
+1
-0
No files found.
bt5/erp5_web_shadir/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_shadir.catalog_keys.xml
0 → 100644
View file @
3d7d6d5e
<catalog_method>
<item
key=
"sql_clear_catalog"
type=
"int"
>
<value>
1
</value>
</item>
</catalog_method>
bt5/erp5_web_shadir/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_shadir.sql
0 → 100644
View file @
3d7d6d5e
DROP
TABLE
IF
EXISTS
shadir
bt5/erp5_web_shadir/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_shadir.xml
0 → 100644
View file @
3d7d6d5e
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"SQL Method"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
allow_simple_one_argument_traversal
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
arguments_src
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
cache_time_
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
class_file_
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
class_name_
</string>
</key>
<value>
<none/>
</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>
z0_drop_shadir
</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>
1000
</int>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
SQL Method
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_shadir/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_shadir.catalog_keys.xml
0 → 100644
View file @
3d7d6d5e
<catalog_method>
<item
key=
"sql_uncatalog_object"
type=
"int"
>
<value>
1
</value>
</item>
</catalog_method>
bt5/erp5_web_shadir/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_shadir.sql
0 → 100644
View file @
3d7d6d5e
DELETE
FROM
shadir
WHERE
<
dtml
-
sqltest
uid
op
=
eq
type
=
int
>
\ No newline at end of file
bt5/erp5_web_shadir/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_shadir.xml
0 → 100644
View file @
3d7d6d5e
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"SQL Method"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
allow_simple_one_argument_traversal
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
arguments_src
</string>
</key>
<value>
<string>
uid
</string>
</value>
</item>
<item>
<key>
<string>
cache_time_
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
class_file_
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
class_name_
</string>
</key>
<value>
<none/>
</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>
expression
</string>
</key>
<value>
<string>
python: context.isDocumentType()
</string>
</value>
</item>
<item>
<key>
<string>
expression_cache_key
</string>
</key>
<value>
<tuple>
<string>
portal_type
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
filtered
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
z0_uncatalog_shadir
</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>
1000
</int>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
SQL Method
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_shadir/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_shadir_list.catalog_keys.xml
0 → 100644
View file @
3d7d6d5e
<catalog_method>
<item
key=
"sql_catalog_object_list"
type=
"int"
>
<value>
1
</value>
</item>
</catalog_method>
bt5/erp5_web_shadir/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_shadir_list.sql
0 → 100644
View file @
3d7d6d5e
DELETE
FROM
shadir
WHERE
<
dtml
-
sqltest
uid
type
=
"int"
multiple
>
<
dtml
-
var
sql_delimiter
>
<
dtml
-
let
a2b_hex
=
"__import__('binascii').a2b_hex"
loads
=
"__import__('json').loads"
row_list
=
"[]"
>
<
dtml
-
in
prefix
=
"loop"
expr
=
"_.range(_.len(uid))"
>
<
dtml
-
if
"getFollowUp[loop_item]"
>
<
dtml
-
let
data
=
"loads(loads(getData[loop_item])[0])"
>
<
dtml
-
call
expr
=
"row_list.append((uid[loop_item], a2b_hex(data['sha512']), data.get('url')))"
>
</
dtml
-
let
>
</
dtml
-
if
>
</
dtml
-
in
>
<
dtml
-
if
row_list
>
INSERT
INTO
shadir
VALUES
<
dtml
-
in
row_list
prefix
=
"row"
>
(
<
dtml
-
sqlvar
expr
=
"row_item[0]"
type
=
"int"
>
,
<
dtml
-
sqlvar
expr
=
"row_item[1]"
type
=
"string"
>
,
<
dtml
-
sqlvar
expr
=
"row_item[2]"
type
=
"string"
>
)
<
dtml
-
if
sequence
-
end
><
dtml
-
else
>
,
</
dtml
-
if
>
</
dtml
-
in
>
</
dtml
-
if
>
</
dtml
-
let
>
bt5/erp5_web_shadir/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_shadir_list.xml
0 → 100644
View file @
3d7d6d5e
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"SQL Method"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
allow_simple_one_argument_traversal
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
arguments_src
</string>
</key>
<value>
<string>
uid\n
getFollowUp\n
getData
</string>
</value>
</item>
<item>
<key>
<string>
cache_time_
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
class_file_
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
class_name_
</string>
</key>
<value>
<none/>
</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>
expression
</string>
</key>
<value>
<string>
python: context.isDocumentType()
</string>
</value>
</item>
<item>
<key>
<string>
expression_cache_key
</string>
</key>
<value>
<tuple>
<string>
portal_type
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
filtered
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
z_catalog_shadir_list
</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>
1000
</int>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
SQL Method
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
z_catalog_shadir_list
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_shadir/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_shadir.catalog_keys.xml
0 → 100644
View file @
3d7d6d5e
<catalog_method>
<item
key=
"sql_clear_catalog"
type=
"int"
>
<value>
1
</value>
</item>
</catalog_method>
bt5/erp5_web_shadir/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_shadir.sql
0 → 100644
View file @
3d7d6d5e
CREATE
TABLE
`shadir`
(
`uid`
BIGINT
UNSIGNED
PRIMARY
KEY
,
`sha512`
BINARY
(
64
)
NOT
NULL
,
`url`
TEXT
,
KEY
(
`sha512`
)
)
ENGINE
=
InnoDB
;
bt5/erp5_web_shadir/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_shadir.xml
0 → 100644
View file @
3d7d6d5e
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"SQL Method"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
allow_simple_one_argument_traversal
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
arguments_src
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
cache_time_
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
class_file_
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
class_name_
</string>
</key>
<value>
<none/>
</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>
z_create_shadir
</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>
1000
</int>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
SQL Method
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
z_create_shadir
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_shadir/CatalogResultTableTemplateItem/result_table_list.xml
0 → 100644
View file @
3d7d6d5e
<key_list>
<key>
shadir
</key>
</key_list>
\ No newline at end of file
bt5/erp5_web_shadir/bt/template_catalog_method_id_list
0 → 100644
View file @
3d7d6d5e
erp5_mysql_innodb/z0_drop_shadir
erp5_mysql_innodb/z0_uncatalog_shadir
erp5_mysql_innodb/z_catalog_shadir_list
erp5_mysql_innodb/z_create_shadir
\ No newline at end of file
bt5/erp5_web_shadir/bt/template_catalog_result_table_list
0 → 100644
View file @
3d7d6d5e
shadir
\ 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