# HG changeset patch # User Thierry Florac # Date 1270506061 -7200 # Node ID 3d97754e4181bbdfe9cade1ee633b32bdb1fa0b7 # Parent 035aa2957098ad9a82388c4339e287034721d2c0 Added interface and event class to handle new site manager creation diff -r 035aa2957098 -r 3d97754e4181 .settings/org.eclipse.core.resources.prefs --- a/.settings/org.eclipse.core.resources.prefs Mon Apr 05 01:09:59 2010 +0200 +++ b/.settings/org.eclipse.core.resources.prefs Tue Apr 06 00:21:01 2010 +0200 @@ -1,4 +1,4 @@ -#Sun Apr 04 01:36:34 CEST 2010 +#Tue Apr 06 00:10:31 CEST 2010 eclipse.preferences.version=1 encoding//ztfy/utils/__init__.py=utf-8 encoding//ztfy/utils/catalog/__init__.py=utf-8 @@ -6,9 +6,11 @@ encoding//ztfy/utils/date.py=utf-8 encoding//ztfy/utils/file.py=utf-8 encoding//ztfy/utils/html.py=utf-8 +encoding//ztfy/utils/interfaces.py=utf-8 encoding//ztfy/utils/protocol/xmlrpc.py=utf-8 encoding//ztfy/utils/request.py=utf-8 encoding//ztfy/utils/security.py=utf-8 +encoding//ztfy/utils/site.py=utf-8 encoding//ztfy/utils/tal/html.py=utf-8 encoding//ztfy/utils/tal/interfaces.py=utf-8 encoding//ztfy/utils/tal/text.py=utf-8 diff -r 035aa2957098 -r 3d97754e4181 ztfy.utils.egg-info/PKG-INFO --- a/ztfy.utils.egg-info/PKG-INFO Mon Apr 05 01:09:59 2010 +0200 +++ b/ztfy.utils.egg-info/PKG-INFO Tue Apr 06 00:21:01 2010 +0200 @@ -1,8 +1,8 @@ Metadata-Version: 1.0 Name: ztfy.utils -Version: 1.0 +Version: 0.1 Summary: ZTFY utility functions and classes for Zope3 -Home-page: UNKNOWN +Home-page: http://trac.ztfy.org/ztfy.utils Author: Thierry Florac Author-email: tflorac@ulthar.net License: ZPL @@ -41,9 +41,8 @@ Changelog ========= - 1.0dev (unreleased) - ------------------- - + 0.1 + --- - Initial release Keywords: ZTFY utilities for Zope3 diff -r 035aa2957098 -r 3d97754e4181 ztfy/utils/interfaces.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ztfy/utils/interfaces.py Tue Apr 06 00:21:01 2010 +0200 @@ -0,0 +1,31 @@ +### -*- coding: utf-8 -*- #################################################### +############################################################################## +# +# Copyright (c) 2008-2010 Thierry Florac +# 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. +# +############################################################################## + +__docformat__ = "restructuredtext" + +# import standard packages + +# import Zope3 interfaces +from zope.component.interfaces import IObjectEvent + +# import local interfaces + +# import Zope3 packages + +# import local packages + + +class INewSiteManagerEvent(IObjectEvent): + """Event interface for new site manager event""" diff -r 035aa2957098 -r 3d97754e4181 ztfy/utils/site.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ztfy/utils/site.py Tue Apr 06 00:21:01 2010 +0200 @@ -0,0 +1,37 @@ +### -*- coding: utf-8 -*- #################################################### +############################################################################## +# +# Copyright (c) 2008-2010 Thierry Florac +# 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. +# +############################################################################## + +__docformat__ = "restructuredtext" + +# import standard packages + +# import Zope3 interfaces + +# import local interfaces +from interfaces import INewSiteManagerEvent + +# import Zope3 packages +from zope.interface import implements + +# import local packages + + +class NewSiteManagerEvent(object): + """Event notified when a new site manager is created""" + + implements(INewSiteManagerEvent) + + def __init__(self, obj): + self.object = obj