From 8f6b247dceb923f6f8656fdf256b60578acd4af8 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 24 Nov 2011 03:04:37 -0500 Subject: fix interface --- pyramid/interfaces.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pyramid/interfaces.py b/pyramid/interfaces.py index 9cae9e642..f241ddfb9 100644 --- a/pyramid/interfaces.py +++ b/pyramid/interfaces.py @@ -943,7 +943,7 @@ class IIntrospectable(Interface): will result if this is not true. """ - def unrelate(self, category_name, discriminator): + def unrelate(category_name, discriminator): """ Break any relationship between this IIntrospectable and another IIntrospectable (the one associated with the ``category_name`` and ``discriminator``). The introspectable you wish to unrelate from must @@ -952,8 +952,11 @@ class IIntrospectable(Interface): :meth:`pyramid.interfaces.IIntrospector.add_intr`; a :exc:`KeyError` will result if this is not true. """ - def related(self): - """ Return a set of related IIntrospectables """ + def related(introspector): + """ Return a sequence of related IIntrospectables """ + + def __call__(introspector, action_info): + """ Register this IIntrospectable with the introspector """ # configuration phases: a lower phase number means the actions associated # with this phase will be executed earlier than those with later phase -- cgit v1.2.3