/[straw]/straw/src/lib/Feed.py
ViewVC logotype

Diff of /straw/src/lib/Feed.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.26 by jmalonzo, Mon Oct 20 03:27:50 2003 UTC revision 1.27 by jmalonzo, Mon Oct 20 04:17:42 2003 UTC
# Line 18  class Feed(object, straw.SignalEmitter): Line 18  class Feed(object, straw.SignalEmitter):
18                   '_id', 'invalid_rss', '_channel_description',                   '_id', 'invalid_rss', '_channel_description',
19                   '_channel_title', '_channel_link', '_channel_copyright',                   '_channel_title', '_channel_link', '_channel_copyright',
20                   'channel_lbd', 'channel_editor', 'channel_webmaster',                   'channel_lbd', 'channel_editor', 'channel_webmaster',
21                   '_channel_subscriptions', '_channel_blogroll',                   '_channel_subscriptions_location', '_channel_blogroll_location',
22                     '_channel_subscriptions', '_channel_blogroll',
23                   'channel_blink', 'channel_creator', '_previous_etag',                   'channel_blink', 'channel_creator', '_previous_etag',
24                   '_error', '_process_status', 'router', 'sticky')                   '_error', '_process_status', 'router', 'sticky')
25    
# Line 55  class Feed(object, straw.SignalEmitter): Line 56  class Feed(object, straw.SignalEmitter):
56          self.channel_webmaster = ""          self.channel_webmaster = ""
57          self.channel_creator = ""          self.channel_creator = ""
58          self._channel_subscriptions = ""          self._channel_subscriptions = ""
59            self._channel_subscriptions_location = ""
60          self._channel_blogroll = ""          self._channel_blogroll = ""
61            self._channel_blogroll_location = ""
62          self.channel_blink = ""          self.channel_blink = ""
63          self._location = location          self._location = location
64          self._username = username          self._username = username
# Line 278  class Feed(object, straw.SignalEmitter): Line 281  class Feed(object, straw.SignalEmitter):
281      def set_channel_blogroll(self, data):      def set_channel_blogroll(self, data):
282          if data and len(data):          if data and len(data):
283              try:              try:
                 # ok, so data is only a link FIXME  
284                  self._channel_blogroll = straw.OPMLImport.read(StringIO.StringIO(data))                  self._channel_blogroll = straw.OPMLImport.read(StringIO.StringIO(data))
285              except Exception, ex:              except Exception, ex:
286                  raise ex                  raise ex
# Line 286  class Feed(object, straw.SignalEmitter): Line 288  class Feed(object, straw.SignalEmitter):
288      channel_blogroll = property(get_channel_blogroll, set_channel_blogroll,      channel_blogroll = property(get_channel_blogroll, set_channel_blogroll,
289                                  None, "")                                  None, "")
290    
291        def get_channel_blogroll_location(self):
292            return self._channel_blogroll_location
293    
294        def set_channel_blogroll_location(self, loc):
295            self._channel_blogroll_location = loc
296    
297        channel_blogroll_location = property(get_channel_blogroll_location,
298                                             set_channel_blogroll_location, None, "")
299    
300      def get_channel_subscriptions(self):      def get_channel_subscriptions(self):
301          return self._channel_subscriptions          return self._channel_subscriptions
302    
# Line 299  class Feed(object, straw.SignalEmitter): Line 310  class Feed(object, straw.SignalEmitter):
310      channel_subscriptions = property(get_channel_subscriptions,      channel_subscriptions = property(get_channel_subscriptions,
311                                       set_channel_subscriptions, None, "")                                       set_channel_subscriptions, None, "")
312    
313    
314        def get_channel_subscriptions_location(self):
315            return self._channel_subscriptions_location
316    
317        def set_channel_subscriptions_location(self, loc):
318            self._channel_subscriptions_location = loc
319    
320        channel_subscriptions_location = property(get_channel_subscriptions_location,
321                                                  set_channel_subscriptions_location, None, "")
322    
323    
324      def set_process_status(self, status):      def set_process_status(self, status):
325          if status != self._process_status:          if status != self._process_status:
326              self._process_status = status              self._process_status = status

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26