return ""\r
\r
def describe(self, viewer=None):\r
- return ""\r
+ return self.__class__.__name__\r
\r
def get_absolute_url(self):\r
if self.node:\r
class Meta:\r
proxy = True\r
\r
-class DummyActionProxy(Action):\r
- __metaclass__ = ActionProxyMetaClass\r
+class DummyActionProxyMetaClass(type):\r
+ def __new__(cls, *args, **kwargs):\r
+ new_cls = super(DummyActionProxyMetaClass, cls).__new__(cls, *args, **kwargs)\r
+ ActionProxyMetaClass.types[new_cls.get_type()] = new_cls\r
+ return new_cls\r
+\r
+class DummyActionProxy(object):\r
+ __metaclass__ = DummyActionProxyMetaClass\r
\r
hooks = []\r
\r
+ def __init__(self, ip=None):\r
+ self.ip = ip\r
+\r
def process_data(self, **data):\r
pass\r
\r