home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2012 January / maximum-cd-2012-01.iso / DiscContents / digsby_setup.exe / lib / plugins / provider_twitter / twitter_sp.pyo (.txt) < prev   
Encoding:
Python Compiled Bytecode  |  2011-10-05  |  1.0 KB  |  23 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.6)
  3.  
  4. import logging
  5. log = logging.getLogger('twitter_sp')
  6. import services.service_provider as SP
  7.  
  8. class TwitterServiceProvider(SP.UsernamePasswordServiceProvider):
  9.     
  10.     def update_info(self, info):
  11.         super(TwitterServiceProvider, self).update_info(info)
  12.         self.post_ach_all = info.get('post_ach_all', True)
  13.  
  14.     
  15.     def get_options(self, ctype):
  16.         options = super(TwitterServiceProvider, self).get_options(ctype)
  17.         if ctype == 'social':
  18.             options['post_ach_all'] = getattr(self, 'post_ach_all', True)
  19.         
  20.         return options
  21.  
  22.  
  23.