Bumped version to 0.0.5
Fixed problem where fields contained shared values by performing a shallow copy on all fields during Record instantiation. That way, each record has its own copy of the field instances, rather than the shared class-wide instance provided by the definition.
This commit is contained in:
parent
4023d46b4a
commit
7cb8bed61e
4 changed files with 28 additions and 23 deletions
|
@ -50,12 +50,6 @@ class Field(object):
|
|||
self.value = s.strip()
|
||||
|
||||
|
||||
class FieldInterface(object):
|
||||
def __init__(self, value_dict, field):
|
||||
self.value_dict = value_dict
|
||||
self.field = field
|
||||
|
||||
|
||||
class TextField(Field):
|
||||
def validate(self):
|
||||
if self.value == None and self.required:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue