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

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.6)
  3.  
  4. import hooks
  5. import util.net as net
  6. import services.service_provider as SP
  7.  
  8. class WindowsLiveServiceProvider(SP.EmailPasswordServiceProvider):
  9.     pass
  10.  
  11.  
  12. def validate(info, MSP, is_new):
  13.     valid = hooks.first('digsby.services.validate', info, MSP, is_new, impl = 'digsby_service_editor', raise_hook_exceptions = True)
  14.     password = info.get('_real_password_')
  15.     if password is not None:
  16.         if len(password) > 16:
  17.             raise SP.AccountException(_('Password should be 16 characters or less.'), fatal = False)
  18.         len(password) > 16
  19.     
  20.     remote_alias = info.get('remote_alias')
  21.     if remote_alias is not None:
  22.         if password == remote_alias:
  23.             raise SP.AccountException(_("You can't have your password as your display name."))
  24.         password == remote_alias
  25.     
  26.     return valid
  27.  
  28.