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
Lukas Niegsch
erp5
Commits
009fe55c
Commit
009fe55c
authored
Jun 21, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve little code style only.
parent
de58fb34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
product/ERP5/Tool/IntrospectionTool.py
product/ERP5/Tool/IntrospectionTool.py
+3
-4
No files found.
product/ERP5/Tool/IntrospectionTool.py
View file @
009fe55c
...
...
@@ -187,7 +187,7 @@ class IntrospectionTool(LogMixin, BaseTool):
if
not
os
.
path
.
exists
(
log_file
):
raise
IOError
,
'The file: %s does not exist.'
%
log_file
char_per_line
=
75
char_per_line
=
75
tailed_file
=
open
(
log_file
,
'r'
)
while
1
:
...
...
@@ -204,7 +204,7 @@ class IntrospectionTool(LogMixin, BaseTool):
if
(
len
(
lines
)
>
(
line_number
+
1
))
or
at_start
:
break
# The lines are bigger than we thought
char_per_line
=
char_per_line
*
1.3
# Inc for retry
char_per_line
=
char_per_line
*
1.3
# Inc for retry
tailed_file
.
close
()
...
...
@@ -215,7 +215,6 @@ class IntrospectionTool(LogMixin, BaseTool):
return
"
\
n
"
.
join
(
lines
[
start
:
len
(
lines
)])
security
.
declareProtected
(
Permissions
.
ManagePortal
,
'tailEventLog'
)
def
tailEventLog
(
self
):
"""
...
...
@@ -259,7 +258,7 @@ class IntrospectionTool(LogMixin, BaseTool):
compressed
=
compressed
)
security
.
declareProtected
(
Permissions
.
ManagePortal
,
'getDataFs'
)
def
getDataFs
(
self
,
compressed
=
1
,
REQUEST
=
None
):
def
getDataFs
(
self
,
compressed
=
1
,
REQUEST
=
None
):
"""
Get the Data.fs.
"""
...
...
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