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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tristan Cavelier
erp5
Commits
2278cd93
Commit
2278cd93
authored
Apr 09, 2019
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CUSTOM [erp5_tristan]
parent
8faf44a2
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
550 additions
and
0 deletions
+550
-0
bt5/erp5_tristan/SkinTemplateItem/portal_skins/erp5_tristan.xml
...p5_tristan/SkinTemplateItem/portal_skins/erp5_tristan.xml
+47
-0
bt5/erp5_tristan/SkinTemplateItem/portal_skins/erp5_tristan/Base_viewFieldCustomLibrary.xml
...portal_skins/erp5_tristan/Base_viewFieldCustomLibrary.xml
+110
-0
bt5/erp5_tristan/SkinTemplateItem/portal_skins/erp5_tristan/Base_viewFieldCustomLibrary/my_list_mode_todo_listbox.xml
...Base_viewFieldCustomLibrary/my_list_mode_todo_listbox.xml
+176
-0
bt5/erp5_tristan/SkinTemplateItem/portal_skins/erp5_tristan/Base_viewFieldCustomLibrary/my_list_mode_todo_listbox_causality_portal_type.xml
...brary/my_list_mode_todo_listbox_causality_portal_type.xml
+112
-0
bt5/erp5_tristan/SkinTemplateItem/portal_skins/erp5_tristan/ERP5Site_upgrade.py
...emplateItem/portal_skins/erp5_tristan/ERP5Site_upgrade.py
+40
-0
bt5/erp5_tristan/SkinTemplateItem/portal_skins/erp5_tristan/ERP5Site_upgrade.xml
...mplateItem/portal_skins/erp5_tristan/ERP5Site_upgrade.xml
+62
-0
bt5/erp5_tristan/bt/template_format_version
bt5/erp5_tristan/bt/template_format_version
+1
-0
bt5/erp5_tristan/bt/template_skin_id_list
bt5/erp5_tristan/bt/template_skin_id_list
+1
-0
bt5/erp5_tristan/bt/title
bt5/erp5_tristan/bt/title
+1
-0
No files found.
bt5/erp5_tristan/SkinTemplateItem/portal_skins/erp5_tristan.xml
0 → 100644
View file @
2278cd93
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Folder"
module=
"OFS.Folder"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_local_properties
</string>
</key>
<value>
<tuple>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
business_template_skin_layer_priority
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
float
</string>
</value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key>
<string>
_objects
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
business_template_skin_layer_priority
</string>
</key>
<value>
<float>
100.0
</float>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
erp5_tristan
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_tristan/SkinTemplateItem/portal_skins/erp5_tristan/Base_viewFieldCustomLibrary.xml
0 → 100644
View file @
2278cd93
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ERP5 Form"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_objects
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
encoding
</string>
</key>
<value>
<string>
UTF-8
</string>
</value>
</item>
<item>
<key>
<string>
enctype
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
group_list
</string>
</key>
<value>
<list>
<string>
left
</string>
<string>
right
</string>
<string>
center
</string>
<string>
bottom
</string>
<string>
hidden
</string>
</list>
</value>
</item>
<item>
<key>
<string>
groups
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
bottom
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
center
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
hidden
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
left
</string>
</key>
<value>
<list>
<string>
my_list_mode_todo_listbox
</string>
<string>
my_list_mode_todo_listbox_causality_portal_type
</string>
</list>
</value>
</item>
<item>
<key>
<string>
right
</string>
</key>
<value>
<list/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Base_viewFieldCustomLibrary
</string>
</value>
</item>
<item>
<key>
<string>
method
</string>
</key>
<value>
<string>
POST
</string>
</value>
</item>
<item>
<key>
<string>
name
</string>
</key>
<value>
<string>
Base_viewFieldCustomLibrary
</string>
</value>
</item>
<item>
<key>
<string>
row_length
</string>
</key>
<value>
<int>
4
</int>
</value>
</item>
<item>
<key>
<string>
stored_encoding
</string>
</key>
<value>
<string>
UTF-8
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
unicode_mode
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_tristan/SkinTemplateItem/portal_skins/erp5_tristan/Base_viewFieldCustomLibrary/my_list_mode_todo_listbox.xml
0 → 100644
View file @
2278cd93
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
all_columns
</string>
<string>
columns
</string>
<string>
editable_columns
</string>
<string>
portal_types
</string>
<string>
sort
</string>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_list_mode_todo_listbox
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
all_columns
</string>
</key>
<value>
<list>
<tuple>
<string>
modification_date
</string>
<string>
Modification Date
</string>
</tuple>
</list>
</value>
</item>
<item>
<key>
<string>
columns
</string>
</key>
<value>
<list>
<tuple>
<string>
causality_reference
</string>
<string>
ID
</string>
</tuple>
<tuple>
<string>
causality_portal_type
</string>
<string>
Type
</string>
</tuple>
<tuple>
<string>
causality_title
</string>
<string>
Title
</string>
</tuple>
<tuple>
<string>
causality_translated_simulation_state_title
</string>
<string>
Status
</string>
</tuple>
<tuple>
<string>
title
</string>
<string>
Task
</string>
</tuple>
<tuple>
<string>
delivery.start_date
</string>
<string>
Due Date (UTC)
</string>
</tuple>
<tuple>
<string>
source_title
</string>
<string>
Assignee
</string>
</tuple>
<tuple>
<string>
translated_simulation_state_title
</string>
<string>
State
</string>
</tuple>
</list>
</value>
</item>
<item>
<key>
<string>
editable_columns
</string>
</key>
<value>
<list>
<tuple>
<string>
delivery.start_date
</string>
<string>
Begin Date
</string>
</tuple>
<tuple>
<string>
delivery.stop_date
</string>
<string>
End Date
</string>
</tuple>
</list>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_list_mode_listbox
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
portal_types
</string>
</key>
<value>
<list>
<tuple>
<string>
Task Report
</string>
<string>
Task Report
</string>
</tuple>
</list>
</value>
</item>
<item>
<key>
<string>
sort
</string>
</key>
<value>
<list>
<tuple>
<string>
delivery.start_date
</string>
<string>
ascending
</string>
</tuple>
</list>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
To-Do List
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_tristan/SkinTemplateItem/portal_skins/erp5_tristan/Base_viewFieldCustomLibrary/my_list_mode_todo_listbox_causality_portal_type.xml
0 → 100644
View file @
2278cd93
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
default
</string>
<string>
editable
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_list_mode_todo_listbox_causality_portal_type
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
default
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
editable
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
default
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
editable
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_string_field
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: "Heya"
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_tristan/SkinTemplateItem/portal_skins/erp5_tristan/ERP5Site_upgrade.py
0 → 100644
View file @
2278cd93
from
DateTime
import
DateTime
portal
=
context
.
getPortalObject
()
assert
portal
is
context
,
context
dry_run
=
int
(
dry_run
)
clear_catalog
=
int
(
clear_catalog
)
test
=
int
(
test
)
upgrade_catalog
=
int
(
upgrade_catalog
)
update_bt5list
=
int
(
update_bt5list
)
print
"dry_run: {}"
.
format
(
dry_run
)
print
"update_bt5list: {}"
.
format
(
update_bt5list
)
repository_list
=
list
(
portal
.
portal_templates
.
repository_dict
)
print
"repository_list:
\
n
{}"
.
format
(
"
\
n
"
.
join
([
" "
+
r
for
r
in
repository_list
]))
if
update_bt5list
:
portal
.
portal_templates
.
updateRepositoryBusinessTemplateList
(
repository_list
=
repository_list
)
#final_bt = "tsxx_tests"
#if not test and \
# portal.portal_templates.getInstalledBusinessTemplate(final_bt) is None:
final_bts
=
[
"erp5_tristan"
,
# to have custom scripts
"erp5_web_renderjs_ui_test"
,
# to do my job
"erp5_forge"
,
# to commit with git
]
print
"GOING TO INSTALL: {}"
.
format
(
final_bts
)
for
message
in
portal
.
portal_templates
.
upgradeSite
(
final_bts
,
dry_run
=
dry_run
,
#deprecated_reinstall_set={'tsxx_patch'},
keep_bt5_id_set
=
{
"erp5_full_text_myisam_catalog"
},
delete_orphaned
=
True
):
print
message
if
not
dry_run
:
if
clear_catalog
==
1
:
print
portal
.
ERP5Site_reindexAll
(
clear_catalog
=
clear_catalog
)
#print portal.TSXXPatch_postInstall(test=test)
#print portal.ERP5Site_postInstall()
if
upgrade_catalog
==
1
:
for
r
in
portal
.
portal_catalog
.
upgradeSchema
():
print
r
+
';'
print
"-- %s"
%
DateTime
()
return
printed
bt5/erp5_tristan/SkinTemplateItem/portal_skins/erp5_tristan/ERP5Site_upgrade.xml
0 → 100644
View file @
2278cd93
<?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>
dry_run=1, test=0, clear_catalog=0, upgrade_catalog=1, update_bt5list=1
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ERP5Site_upgrade
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_tristan/bt/template_format_version
0 → 100644
View file @
2278cd93
1
\ No newline at end of file
bt5/erp5_tristan/bt/template_skin_id_list
0 → 100644
View file @
2278cd93
erp5_tristan
\ No newline at end of file
bt5/erp5_tristan/bt/title
0 → 100644
View file @
2278cd93
erp5_tristan
\ 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