Author: remi
Date: 2009-06-10 10:48:25 +0200 (Wed, 10 Jun 2009)
New Revision: 4770
Modified:
software_suite_v3/smart-core/smart-server/trunk/resources/03_content_servers/01_resourcePluginsServer.py
Log:
* registration of the attitunes directories from the plugins
Modified:
software_suite_v3/smart-core/smart-server/trunk/resources/03_content_servers/01_resourcePluginsServer.py
===================================================================
---
software_suite_v3/smart-core/smart-server/trunk/resources/03_content_servers/01_resourcePluginsServer.py
2009-06-10 08:47:43 UTC (rev 4769)
+++
software_suite_v3/smart-core/smart-server/trunk/resources/03_content_servers/01_resourcePluginsServer.py
2009-06-10 08:48:25 UTC (rev 4770)
@@ -108,6 +108,11 @@
plugin.setOnPluginActuationCallback(self.__onPluginActuation)
plugin.setOnPluginStartingCallback(self.__onPluginStarting)
plugin.setOnPluginStoppedCallback(self.__onPluginStopped)
+ pluginAttPath = os.path.join(pluginWorkingPath, "resources",
+ "attitunes")
+ if os.path.isdir(pluginAttPath):
+ resourceAttituneManager.getAttitunesContainer().addDirectory(
+ pluginAttPath)
self.logger.logDebug("Plugin deployed [%s] to [%s]" % (
plugin.getDescription().getName(), pluginWorkingPath))
self.__publishEvents(False, ST_NAME_PS_PLUGIN_LOADED, [uuid,])
@@ -129,6 +134,11 @@
scpName = os.path.split(plugin.getScpFile())[-1]
pluginDlUrl = '/plugins/%s' % scpName
resourcesManager.removeFileToServe(pluginDlUrl)
+ pluginAttPath = os.path.join(pluginWorkingPath, "resources",
+ "attitunes")
+ if os.path.isdir(pluginAttPath):
+ resourceAttituneManager.getAttitunesContainer().removeDirectory(
+ pluginAttPath)
self.logger.logDebug("Plugin undeployed [%s] to [%s]" % (
plugin.getDescription().getName(), pluginWorkingPath))
self.__publishEvents(False, ST_NAME_PS_PLUGIN_UNLOADED, [uuid,])
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn