The solution to this is to add a constructor to the subclasses of
MenuProvider etc. I haven't seen the source code for the bindings, but
from the behaviour (I got the same problems), it appears that the
classes have constructors resembling the following:
<code>
class MenuProvider:
def __init__ (self):
raise NotImplementedError ("MenuProvider can not be constructed")
def get_file_items:
...
</code>
This forces the developer to override the class with their own constructor.
Looks like the examples have either not been tested, or were tested on
development code without this exception in.
Hope this helps, and that it is correct.
lxop
--
All examples give error "NotImplementedError: <example_class_name> can not be
constructed" when starting Nautilus
https://bugs.launchpad.net/bugs/216261
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs