On Tue, 2009-10-20 at 23:33 +0200, Thomas Vander Stichele wrote:
> After reading the dev docs, I realized there's not actually much in
> there that talks about developing your plugin.  Florian told me to look
> at the example plugin mentioned there, which is what I am doing now.
> 
> Two initial remarks:
> 
> - is there any reason at all that the tarball is still stamped 'elisa'
> all over ?
> 
> - the permissions inside the plugin are bad:
> 
> [tho...@otto elisa-plugin-example]$ ls -l
> total 36
> d---------. 3 thomas thomas 4096 2009-09-21 12:52 elisa
> d---------. 2 thomas thomas 4096 2009-09-21 12:52
> elisa_plugin_example.egg-info
> ----------. 1 thomas thomas    0 2009-09-21 12:52 __init__.py
> ----------. 1 thomas thomas 2000 2009-09-21 12:52 README.txt
> ----------. 1 thomas thomas 2604 2009-09-21 12:52 setup.py
> 
> 
> I would recommend fixing both issues.

Replying to myself here.  After trying the example plugin in my moovida
1.0.7 as updated by my moovida 1.0.6 rpm, loading of one of them fails:
Traceback (most recent call last):
  File
"/usr/lib/python2.6/site-packages/twisted/internet/gtk2reactor.py", line
225, in simulate
    self.runUntilCurrent()
  File "/usr/lib/python2.6/site-packages/twisted/internet/base.py", line
757, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "/usr/lib/python2.6/site-packages/twisted/internet/task.py", line
251, in _tick
    result = iterator.next()
  File
"/home/thomas/.moovida/plugins/elisa-1.0.7.egg/elisa/core/manager.py",
line 101, in load_components_iter
    
--- <exception caught here> ---
  File
"/home/thomas/.moovida/plugins/elisa-1.0.7.egg/elisa/core/plugin_registry.py", 
line 1106, in create_component
    
  File "/usr/lib/python2.6/site-packages/twisted/python/reflect.py",
line 456, in namedAny
    topLevelPackage = _importAndCheckStack(trialname)
  File
"/home/thomas/flu/moovida/elisa-plugin-example/elisa/plugins/example/api_menu.py",
 line 57, in <module>
    from elisa.plugins.poblesec.actions import
OpenControllerActionWithItem
exceptions.ImportError: cannot import name OpenControllerActionWithItem


It seems OpenControllerActionWithItem was added after 1.0.7

If you want to attract developers and give a good 5 minute out of box
experience, I recommend you make sure your example plugin works always
with the latest release at a minimum, and with more if possible.

Thomas

> Thomas

Reply via email to