# HG changeset patch # User Adrien Di Mascio # Date 1234947806 -3600 # Node ID 01740274e7742a9d37593148ad8ef27245a2d2f3 # Parent 17d38f000bea3d5880edf6425acec6ce24c9a807 remove explicit access to .im_func when overriding `registered` diff -r 17d38f000bea -r 01740274e774 view.py --- a/view.py Wed Feb 18 01:45:35 2009 +0100 +++ b/view.py Wed Feb 18 10:03:26 2009 +0100 @@ -323,7 +323,7 @@ # XXX deprecate __registerer__ = accepts_registerer __select__ = implements('Any') - registered = accepts_compat(View.registered.im_func) + registered = accepts_compat(View.registered) category = 'entityview' @@ -334,7 +334,7 @@ """ __registerer__ = priority_registerer __select__ = none_rset() - registered = require_group_compat(View.registered.im_func) + registered = require_group_compat(View.registered) category = 'startupview' @@ -421,7 +421,7 @@ __registry__ = 'templates' __select__ = yes() - registered = require_group_compat(View.registered.im_func) + registered = require_group_compat(View.registered) def template(self, oid, **kwargs): """shortcut to self.registry.render method on the templates registry""" diff -r 17d38f000bea -r 01740274e774 web/action.py --- a/web/action.py Wed Feb 18 01:45:35 2009 +0100 +++ b/web/action.py Wed Feb 18 10:03:26 2009 +0100 @@ -82,7 +82,7 @@ return selector(cls, req, rset, row, col, **kwargs) __select__ = my_selector() - registered = accepts_compat(Action.registered.im_func) + registered = accepts_compat(Action.registered) category = 'addrelated' diff -r 17d38f000bea -r 01740274e774 web/controller.py --- a/web/controller.py Wed Feb 18 01:45:35 2009 +0100 +++ b/web/controller.py Wed Feb 18 10:03:26 2009 +0100 @@ -69,7 +69,7 @@ __registry__ = 'controllers' __registerer__ = priority_registerer __select__ = yes() - registered = require_group_compat(AppObject.registered.im_func) + registered = require_group_compat(AppObject.registered) def __init__(self, *args, **kwargs): super(Controller, self).__init__(*args, **kwargs)