Skip to content

Commit

Permalink
remove duplicate field attribute definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjanss committed Feb 24, 2013
1 parent 0a9d601 commit 25d9350
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions camelot/view/field_attributes.py
Expand Up @@ -66,15 +66,6 @@
'operators' : (operator.eq,),
},

sqlalchemy.types.BOOLEAN: lambda f: {
'python_type': bool,
'editable': True,
'nullable': True,
'delegate': delegates.BoolDelegate,
'from_string': bool_from_string,
'operators' : (operator.eq,),
},

sqlalchemy.types.Date: lambda f: {
'python_type': datetime.date,
'format': constants.camelot_date_format,
Expand Down Expand Up @@ -149,18 +140,6 @@
'operators': _numerical_operators,
},

sqlalchemy.types.INT: lambda f: {
'python_type': int,
'editable': True,
'minimum': constants.camelot_minint,
'maximum': constants.camelot_maxint,
'nullable': True,
'delegate': delegates.IntegerDelegate,
'from_string': int_from_string,
'widget': 'int',
'operators': _numerical_operators,
},

sqlalchemy.types.String: lambda f: {
'python_type': str,
'length': f.length,
Expand All @@ -172,17 +151,6 @@
'operators' : _text_operators,
},

sqlalchemy.types.TEXT: lambda f: {
'python_type': str,
'length': f.length,
'delegate': delegates.PlainTextDelegate,
'editable': True,
'nullable': True,
'widget': 'str',
'from_string': string_from_string,
'operators' : _text_operators,
},

camelot.types.Image: lambda f: {
'python_type': str,
'editable': True,
Expand Down

0 comments on commit 25d9350

Please sign in to comment.