'floating' docstring fixes

move module docstrings to the top of the module
convert some 'docstrings' to comments
remove useless docs
This commit is contained in:
Alexandre Fayolle
2014-12-03 09:52:45 +01:00
parent ca3d306f7d
commit d9cd6c0ba5
3 changed files with 6 additions and 8 deletions

View File

@@ -21,17 +21,16 @@
#
##############################################################################
from openerp.osv import orm, fields
from openerp.tools.translate import _
"""
The banking transaction wizard is linked to a button in the statement line
tree view. It allows the user to undo the duplicate flag, select between
multiple matches or select a manual match.
"""
from openerp.osv import orm, fields
from openerp.tools.translate import _
class banking_transaction_wizard(orm.TransientModel):
_name = 'banking.transaction.wizard'

View File

@@ -72,7 +72,6 @@ class MT940(object):
def __init__(self, *args, **kwargs):
super(MT940, self).__init__(*args, **kwargs)
'state variables'
self.current_statement = None
'type account_banking.parsers.models.mem_bank_statement'
self.current_transaction = None
@@ -200,7 +199,7 @@ class MT940(object):
transaction.execution_date = str2date(data[:6])
transaction.effective_date = str2date(data[:6])
transaction.value_date = str2date(data[:6])
'...and the rest already is highly bank dependent'
# ...and the rest already is highly bank dependent
def handle_tag_86(self, cr, data):
'''details for previous transaction, here most differences between

View File

@@ -60,7 +60,7 @@ class transaction_message(object):
_('Invalid transaction line: expected %d columns, found '
'%d') % (len(self.attrnames), len(values))
)
''' Strip all values except the blob '''
# Strip all values except the blob
for (key, val) in zip(self.attrnames, values):
self.__dict__[key] = key == 'blob' and val or val.strip()
# for lack of a standardized locale function to parse amounts