Tidy up Facet

This commit is contained in:
Paul Makepeace 2011-04-26 01:03:28 -04:00
parent 478fae7d91
commit b34ff146c4
1 changed files with 2 additions and 3 deletions

View File

@ -32,11 +32,10 @@ def from_camel(attr):
class Facet(object): class Facet(object):
def __init__(self, column, type, expression='value', def __init__(self, column, type, expression='value', **options):
**options):
self.type = type self.type = type
self.name = column
self.column_name = column self.column_name = column
self.name = column # XXX not sure what the difference is yet
self.expression = expression self.expression = expression
for k, v in options.items(): for k, v in options.items():
setattr(self, k, v) setattr(self, k, v)