home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 October / maximum-cd-2011-10.iso / DiscContents / digsby_setup.exe / lib / plugins / provider_myspace / myspace_sp.pyo (.txt) < prev   
Encoding:
Python Compiled Bytecode  |  2011-06-22  |  1.5 KB  |  37 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.6)
  3.  
  4. import logging
  5. log = logging.getLogger('myspace_sp')
  6. import services.service_provider as SP
  7.  
  8. class MyspaceServiceProvider(SP.UsernamePasswordServiceProvider, SP.OAuthServiceProvider):
  9.     
  10.     def update_info(self, info):
  11.         super(MyspaceServiceProvider, self).update_info(info)
  12.         self.post_ach_all = info.get('post_ach_all', True)
  13.         if 'filters' in info:
  14.             self.filters = info.get('filters')
  15.         
  16.  
  17.     
  18.     def add_account_social(self, acct):
  19.         acct_options = acct.get_options()
  20.         if 'filters' in acct_options:
  21.             self.filters = acct_options.get('filters')
  22.         
  23.         super(MyspaceServiceProvider, self).add_account_social(acct)
  24.  
  25.     
  26.     def get_options(self, ctype):
  27.         options = super(MyspaceServiceProvider, self).get_options(ctype)
  28.         if ctype == 'social':
  29.             options['post_ach_all'] = getattr(self, 'post_ach_all', True)
  30.             if hasattr(self, 'filters'):
  31.                 options['filters'] = self.filters
  32.             
  33.         
  34.         return options
  35.  
  36.  
  37.