Skip to content

Commit

Permalink
change default IPartition to be more explicit and prevent collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
vangheem committed Apr 10, 2017
1 parent 77a8766 commit 9893e64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion guillotina/annotations.py
@@ -1,7 +1,6 @@
from collections import UserDict
from guillotina import configure
from guillotina.db.orm.base import BaseObject
from guillotina.db.reader import reader
from guillotina.interfaces import IAnnotations
from guillotina.interfaces import IResource

Expand Down
4 changes: 2 additions & 2 deletions guillotina/db/partition.py
Expand Up @@ -12,7 +12,7 @@ def __init__(self, content):
self.content = content

def __call__(self):
if hasattr(self.content, 'parent_datasource'):
return self.content.parent_datasource
if hasattr(self.content, 'partition_id'):
return self.content.partition_id
else:
return None

0 comments on commit 9893e64

Please sign in to comment.