[Zope3-checkins] CVS: Zope3/src/zope/app/event/browser - __init__.py:1.1 configure.zcml:1.1 event_service.gif:1.1 eventcontrol.pt:1.1

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Mar 11 03:14:05 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/event/browser
In directory cvs.zope.org:/tmp/cvs-serv12137/src/zope/app/event/browser

Added Files:
	__init__.py configure.zcml event_service.gif eventcontrol.pt 
Log Message:


Moved local event service code into zope.app.event.




=== Added File Zope3/src/zope/app/event/browser/__init__.py ===
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (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.
#
##############################################################################
"""Define view component for event service control.

$Id: __init__.py,v 1.1 2004/03/11 08:14:04 srichter Exp $
"""
from zope.app.event.interfaces import IEventService

class Control:
    __used_for__ = IEventService

    # XXX: Really needed? Currently it does nothing (obviously). I guess it is
    # just a placeholder for later functionality.

    # This view should be responsible to display all the objects that are
    # subscribed to it and maybe even a log of the last events it handeled.


=== Added File Zope3/src/zope/app/event/browser/configure.zcml ===
<zope:configure 
   xmlns:zope="http://namespaces.zope.org/zope"
   xmlns="http://namespaces.zope.org/browser">

  <page
      name="index.html" 
      for="zope.app.event.interfaces.IEventService"
      menu="zmi_views" title="Control"
      permission="zope.ManageServices" 
      class=".Control"
      template="eventcontrol.pt" />

  <addMenuItem
      class="zope.app.event.localservice.EventService"  
      permission="zope.ManageServices" 
      title="Event Service"
      description=
      "An event service. One of these in the root is usually enough" />

  <icon
      name="zmi_icon"
      for="zope.app.event.interfaces.IEventService" 
      file="event_service.gif" />

</zope:configure>


=== Added File Zope3/src/zope/app/event/browser/event_service.gif ===
  <Binary-ish file>

=== Added File Zope3/src/zope/app/event/browser/eventcontrol.pt ===
<html metal:use-macro="views/standard_macros/page">
<body>
<div metal:fill-slot="body">

  <p i18n:translate="">This is an event service.</p>

</div>
</body>
</html>



More information about the Zope3-Checkins mailing list