Bug 11768

Summary: ReSiStance refuses to start when moving from previous versions
Product: [Extras] ReSiStance Reporter: Sergio Villar Senin <svillar>
Component: GeneralAssignee: Sergio Villar Senin <svillar>
Status: RESOLVED FIXED QA Contact: general
Severity: critical    
Priority: Unspecified    
Version: unspecified   
Target Milestone: ---   
Hardware: N900   
OS: Maemo   

Description Sergio Villar Senin (reporter) 2011-01-12 19:03:06 UTC
$ resistance
Exception in thread Thread-1:
Traceback (most recent call last):
File “/usr/lib/python2.5/threading.py”, line 486, in __bootstrap_inner
self.run()
File “/usr/lib/python2.5/threading.py”, line 446, in run
self.__target(*self.__args, **self.__kwargs)
File “/usr/lib/python2.5/site-packages/ReSiStance/feedmanager.py”, line 442, in
_load_in_thread
self._safe_callback(callback, data)
File “/usr/lib/python2.5/site-packages/ReSiStance/feedmanager.py”, line 121, in
_safe_callback
callback(*args)
File “/usr/lib/python2.5/site-packages/ReSiStance/gui.py”, line 922, in
_feed_data_loaded
self.FEEDS_MODEL_SYNC_COLUMN, feed_data.sync,
File “/usr/lib/python2.5/site-packages/feedparser.py”, line 236, in __getattr__
raise AttributeError, “object has no attribute ‘%s’” % key
AttributeError: object has no attribute ’sync’
Comment 1 Sergio Villar Senin (reporter) 2011-01-12 19:06:45 UTC
This is incorrect (in feedmanager.py):

        if sync != None:
            if not 'sync' in self:
                self['sync'] = sync
Comment 2 Sergio Villar Senin (reporter) 2011-01-12 19:12:05 UTC
Fixed in master 2337b6d562d8b61d725d1cc1a7059e64d725ae89
Comment 3 Sergio Villar Senin (reporter) 2011-01-12 19:16:02 UTC
This will be fixed on 0.8.2. For those of you that cannot wait just open as
root in your device the file:

/usr/lib/python2.5/site-packages/ReSiStance/feedmanager.py

Go to line 95 and replace:

        if sync != None:
            if not 'sync' in self:
                self['sync'] = sync

by:

        if not 'sync' in self:
            self['sync'] = sync if sync != None else False