diff --git a/layout/browser/node.py b/layout/browser/node.py index a257535..6609619 100644 --- a/layout/browser/node.py +++ b/layout/browser/node.py @@ -30,6 +30,10 @@ from loops.common import adapted class LayoutNodeView(Page): + @Lazy + def loopsRoot(self): + return self.context.getLoopsRoot() + @Lazy def layoutName(self): return self.context.viewName or 'page' diff --git a/organize/personal/interfaces.py b/organize/personal/interfaces.py index adfdea7..2c03983 100644 --- a/organize/personal/interfaces.py +++ b/organize/personal/interfaces.py @@ -32,10 +32,18 @@ class IFavorites(Interface): """ A collection of favorites. """ - def add(objectId, personId): + def add(obj, person): """ Add an object to the person's favorites collection. """ + def remove(obj, person): + """ Remove an object from the person's favorites collection. + """ + + def list(person, sortKey=None): + """ Return a list of favorite objects for the person given. + """ + class IFavorite(ITrack): """ A favorite references a content object via the