[tuxdroid-svn] r4686 - software_suite_v3/smart-core/smart-server/trunk/resources/03_content_servers
Status: Beta
Brought to you by:
ks156
|
From: remi <c2m...@c2...> - 2009-05-27 09:28:30
|
Author: remi
Date: 2009-05-27 11:28:19 +0200 (Wed, 27 May 2009)
New Revision: 4686
Modified:
software_suite_v3/smart-core/smart-server/trunk/resources/03_content_servers/00_resourceAttituneManager.py
Log:
* removed useless service from the attitune manager resource
Modified: software_suite_v3/smart-core/smart-server/trunk/resources/03_content_servers/00_resourceAttituneManager.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/resources/03_content_servers/00_resourceAttituneManager.py 2009-05-27 09:26:05 UTC (rev 4685)
+++ software_suite_v3/smart-core/smart-server/trunk/resources/03_content_servers/00_resourceAttituneManager.py 2009-05-27 09:28:19 UTC (rev 4686)
@@ -282,48 +282,6 @@
resourcesManager.addResource(resourceAttituneManager)
# ------------------------------------------------------------------------------
-# Declaration of the service "start".
-# ------------------------------------------------------------------------------
-class TDSServiceAttituneManagerStart(TDSService):
-
- def configure(self):
- self.parametersDict = {
- 'attitunes_path' : 'string',
- }
- self.minimalUserLevel = TDS_CLIENT_LEVEL_ANONYMOUS
- self.exclusiveExecution = False
- self.name = "start"
- self.comment = "Start the attitune manager."
-
- def execute(self, id, parameters):
- headersStruct = self.getDefaultHeadersStruct()
- contentStruct = self.getDefaultContentStruct()
- contentStruct['root']['result'] = getStrError(E_TDREST_SUCCESS)
- # Check the directory
- if not os.path.isdir(parameters['attitunes_path']):
- contentStruct['root']['result'] = getStrError(E_TDREST_FAILED)
- else:
- # Start the attitune manager
- attitunesContainer = resourceAttituneManager.getAttitunesContainer()
- resourceAttituneManager.logger.logInfo("Undeploy the attitunes container.")
- attitunesContainer.undeploy()
- resourceAttituneManager.logger.logInfo("Attitunes container is undeployed.")
- for directory in attitunesContainer.getDirectories():
- resourceAttituneManager.logger.logInfo("Remove directory from the container [%s]." %\
- directory)
- attitunesContainer.removeDirectory(directory)
- resourceAttituneManager.logger.logInfo("Add directory in the container [%s]." %\
- parameters['attitunes_path'])
- attitunesContainer.addDirectory(parameters['attitunes_path'])
- resourceAttituneManager.logger.logInfo("Deploy the attitunes container.")
- attitunesContainer.deploy()
- resourceAttituneManager.logger.logInfo("Attitunes container is deployed.")
- return headersStruct, contentStruct
-
-# Register the service into the resource
-resourceAttituneManager.addService(TDSServiceAttituneManagerStart)
-
-# ------------------------------------------------------------------------------
# Declaration of the service "attitunes_infos".
# ------------------------------------------------------------------------------
class TDSServiceAttituneManagerAttitunesInfos(TDSService):
|