[Zope-Checkins] CVS: Zope/lib/python/Products/OFSP/help - AccessControl.py:1.3 AuthenticatedUser.py:1.7 DTMLDocument.py:1.11 DTMLMethod.py:1.11 DateTime.py:1.8 File.py:1.13 Folder.py:1.6 Image.py:1.13 ObjectManager.py:1.13 ObjectManagerItem.py:1.17 PropertyManager.py:1.9 PropertySheet.py:1.12 PropertySheets.py:1.10 Request.py:1.12 Response.py:1.10 math.py:1.2 random.py:1.3 sequence.py:1.2 string.py:1.2
Martijn Pieters
mj@zope.com
Wed, 14 Aug 2002 18:16:06 -0400
Update of /cvs-repository/Zope/lib/python/Products/OFSP/help
In directory cvs.zope.org:/tmp/cvs-serv22845/help
Modified Files:
AccessControl.py AuthenticatedUser.py DTMLDocument.py
DTMLMethod.py DateTime.py File.py Folder.py Image.py
ObjectManager.py ObjectManagerItem.py PropertyManager.py
PropertySheet.py PropertySheets.py Request.py Response.py
math.py random.py sequence.py string.py
Log Message:
Clean up indentation and trailing whitespace.
=== Zope/lib/python/Products/OFSP/help/AccessControl.py 1.2 => 1.3 ===
--- Zope/lib/python/Products/OFSP/help/AccessControl.py:1.2 Thu Oct 18 21:17:22 2001
+++ Zope/lib/python/Products/OFSP/help/AccessControl.py Wed Aug 14 18:16:05 2002
@@ -23,17 +23,17 @@
Validate access.
Arguments:
-
+
accessed -- the object that was being accessed
-
+
container -- the object the value was found in
-
+
name -- The name used to access the value
-
+
value -- The value retrieved though the access.
roles -- The roles of the object if already known.
-
+
The arguments may be provided as keyword arguments. Some of
these arguments may be omitted, however, the policy may
reject access in some cases when arguments are omitted. It
=== Zope/lib/python/Products/OFSP/help/AuthenticatedUser.py 1.6 => 1.7 ===
--- Zope/lib/python/Products/OFSP/help/AuthenticatedUser.py:1.6 Wed Nov 28 10:51:00 2001
+++ Zope/lib/python/Products/OFSP/help/AuthenticatedUser.py Wed Aug 14 18:16:05 2002
@@ -1,14 +1,14 @@
##############################################################################
#
# 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
-#
+#
##############################################################################
class AuthenticatedUser:
@@ -65,7 +65,6 @@
def getDomains():
"""
Return the list of domain restrictions for a user.
-
+
Permission -- Always available
"""
-
=== Zope/lib/python/Products/OFSP/help/DTMLDocument.py 1.10 => 1.11 ===
--- Zope/lib/python/Products/OFSP/help/DTMLDocument.py:1.10 Wed Nov 28 10:51:00 2001
+++ Zope/lib/python/Products/OFSP/help/DTMLDocument.py Wed Aug 14 18:16:05 2002
@@ -1,14 +1,14 @@
##############################################################################
#
# 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
-#
+#
##############################################################################
@@ -23,12 +23,12 @@
A DTML Document is a Zope object that contains and executes DTML
code. It is useful to represent web pages.
"""
-
+
__extends__=(
'OFSP.ObjectManagerItem.ObjectManagerItem',
'OFSP.PropertyManager.PropertyManager',
)
-
+
def __call__(client=None, REQUEST={}, RESPONSE=None, **kw):
"""
@@ -101,7 +101,7 @@
When the URL of a DTML Document is fetched from Zope, the
DTML Document is called by the publisher. The REQUEST
object is passed as the second argument to the Document.
-
+
Permission -- 'View'
"""
@@ -111,19 +111,19 @@
Change the DTML Document, replacing its contents with 'data'
and
changing its title.
-
+
The data argument may be a file object or a string.
-
+
Permission -- 'Change DTML Documents'
"""
-
+
def document_src():
"""
Returns the unrendered source text of the DTML Document.
-
+
Permission -- 'View management screens'
"""
-
+
def get_size():
"""
Returns the size of the unrendered source text of the DTML
@@ -133,5 +133,3 @@
"""
__constructor__=manage_addDocument
-
-
=== Zope/lib/python/Products/OFSP/help/DTMLMethod.py 1.10 => 1.11 ===
--- Zope/lib/python/Products/OFSP/help/DTMLMethod.py:1.10 Wed Nov 28 10:51:00 2001
+++ Zope/lib/python/Products/OFSP/help/DTMLMethod.py Wed Aug 14 18:16:05 2002
@@ -1,14 +1,14 @@
##############################################################################
#
# 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
-#
+#
##############################################################################
def manage_addDTMLMethod(id, title):
@@ -26,11 +26,11 @@
The DTML Method's id is available via the 'document_id'
variable and the title is available via the 'document_title'
variable.
-
+
"""
__extends__=('OFSP.ObjectManagerItem.ObjectManagerItem',)
-
+
def __call__(client=None, REQUEST={}, **kw):
"""
@@ -101,7 +101,7 @@
When the URL of a DTML Method is fetched from Zope, the DTML
Method is called by the publisher. The REQUEST object is
passed as the second argument to the Method.
-
+
Permission -- 'View'
"""
@@ -109,19 +109,19 @@
"""
Change the DTML Method, replacing its contents with 'data' and
changing its title.
-
+
The data argument may be a file object or a string.
-
+
Permission -- 'Change DTML Methods'
"""
-
+
def document_src():
"""
Returns the unrendered source text of the DTML Method.
-
+
Permission -- 'View management screens'
"""
-
+
def get_size():
"""
Returns the size of the unrendered source text of the DTML
@@ -129,5 +129,5 @@
Permission -- 'View'
"""
-
+
__constructor__ = manage_addDTMLMethod
=== Zope/lib/python/Products/OFSP/help/DateTime.py 1.7 => 1.8 ===
--- Zope/lib/python/Products/OFSP/help/DateTime.py:1.7 Wed Nov 28 10:51:00 2001
+++ Zope/lib/python/Products/OFSP/help/DateTime.py Wed Aug 14 18:16:05 2002
@@ -1,14 +1,14 @@
##############################################################################
#
# 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
-#
+#
##############################################################################
@@ -21,9 +21,9 @@
DateTime objects represent instants in time and provide
interfaces for controlling its representation without
- affecting the absolute value of the object.
+ affecting the absolute value of the object.
- DateTime objects may be created from a wide variety of string
+ DateTime objects may be created from a wide variety of string
or numeric data, or may be computed from other DateTime objects.
DateTimes support the ability to convert their representations
to many major timezones, as well as the ability to create a
@@ -49,7 +49,7 @@
object.
DateTime objects may be converted to integer, long, or float
- numbers of days since January 1, 1901, using the standard int,
+ numbers of days since January 1, 1901, using the standard int,
long, and float functions (Compatibility Note: int, long and
float return the number of days since 1901 in GMT rather than
local machine timezone). DateTime objects also provide access
@@ -61,7 +61,7 @@
and numeric operations return a new DateTime object rather than
modify the current object.
- A DateTime object always maintains its value as an absolute
+ A DateTime object always maintains its value as an absolute
UTC time, and is represented in the context of some timezone
based on the arguments used to create the object. A DateTime
object's methods return values based on the timezone context.
@@ -72,8 +72,8 @@
DateTimes may be created with from zero to
seven arguments.
- - If the function is called with no arguments, then the
- current date/time is returned, represented in the
+ - If the function is called with no arguments, then the
+ current date/time is returned, represented in the
timezone of the local machine.
- If the function is invoked with a single string argument
@@ -85,7 +85,7 @@
representing a valid date/time, an object representing
that date/time will be returned.
- As a general rule, any date-time representation that is
+ As a general rule, any date-time representation that is
recognized and unambiguous to a resident of North America is
acceptable.(The reason for this qualification is that
in North America, a date like: 2/1/1994 is interpreted
@@ -139,11 +139,11 @@
case a 12-hour clock is assumed.
- If the DateTime function is invoked with a single
- Numeric argument, the number is assumed to be
- a floating point value such as that returned by
+ Numeric argument, the number is assumed to be
+ a floating point value such as that returned by
time.time().
- A DateTime object is returned that represents
+ A DateTime object is returned that represents
the gmt value of the time.time() float represented in
the local machine's timezone.
@@ -152,7 +152,7 @@
second argument is taken to be an offset in days from
the beginning of the year, in the context of the local
machine timezone.
- The date-time value returned is the given offset number of
+ The date-time value returned is the given offset number of
days from the beginning of the given year, represented in
the timezone of the local machine. The offset may be positive
or negative.
@@ -161,7 +161,7 @@
- If the function is invoked with two arguments, the first
a float representing a number of seconds past the epoch
- in gmt (such as those returned by time.time()) and the
+ in gmt (such as those returned by time.time()) and the
second a string naming a recognized timezone, a DateTime
with a value of that gmt time will be returned, represented
in the given timezone.::
@@ -197,10 +197,10 @@
If a string argument passed to the DateTime constructor cannot be
parsed, it will raise DateTime.SyntaxError. Invalid date, time, or
- timezone components will raise a DateTime.DateTimeError.
+ timezone components will raise a DateTime.DateTimeError.
- The module function Timezones() will return a list of the
- timezones recognized by the DateTime module. Recognition of
+ The module function Timezones() will return a list of the
+ timezones recognized by the DateTime module. Recognition of
timezone names is case-insensitive.
"""
@@ -470,7 +470,7 @@
"""
- def Day():
+ def Day():
"""
Return the full name of the day of the week
@@ -603,7 +603,7 @@
Permission -- Always available
"""
- def TimeMinutes():
+ def TimeMinutes():
"""
Return the time string for an object not showing seconds.
@@ -739,18 +739,3 @@
Permission -- Always available
"""
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
=== Zope/lib/python/Products/OFSP/help/File.py 1.12 => 1.13 ===
--- Zope/lib/python/Products/OFSP/help/File.py:1.12 Wed Nov 28 10:51:00 2001
+++ Zope/lib/python/Products/OFSP/help/File.py Wed Aug 14 18:16:05 2002
@@ -1,14 +1,14 @@
##############################################################################
#
# 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
-#
+#
##############################################################################
@@ -54,37 +54,35 @@
Also see ObjectManager for details on the 'objectValues'
method.
"""
-
+
__constructor__=manage_addFile
__extends__=(
'OFSP.ObjectManagerItem.ObjectManagerItem',
'OFSP.PropertyManager.PropertyManager',
)
-
+
def update_data(data, content_type=None, size=None):
"""
Updates the contents of the File with 'data'.
-
+
The 'data' argument must be a string. If 'content_type' is not
provided, then a content type will not be set. If size is not
provided, the size of the file will be computed from 'data'.
-
+
Permission -- Python only
"""
def getSize():
"""
Returns the size of the file in bytes.
-
+
Permission -- 'View'
"""
def getContentType():
"""
Returns the content type of the file.
-
+
Permission -- 'View'
"""
-
-
=== Zope/lib/python/Products/OFSP/help/Folder.py 1.5 => 1.6 ===
--- Zope/lib/python/Products/OFSP/help/Folder.py:1.5 Wed Nov 28 10:51:00 2001
+++ Zope/lib/python/Products/OFSP/help/Folder.py Wed Aug 14 18:16:05 2002
@@ -1,14 +1,14 @@
##############################################################################
#
# 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
-#
+#
##############################################################################
@@ -31,19 +31,8 @@
__extends__=(
'OFSP.ObjectManagerItem.ObjectManagerItem',
- 'OFSP.ObjectManager.ObjectManager',
+ 'OFSP.ObjectManager.ObjectManager',
'OFSP.PropertyManager.PropertyManager',
)
__constructor__ = manage_addFolder
-
-
-
-
-
-
-
-
-
-
-
=== Zope/lib/python/Products/OFSP/help/Image.py 1.12 => 1.13 ===
--- Zope/lib/python/Products/OFSP/help/Image.py:1.12 Wed Nov 28 10:51:00 2001
+++ Zope/lib/python/Products/OFSP/help/Image.py Wed Aug 14 18:16:05 2002
@@ -1,14 +1,14 @@
##############################################################################
#
# 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
-#
+#
##############################################################################
def manage_addImage(id, file, title='', precondition='', content_type=''):
@@ -54,7 +54,7 @@
method. For example::
<dtml-var "ImageObject.tag(border='5', align='left')">
-
+
"""
__constructor__=manage_addImage
@@ -66,13 +66,13 @@
"""
This method returns a string which contains an HTML IMG tag
reference to the image.
-
+
Optionally, the 'height', 'width', 'alt', 'scale', 'xscale'
and 'yscale' arguments can be provided which are turned into
HTML IMG tag attributes. Note, 'height' and 'width' are
provided by default, and 'alt' comes from the 'title_or_id'
method.
-
+
Keyword arguments may be provided to support other or future IMG
tag attributes. The one exception to this is the HTML Cascading
Style Sheet tag 'class'. Because the word 'class' is a reserved
@@ -82,10 +82,3 @@
Permission -- 'View'
"""
-
-
-
-
-
-
-
=== Zope/lib/python/Products/OFSP/help/ObjectManager.py 1.12 => 1.13 ===
--- Zope/lib/python/Products/OFSP/help/ObjectManager.py:1.12 Wed Mar 27 16:51:05 2002
+++ Zope/lib/python/Products/OFSP/help/ObjectManager.py Wed Aug 14 18:16:05 2002
@@ -1,14 +1,14 @@
##############################################################################
#
# 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
-#
+#
##############################################################################
class ObjectManager:
@@ -39,7 +39,7 @@
"""
This method returns a list of the ids of the contained
objects.
-
+
Optionally, you can pass an argument specifying what object
meta_type(es) to restrict the results to. This argument can be
a string specifying one meta_type, or it can be a list of
@@ -62,7 +62,7 @@
def objectValues(type=None):
"""
This method returns a sequence of contained objects.
-
+
Like objectItems and objectIds, it accepts one argument,
either a string or a list to restrict the results to objects
of a given meta_type or set of meta_types.
@@ -76,16 +76,16 @@
There are no Folders.
</dtml-in>
- The results were restricted to Folders by passing a
+ The results were restricted to Folders by passing a
meta_type to 'objectValues' method.
-
+
Permission -- 'Access contents information'
"""
def objectItems(type=None):
"""
This method returns a sequence of (id, object) tuples.
-
+
Like objectValues and objectIds, it accepts one argument,
either a string or a list to restrict the results to objects
of a given meta_type or set of meta_types.
@@ -93,7 +93,7 @@
Each tuple's first element is the id of an object contained in
the Object Manager, and the second element is the object
itself.
-
+
Example::
<dtml-in objectItems>
@@ -102,7 +102,7 @@
<dtml-else>
There are no sub-objects.
</dtml-in>
-
+
Permission -- 'Access contents information'
"""
@@ -111,11 +111,11 @@
This method returns a list of objects of a given meta_type(es)
contained in the Object Manager and all its parent Object
Managers.
-
+
The type argument specifies the meta_type(es). It can be a string
specifying one meta_type, or it can be a list of strings to
specify many.
-
+
Permission -- Python only
"""
@@ -131,7 +131,7 @@
def __getitem__(id):
"""
Returns a child object given a child id. If there is no child
- with the given id, a KeyError is raised. This method makes it easy
+ with the given id, a KeyError is raised. This method makes it easy
to refer to children that have id with file extensions. For
example::
@@ -148,22 +148,22 @@
Permission -- 'Access contents information'
"""
-
+
def setBrowserDefaultId(id='', acquire=0):
"""
Sets the id of the object or method used as the default method when
the object manager is published. If acquire is set then the default
method id will be acquired from the parent container.
-
+
Permission -- 'Manage folderish settings'
"""
-
+
def getBrowserDefaultId(acquire=0):
"""
Returns the id of the object or method used as the default when the
object manager is published. By default, this setting is acquired. If
- the acquire argument is true, then the return value will be acquired
- from the parent if it is not set locally. Otherwise, None is returned
+ the acquire argument is true, then the return value will be acquired
+ from the parent if it is not set locally. Otherwise, None is returned
if the default id is not set on this object manager.
Permission -- 'View'
=== Zope/lib/python/Products/OFSP/help/ObjectManagerItem.py 1.16 => 1.17 ===
--- Zope/lib/python/Products/OFSP/help/ObjectManagerItem.py:1.16 Wed Nov 28 10:51:00 2001
+++ Zope/lib/python/Products/OFSP/help/ObjectManagerItem.py Wed Aug 14 18:16:05 2002
@@ -1,14 +1,14 @@
##############################################################################
#
# 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
-#
+#
##############################################################################
class ObjectManagerItem:
@@ -19,21 +19,21 @@
ObjectMangerItems have these instance
attributes:
-
+
'title' -- The title of the object.
-
+
This is an optional one-line string description of the object.
'meta_type' -- A short name for the type of the object.
-
+
This is the name that shows up in product add list for the
object and is used when filtering objects by type.
-
+
This attribute is provided by the object's class and should
not be changed directly.
'REQUEST' -- The current web request.
-
+
This object is acquired and should not be set.
"""
@@ -49,12 +49,12 @@
Permission -- Always available
"""
-
+
def title_or_id():
"""
If the title is not blank, return it, otherwise
return the id.
-
+
Permission -- Always available
"""
@@ -75,11 +75,11 @@
Permission -- 'View management screens'
"""
-
+
def this():
"""
Return the object.
-
+
This turns out to be handy in two situations. First, it
provides a way to refer to an object in DTML expressions.
@@ -100,14 +100,14 @@
the URL returned is relative to the site object. Note, if
virtual hosts are being used, then the path returned is a
logical, rather than a physical path.
-
+
Permission -- Always available
"""
def getPhysicalRoot():
"""
Returns the top-level Zope Application object.
-
+
Permission -- Python only
"""
@@ -136,9 +136,9 @@
def restrictedTraverse(path, default=None):
"""
Return the object obtained by traversing the given path from
- the object on which the method was called, performing security
+ the object on which the method was called, performing security
checks along the way.
-
+
If an object is not found then the 'default' argument will be
returned.
=== Zope/lib/python/Products/OFSP/help/PropertyManager.py 1.8 => 1.9 ===
--- Zope/lib/python/Products/OFSP/help/PropertyManager.py:1.8 Wed Nov 28 10:51:00 2001
+++ Zope/lib/python/Products/OFSP/help/PropertyManager.py Wed Aug 14 18:16:05 2002
@@ -1,14 +1,14 @@
##############################################################################
#
# 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
-#
+#
##############################################################################
class PropertyManager:
@@ -16,7 +16,7 @@
A Property Manager object has a collection of typed attributes
called properties. Properties can be managed through the web or
via DTML.
-
+
In addition to having a type, properties can be writable or
read-only and can have default values.
"""
@@ -25,7 +25,7 @@
"""
Return the value of the property 'id'. If the property is not
found the optional second argument or None is returned.
-
+
Permission -- 'Access contents information'
"""
@@ -33,7 +33,7 @@
"""
Get the type of property 'id'. Returns None if no such
property exists.
-
+
Permission -- 'Access contents information'
"""
@@ -41,28 +41,28 @@
"""
Returns a true value if the Property Manager has the property
'id'. Otherwise returns a false value.
-
+
Permission -- 'Access contents information'
"""
def propertyIds():
"""
Returns a list of property ids.
-
+
Permission -- 'Access contents information'
"""
def propertyValues():
"""
Returns a list of property values.
-
- Permission -- 'Access contents information'
+
+ Permission -- 'Access contents information'
"""
def propertyItems():
"""
Return a list of (id, property) tuples.
-
+
Permission -- 'Access contents information'
"""
@@ -70,7 +70,6 @@
"""
Returns a tuple of mappings, giving meta-data for properties.
The meta-data includes 'id', 'type', and 'mode'.
-
+
Permission -- 'Access contents information'
"""
-
=== Zope/lib/python/Products/OFSP/help/PropertySheet.py 1.11 => 1.12 ===
--- Zope/lib/python/Products/OFSP/help/PropertySheet.py:1.11 Wed Nov 28 10:51:00 2001
+++ Zope/lib/python/Products/OFSP/help/PropertySheet.py Wed Aug 14 18:16:05 2002
@@ -1,14 +1,14 @@
##############################################################################
#
# 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
-#
+#
##############################################################################
class PropertySheet:
@@ -16,8 +16,8 @@
A PropertySheet is an abstraction for organizing and working
with a set of related properties. Conceptually it acts like a
- container for a set of related properties and meta-data describing
- those properties. A PropertySheet may or may not provide a web
+ container for a set of related properties and meta-data describing
+ those properties. A PropertySheet may or may not provide a web
interface for managing its properties.
"""
@@ -26,7 +26,7 @@
"""
Return a namespace string usable as an xml namespace
- for this property set. This may be an empty string if
+ for this property set. This may be an empty string if
there is no default namespace for a given property sheet
(especially property sheets added in ZClass definitions).
@@ -37,27 +37,27 @@
def getProperty(id, d=None):
"""
- Get the property 'id', returning the optional second
+ Get the property 'id', returning the optional second
argument or None if no such property is found.
Permission -- Python only
-
+
"""
def getPropertyType(id):
"""
-
+
Get the type of property 'id'. Returns None if no such
property exists.
Permission -- Python only
-
+
"""
def hasProperty(id):
"""
- Returns true if 'self' has a property with the given 'id',
+ Returns true if 'self' has a property with the given 'id',
false otherwise.
Permission -- 'Access contents information'
@@ -90,7 +90,7 @@
Permission -- 'Access contents information'
"""
-
+
def propertyMap():
"""
@@ -117,26 +117,26 @@
These are the
property types:
- 'boolean' -- 1 or 0.
+ 'boolean' -- 1 or 0.
'date' -- A 'DateTime' value, for example '12/31/1999 15:42:52 PST'.
- 'float' -- A decimal number, for example '12.4'.
+ 'float' -- A decimal number, for example '12.4'.
- 'int' -- An integer number, for example, '12'.
+ 'int' -- An integer number, for example, '12'.
- 'lines' -- A list of strings, one per line.
+ 'lines' -- A list of strings, one per line.
- 'long' -- A long integer, for example '12232322322323232323423'.
+ 'long' -- A long integer, for example '12232322322323232323423'.
- 'string' -- A string of characters, for example 'This is a string'.
+ 'string' -- A string of characters, for example 'This is a string'.
- 'text' -- A multi-line string, for example a paragraph.
+ 'text' -- A multi-line string, for example a paragraph.
'tokens' -- A list of strings separated by white space, for example
- 'one two three'.
+ 'one two three'.
- 'selection' -- A string selected by a pop-up menu.
+ 'selection' -- A string selected by a pop-up menu.
'multiple selection' -- A list of strings selected by a selection list.
@@ -166,17 +166,17 @@
def manage_changeProperties(REQUEST=None, **kw):
"""
- Change existing object properties by passing either a mapping
- object as 'REQUEST' containing name:value pairs or by passing
+ Change existing object properties by passing either a mapping
+ object as 'REQUEST' containing name:value pairs or by passing
name=value keyword arguments.
- Some objects have "special" properties defined by product
- authors that cannot be changed. If you try to change one of
+ Some objects have "special" properties defined by product
+ authors that cannot be changed. If you try to change one of
these properties through this method, an error will be raised.
- Note that no type checking or conversion happens when this
- method is called, so it is the caller's responsibility to
- ensure that the updated values are of the correct type.
+ Note that no type checking or conversion happens when this
+ method is called, so it is the caller's responsibility to
+ ensure that the updated values are of the correct type.
*This should probably change*.
If a value is provided for 'REQUEST' (as it will be when
@@ -195,11 +195,11 @@
def manage_delProperties(ids=None, REQUEST=None):
"""
- Delete one or more properties with the given 'ids'. The 'ids'
- argument should be a sequence (tuple or list) containing the
- ids of the properties to be deleted. If 'ids' is empty no
- action will be taken. If any of the properties named in 'ids'
- does not exist, an error will be raised.
+ Delete one or more properties with the given 'ids'. The 'ids'
+ argument should be a sequence (tuple or list) containing the
+ ids of the properties to be deleted. If 'ids' is empty no
+ action will be taken. If any of the properties named in 'ids'
+ does not exist, an error will be raised.
Some objects have "special" properties defined by product
authors that cannot be deleted. If one of these properties is
@@ -216,10 +216,3 @@
Permission -- 'Manage Properties'
"""
-
-
-
-
-
-
-
=== Zope/lib/python/Products/OFSP/help/PropertySheets.py 1.9 => 1.10 ===
--- Zope/lib/python/Products/OFSP/help/PropertySheets.py:1.9 Wed Nov 28 10:51:00 2001
+++ Zope/lib/python/Products/OFSP/help/PropertySheets.py Wed Aug 14 18:16:05 2002
@@ -1,14 +1,14 @@
##############################################################################
#
# 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
-#
+#
##############################################################################
@@ -31,7 +31,7 @@
dictionary-style key indexing.
"""
-
+
def values():
"""
@@ -39,7 +39,7 @@
in the collection.
Permission -- Python only
-
+
"""
def items():
@@ -59,6 +59,5 @@
given in 'default' if the named PropertySheet is not found.
Permission -- Python only
-
- """
+ """
=== Zope/lib/python/Products/OFSP/help/Request.py 1.11 => 1.12 ===
--- Zope/lib/python/Products/OFSP/help/Request.py:1.11 Wed Aug 14 12:55:45 2002
+++ Zope/lib/python/Products/OFSP/help/Request.py Wed Aug 14 18:16:05 2002
@@ -1,14 +1,14 @@
##############################################################################
#
# 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
-#
+#
##############################################################################
@@ -121,10 +121,10 @@
This name and value is stored in the 'Other' category.
Permission -- Always available
-
+
"""
-
+
def get_header(name, default=None):
"""
@@ -136,7 +136,7 @@
if available.
Permission -- Always available
-
+
"""
@@ -147,7 +147,7 @@
returns a false value otherwise.
Permission -- Always available
-
+
"""
@@ -157,7 +157,7 @@
Returns a sorted sequence of all keys in the REQUEST object.
Permission -- Always available
-
+
"""
def items():
@@ -167,7 +167,7 @@
the REQUEST object.
Permission -- Always available
-
+
"""
def values():
@@ -177,7 +177,7 @@
object.
Permission -- Always available
-
+
"""
def setServerURL(protocol=None, hostname=None, port=None):
@@ -214,5 +214,3 @@
Permissions -- Always available
"""
-
-
=== Zope/lib/python/Products/OFSP/help/Response.py 1.9 => 1.10 ===
--- Zope/lib/python/Products/OFSP/help/Response.py:1.9 Wed Aug 14 12:53:44 2002
+++ Zope/lib/python/Products/OFSP/help/Response.py Wed Aug 14 18:16:05 2002
@@ -1,14 +1,14 @@
##############################################################################
#
# 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
-#
+#
##############################################################################
@@ -22,7 +22,7 @@
def setStatus(status, reason=None):
'''
-
+
Sets the HTTP status code of the response; the argument may
either be an integer or one of the following strings:
@@ -41,7 +41,7 @@
NotImplemented,
BadGateway,
ServiceUnavailable
-
+
that will be converted to the correct integer value.
Permission -- Always available
@@ -50,7 +50,7 @@
def setHeader(name, value):
'''
-
+
Sets an HTTP return header "name" with value "value", clearing
the previous value set for the header, if one exists. If the
literal flag is true, the case of the header name is
@@ -63,12 +63,12 @@
def addHeader(name, value):
'''
-
+
Set a new HTTP return header with the given value, while
retaining any previously set headers with the same name.
Permission -- Always available
-
+
'''
def setBase(base):
@@ -77,27 +77,27 @@
Set the base URL for the returned document.
Permission -- Always available
-
+
"""
def appendCookie(name, value):
'''
-
+
Returns an HTTP header that sets a cookie on cookie-enabled
browsers with a key "name" and value "value". If a value for the
cookie has previously been set in the response object, the new
value is appended to the old one separated by a colon.
Permission -- Always available
-
+
'''
def expireCookie(name, **kw):
'''
-
+
Cause an HTTP cookie to be removed from the browser
-
+
The response will include an HTTP header that will remove the cookie
corresponding to "name" on the client, if one exists. This is
accomplished by sending a new cookie with an expiration date
@@ -107,12 +107,12 @@
argument.
Permission -- Always available
-
+
'''
def setCookie(name,value,**kw):
'''
-
+
Set an HTTP cookie on the browser
The response will include an HTTP header that sets a cookie on
@@ -126,20 +126,20 @@
the browser and stored in REQUEST.cookies.
Permission -- Always available
-
+
'''
def appendHeader(name, value, delimiter=","):
'''
-
+
Append a value to a header.
-
+
Sets an HTTP return header "name" with value "value",
appending it following a comma if there was a previous value
set for the header.
Permission -- Always available
-
+
'''
def redirect(location, lock=0):
@@ -152,7 +152,7 @@
been called).
Permission -- Always available
-
+
"""
def write(data):
@@ -167,9 +167,8 @@
cookies on the response object.
Note that published objects must not generate any errors
- after beginning stream-oriented output.
+ after beginning stream-oriented output.
Permission -- Always available
"""
-
=== Zope/lib/python/Products/OFSP/help/math.py 1.1 => 1.2 ===
--- Zope/lib/python/Products/OFSP/help/math.py:1.1 Tue Oct 16 20:37:08 2001
+++ Zope/lib/python/Products/OFSP/help/math.py Wed Aug 14 18:16:05 2002
@@ -13,7 +13,3 @@
module":http://www.python.org/doc/current/lib/module-math.html
documentation at Python.org
"""
-
-
-
-
=== Zope/lib/python/Products/OFSP/help/random.py 1.2 => 1.3 ===
--- Zope/lib/python/Products/OFSP/help/random.py:1.2 Thu Oct 18 21:13:03 2001
+++ Zope/lib/python/Products/OFSP/help/random.py Wed Aug 14 18:16:05 2002
@@ -14,5 +14,3 @@
module":http://www.python.org/doc/current/lib/module-random.html
documentation at Python.org
"""
-
-
=== Zope/lib/python/Products/OFSP/help/sequence.py 1.1 => 1.2 ===
--- Zope/lib/python/Products/OFSP/help/sequence.py:1.1 Tue Oct 16 20:37:08 2001
+++ Zope/lib/python/Products/OFSP/help/sequence.py Wed Aug 14 18:16:05 2002
@@ -12,9 +12,9 @@
that describe the sort order.
key -- Attribute of the object to be sorted.
-
+
func -- Defines the compare function (optional). Allowed values:
-
+
"cmp" -- Standard Python comparison function
"nocase" -- Case-insensitive comparison
@@ -23,7 +23,7 @@
"strcoll_nocase" or "locale_nocase" -- Locale-aware
case-insensitive string comparison
-
+
other -- A specified, user-defined comparison function, should
return 1, 0, -1.
@@ -31,7 +31,7 @@
(allowed values: "asc", "desc")
DTML Examples
-
+
Sort child object (using the 'objectValues' method) by id (using
the 'getId' method), ignoring case::
@@ -64,7 +64,7 @@
<tr tal:repeat="item sorted_objects">
<td tal:content="item/title">title</td>
<td tal:content="item/bobobase_modification_time">
- modification date</td>
+ modification date</td>
</tr>
</table>
@@ -75,9 +75,5 @@
See Also
"Python cmp function":http://www.python.org/doc/lib/built-in-funcs.html
-
- """
-
-
-
+ """
=== Zope/lib/python/Products/OFSP/help/string.py 1.1 => 1.2 ===
--- Zope/lib/python/Products/OFSP/help/string.py:1.1 Tue Oct 16 20:37:08 2001
+++ Zope/lib/python/Products/OFSP/help/string.py Wed Aug 14 18:16:05 2002
@@ -13,8 +13,3 @@
module":http://www.python.org/doc/current/lib/module-string.html
documentation at Python.org
"""
-
-
-
-
-