added state wage record, but it isn't quite right

This commit is contained in:
Binh 2011-04-09 15:17:32 -05:00
parent 068f1bbae4
commit 179f67bac9
3 changed files with 120 additions and 48 deletions

View file

@ -32,7 +32,6 @@ class Field(object):
def read(self, fp):
if fp.tell() + self.max_length <= fp.len:
data = fp.read(self.max_length)
print self, self.max_length, data
return self.parse(data)
return None
@ -87,7 +86,6 @@ class StaticField(TextField):
self._value = value
def parse(self, s):
print 'STATIC', self.max_length, s, len(s)
pass
class BlankField(TextField):
@ -124,3 +122,6 @@ class MoneyField(Field):
def parse(self, s):
self.value = decimal.Decimal(s) * decimal.Decimal('0.01')
class DateField(TextField):
#FIXME I NEED TO BE WRITTEN!
pass