[CMF-checkins] CVS: CMF/CMFCore/interfaces - portal_properties.py:1.2

Yvo Schubbe schubbe@web.de
Mon, 6 Jan 2003 15:43:53 -0500


Update of /cvs-repository/CMF/CMFCore/interfaces
In directory cvs.zope.org:/tmp/cvs-serv21929/CMFCore/interfaces

Added Files:
	portal_properties.py 
Log Message:
Merged yuppie-collector096-branch:
- Cleaned up Interfaces and API Help. (Collector #96)
- Removed deprecated 'register' module and interface.

=== CMF/CMFCore/interfaces/portal_properties.py 1.1 => 1.2 ===
--- /dev/null	Mon Jan  6 15:43:53 2003
+++ CMF/CMFCore/interfaces/portal_properties.py	Mon Jan  6 15:43:50 2003
@@ -0,0 +1,49 @@
+##############################################################################
+#
+# Copyright (c) 2001 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
+# 
+##############################################################################
+""" Properties tool interface.
+
+$Id$
+"""
+
+from Interface import Attribute
+try:
+    from Interface import Interface
+except ImportError:
+    # for Zope versions before 2.6.0
+    from Interface import Base as Interface
+
+
+class portal_properties(Interface):
+    """ CMF Properties Tool interface.
+
+    This interface provides access to "portal-wide" properties.
+    """
+    id = Attribute('id', 'Must be set to "portal_properties"')
+
+    def editProperties(props):
+        """ Change portal settings.
+
+        Permission -- ManagePortal
+        """
+
+    def title():
+        """ Get portal title.
+
+        Returns -- String
+        """
+
+    def smtp_server():
+        """ Get local SMTP server.
+
+        Returns -- String
+        """