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
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
Léo-Paul Géneau
erp5
Commits
0391220a
Commit
0391220a
authored
Feb 24, 2014
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetic: Fix Pylint warnings.
parent
519f7480
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
60 additions
and
41 deletions
+60
-41
bt5/erp5_administration/ExtensionTemplateItem/portal_components/extension.erp5.ERP5Administration.py
...em/portal_components/extension.erp5.ERP5Administration.py
+7
-7
bt5/erp5_administration/ExtensionTemplateItem/portal_components/extension.erp5.ERP5Administration.xml
...m/portal_components/extension.erp5.ERP5Administration.xml
+44
-30
bt5/erp5_administration/bt/change_log
bt5/erp5_administration/bt/change_log
+3
-0
bt5/erp5_administration/bt/revision
bt5/erp5_administration/bt/revision
+1
-1
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Component_getErrorWarningMessageDictAsJson.xml
.../erp5_core/Component_getErrorWarningMessageDictAsJson.xml
+1
-2
product/ERP5/bootstrap/erp5_core/bt/change_log
product/ERP5/bootstrap/erp5_core/bt/change_log
+3
-0
product/ERP5/bootstrap/erp5_core/bt/revision
product/ERP5/bootstrap/erp5_core/bt/revision
+1
-1
No files found.
bt5/erp5_administration/ExtensionTemplateItem/portal_components/extension.erp5.ERP5Administration.py
View file @
0391220a
...
...
@@ -20,15 +20,15 @@ def dumpWorkflowChain(self):
ti
=
workflow_tool
.
_listTypeInfo
()
types_info
=
[]
for
t
in
ti
:
id
=
t
.
getId
()
id
_
=
t
.
getId
()
title
=
t
.
Title
()
if
title
==
id
:
if
title
==
id
_
:
title
=
None
if
cbt
is
not
None
and
cbt
.
has_key
(
id
):
chain
=
sorted
(
cbt
[
id
])
if
cbt
is
not
None
and
cbt
.
has_key
(
id
_
):
chain
=
sorted
(
cbt
[
id
_
])
else
:
chain
=
[
'(Default)'
]
types_info
.
append
({
'id'
:
id
,
types_info
.
append
({
'id'
:
id
_
,
'title'
:
title
,
'chain'
:
chain
})
output
=
[]
...
...
@@ -94,7 +94,7 @@ def MessageCatalog_deleteNotTranslatedMessageDict(self):
Delete from Localizer's MessageCatalog instance messages that are NOT translated.
"""
not_translated_message_dict
=
MessageCatalog_getNotTranslatedMessageDict
(
self
)
for
k
,
v
in
not_translated_message_dict
.
iteritems
():
for
k
,
_
in
not_translated_message_dict
.
iteritems
():
# delete message from dict
del
(
self
.
_messages
[
k
])
return
len
(
not_translated_message_dict
.
keys
())
...
...
@@ -117,7 +117,7 @@ def checkConversionToolAvailability(self):
try
:
temp_document
=
newTempOOoDocument
(
self
,
document_id
,
data
=
document_file
.
data
,
source_reference
=
document_id
)
temp_document
.
convertToBaseFormat
()
mimetype
,
html_result
=
temp_document
.
convert
(
format
=
'html'
)
_
,
html_result
=
temp_document
.
convert
(
format
=
'html'
)
except
ConflictError
:
raise
except
:
#Which Errors should we catch ?
...
...
bt5/erp5_administration/ExtensionTemplateItem/portal_components/extension.erp5.ERP5Administration.xml
View file @
0391220a
...
...
@@ -6,10 +6,22 @@
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_recorded_property_dict
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
ERP5Administration
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
extension.erp5.ERP5Administration
</string>
</value>
...
...
@@ -24,6 +36,20 @@
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple>
<string>
W: 88, 29: map/filter on lambda could be replaced by comprehension (deprecated-lambda)
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
...
...
@@ -31,13 +57,28 @@
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
I
=
</string>
</persistent>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
M
=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
...
...
@@ -50,7 +91,7 @@
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
M
=
</string>
</persistent>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
Q
=
</string>
</persistent>
</value>
</item>
</dictionary>
...
...
@@ -59,7 +100,7 @@
</dictionary>
</pickle>
</record>
<record
id=
"
3"
aka=
"AAAAAAAAAAM
="
>
<record
id=
"
4"
aka=
"AAAAAAAAAAQ
="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
...
...
@@ -72,33 +113,6 @@
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
ERP5TypeTestCase
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1377844543.44
</float>
<string>
GMT+9
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
...
...
bt5/erp5_administration/bt/change_log
View file @
0391220a
2014-02-24 arnaud.fontaine
* Cosmetic: Fix Pylint warnings.
2014-02-24 arnaud.fontaine
* Use Pylint to check source code to unify ZODB Components and Python Script source code checking.
...
...
bt5/erp5_administration/bt/revision
View file @
0391220a
159
\ No newline at end of file
160
\ No newline at end of file
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Component_getErrorWarningMessageDictAsJson.xml
View file @
0391220a
...
...
@@ -53,8 +53,7 @@
<value>
<string
encoding=
"cdata"
>
<![CDATA[
import re\n
message_re = re.compile(\'[CRWEF]:\\s*(?P<line>
\\d+),\\s*(?P
<column>
\\d+):\\s*.*\')\n
error_warning_dict = {\'error_list\': [], \'warning_list\': []}\n
message_re = re.compile(r\'[CRWEF]:\\s*(?P<line>
\\d+),\\s*(?P
<column>
\\d+):\\s*.*\')\n
\n
def getParsedMessageList(message_list):\n
result_list = []\n
...
...
product/ERP5/bootstrap/erp5_core/bt/change_log
View file @
0391220a
2014-02-24 arnaud.fontaine
* Cosmetic: Fix Pylint warnings.
2014-02-24 arnaud.fontaine
* Follow API changes to unify ZODB Components and Python Script source code checking.
...
...
product/ERP5/bootstrap/erp5_core/bt/revision
View file @
0391220a
41153
\ No newline at end of file
41154
\ 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