Bug 11768 - ReSiStance refuses to start when moving from previous versions
: ReSiStance refuses to start when moving from previous versions
Status: RESOLVED FIXED
Product: ReSiStance
General
: unspecified
: N900 Maemo
: Unspecified critical (vote)
: ---
Assigned To: Sergio Villar Senin
: general
:
:
:
:
  Show dependency tree
 
Reported: 2011-01-12 19:03 UTC by Sergio Villar Senin
Modified: 2011-01-12 19:16 UTC (History)
0 users (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


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