Commit 009fe55c authored by Rafael Monnerat's avatar Rafael Monnerat

Improve little code style only.

parent de58fb34
...@@ -187,7 +187,7 @@ class IntrospectionTool(LogMixin, BaseTool): ...@@ -187,7 +187,7 @@ class IntrospectionTool(LogMixin, BaseTool):
if not os.path.exists(log_file): if not os.path.exists(log_file):
raise IOError, 'The file: %s does not exist.' % 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') tailed_file = open(log_file,'r')
while 1: while 1:
...@@ -204,7 +204,7 @@ class IntrospectionTool(LogMixin, BaseTool): ...@@ -204,7 +204,7 @@ class IntrospectionTool(LogMixin, BaseTool):
if (len(lines) > (line_number + 1)) or at_start: if (len(lines) > (line_number + 1)) or at_start:
break break
# The lines are bigger than we thought # 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() tailed_file.close()
...@@ -215,7 +215,6 @@ class IntrospectionTool(LogMixin, BaseTool): ...@@ -215,7 +215,6 @@ class IntrospectionTool(LogMixin, BaseTool):
return "\n".join(lines[start:len(lines)]) return "\n".join(lines[start:len(lines)])
security.declareProtected(Permissions.ManagePortal, 'tailEventLog') security.declareProtected(Permissions.ManagePortal, 'tailEventLog')
def tailEventLog(self): def tailEventLog(self):
""" """
...@@ -259,7 +258,7 @@ class IntrospectionTool(LogMixin, BaseTool): ...@@ -259,7 +258,7 @@ class IntrospectionTool(LogMixin, BaseTool):
compressed=compressed) compressed=compressed)
security.declareProtected(Permissions.ManagePortal, 'getDataFs') security.declareProtected(Permissions.ManagePortal, 'getDataFs')
def getDataFs(self, compressed=1, REQUEST=None): def getDataFs(self, compressed=1, REQUEST=None):
""" """
Get the Data.fs. Get the Data.fs.
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment