1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-01-08 21:18:00 +03:00
This commit is contained in:
Adolfo Gómez 2013-03-14 12:25:47 +00:00
parent 4a4c1a12d0
commit 6aa67c80a3
2 changed files with 4 additions and 2 deletions

View File

@ -51,7 +51,10 @@ def loadModulesUrls():
for _, name, _ in pkgutil.iter_modules([pkgpath]):
fullModName = '%s.%s.urls' % (modName, name)
mod = __import__(fullModName, globals(), locals(), ['urlpatterns'], -1)
patterns += mod.urlpatterns
try:
patterns += mod.urlpatterns
except:
logger.info( 'Module {0} has no url patterns'.format(mod))
except Exception, e:
logger.debug(e)
pass

View File

@ -167,4 +167,3 @@ class TSRDPTransport(Transport):
def getHtmlComponent(self, id, os, componentId):
# We use helper to keep this clean
return getHtmlComponent(self.__module__, componentId)