home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 October / maximum-cd-2011-10.iso / DiscContents / digsby_setup.exe / lib / mail / hotmail / tools.pyo (.txt) < prev   
Encoding:
Python Compiled Bytecode  |  2011-06-22  |  3.2 KB  |  92 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.6)
  3.  
  4. import path
  5.  
  6. def a(name):
  7.     return (name, '_string')
  8.  
  9.  
  10. def c(name):
  11.     return (name, '_primitive')
  12.  
  13.  
  14. def e(name):
  15.     return (name, '_array')
  16.  
  17.  
  18. def d(clsname, name = None):
  19.     if not name:
  20.         pass
  21.     return (clsname, clsname)
  22.  
  23.  
  24. def f(name):
  25.     return (name, '_enum')
  26.  
  27.  
  28. def g(name):
  29.     return (name, '_object')
  30.  
  31.  
  32. def j(name):
  33.     return (name, '_oArray')
  34.  
  35.  
  36. class B(object):
  37.     
  38.     def rfc(self, name, args):
  39.         args_string = '\n'.join((lambda .0: for arg in .0:
  40. '        (%r, %r),' % arg)(args))
  41.         return 'class %s(FppClass):\n    _fields_ = [\n%s\n        ]\n' % (name, args_string)
  42.  
  43.     
  44.     def rfm(self, name, args, method_name, tm, g, namespace):
  45.         return (args, name, tm, g, namespace)
  46.  
  47.     
  48.     def __getattr__(self, attr):
  49.         
  50.         try:
  51.             return object.__getattribute__(self, attr)
  52.         except AttributeError:
  53.             return attr
  54.  
  55.  
  56.  
  57. b = B()
  58. null = None
  59.  
  60. class Network:
  61.     
  62.     class Type:
  63.         XMLPost = 0
  64.  
  65.  
  66. known_js_filenames = [
  67.     'i0a.js',
  68.     'i1a.js',
  69.     'i2a.js',
  70.     'i3a.js',
  71.     'i4a.js']
  72.  
  73. def download_src(buildnum, localdir = 'd:\\src\\hotmail\\', remote_base = 'http://gfx6.hotmail.com/mail/'):
  74.     import urllib2
  75.     import js_scrape
  76.     build_dir = path.path(localdir) / buildnum
  77.     if not build_dir.isdir():
  78.         build_dir.makedirs()
  79.     
  80.     for fname in known_js_filenames:
  81.         
  82.         try:
  83.             f = _[1]
  84.             f.write(js_scrape.Cleanup_JS(urllib2.urlopen(remote_base + buildnum + '/' + fname).read()))
  85.         finally:
  86.             pass
  87.  
  88.     
  89.  
  90. import sys
  91. sys.path.append('d:\\workspace\\js_scrape')
  92.