diff options
| author | Chris McDonough <chrism@plope.com> | 2011-11-24 03:04:37 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-11-24 03:04:37 -0500 |
| commit | 8f6b247dceb923f6f8656fdf256b60578acd4af8 (patch) | |
| tree | fc9b2d5f0d33b346f429b3ca929d80db336a475e | |
| parent | 412b4abe9bb05aa0509508bead2498dfa2bd5f41 (diff) | |
| download | pyramid-8f6b247dceb923f6f8656fdf256b60578acd4af8.tar.gz pyramid-8f6b247dceb923f6f8656fdf256b60578acd4af8.tar.bz2 pyramid-8f6b247dceb923f6f8656fdf256b60578acd4af8.zip | |
fix interface
| -rw-r--r-- | pyramid/interfaces.py | 9 |
1 files 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 |
