changeset 4798:ed977dd981ce

Groups2009: repr for GroupManager and BaseBackend.
author Dmitrijs Milajevs <dimazest@gmail.com>
date Wed, 10 Jun 2009 19:10:50 +0200
parents 4539a7956eac
children fde7471cb2a3
files MoinMoin/groups/__init__.py MoinMoin/groups/backends/__init__.py
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/groups/__init__.py	Wed Jun 10 10:45:41 2009 +0200
+++ b/MoinMoin/groups/__init__.py	Wed Jun 10 19:10:50 2009 +0200
@@ -137,3 +137,6 @@
             load_cache = getattr(backend, 'load_cache', None)
             if callable(load_cache):
                 load_cache()
+
+    def __repr__(self):
+        return "<%s backends=%s>" % (self.__class__, self._backends)
--- a/MoinMoin/groups/backends/__init__.py	Wed Jun 10 10:45:41 2009 +0200
+++ b/MoinMoin/groups/backends/__init__.py	Wed Jun 10 19:10:50 2009 +0200
@@ -140,3 +140,6 @@
         """
         return backend_group_name
 
+    def __repr__(self):
+        return "<%s groups=%s>" % (self.__class__, [b for b in self] )
+