[Zope-CVS] CVS: Packages/Moztop/CMFMoztop/interfaces - __init__.py:1.1 moztop_support.py:1.1
Sidnei da Silva
sidnei@x3ng.com.br
Fri, 21 Feb 2003 10:41:25 -0500
Update of /cvs-repository/Packages/Moztop/CMFMoztop/interfaces
In directory cvs.zope.org:/tmp/cvs-serv31948/CMFMoztop/interfaces
Added Files:
__init__.py moztop_support.py
Log Message:
Adding CMF support tools and skins.
=== Added File Packages/Moztop/CMFMoztop/interfaces/__init__.py ===
"""
This file is here to make the module importable.
"""
=== Added File Packages/Moztop/CMFMoztop/interfaces/moztop_support.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
#
##############################################################################
""" Moztop Support Tool interface.
$Id: moztop_support.py,v 1.1 2003/02/21 15:41:24 sidnei Exp $
"""
try:
from Interface import Base as Interface
from Interface.Attr import Attribute
except:
from Interface import Interface
from Interface.Attribute import Attribute
class moztop_support(Interface):
""" Moztop Support Tool interface.
This interface provides a common mechanism for getting resources
for a site and generating rdf.
"""
id = Attribute('id', 'Must be set to "moztop_support"')
def getParentResources():
""" Return a dictionary of folderish resources for the whole site.
The key is the parent path and the value is a list of the dictionaries
containing title, type, path and parentPath that are contained on this path.
Permission -- Always available
"""
def getResources():
""" Return a complete set of resources for the site.
The return value is a list of dictionaries containing
title, type, path and parentPath.
Permission -- Always available
"""