[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/Browser - IBrowserResource.py:1.1

Jim Fulton jim@zope.com
Thu, 13 Jun 2002 19:15:46 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/Browser
In directory cvs.zope.org:/tmp/cvs-serv10697/lib/python/Zope/Publisher/Browser

Added Files:
	IBrowserResource.py 
Log Message:
Got icons working, and, along the way:

- Implemented the icon directive

- Implemented
  http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/ResourcesProposal

- Added a special view, named '', for service manager containers that
  allows resources to have URLs like:

  http://foo.com/@@/resourcename

- Fixed some server code that caused HTTP response data to get
  promoted to unicode

- Updated the folder contents page to display icons.

- Ported icons for folder, file, image, and zptpage. Many more icons
  need to be ported or created.



=== Added File Zope3/lib/python/Zope/Publisher/Browser/IBrowserResource.py ===
##############################################################################
#
# Copyright (c) 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.
# 
##############################################################################
"""

$Id: IBrowserResource.py,v 1.1 2002/06/13 23:15:45 jim Exp $
"""

from Zope.ComponentArchitecture.IResource import IResource
from IBrowserPresentation import IBrowserPresentation

class IBrowserResource(IBrowserPresentation, IResource):
    "Browser View"

    def __call__():
        """Return a URL for getting the resource

        This URL should not be context dependent. Typically, the URL
        will be based on the service that defined the resource.
        """