add a django wrapper around the web-service for loading settings

This commit is contained in:
Benjamin Dauvergne 2012-11-06 15:39:51 +01:00
parent 5484011502
commit 24696da391
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
from django.conf import settings
import ws
def get_bb_conn():
url = settings.POLYNUM_BB_URL
login = settings.POLYNUM_BB_ADMIN_LOGIN
password = settings.POLYNUM_BB_ADMIN_PASSWORD
secret_key = settings.POLYNUM_BB_SECRET_KEY
return ws.BlackboardConnector(url, login, password, secret_key)