Bug 4824

Summary: python-mafw: source_browsing.py example does not work
Product: [Extras] PyMaemo Reporter: Anderson Lizardo <anderson.lizardo>
Component: GeneralAssignee: Anderson Lizardo <anderson.lizardo>
Status: RESOLVED FIXED QA Contact: general
Severity: normal    
Priority: Medium CC: a.grandi, lauro.neto
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Bug Depends on: 4823    
Bug Blocks:    

Description Anderson Lizardo (reporter) 2009-07-22 23:20:47 UTC
Running "run-standalone.sh python2.5 examples/source_browsing.py localtagfs::"
currently (for python-mafw 0.1-1maemo1) returns:

INFO:root:Starting example...
Traceback (most recent call last):
  File "examples/source_browsing.py", line 134, in <module>
    main()
  File "examples/source_browsing.py", line 127, in main
    app = SourceBrowsing(gobject.MainLoop(), 'aaaa')
  File "examples/source_browsing.py", line 24, in __init__
    self._add_existing_ext()
  File "examples/source_browsing.py", line 37, in _add_existing_ext
    extension_list = self.registry.get_renderers()
AttributeError: 'mafw.Registry' object has no attribute 'get_renderers'
Comment 1 Andrea Grandi 2009-08-12 11:02:34 UTC
(In reply to comment #0)
> Running "run-standalone.sh python2.5 examples/source_browsing.py localtagfs::"
> currently (for python-mafw 0.1-1maemo1) returns:
> 
> INFO:root:Starting example...
> Traceback (most recent call last):
>   File "examples/source_browsing.py", line 134, in <module>
>     main()
>   File "examples/source_browsing.py", line 127, in main
>     app = SourceBrowsing(gobject.MainLoop(), 'aaaa')
>   File "examples/source_browsing.py", line 24, in __init__
>     self._add_existing_ext()
>   File "examples/source_browsing.py", line 37, in _add_existing_ext
>     extension_list = self.registry.get_renderers()
> AttributeError: 'mafw.Registry' object has no attribute 'get_renderers'
> 

Now get_renderers() and get_sources() are implemented, but we cannot fully test
these methods due to a know bug in MAFW library.

Anyway other methods used in source_browse.py are not implemented yet, so the
example cannot run successfully.