Changeset 7579


Ignore:
Timestamp:
3 Feb 2012, 09:13:46 (13 years ago)
Author:
Henrik Bettermann
Message:

Let's use the new IDataCenterConfig utility instead of ISIRPUtils to retrieve the data center storage path.

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt

    r7490 r7579  
    10881088  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    10891089  ...
    1090   <b>Storage path:</b> <span>/.../waeup/sirp/files</span>
     1090  <b>Storage path:</b> <span>.../var/datacenter</span>
    10911091  ...
    10921092
  • main/waeup.sirp/trunk/src/waeup/sirp/datacenter.py

    r7568 r7579  
    3030from waeup.sirp.interfaces import (IDataCenter, IDataCenterFile,
    3131                                   IDataCenterStorageMovedEvent,
    32                                    ISIRPUtils)
     32                                   #ISIRPUtils,
     33                                   IDataCenterConfig)
    3334from waeup.sirp.utils.helpers import copy_filesystem_tree
    3435from waeup.sirp.utils.logger import Logger
     
    4445    def __init__(self, *args, **kw):
    4546        super(DataCenter, self).__init__(*args, **kw)
    46         self.storage = getUtility(ISIRPUtils).storage()
     47        #self.storage = getUtility(ISIRPUtils).storage()
     48        self.storage = getUtility(IDataCenterConfig)['path']
    4749        self._createSubDirs()
    4850
Note: See TracChangeset for help on using the changeset viewer.