Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_workflow
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenjie.zheng
erp5_workflow
Commits
2bef46d8
Commit
2bef46d8
authored
Aug 30, 2013
by
Boris Kocherov
Committed by
Arnaud Fontaine
Sep 12, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add TemplateTool_filterEmptyContentTranslation script
for filter empty content_translation dictonaries in vcs
parent
7ac96345
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
111 additions
and
1 deletion
+111
-1
bt5/erp5_content_translation/SkinTemplateItem/portal_skins/erp5_content_translation/TemplateTool_filterEmptyContentTranslation.xml
...ranslation/TemplateTool_filterEmptyContentTranslation.xml
+110
-0
bt5/erp5_content_translation/bt/revision
bt5/erp5_content_translation/bt/revision
+1
-1
No files found.
bt5/erp5_content_translation/SkinTemplateItem/portal_skins/erp5_content_translation/TemplateTool_filterEmptyContentTranslation.xml
0 → 100644
View file @
2bef46d8
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Python Script"
module=
"erp5.portal_type"
/>
</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>
_body
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
if len(old_line_list) == 0 and len(new_line_list) == 6:\n
if \'\\n\'.join(new_line_list) == """\\\n
<key>
<string>
__translation_dict
</string>
</key>
\n
<value>
\n
<dictionary/>
\n
</value>
\n
</item>
\n
<item>
""":\n
return True\n
\n
return False\n
]]>
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
old_line_list, new_line_list
</string>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
callable_type/script/diff_filter
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
This script filter the following xml changes :\n
@@\n
+ <key>
<string>
__translation_dict
</string>
</key>
\n
+
<value>
\n
+
<dictionary/>
\n
+
</value>
\n
+
</item>
\n
+
<item>
\n
@@\n
]]>
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
TemplateTool_filterEmptyContentTranslation
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Python Script
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_content_translation/bt/revision
View file @
2bef46d8
46
47
\ 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