Changeset 7586 for main


Ignore:
Timestamp:
4 Feb 2012, 06:53:13 (13 years ago)
Author:
Henrik Bettermann
Message:

Update custom package using new datacenter storage configuration.

Location:
main/waeup.custom/trunk/src/waeup/custom
Files:
1 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.custom/trunk/src/waeup/custom/ftesting.zcml

    r7503 r7586  
    11<configure
    22   xmlns="http://namespaces.zope.org/zope"
     3   xmlns:sirp="http://namespaces.waeup.org/sirp"
    34   i18n_domain="waeup.custom"
    45   package="waeup.custom"
     
    89  <includeOverrides package="waeup.custom" />
    910  <includeOverrides package="waeup.custom" file="mail.zcml"/>
     11
     12  <!-- Where should the datacenter reside by default? -->
     13  <sirp:datacenter
     14      path="../../../parts/test/datacenter" />
    1015
    1116  <!-- Typical functional testing security setup -->
  • main/waeup.custom/trunk/src/waeup/custom/utils/tests.py

    r7569 r7586  
    1 ## $Id: tests.py$
     1## $Id$
    22##
    33## Copyright (C) 2011 Uli Fouquet & Henrik Bettermann
     
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
    18 from waeup.sirp.datacenter import DataCenter
    1918from waeup.sirp.testing import FunctionalTestCase
    2019from waeup.custom.testing import FunctionalLayer
     
    2524    layer = FunctionalLayer
    2625
    27     def test_storage_path(self):
    28         mydatacenter = DataCenter()
    29         storagepath = mydatacenter.storage
    30         self.assertTrue('/src/waeup/custom/files' in storagepath)
     26    def test_foo(self):
     27        '''Test method foo.
     28        '''
     29        return
  • main/waeup.custom/trunk/src/waeup/custom/utils/utils.py

    r7569 r7586  
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
    18 """General helper utilities for SIRP.
     18"""Customize general helper utilities for SIRP.
    1919"""
    2020import os
     
    2525    """A collection of methods subject to customization.
    2626    """
    27 
    28     def storage(self):
    29         """Return the initial storage path of the data center.
    30         """
    31         return os.path.dirname(__file__).replace('utils','files')
    32 
Note: See TracChangeset for help on using the changeset viewer.