Most of the pep8 changes finished. Be careful, things may be horribly broken.
This commit is contained in:
@ -8,7 +8,7 @@ from fenrirscreenreader.core import debug
|
||||
import re
|
||||
|
||||
|
||||
class tableManager():
|
||||
class TableManager():
|
||||
def __init__(self):
|
||||
self.headLine = ''
|
||||
self.defaultSeparators = ['+', ';', '|', ' ']
|
||||
@ -22,32 +22,32 @@ class tableManager():
|
||||
def shutdown(self):
|
||||
pass
|
||||
|
||||
def resetTableMode(self):
|
||||
self.setHeadLine()
|
||||
def reset_table_mode(self):
|
||||
self.set_head_line()
|
||||
|
||||
def setHeadColumnSep(self, columnSep=''):
|
||||
def set_head_column_sep(self, columnSep=''):
|
||||
self.headColumnSep = columnSep
|
||||
if columnSep == '':
|
||||
self.noOfHeadLineColumns = 0
|
||||
else:
|
||||
self.counNoOfHeadColumns()
|
||||
self.coun_no_of_head_columns()
|
||||
|
||||
def counNoOfHeadColumns(self):
|
||||
def coun_no_of_head_columns(self):
|
||||
pass
|
||||
|
||||
def searchForHeadColumnSep(self, headLine):
|
||||
def search_for_head_column_sep(self, headLine):
|
||||
if ' ' in headLine:
|
||||
return ' '
|
||||
return ''
|
||||
|
||||
def setRowColumnSep(self, columnSep=''):
|
||||
def set_row_column_sep(self, columnSep=''):
|
||||
self.rowColumnSep = columnSep
|
||||
|
||||
def setHeadLine(self, headLine=''):
|
||||
self.setHeadColumnSep()
|
||||
self.setRowColumnSep()
|
||||
def set_head_line(self, headLine=''):
|
||||
self.set_head_column_sep()
|
||||
self.set_row_column_sep()
|
||||
if headLine != '':
|
||||
sep = self.searchForHeadColumnSep(headLine)
|
||||
sep = self.search_for_head_column_sep(headLine)
|
||||
if sep != '':
|
||||
self.headLine = headLine
|
||||
self.setHeadColumnSep(sep)
|
||||
self.set_head_column_sep(sep)
|
||||
|
Reference in New Issue
Block a user