__init__.py 436 B

1234567891011121314151617181920212223242526272829
  1. '''
  2. Created on 2012-6-29
  3. @author: lihao
  4. '''
  5. from top.api.base import sign
  6. class appinfo(object):
  7. def __init__(self,appkey,secret):
  8. self.appkey = appkey
  9. self.secret = secret
  10. def getDefaultAppInfo():
  11. pass
  12. def setDefaultAppInfo(appkey,secret):
  13. default = appinfo(appkey,secret)
  14. global getDefaultAppInfo
  15. getDefaultAppInfo = lambda: default