From af33a442b482ba52f98a79dc484c50fde5603dca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez?= Date: Thu, 20 Sep 2012 11:29:00 +0000 Subject: [PATCH] * Fixed Internal auth * Added debug to Publication (info) --- server/.settings/org.eclipse.core.resources.prefs | 1 + server/src/uds/auths/InternalDB/Authenticator.py | 6 +++++- server/src/uds/core/managers/PublicationManager.py | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/server/.settings/org.eclipse.core.resources.prefs b/server/.settings/org.eclipse.core.resources.prefs index 0eea586b..b5c87d75 100644 --- a/server/.settings/org.eclipse.core.resources.prefs +++ b/server/.settings/org.eclipse.core.resources.prefs @@ -126,6 +126,7 @@ encoding//src/uds/services/Vmware/client/Exceptions.py=utf-8 encoding//src/uds/services/Vmware/client/Server.py=utf-8 encoding//src/uds/services/Vmware/client/Task.py=utf-8 encoding//src/uds/services/Vmware/client/ws/VimService_types.py=utf-8 +encoding//src/uds/services/Vmware_enterprise/PublicationVC.py=utf-8 encoding//src/uds/services/Vmware_enterprise/ServiceProviderVC.py=utf-8 encoding//src/uds/services/Vmware_enterprise/VCLinkedCloneDeployed.py=utf-8 encoding//src/uds/services/Vmware_enterprise/VCLinkedCloneService.py=utf-8 diff --git a/server/src/uds/auths/InternalDB/Authenticator.py b/server/src/uds/auths/InternalDB/Authenticator.py index c05ee16d..ce5a6cb1 100644 --- a/server/src/uds/auths/InternalDB/Authenticator.py +++ b/server/src/uds/auths/InternalDB/Authenticator.py @@ -46,10 +46,14 @@ class InternalDBAuth(Authenticator): typeName = _('Internal Database') typeType = 'InternalDBAuth' typeDescription = _('Internal dabasase authenticator. Doesn\'t uses external sources') - iconFile = 'auth.png' + iconFile = 'auth.png' + # If we need to enter the password for this user needsPassword = True + + # This is the only internal source + isExternalSource = False def __init__(self, dbAuth, environment, values = None): diff --git a/server/src/uds/core/managers/PublicationManager.py b/server/src/uds/core/managers/PublicationManager.py index 3e895e46..5e708719 100644 --- a/server/src/uds/core/managers/PublicationManager.py +++ b/server/src/uds/core/managers/PublicationManager.py @@ -155,6 +155,7 @@ class PublicationManager(object): dsp = deployedService.publications.create(state = State.LAUNCHING, state_date = now, publish_date = now, revision = deployedService.current_pub_revision) DelayedTaskRunner.runner().insert(PublicationLauncher(dsp), 4, PUBTAG + str(dsp.id)) except Exception as e: + logger.debug('Caught exception at publish: {0}'.format(e)) raise PublishException(str(e)) @transaction.commit_on_success