Added ability to switch off Service API

This commit is contained in:
2010-03-05 00:50:36 +01:00
parent 0f41d4c1b0
commit 7fe039764b
2 changed files with 8 additions and 1 deletions

View File

@@ -1,5 +1,10 @@
import settings
def get_api(api):
if settings.DISABLE_SERVICES:
return BaseService()
try:
mod = __import__(api)
except ImportError: