[Checkins] SVN: z3c.template/trunk/src/z3c/__init__.py Add
namespace declaration.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Tue May 22 09:34:47 EDT 2007
Log message for revision 75870:
Add namespace declaration.
Changed:
U z3c.template/trunk/src/z3c/__init__.py
-=-
Modified: z3c.template/trunk/src/z3c/__init__.py
===================================================================
--- z3c.template/trunk/src/z3c/__init__.py 2007-05-22 13:15:07 UTC (rev 75869)
+++ z3c.template/trunk/src/z3c/__init__.py 2007-05-22 13:34:46 UTC (rev 75870)
@@ -1,16 +1,7 @@
-##############################################################################
-#
-# Copyright (c) 2006 Zope Foundation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""
-$Id$
-"""
+try:
+ # Declare this a namespace package if pkg_resources is available.
+ import pkg_resources
+ pkg_resources.declare_namespace('z3c')
+except ImportError:
+ pass
+
More information about the Checkins
mailing list