Пример #1
0
 def __init__(self):
     """Get config from settings.
     class instance will have the following properties:
     
     site_name
     site_id
     REDIRECT_URI
     CLIENT_ID
     CLIENT_SECRET
     """
     key = '%s.%s' % (self.__class__.__module__, self.__class__.__name__)
     configs = socialsites.load_config(key)
     for k, v in configs.iteritems():
         setattr(self, k, v)
Пример #2
0
 def __init__(self):
     """Get config from settings.
     class instance will have the following properties:
     
     site_name
     site_id
     REDIRECT_URI
     CLIENT_ID
     CLIENT_SECRET
     """
     key = '%s.%s' % (self.__class__.__module__, self.__class__.__name__)
     configs = socialsites.load_config(key)
     for k, v in configs.iteritems():
         setattr(self, k, v)
Пример #3
0
 def __init__(self):
     key = '%s.%s' % (self.__class__.__module__, self.__class__.__name__)
     configs = socialsites.load_config(key)
     for k, v in configs.iteritems():
         setattr(self, k, v)