Skip to content

Commit

Permalink
make Document properties method a class method, so we can use it as
Browse files Browse the repository at this point in the history
instance or class level. Fix issue benoitc#55.
  • Loading branch information
benoitc committed Jan 19, 2011
1 parent 67e3613 commit 2f3b58e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions couchdbkit/schema/base.py
Expand Up @@ -142,9 +142,10 @@ def dynamic_properties(self):
return {}
return self._dynamic_properties.copy()

def properties(self):
@classmethod
def properties(cls):
""" get dict of defined properties """
return self._properties.copy()
return cls._properties.copy()

def all_properties(self):
""" get all properties.
Expand Down

0 comments on commit 2f3b58e

Please sign in to comment.