Skip to content

Commit

Permalink
Add LocalGroup.__repr__.
Browse files Browse the repository at this point in the history
  • Loading branch information
disko committed Oct 8, 2016
1 parent 37c6527 commit 55bf691
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kotti/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ def copy(self, **kwargs):

return self.__class__(**kwargs)

def __repr__(self):
return u'<{0} {1} => {2} at {3}>'.format(
self.__class__.__name__, self.principal_name, self.group_name,
resource_path(self.node))


@implementer(INode)
class Node(Base, ContainerMixin, PersistentACLMixin):
Expand Down

0 comments on commit 55bf691

Please sign in to comment.