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
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
0efc3740
Commit
0efc3740
authored
Sep 13, 2019
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[romain_dev] update
parent
4de0fdf7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
161 additions
and
5 deletions
+161
-5
bt5/romain_dev/SkinTemplateItem/portal_skins/romain_dev/Base_getUpgradeBusinessTemplateList.py
...l_skins/romain_dev/Base_getUpgradeBusinessTemplateList.py
+12
-5
bt5/romain_dev/SkinTemplateItem/portal_skins/romain_dev/copy_of_testromain.py
...emplateItem/portal_skins/romain_dev/copy_of_testromain.py
+72
-0
bt5/romain_dev/SkinTemplateItem/portal_skins/romain_dev/copy_of_testromain.xml
...mplateItem/portal_skins/romain_dev/copy_of_testromain.xml
+62
-0
bt5/romain_dev/SkinTemplateItem/portal_skins/romain_dev/testromain.py
...ev/SkinTemplateItem/portal_skins/romain_dev/testromain.py
+15
-0
No files found.
bt5/romain_dev/SkinTemplateItem/portal_skins/romain_dev/Base_getUpgradeBusinessTemplateList.py
View file @
0efc3740
...
@@ -4,19 +4,20 @@ bt5_installation_list = bt5_update_catalog_list + ('erp5_xhtml_style',
...
@@ -4,19 +4,20 @@ bt5_installation_list = bt5_update_catalog_list + ('erp5_xhtml_style',
# 'erp5_officejs_ooffice',
# 'erp5_officejs_ooffice',
'erp5_upgrader'
,
'erp5_upgrader'
,
'erp5_hal_json_style'
,
'erp5_hal_json_style'
,
# 'erp5_ods_style',
'erp5_ods_style'
,
'erp5_odt_style'
,
# 'erp5_officejs_ui_test',
# 'erp5_officejs_ui_test',
#
'erp5_crm_renderjs_ui_test',
'erp5_crm_renderjs_ui_test'
,
#
'erp5_trade_renderjs_ui_test',
'erp5_trade_renderjs_ui_test'
,
'erp5_web_renderjs_ui_test'
,
'erp5_web_renderjs_ui_test'
,
# 'erp5_pdm_renderjs_ui_test',
# 'erp5_pdm_renderjs_ui_test',
# 'erp5_accounting_renderjs_ui_test',
# 'erp5_accounting_renderjs_ui_test',
# 'erp5_officejs_ui_test',
# 'erp5_officejs_ui_test',
#
'erp5_officejs_support_request_ui_test',
'erp5_officejs_support_request_ui_test'
,
# 'erp5_calendar',
# 'erp5_calendar',
# 'erp5_crm',
# 'erp5_crm',
# 'erp5_mrp',
# 'erp5_mrp',
#
'erp5_project',
'erp5_project'
,
# test dependencies
# test dependencies
# 'erp5_configurator_standard_trade_template',
# 'erp5_configurator_standard_trade_template',
...
@@ -29,8 +30,14 @@ bt5_installation_list = bt5_update_catalog_list + ('erp5_xhtml_style',
...
@@ -29,8 +30,14 @@ bt5_installation_list = bt5_update_catalog_list + ('erp5_xhtml_style',
# 'erp5_web_jabber_client',
# 'erp5_web_jabber_client',
'erp5_web_ui_test'
,
'erp5_web_ui_test'
,
'erp5_officejs_afs_directory_ui_test'
,
'erp5_officejs_afs_directory_ui_test'
,
'erp5_accounting_ui_test'
,
# 'erp5_travel_expense', 'erp5_travel_expense_ui_test',
# 'erp5_travel_expense', 'erp5_travel_expense_ui_test',
# 'officejs_olapy_demo', 'erp5_officejs_connector'
# 'officejs_olapy_demo', 'erp5_officejs_connector'
# 'erp5_discussion'
# 'erp5_discussion'
'erp5_hr'
,
'erp5_item'
,
'erp5_mrp'
,
'erp5_payroll'
,
'erp5_authentication_policy'
,
)
)
return
bt5_installation_list
,
[]
return
bt5_installation_list
,
[]
bt5/romain_dev/SkinTemplateItem/portal_skins/romain_dev/copy_of_testromain.py
0 → 100644
View file @
0efc3740
portal
=
context
.
getPortalObject
()
selection
=
portal
.
portal_selections
.
getSelectionFor
(
'person_module_selection'
)
print
selection
.
checked_uids
print
selection
.
domain_path
print
selection
.
domain_list
if
selection
.
domain
is
not
None
:
print
selection
.
domain
.
asDomainDict
()
return
printed
for
_
,
obj
in
portal
.
portal_skins
.
ZopeFind
(
portal
.
portal_skins
.
erp5_core
,
obj_metatypes
=
(
'ERP5 Form'
,),
search_sub
=
1
):
if
(
obj
.
pt
==
'form_view'
)
and
(
obj
.
action
==
''
)
and
(
'FieldLibrary'
not
in
obj
.
id
):
print
obj
.
id
return
printed
return
portal_object
=
portal
=
context
.
getPortalObject
()
module
=
portal
.
person_module
i
=
counter
while
i
<=
min
(
counter
+
100
,
80000
):
# module.newContent(portal_type='Person', title='test %i' % i)
i
+=
1
if
i
!=
counter
:
module
.
activate
(
activity
=
'SQLQueue'
,
priority
=
5
).
testromain
(
i
)
return
'couscous'
raise
NotImplementedError
(
'nutnut'
)
return
'%s
\
n
'
%
context
.
absolute_url
()
from
base64
import
urlsafe_b64encode
,
urlsafe_b64decode
return
'data:text/css;base64,%s'
%
urlsafe_b64encode
(
'couscous'
);
kw
=
{
# 'select_dict': {'count': 'select 1;drop table catalog;', 'portal_type': None},
'select_dict'
:
{
'count'
:
'count(*)'
,
'portal_type'
:
None
},
# 'select_list': ['count(*)', 'portal_type'],
# 'select_list': ['portal_type'],
'limit'
:
None
,
'group_by'
:
[
"portal_type"
],
# 'sort_on': [('portal_type', 'ASC')]
}
print
context
.
portal_catalog
(
src__
=
1
,
**
kw
)
"""
for x in context.portal_catalog(**kw):
print x.portal_type, x['count']
"""
print
'---'
return
printed
cp
=
context
.
manage_copyObjects
(
uids
=
uids
)
context
.
manage_pasteObjects
(
cb_copy_data
=
cp
)
return
"couscous"
"""
result_list = context.portal_catalog.countResults(select_dict={'date': 'DATE_FORMAT(creation_date, "%s")' % sql_format, 'portal_type': None},
portal_type=portal_type_list,limit=None,
owner=reference,
group_by=['DATE_FORMAT(creation_date, "%s")' % sql_format, 'portal_type'],
**count_kw)
"""
bt5/romain_dev/SkinTemplateItem/portal_skins/romain_dev/copy_of_testromain.xml
0 → 100644
View file @
0efc3740
<?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>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
copy_of_testromain
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/romain_dev/SkinTemplateItem/portal_skins/romain_dev/testromain.py
View file @
0efc3740
print
'---<br>'
for
brain
in
context
.
getPortalObject
().
portal_catalog
(
portal_type
=
'Action Information'
,
sort_on
=
[[
'relative_url'
,
'ASC'
]]):
action
=
brain
.
getObject
()
action_type
=
action
.
getActionType
()
if
(
'web'
in
action_type
)
or
(
'jio'
in
action_type
)
or
(
action_type
in
[
'object_view'
,
'object_list'
,
'object_jump'
,
'object_sort'
,
'object_ui'
]):
continue
if
(
action_type
in
[
'object_button'
,
'object_search'
]):
continue
print
action
.
getParentTitle
(),
'<a href="%s">%s</a>'
%
(
action
.
getRelativeUrl
(),
action
.
getTitle
()),
action
.
getActionType
(),
'<br>'
return
printed
context
.
getPortalObject
().
notebook_module
.
olapy_notebook
.
edit
(
title
=
"olapy_notebook.jsmd"
,
reference
=
"olapy_notebook.jsmd"
)
context
.
getPortalObject
().
notebook_module
.
olapy_notebook
.
edit
(
title
=
"olapy_notebook.jsmd"
,
reference
=
"olapy_notebook.jsmd"
)
return
"ok"
return
"ok"
...
...
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