got rid of old file

This commit is contained in:
Slater-Victoroff
2014-03-17 18:01:30 -04:00
parent 7b630e692a
commit 8ed94a9382
2 changed files with 19 additions and 4 deletions
+19
View File
@@ -1,11 +1,30 @@
import os, pkgutil, imp
import inspect
from config import active_modules
API_KEY = os.environ["INDICO_API_KEY"] or None
API_KEY = open("$HOME/.indico").read() or None
class PostApiKey(object):
def __init__(self, api_key):
self.func = func
self.api_key = api_key
def __call__(self, f):
def use_api_key(cls):
for name, func in inspect.getmembers(cls):
if inspect.ismethod(func) and not inspect.isclass(func.im_self):
setattr(cls, name, PostApiKey(func, cls.API_KEY))
return cls
@use_api_key
class Indico(object):
def __init__(api_key = API_KEY):
-4
View File
@@ -1,4 +0,0 @@
IndicoIo-python
===============
Python repository for Indico API wrapper