[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/annotation/_factory.py
Added the license information
Dmitry Vasiliev
dima at hlabs.spb.ru
Fri Apr 21 10:18:11 EDT 2006
Log message for revision 67218:
Added the license information
Changed:
UU Zope3/trunk/src/zope/app/annotation/_factory.py
-=-
Modified: Zope3/trunk/src/zope/app/annotation/_factory.py
===================================================================
--- Zope3/trunk/src/zope/app/annotation/_factory.py 2006-04-21 14:04:56 UTC (rev 67217)
+++ Zope3/trunk/src/zope/app/annotation/_factory.py 2006-04-21 14:18:10 UTC (rev 67218)
@@ -1,3 +1,22 @@
+##############################################################################
+#
+# Copyright (c) 2006 Zope Corporation 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.
+#
+##############################################################################
+"""Adapter factory.
+
+$Id$
+"""
+__docformat__ = 'restructuredtext'
+
import zope.component
import zope.interface
from zope.app.annotation.interfaces import IAnnotations
@@ -3,4 +22,5 @@
import zope.app.container.contained
+
def factory(factory, key=None):
"""Adapter factory to help create annotations easily.
@@ -29,5 +49,5 @@
return result
# Convention to make adapter introspectable, used by apidoc
- getAnnotation.factory = factory
+ getAnnotation.factory = factory
return getAnnotation
Property changes on: Zope3/trunk/src/zope/app/annotation/_factory.py
___________________________________________________________________
Name: svn:keywords
+ Id
More information about the Zope3-Checkins
mailing list