Index: /main/waeup.sirp/trunk/src/waeup/sirp/interfaces.py
===================================================================
--- /main/waeup.sirp/trunk/src/waeup/sirp/interfaces.py	(revision 7575)
+++ /main/waeup.sirp/trunk/src/waeup/sirp/interfaces.py	(revision 7576)
@@ -927,2 +927,12 @@
         """Get the default mail delivery.
         """
+
+from zope.configuration.fields import Path
+class IDataCenterConfig(Interface):
+    path = Path(
+        title = u'Path',
+        description = u"Directory where the datacenter should store"
+                     u"files by default (adjustable in web UI).",
+        required = True,
+        )
+
Index: /main/waeup.sirp/trunk/src/waeup/sirp/meta.zcml
===================================================================
--- /main/waeup.sirp/trunk/src/waeup/sirp/meta.zcml	(revision 7575)
+++ /main/waeup.sirp/trunk/src/waeup/sirp/meta.zcml	(revision 7576)
@@ -10,3 +10,11 @@
   <grok:grok package=".meta" />
 
+  <meta:directive
+      namespace="http://namespaces.waeup.org/sirp"
+      name="datacenter"
+      schema=".zcml.IDataCenterConfig"
+      handler=".zcml.data_center_conf"
+      />
+
+
 </configure>
Index: /main/waeup.sirp/trunk/src/waeup/sirp/zcml.py
===================================================================
--- /main/waeup.sirp/trunk/src/waeup/sirp/zcml.py	(revision 7576)
+++ /main/waeup.sirp/trunk/src/waeup/sirp/zcml.py	(revision 7576)
@@ -0,0 +1,54 @@
+##
+## zcml.py
+## Login : <uli@pu.smp.net>
+## Started on  Fri Feb  3 04:26:49 2012 Uli Fouquet
+## $Id$
+## 
+## Copyright (C) 2012 Uli Fouquet
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+## 
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+## 
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+##
+from zope.component.zcml import handler
+from waeup.sirp.interfaces import IDataCenterConfig
+
+def data_center_conf(context, path):
+    """Handler for ZCML ``datacenter`` directive.
+
+    Registers a global utility under IDataCenterConfig and containing
+    a dictionary with (currently) only one entry: `path`.
+
+    The directive can be put into site.zcml like this:
+
+    - Add to the header:
+        ``xmlns:sirp="http://namespaces.waeup.org/sirp"``
+
+    - Then, after including waeup.sirp:
+        ``<sirp:datacenter path="some/existing/file/path" />``
+
+    In a running instance (where some directive like above was
+    processed during startup), one can then ask for the
+    IDataCenterConfig utility:
+
+      >>> from waeup.sirp.interfaces import IDataCenterConfig
+      >>> from zope.component import getUtility
+      >>> getUtility(IDataCenterConfig)
+      {'path': 'some/existing/file/path'}
+
+    """
+    context.action(
+        discriminator = ('utility', IDataCenterConfig, ''),
+        callable = handler,
+        args = ('registerUtility',
+                {'path':path}, IDataCenterConfig, '')
+        )
