__init__.py 537 B

123456789101112131415161718192021222324252627282930
  1. # -*- coding: utf-8 -*-
  2. '''
  3. Created on 2012-6-29
  4. @author: lijie.ma
  5. '''
  6. from aliyun.api.base import sign
  7. class appinfo(object):
  8. def __init__(self,accessKeyId,accessKeySecret):
  9. self.accessKeyId = accessKeyId
  10. self.accessKeySecret = accessKeySecret
  11. def getDefaultAppInfo():
  12. pass
  13. def setDefaultAppInfo(accessKeyId,accessKeySecret):
  14. default = appinfo(accessKeyId,accessKeySecret)
  15. global getDefaultAppInfo
  16. getDefaultAppInfo = lambda: default