Skip to content

Commit

Permalink
pep8 model.core
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Apr 26, 2012
1 parent 14f4b14 commit 71757b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ckan/model/core.py
Expand Up @@ -7,12 +7,13 @@
import domain_object


__all__= ['System', 'Revision', 'State', 'revision_table']
__all__ = ['System', 'Revision', 'State', 'revision_table']

## VDM-specific tables
revision_table = vdm.sqlalchemy.make_revision_table(meta.metadata)
revision_table.append_column(Column('approved_timestamp', DateTime))


class System(domain_object.DomainObject):

name = 'system'
Expand All @@ -29,7 +30,7 @@ def by_name(cls, name):

# VDM-specific domain objects
State = vdm.sqlalchemy.State
State.all = [ State.ACTIVE, State.DELETED ]
State.all = [State.ACTIVE, State.DELETED]
Revision = vdm.sqlalchemy.make_Revision(meta.mapper, revision_table)


Expand All @@ -42,4 +43,3 @@ def make_revisioned_table(table):
default=datetime.datetime(9999, 12, 31)))
revision_table.append_column(Column('current', Boolean))
return revision_table

0 comments on commit 71757b2

Please sign in to comment.