I get a TypeError: super(type, obj): obj must be an instance or subtype of type
when rendering a View which has been reloaded with following code (e.g. as created by bobtemplates.plone
):
def __call__(self):
# Implement your own actions:
return super(SomeView, self).__call__()```
Removing the __call__
it reloads. Adding it fails again.
Any idea what the problem is?
To reproduce it:
- Add the following to a view
def __call__(self):
# Implement your own actions:
return super(SomeView, self).__call__()```
-
@@reload
code - Access a content with the view
- You get the following
Traceback (innermost last):
Module ZPublisher.WSGIPublisher, line 162, in transaction_pubevents
Module ZPublisher.WSGIPublisher, line 371, in publish_module
Module ZPublisher.WSGIPublisher, line 266, in publish
Module ZPublisher.mapply, line 85, in mapply
Module ZPublisher.WSGIPublisher, line 63, in call_object
Module my.package.views.some_view, line 20, in __call__
TypeError: super(type, obj): obj must be an instance or subtype of type