Commit bdb3057e authored by Martijn Pieters's avatar Martijn Pieters

Clean up indentation and trailing whitespace.

parent f90d18e7
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"""Global definitions""" """Global definitions"""
__version__='$Revision: 1.52 $'[11:-2] __version__='$Revision: 1.53 $'[11:-2]
# Global constants: __replaceable__ flags: # Global constants: __replaceable__ flags:
NOT_REPLACEABLE = 0 NOT_REPLACEABLE = 0
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
############################################################################## ##############################################################################
"""Image object that is stored in a file""" """Image object that is stored in a file"""
__version__='$Revision: 1.12 $'[11:-2] __version__='$Revision: 1.13 $'[11:-2]
############################################################ ############################################################
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
This product provides support for external methods, which allow This product provides support for external methods, which allow
domain-specific customization of web environments. domain-specific customization of web environments.
""" """
__version__='$Revision: 1.50 $'[11:-2] __version__='$Revision: 1.51 $'[11:-2]
from Globals import Persistent, DTMLFile, MessageDialog, HTML from Globals import Persistent, DTMLFile, MessageDialog, HTML
import OFS.SimpleItem, Acquisition import OFS.SimpleItem, Acquisition
import AccessControl.Role, sys, os, stat, traceback import AccessControl.Role, sys, os, stat, traceback
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
# #
############################################################################## ##############################################################################
__doc__='''External Method Product Initialization __doc__='''External Method Product Initialization
$Id: __init__.py,v 1.14 2001/11/28 15:50:59 matt Exp $''' $Id: __init__.py,v 1.15 2002/08/14 22:14:10 mj Exp $'''
__version__='$Revision: 1.14 $'[11:-2] __version__='$Revision: 1.15 $'[11:-2]
import ExternalMethod import ExternalMethod
......
...@@ -98,5 +98,3 @@ class ExternalMethod: ...@@ -98,5 +98,3 @@ class ExternalMethod:
first argument. first argument.
""" """
from math import sqrt from math import sqrt
def testf(arg1, sqrt = sqrt): def testf(arg1, sqrt = sqrt):
return sqrt(arg1) return sqrt(arg1)
...@@ -13,6 +13,5 @@ ...@@ -13,6 +13,5 @@
############################################################################## ##############################################################################
""" """
$Id: __init__.py,v 1.3 2002/04/23 13:04:20 jim Exp $ $Id: __init__.py,v 1.4 2002/08/14 22:14:11 mj Exp $
""" """
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
""" """
Revision information: Revision information:
$Id: testExternalMethod.py,v 1.4 2002/04/24 00:20:15 jim Exp $ $Id: testExternalMethod.py,v 1.5 2002/08/14 22:14:11 mj Exp $
""" """
import math, os import math, os
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
__rcs_id__='$Id: MIMETag.py,v 1.9 2002/03/11 15:54:38 andreasjung Exp $' __rcs_id__='$Id: MIMETag.py,v 1.10 2002/08/14 22:14:27 mj Exp $'
__version__='$Revision: 1.9 $'[11:-2] __version__='$Revision: 1.10 $'[11:-2]
from DocumentTemplate.DT_Util import * from DocumentTemplate.DT_Util import *
from DocumentTemplate.DT_String import String from DocumentTemplate.DT_String import String
...@@ -175,8 +175,3 @@ class MIMETag: ...@@ -175,8 +175,3 @@ class MIMETag:
String.commands['mime'] = MIMETag String.commands['mime'] = MIMETag
...@@ -11,12 +11,7 @@ ...@@ -11,12 +11,7 @@
# #
############################################################################## ##############################################################################
__doc__='''MIMETools Product Initialization __doc__='''MIMETools Product Initialization
$Id: __init__.py,v 1.2 2001/11/28 15:50:59 matt Exp $''' $Id: __init__.py,v 1.3 2002/08/14 22:14:27 mj Exp $'''
__version__='$Revision: 1.2 $'[11:-2] __version__='$Revision: 1.3 $'[11:-2]
import MIMETag import MIMETag
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
# #
############################################################################## ##############################################################################
"""SMTP mail objects """SMTP mail objects
$Id: MailHost.py,v 1.73 2002/08/12 21:50:31 jens Exp $""" $Id: MailHost.py,v 1.74 2002/08/14 22:14:51 mj Exp $"""
__version__ = "$Revision: 1.73 $"[11:-2] __version__ = "$Revision: 1.74 $"[11:-2]
from Globals import Persistent, DTMLFile, InitializeClass from Globals import Persistent, DTMLFile, InitializeClass
from smtplib import SMTP from smtplib import SMTP
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
__rcs_id__='$Id: SendMailTag.py,v 1.16 2002/03/11 15:54:38 andreasjung Exp $' __rcs_id__='$Id: SendMailTag.py,v 1.17 2002/08/14 22:14:51 mj Exp $'
__version__='$Revision: 1.16 $'[11:-2] __version__='$Revision: 1.17 $'[11:-2]
from MailHost import MailBase from MailHost import MailBase
from DocumentTemplate.DT_Util import parse_params,render_blocks from DocumentTemplate.DT_Util import parse_params,render_blocks
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
# #
############################################################################## ##############################################################################
__doc__='''MailHost Product Initialization __doc__='''MailHost Product Initialization
$Id: __init__.py,v 1.21 2001/11/28 15:50:59 matt Exp $''' $Id: __init__.py,v 1.22 2002/08/14 22:14:51 mj Exp $'''
__version__='$Revision: 1.21 $'[11:-2] __version__='$Revision: 1.22 $'[11:-2]
import MailHost import MailHost
import SendMailTag import SendMailTag
......
...@@ -54,6 +54,3 @@ class MailHost: ...@@ -54,6 +54,3 @@ class MailHost:
are 'base64', 'quoted-printable' and 'uuencode'. are 'base64', 'quoted-printable' and 'uuencode'.
""" """
...@@ -57,4 +57,3 @@ def main(): ...@@ -57,4 +57,3 @@ def main():
if __name__ == '__main__': if __name__ == '__main__':
main() main()
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
############################################################################## ##############################################################################
"""Version object""" """Version object"""
__version__='$Revision: 1.52 $'[11:-2] __version__='$Revision: 1.53 $'[11:-2]
import Globals, time import Globals, time
from AccessControl.Role import RoleManager from AccessControl.Role import RoleManager
...@@ -208,4 +208,3 @@ class Version(Persistent,Implicit,RoleManager,Item): ...@@ -208,4 +208,3 @@ class Version(Persistent,Implicit,RoleManager,Item):
'version, because the version would no longer\n' 'version, because the version would no longer\n'
'be accessable.<p>\n' 'be accessable.<p>\n'
% (v,v,v)) % (v,v,v))
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
# #
############################################################################## ##############################################################################
__doc__='''Object system core __doc__='''Object system core
$Id: __init__.py,v 1.36 2001/11/28 15:51:00 matt Exp $''' $Id: __init__.py,v 1.37 2002/08/14 22:16:04 mj Exp $'''
__version__='$Revision: 1.36 $'[11:-2] __version__='$Revision: 1.37 $'[11:-2]
import Version, OFS.Image, OFS.Folder, AccessControl.User import Version, OFS.Image, OFS.Folder, AccessControl.User
import OFS.DTMLMethod, OFS.DTMLDocument, OFS.PropertySheets import OFS.DTMLMethod, OFS.DTMLDocument, OFS.PropertySheets
......
...@@ -68,4 +68,3 @@ class AuthenticatedUser: ...@@ -68,4 +68,3 @@ class AuthenticatedUser:
Permission -- Always available Permission -- Always available
""" """
...@@ -133,5 +133,3 @@ class DTMLDocument: ...@@ -133,5 +133,3 @@ class DTMLDocument:
""" """
__constructor__=manage_addDocument __constructor__=manage_addDocument
...@@ -739,18 +739,3 @@ class DateTime: ...@@ -739,18 +739,3 @@ class DateTime:
Permission -- Always available Permission -- Always available
""" """
...@@ -86,5 +86,3 @@ class File: ...@@ -86,5 +86,3 @@ class File:
Permission -- 'View' Permission -- 'View'
""" """
...@@ -36,14 +36,3 @@ class Folder: ...@@ -36,14 +36,3 @@ class Folder:
) )
__constructor__ = manage_addFolder __constructor__ = manage_addFolder
...@@ -82,10 +82,3 @@ class Image: ...@@ -82,10 +82,3 @@ class Image:
Permission -- 'View' Permission -- 'View'
""" """
...@@ -73,4 +73,3 @@ class PropertyManager: ...@@ -73,4 +73,3 @@ class PropertyManager:
Permission -- 'Access contents information' Permission -- 'Access contents information'
""" """
...@@ -216,10 +216,3 @@ class PropertySheet: ...@@ -216,10 +216,3 @@ class PropertySheet:
Permission -- 'Manage Properties' Permission -- 'Manage Properties'
""" """
...@@ -61,4 +61,3 @@ class PropertySheets: ...@@ -61,4 +61,3 @@ class PropertySheets:
Permission -- Python only Permission -- Python only
""" """
...@@ -214,5 +214,3 @@ class Request: ...@@ -214,5 +214,3 @@ class Request:
Permissions -- Always available Permissions -- Always available
""" """
...@@ -172,4 +172,3 @@ class Response: ...@@ -172,4 +172,3 @@ class Response:
Permission -- Always available Permission -- Always available
""" """
...@@ -13,7 +13,3 @@ math: Python 'math' module ...@@ -13,7 +13,3 @@ math: Python 'math' module
module":http://www.python.org/doc/current/lib/module-math.html module":http://www.python.org/doc/current/lib/module-math.html
documentation at Python.org documentation at Python.org
""" """
...@@ -14,5 +14,3 @@ random: Python 'random' module ...@@ -14,5 +14,3 @@ random: Python 'random' module
module":http://www.python.org/doc/current/lib/module-random.html module":http://www.python.org/doc/current/lib/module-random.html
documentation at Python.org documentation at Python.org
""" """
...@@ -77,7 +77,3 @@ def sort(seq, sort): ...@@ -77,7 +77,3 @@ def sort(seq, sort):
"Python cmp function":http://www.python.org/doc/lib/built-in-funcs.html "Python cmp function":http://www.python.org/doc/lib/built-in-funcs.html
""" """
...@@ -13,8 +13,3 @@ string: Python 'string' module ...@@ -13,8 +13,3 @@ string: Python 'string' module
module":http://www.python.org/doc/current/lib/module-string.html module":http://www.python.org/doc/current/lib/module-string.html
documentation at Python.org documentation at Python.org
""" """
...@@ -17,7 +17,7 @@ Page Template-specific implementation of TALES, with handlers ...@@ -17,7 +17,7 @@ Page Template-specific implementation of TALES, with handlers
for Python expressions, string literals, and paths. for Python expressions, string literals, and paths.
""" """
__version__='$Revision: 1.35 $'[11:-2] __version__='$Revision: 1.36 $'[11:-2]
import re, sys import re, sys
from TALES import Engine, CompilerError, _valid_name, NAME_RE, \ from TALES import Engine, CompilerError, _valid_name, NAME_RE, \
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
HTML- and XML-based template objects using TAL, TALES, and METAL. HTML- and XML-based template objects using TAL, TALES, and METAL.
""" """
__version__='$Revision: 1.24 $'[11:-2] __version__='$Revision: 1.25 $'[11:-2]
import sys import sys
...@@ -203,4 +203,3 @@ class PageTemplateTracebackSupplement: ...@@ -203,4 +203,3 @@ class PageTemplateTracebackSupplement:
if e: if e:
w = list(w) + list(e) w = list(w) + list(e)
self.warnings = w self.warnings = w
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
Zope object encapsulating a Page Template from the filesystem. Zope object encapsulating a Page Template from the filesystem.
""" """
__version__='$Revision: 1.18 $'[11:-2] __version__='$Revision: 1.19 $'[11:-2]
import os, AccessControl, Acquisition, sys import os, AccessControl, Acquisition, sys
from Globals import package_home, DevelopmentMode from Globals import package_home, DevelopmentMode
......
...@@ -17,7 +17,7 @@ A TALES Iterator with the ability to use first() and last() on ...@@ -17,7 +17,7 @@ A TALES Iterator with the ability to use first() and last() on
subpaths of elements. subpaths of elements.
""" """
__version__='$Revision: 1.3 $'[11:-2] __version__='$Revision: 1.4 $'[11:-2]
import TALES import TALES
from Expressions import restrictedTraverse, Undefs, getSecurityManager from Expressions import restrictedTraverse, Undefs, getSecurityManager
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
"""Generic Python Expression Handler """Generic Python Expression Handler
""" """
__version__='$Revision: 1.7 $'[11:-2] __version__='$Revision: 1.8 $'[11:-2]
from TALES import CompilerError from TALES import CompilerError
from sys import exc_info from sys import exc_info
...@@ -78,4 +78,3 @@ class ExprTypeProxy: ...@@ -78,4 +78,3 @@ class ExprTypeProxy:
def __call__(self, text): def __call__(self, text):
return self._handler(self._name, text, return self._handler(self._name, text,
self._econtext._engine)(self._econtext) self._econtext._engine)(self._econtext)
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
An implementation of a generic TALES engine An implementation of a generic TALES engine
""" """
__version__='$Revision: 1.30 $'[11:-2] __version__='$Revision: 1.31 $'[11:-2]
import re, sys, ZTUtils import re, sys, ZTUtils
from MultiMapping import MultiMapping from MultiMapping import MultiMapping
...@@ -282,4 +282,3 @@ class SimpleExpr: ...@@ -282,4 +282,3 @@ class SimpleExpr:
return self._name, self._expr return self._name, self._expr
def __repr__(self): def __repr__(self):
return '<SimpleExpr %s %s>' % (self._name, `self._expr`) return '<SimpleExpr %s %s>' % (self._name, `self._expr`)
...@@ -17,7 +17,7 @@ Handler for Python expressions, using the pre-Python 2.1 restriction ...@@ -17,7 +17,7 @@ Handler for Python expressions, using the pre-Python 2.1 restriction
machinery from PythonScripts. machinery from PythonScripts.
""" """
__version__='$Revision: 1.7 $'[11:-2] __version__='$Revision: 1.8 $'[11:-2]
from AccessControl import getSecurityManager from AccessControl import getSecurityManager
from Products.PythonScripts.Guarded import _marker, \ from Products.PythonScripts.Guarded import _marker, \
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
Handler for Python expressions that uses the RestrictedPython package. Handler for Python expressions that uses the RestrictedPython package.
""" """
__version__='$Revision: 1.9 $'[11:-2] __version__='$Revision: 1.10 $'[11:-2]
from AccessControl import full_read_guard, full_write_guard, \ from AccessControl import full_read_guard, full_write_guard, \
safe_builtins, getSecurityManager safe_builtins, getSecurityManager
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
Zope object encapsulating a Page Template. Zope object encapsulating a Page Template.
""" """
__version__='$Revision: 1.41 $'[11:-2] __version__='$Revision: 1.42 $'[11:-2]
import os, AccessControl, Acquisition, sys import os, AccessControl, Acquisition, sys
from types import StringType from types import StringType
...@@ -368,4 +368,3 @@ def initialize(context): ...@@ -368,4 +368,3 @@ def initialize(context):
) )
context.registerHelp() context.registerHelp()
context.registerHelpTitle('Zope Help') context.registerHelpTitle('Zope Help')
...@@ -15,7 +15,7 @@ __doc__='''Package wrapper for Page Templates ...@@ -15,7 +15,7 @@ __doc__='''Package wrapper for Page Templates
This wrapper allows the Page Template modules to be segregated in a This wrapper allows the Page Template modules to be segregated in a
separate package. separate package.
$Id: __init__.py,v 1.3 2001/11/28 15:51:01 matt Exp $''' $Id: __init__.py,v 1.4 2002/08/14 22:17:24 mj Exp $'''
__version__='$$'[11:-2] __version__='$$'[11:-2]
......
...@@ -34,4 +34,3 @@ class harness2(harness1): ...@@ -34,4 +34,3 @@ class harness2(harness1):
assert aargs == args, "Harness method arguments" assert aargs == args, "Harness method arguments"
assert akwargs == kwargs, "Harness method keyword args" assert akwargs == kwargs, "Harness method keyword args"
return result return result
...@@ -140,4 +140,3 @@ def test_suite(): ...@@ -140,4 +140,3 @@ def test_suite():
if __name__=='__main__': if __name__=='__main__':
main() main()
...@@ -130,4 +130,3 @@ def test_suite(): ...@@ -130,4 +130,3 @@ def test_suite():
if __name__=='__main__': if __name__=='__main__':
main() main()
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
############################################################################## ##############################################################################
"""$Id: DateIndex.py,v 1.6 2002/07/30 16:25:46 shane Exp $ """$Id: DateIndex.py,v 1.7 2002/08/14 22:19:27 mj Exp $
""" """
from DateTime.DateTime import DateTime from DateTime.DateTime import DateTime
...@@ -201,4 +201,3 @@ def manage_addDateIndex( self, id, REQUEST=None, RESPONSE=None, URL3=None): ...@@ -201,4 +201,3 @@ def manage_addDateIndex( self, id, REQUEST=None, RESPONSE=None, URL3=None):
"""Add a Date index""" """Add a Date index"""
return self.manage_addIndex(id, 'DateIndex', extra=None, \ return self.manage_addIndex(id, 'DateIndex', extra=None, \
REQUEST=REQUEST, RESPONSE=RESPONSE, URL1=URL3) REQUEST=REQUEST, RESPONSE=RESPONSE, URL1=URL3)
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
############################################################################## ##############################################################################
"""$Id: DateRangeIndex.py,v 1.3 2002/06/26 13:37:19 caseman Exp $ """$Id: DateRangeIndex.py,v 1.4 2002/08/14 22:19:28 mj Exp $
""" """
from Products.PluginIndexes import PluggableIndex from Products.PluginIndexes import PluggableIndex
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"""Simple column indices """Simple column indices
$Id: FieldIndex.py,v 1.9 2002/06/20 20:00:34 jeremy Exp $ $Id: FieldIndex.py,v 1.10 2002/08/14 22:19:29 mj Exp $
""" """
from Products.PluginIndexes import PluggableIndex from Products.PluginIndexes import PluggableIndex
...@@ -47,4 +47,3 @@ def manage_addFieldIndex(self, id, REQUEST=None, RESPONSE=None, URL3=None): ...@@ -47,4 +47,3 @@ def manage_addFieldIndex(self, id, REQUEST=None, RESPONSE=None, URL3=None):
"""Add a field index""" """Add a field index"""
return self.manage_addIndex(id, 'FieldIndex', extra=None, \ return self.manage_addIndex(id, 'FieldIndex', extra=None, \
REQUEST=REQUEST, RESPONSE=RESPONSE, URL1=URL3) REQUEST=REQUEST, RESPONSE=RESPONSE, URL1=URL3)
...@@ -122,4 +122,3 @@ def manage_addKeywordIndex(self, id, REQUEST=None, RESPONSE=None, URL3=None): ...@@ -122,4 +122,3 @@ def manage_addKeywordIndex(self, id, REQUEST=None, RESPONSE=None, URL3=None):
"""Add a keyword index""" """Add a keyword index"""
return self.manage_addIndex(id, 'KeywordIndex', extra=None, \ return self.manage_addIndex(id, 'KeywordIndex', extra=None, \
REQUEST=REQUEST, RESPONSE=RESPONSE, URL1=URL3) REQUEST=REQUEST, RESPONSE=RESPONSE, URL1=URL3)
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
############################################################################## ##############################################################################
__version__ = '$Id: PathIndex.py,v 1.24 2002/06/20 20:07:20 jeremy Exp $' __version__ = '$Id: PathIndex.py,v 1.25 2002/08/14 22:19:31 mj Exp $'
from Products.PluginIndexes import PluggableIndex from Products.PluginIndexes import PluggableIndex
from Products.PluginIndexes.common.util import parseIndexRequest from Products.PluginIndexes.common.util import parseIndexRequest
......
...@@ -270,4 +270,3 @@ class GlobbingLexicon(Lexicon): ...@@ -270,4 +270,3 @@ class GlobbingLexicon(Lexicon):
result = result.replace( '?', '.') result = result.replace( '?', '.')
return "%s$" % result return "%s$" % result
...@@ -218,4 +218,3 @@ stop_words=( ...@@ -218,4 +218,3 @@ stop_words=(
) )
stop_word_dict={} stop_word_dict={}
for word in stop_words: stop_word_dict[word]=None for word in stop_words: stop_word_dict[word]=None
...@@ -31,6 +31,3 @@ def getSplitter(name=None): ...@@ -31,6 +31,3 @@ def getSplitter(name=None):
exec( "from %s.%s import %s" % (name,name,name)) exec( "from %s.%s import %s" % (name,name,name))
return vars()[name] return vars()[name]
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
"""Text Index """Text Index
""" """
__version__ = '$Revision: 1.33 $'[11:-2] __version__ = '$Revision: 1.34 $'[11:-2]
import re import re
...@@ -767,4 +767,3 @@ manage_addTextIndexForm = DTMLFile('dtml/addTextIndex', globals()) ...@@ -767,4 +767,3 @@ manage_addTextIndexForm = DTMLFile('dtml/addTextIndex', globals())
def manage_addTextIndex(self, id, extra=None, REQUEST=None, RESPONSE=None, URL3=None): def manage_addTextIndex(self, id, extra=None, REQUEST=None, RESPONSE=None, URL3=None):
"""Add a text index""" """Add a text index"""
return self.manage_addIndex(id, 'TextIndex', extra, REQUEST, RESPONSE, URL3) return self.manage_addIndex(id, 'TextIndex', extra, REQUEST, RESPONSE, URL3)
...@@ -131,4 +131,3 @@ class Vocabulary(Item, Persistent, Implicit, ...@@ -131,4 +131,3 @@ class Vocabulary(Item, Persistent, Implicit,
def words(self): def words(self):
return self.lexicon._lexicon.items() return self.lexicon._lexicon.items()
...@@ -294,4 +294,3 @@ if __name__=='__main__': ...@@ -294,4 +294,3 @@ if __name__=='__main__':
globals()[sys.argv[1]]() globals()[sys.argv[1]]()
else: else:
main() main()
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
############################################################################## ##############################################################################
__version__ = '$Id: FilteredSet.py,v 1.3 2002/03/11 14:53:05 andreasjung Exp $' __version__ = '$Id: FilteredSet.py,v 1.4 2002/08/14 22:19:34 mj Exp $'
from BTrees.IIBTree import IISet from BTrees.IIBTree import IISet
from Persistence import Persistent from Persistence import Persistent
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
############################################################################## ##############################################################################
__version__ = '$Id: TopicIndex.py,v 1.8 2002/04/25 12:44:02 andreasjung Exp $' __version__ = '$Id: TopicIndex.py,v 1.9 2002/08/14 22:19:34 mj Exp $'
from Products.PluginIndexes import PluggableIndex from Products.PluginIndexes import PluggableIndex
from Products.PluginIndexes.common.util import parseIndexRequest from Products.PluginIndexes.common.util import parseIndexRequest
......
...@@ -10,4 +10,3 @@ ...@@ -10,4 +10,3 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
...@@ -143,4 +143,3 @@ def main(): ...@@ -143,4 +143,3 @@ def main():
if __name__ == '__main__': if __name__ == '__main__':
main() main()
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
############################################################################## ##############################################################################
"""Pluggable Index Base Class """ """Pluggable Index Base Class """
__version__='$Revision: 1.6 $'[11:-2] __version__='$Revision: 1.7 $'[11:-2]
import Interface import Interface
...@@ -67,4 +67,3 @@ class PluggableIndexInterface(Interface.Base): ...@@ -67,4 +67,3 @@ class PluggableIndexInterface(Interface.Base):
records. The second object is a tuple containing the names of records. The second object is a tuple containing the names of
all data fields used. all data fields used.
""" """
...@@ -92,4 +92,3 @@ class ResultList: ...@@ -92,4 +92,3 @@ class ResultList:
return self.__class__( return self.__class__(
result, union(self._words, x._words), self._index) result, union(self._words, x._words), self._index)
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"""Simple column indices""" """Simple column indices"""
__version__='$Revision: 1.13 $'[11:-2] __version__='$Revision: 1.14 $'[11:-2]
from Globals import Persistent from Globals import Persistent
from Acquisition import Implicit from Acquisition import Implicit
...@@ -425,4 +425,3 @@ class UnIndex(Persistent, Implicit, SimpleItem): ...@@ -425,4 +425,3 @@ class UnIndex(Persistent, Implicit, SimpleItem):
v = IISet((v,)) v = IISet((v,))
items.append((k, v)) items.append((k, v))
return items return items
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
############################################################################# #############################################################################
__version__ = '$Id: util.py,v 1.9 2002/03/29 15:33:03 andreasjung Exp $' __version__ = '$Id: util.py,v 1.10 2002/08/14 22:19:34 mj Exp $'
import re import re
......
...@@ -254,5 +254,3 @@ class DocBookBook: ...@@ -254,5 +254,3 @@ class DocBookBook:
def __str__(self): def __str__(self):
return self.read() return self.read()
...@@ -945,4 +945,3 @@ class DocumentClass: ...@@ -945,4 +945,3 @@ class DocumentClass:
return (StructuredTextXref(s[start:end]), start-1, end+1) return (StructuredTextXref(s[start:end]), start-1, end+1)
else: else:
return None return None
...@@ -64,4 +64,3 @@ class DocumentWithImages(DocumentClass): ...@@ -64,4 +64,3 @@ class DocumentWithImages(DocumentClass):
start, end) start, end)
return None return None
...@@ -28,4 +28,3 @@ class HTMLWithImages(HTMLClass): ...@@ -28,4 +28,3 @@ class HTMLWithImages(HTMLClass):
output('<img src="%s" alt="%s">\n' % (doc.href, doc.getNodeValue())) output('<img src="%s" alt="%s">\n' % (doc.href, doc.getNodeValue()))
if doc.getNodeValue() and hasattr(doc, 'key'): if doc.getNodeValue() and hasattr(doc, 'key'):
output('<p><b>Figure %s</b> %s</p>\n' % (doc.key, doc.getNodeValue())) output('<p><b>Figure %s</b> %s</p>\n' % (doc.key, doc.getNodeValue()))
...@@ -14,4 +14,3 @@ dbl_quoted_punc = punc_func("\"") ...@@ -14,4 +14,3 @@ dbl_quoted_punc = punc_func("\"")
strongem_punc = punc_func('*') strongem_punc = punc_func('*')
under_punc = punc_func('_<>') under_punc = punc_func('_<>')
phrase_delimiters = r'\s\.\,\?\/\!\&\(\)' phrase_delimiters = r'\s\.\,\?\/\!\&\(\)'
...@@ -78,4 +78,3 @@ if __name__=='__main__': ...@@ -78,4 +78,3 @@ if __name__=='__main__':
for f in args: for f in args:
print HTML(open(f).read()) print HTML(open(f).read())
...@@ -37,5 +37,3 @@ DocBookBook=DocBookClass.DocBookBook() ...@@ -37,5 +37,3 @@ DocBookBook=DocBookClass.DocBookBook()
DocBookChapter=DocBookClass.DocBookChapter() DocBookChapter=DocBookClass.DocBookChapter()
DocBookChapterWithFigures=DocBookClass.DocBookChapterWithFigures() DocBookChapterWithFigures=DocBookClass.DocBookChapterWithFigures()
DocBookArticle=DocBookClass.DocBookArticle() DocBookArticle=DocBookClass.DocBookArticle()
...@@ -30,4 +30,3 @@ for f in files: ...@@ -30,4 +30,3 @@ for f in files:
outfile = f.replace('.stx','.ref') outfile = f.replace('.stx','.ref')
open(outfile,'w').write(html) open(outfile,'w').write(html)
...@@ -10,4 +10,3 @@ def makeDB(): ...@@ -10,4 +10,3 @@ def makeDB():
def cleanDB(): def cleanDB():
for fn in glob('fs_tmp__*'): for fn in glob('fs_tmp__*'):
os.remove(fn) os.remove(fn)
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
""" """
Set up testing environment Set up testing environment
$Id: __init__.py,v 1.5 2002/01/11 17:07:32 shane Exp $ $Id: __init__.py,v 1.6 2002/08/14 22:01:39 mj Exp $
""" """
import os import os
...@@ -29,5 +29,3 @@ os.environ['SOFTWARE_HOME'] = SOFTWARE_HOME = pdir(INSTANCE_HOME) ...@@ -29,5 +29,3 @@ os.environ['SOFTWARE_HOME'] = SOFTWARE_HOME = pdir(INSTANCE_HOME)
# Note: we don't set os.environ['ZEO_CLIENT'] anymore because we # Note: we don't set os.environ['ZEO_CLIENT'] anymore because we
# really do need all the products to be initialized. Some tests # really do need all the products to be initialized. Some tests
# use the product registry. # use the product registry.
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
# Andreas Jung, andreas@digicool.com 03/24/2001 # Andreas Jung, andreas@digicool.com 03/24/2001
__version__ = '$Id: dispatcher.py,v 1.4 2001/11/28 15:51:17 matt Exp $' __version__ = '$Id: dispatcher.py,v 1.5 2002/08/14 22:01:39 mj Exp $'
import os,sys,re,string import os,sys,re,string
...@@ -189,4 +189,3 @@ if __name__=="__main__": ...@@ -189,4 +189,3 @@ if __name__=="__main__":
d=Dispatcher() d=Dispatcher()
print d.getmem() print d.getmem()
pass pass
...@@ -19,7 +19,7 @@ Usage: ...@@ -19,7 +19,7 @@ Usage:
import makerequest import makerequest
app = makerequest.makerequest(Zope.app()) app = makerequest.makerequest(Zope.app())
$Id: makerequest.py,v 1.4 2001/11/28 15:51:17 matt Exp $ $Id: makerequest.py,v 1.5 2002/08/14 22:01:39 mj Exp $
""" """
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
############################################################################## ##############################################################################
"""Rendering object hierarchies as Trees """Rendering object hierarchies as Trees
""" """
__rcs_id__='$Id: TreeTag.py,v 1.52 2002/05/21 14:41:41 andreasjung Exp $' __rcs_id__='$Id: TreeTag.py,v 1.53 2002/08/14 22:02:25 mj Exp $'
__version__='$Revision: 1.52 $'[11:-2] __version__='$Revision: 1.53 $'[11:-2]
from DocumentTemplate.DT_Util import * from DocumentTemplate.DT_Util import *
from DocumentTemplate.DT_String import String from DocumentTemplate.DT_String import String
......
...@@ -210,5 +210,3 @@ class ZClassPermissionsSheet(OFS.PropertySheets.PropertySheet, ...@@ -210,5 +210,3 @@ class ZClassPermissionsSheet(OFS.PropertySheets.PropertySheet,
if REQUEST is not None: if REQUEST is not None:
return self.manage(self, REQUEST, return self.manage(self, REQUEST,
manage_tabs_message="Permissions updated") manage_tabs_message="Permissions updated")
...@@ -14,8 +14,8 @@ needed by a product and to define product meta data. ...@@ -14,8 +14,8 @@ needed by a product and to define product meta data.
This sample product publishes a folder-ish and a simple object. This sample product publishes a folder-ish and a simple object.
$Id: __init__.py,v 1.6 2000/11/01 22:59:34 tseaver Exp $''' $Id: __init__.py,v 1.7 2002/08/14 22:03:39 mj Exp $'''
__version__='$Revision: 1.6 $'[11:-2] __version__='$Revision: 1.7 $'[11:-2]
import ZClass import ZClass
import ZClassOwner import ZClassOwner
......
...@@ -10,4 +10,3 @@ class FileLogger: ...@@ -10,4 +10,3 @@ class FileLogger:
def __call__(self, sub, sev, sum, det, err): def __call__(self, sub, sev, sum, det, err):
print 'syslogger %s, %s, %s, %s, %s, %s' % (self, sub, sev, sum, det, err) print 'syslogger %s, %s, %s, %s, %s, %s' % (self, sub, sev, sum, det, err)
import stupidFileLogger import stupidFileLogger
import syslogLogger import syslogLogger
......
...@@ -109,9 +109,3 @@ def stupid_log_write(subsystem, severity, summary, detail, error): ...@@ -109,9 +109,3 @@ def stupid_log_write(subsystem, severity, summary, detail, error):
except: except:
_stupid_dest.write("%s: %s\n" % error[:2]) _stupid_dest.write("%s: %s\n" % error[:2])
_stupid_dest.flush() _stupid_dest.flush()
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
__version__='$Revision: 1.48 $'[11:-2] __version__='$Revision: 1.49 $'[11:-2]
from urllib import quote from urllib import quote
...@@ -488,4 +488,3 @@ def old_validation(groups, request, auth, ...@@ -488,4 +488,3 @@ def old_validation(groups, request, auth,
"""<strong>You are not authorized to access this resource""") """<strong>You are not authorized to access this resource""")
return None return None
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
############################################################################## ##############################################################################
'''CGI Response Output formatter '''CGI Response Output formatter
$Id: BaseResponse.py,v 1.15 2002/08/14 16:45:53 rdmurray Exp $''' $Id: BaseResponse.py,v 1.16 2002/08/14 22:09:40 mj Exp $'''
__version__ = '$Revision: 1.15 $'[11:-2] __version__ = '$Revision: 1.16 $'[11:-2]
import types, sys import types, sys
from urllib import quote_plus from urllib import quote_plus
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
__version__='$Revision: 1.9 $'[11:-2] __version__='$Revision: 1.10 $'[11:-2]
"""BeforeTraverse interface and helper classes""" """BeforeTraverse interface and helper classes"""
......
...@@ -31,7 +31,7 @@ that allows one to simply make a single web request. ...@@ -31,7 +31,7 @@ that allows one to simply make a single web request.
The module also provides a command-line interface for calling objects. The module also provides a command-line interface for calling objects.
""" """
__version__='$Revision: 1.44 $'[11:-2] __version__='$Revision: 1.45 $'[11:-2]
import sys, re, socket, mimetools import sys, re, socket, mimetools
from httplib import HTTP from httplib import HTTP
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
__version__='$Revision: 1.17 $'[11:-2] __version__='$Revision: 1.18 $'[11:-2]
import re import re
from types import ListType, TupleType, UnicodeType from types import ListType, TupleType, UnicodeType
......
...@@ -19,7 +19,7 @@ flag-interface and some support functions for implementing this functionality. ...@@ -19,7 +19,7 @@ flag-interface and some support functions for implementing this functionality.
For an implementation example, see the File class in OFS/Image.py. For an implementation example, see the File class in OFS/Image.py.
""" """
__version__='$Revision: 1.6 $'[11:-2] __version__='$Revision: 1.7 $'[11:-2]
import re, sys import re, sys
import Interface import Interface
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
############################################################################## ##############################################################################
__version__='$Revision: 1.78 $'[11:-2] __version__='$Revision: 1.79 $'[11:-2]
import re, sys, os, urllib, time, random, cgi, codecs import re, sys, os, urllib, time, random, cgi, codecs
from BaseRequest import BaseRequest from BaseRequest import BaseRequest
...@@ -1502,4 +1502,3 @@ RECORDS=8 ...@@ -1502,4 +1502,3 @@ RECORDS=8
REC=RECORD|RECORDS REC=RECORD|RECORDS
EMPTY=16 EMPTY=16
CONVERTED=32 CONVERTED=32
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
############################################################################## ##############################################################################
'''CGI Response Output formatter '''CGI Response Output formatter
$Id: HTTPResponse.py,v 1.67 2002/08/14 16:45:53 rdmurray Exp $''' $Id: HTTPResponse.py,v 1.68 2002/08/14 22:09:40 mj Exp $'''
__version__ = '$Revision: 1.67 $'[11:-2] __version__ = '$Revision: 1.68 $'[11:-2]
import types, os, sys, re import types, os, sys, re
import zlib, struct import zlib, struct
...@@ -838,5 +838,3 @@ class HTTPResponse(BaseResponse): ...@@ -838,5 +838,3 @@ class HTTPResponse(BaseResponse):
self.stdout.flush() self.stdout.flush()
self.stdout.write(data) self.stdout.write(data)
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
############################################################################## ##############################################################################
__doc__="""Python Object Publisher -- Publish Python objects on web servers __doc__="""Python Object Publisher -- Publish Python objects on web servers
$Id: Publish.py,v 1.156 2002/04/15 20:58:28 Brian Exp $""" $Id: Publish.py,v 1.157 2002/08/14 22:09:40 mj Exp $"""
__version__='$Revision: 1.156 $'[11:-2] __version__='$Revision: 1.157 $'[11:-2]
import sys, os import sys, os
from Response import Response from Response import Response
...@@ -351,6 +351,3 @@ if os.environ.get('PROFILE_PUBLISHER', None): ...@@ -351,6 +351,3 @@ if os.environ.get('PROFILE_PUBLISHER', None):
except: pass except: pass
raise error[0], error[1], error[2] raise error[0], error[1], error[2]
return result return result
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
############################################################################## ##############################################################################
__version__='$Revision: 1.1 $'[11:-2] __version__='$Revision: 1.2 $'[11:-2]
from cgi import escape from cgi import escape
...@@ -141,4 +141,3 @@ for f in simpleWrappedMethods: ...@@ -141,4 +141,3 @@ for f in simpleWrappedMethods:
for f in oneArgWrappedMethods: for f in oneArgWrappedMethods:
setattr(TaintedString, f, createOneArgWrapper(f)) setattr(TaintedString, f, createOneArgWrapper(f))
...@@ -90,9 +90,9 @@ Examples ...@@ -90,9 +90,9 @@ Examples
s s
$Id: Test.py,v 1.39 2002/01/02 15:56:04 andreasjung Exp $ $Id: Test.py,v 1.40 2002/08/14 22:09:40 mj Exp $
''' '''
__version__='$Revision: 1.39 $'[11:-2] __version__='$Revision: 1.40 $'[11:-2]
import sys, traceback, profile, os, getopt import sys, traceback, profile, os, getopt
from time import clock from time import clock
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
__version__='$Revision: 1.11 $'[11:-2] __version__='$Revision: 1.12 $'[11:-2]
# This allows ZPublisher to work with embedded interpreters # This allows ZPublisher to work with embedded interpreters
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
__version__='$Revision: 1.3 $'[11:-2] __version__='$Revision: 1.4 $'[11:-2]
# Waaaa, I wish I didn't have to work this hard. # Waaaa, I wish I didn't have to work this hard.
try: from thread import allocate_lock try: from thread import allocate_lock
......
...@@ -142,4 +142,3 @@ if __name__=='__main__': ...@@ -142,4 +142,3 @@ if __name__=='__main__':
globals()[sys.argv[1]]() globals()[sys.argv[1]]()
else: else:
main() main()
...@@ -164,4 +164,3 @@ if __name__=='__main__': ...@@ -164,4 +164,3 @@ if __name__=='__main__':
globals()[sys.argv[1]]() globals()[sys.argv[1]]()
else: else:
main() main()
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
############################################################################## ##############################################################################
__doc__='''Batch class, for iterating over a sequence in batches __doc__='''Batch class, for iterating over a sequence in batches
$Id: Batch.py,v 1.9 2002/03/15 21:47:38 evan Exp $''' $Id: Batch.py,v 1.10 2002/08/14 22:10:12 mj Exp $'''
__version__='$Revision: 1.9 $'[11:-2] __version__='$Revision: 1.10 $'[11:-2]
from ExtensionClass import Base from ExtensionClass import Base
......
...@@ -18,8 +18,8 @@ The Iterator() function accepts either a sequence or a Python ...@@ -18,8 +18,8 @@ The Iterator() function accepts either a sequence or a Python
iterator. The next() method fetches the next item, and returns iterator. The next() method fetches the next item, and returns
true if it succeeds. true if it succeeds.
$Id: Iterator.py,v 1.6 2002/04/19 14:16:08 andreasjung Exp $''' $Id: Iterator.py,v 1.7 2002/08/14 22:10:12 mj Exp $'''
__version__='$Revision: 1.6 $'[11:-2] __version__='$Revision: 1.7 $'[11:-2]
class Iterator: class Iterator:
'''Simple Iterator class''' '''Simple Iterator class'''
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
############################################################################## ##############################################################################
__doc__='''Simple Tree classes __doc__='''Simple Tree classes
$Id: SimpleTree.py,v 1.2 2001/11/28 15:51:22 matt Exp $''' $Id: SimpleTree.py,v 1.3 2002/08/14 22:10:12 mj Exp $'''
__version__='$Revision: 1.2 $'[11:-2] __version__='$Revision: 1.3 $'[11:-2]
from Tree import TreeMaker, TreeNode, b2a from Tree import TreeMaker, TreeNode, b2a
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
############################################################################## ##############################################################################
__doc__='''Tree manipulation classes __doc__='''Tree manipulation classes
$Id: Tree.py,v 1.5 2002/04/19 14:16:08 andreasjung Exp $''' $Id: Tree.py,v 1.6 2002/08/14 22:10:12 mj Exp $'''
__version__='$Revision: 1.5 $'[11:-2] __version__='$Revision: 1.6 $'[11:-2]
from Acquisition import Explicit from Acquisition import Explicit
from ComputedAttribute import ComputedAttribute from ComputedAttribute import ComputedAttribute
...@@ -236,4 +236,3 @@ def decodeExpansion(s, nth=None): ...@@ -236,4 +236,3 @@ def decodeExpansion(s, nth=None):
if nth_pair is not None: if nth_pair is not None:
return map, nth_pair return map, nth_pair
return map return map
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
############################################################################## ##############################################################################
__doc__='''Zope-specific versions of ZTUTils classes __doc__='''Zope-specific versions of ZTUTils classes
$Id: Zope.py,v 1.9 2002/04/19 14:16:08 andreasjung Exp $''' $Id: Zope.py,v 1.10 2002/08/14 22:10:12 mj Exp $'''
__version__='$Revision: 1.9 $'[11:-2] __version__='$Revision: 1.10 $'[11:-2]
import sys, cgi, urllib, cgi import sys, cgi, urllib, cgi
from Tree import encodeExpansion, decodeExpansion, TreeMaker from Tree import encodeExpansion, decodeExpansion, TreeMaker
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
############################################################################## ##############################################################################
__doc__='''Package of template utility classes and functions. __doc__='''Package of template utility classes and functions.
$Id: __init__.py,v 1.5 2001/11/28 15:51:22 matt Exp $''' $Id: __init__.py,v 1.6 2002/08/14 22:10:12 mj Exp $'''
__version__='$Revision: 1.5 $'[11:-2] __version__='$Revision: 1.6 $'[11:-2]
from Batch import Batch from Batch import Batch
from Iterator import Iterator from Iterator import Iterator
...@@ -28,4 +28,3 @@ if sys.modules.has_key('Zope'): ...@@ -28,4 +28,3 @@ if sys.modules.has_key('Zope'):
from Zope import Batch, TreeMaker, SimpleTreeMaker, LazyFilter from Zope import Batch, TreeMaker, SimpleTreeMaker, LazyFilter
from Zope import url_query, make_query, make_hidden_input from Zope import url_query, make_query, make_hidden_input
...@@ -136,8 +136,3 @@ class symcomp(compile): ...@@ -136,8 +136,3 @@ class symcomp(compile):
self._r=r=apply(regex.symcomp,args) self._r=r=apply(regex.symcomp,args)
self._init(r) self._init(r)
self.groupindex=r.groupindex self.groupindex=r.groupindex
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"""WebDAV support - collection objects.""" """WebDAV support - collection objects."""
__version__='$Revision: 1.23 $'[11:-2] __version__='$Revision: 1.24 $'[11:-2]
import sys, os, Globals, davcmds, Lockable,re import sys, os, Globals, davcmds, Lockable,re
from common import urlfix, rfc1123_date from common import urlfix, rfc1123_date
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
############################################################################## ##############################################################################
__version__ = "$Revision: 1.7 $"[11:-2] __version__ = "$Revision: 1.8 $"[11:-2]
import time, Interface, re import time, Interface, re
...@@ -134,5 +134,3 @@ class EtagSupport: ...@@ -134,5 +134,3 @@ class EtagSupport:
raise "Precondition Failed" raise "Precondition Failed"
elif self.http__etag() not in nonelist: elif self.http__etag() not in nonelist:
return 1 return 1
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
############################################################################## ##############################################################################
__version__ = "$Revision: 1.6 $"[11:-2] __version__ = "$Revision: 1.7 $"[11:-2]
from Globals import Persistent from Globals import Persistent
from WriteLockInterface import LockItemInterface from WriteLockInterface import LockItemInterface
...@@ -175,4 +175,3 @@ class LockItem(Persistent): ...@@ -175,4 +175,3 @@ class LockItem(Persistent):
</d:lockdiscovery> </d:lockdiscovery>
</d:prop>""" % self.asLockDiscoveryProperty(ns="d") </d:prop>""" % self.asLockDiscoveryProperty(ns="d")
return s return s
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
############################################################################## ##############################################################################
__version__ = "$Revision: 1.7 $"[11:-2] __version__ = "$Revision: 1.8 $"[11:-2]
from WriteLockInterface import WriteLockInterface, LockItemInterface from WriteLockInterface import WriteLockInterface, LockItemInterface
from EtagSupport import EtagSupport from EtagSupport import EtagSupport
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"""WebDAV support - null resource objects.""" """WebDAV support - null resource objects."""
__version__='$Revision: 1.37 $'[11:-2] __version__='$Revision: 1.38 $'[11:-2]
import sys, os, mimetypes, Globals, davcmds import sys, os, mimetypes, Globals, davcmds
import Acquisition, OFS.content_types import Acquisition, OFS.content_types
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"""WebDAV support - resource objects.""" """WebDAV support - resource objects."""
__version__='$Revision: 1.51 $'[11:-2] __version__='$Revision: 1.52 $'[11:-2]
import sys, os, mimetypes, davcmds, ExtensionClass, Lockable import sys, os, mimetypes, davcmds, ExtensionClass, Lockable
from common import absattr, aq_base, urlfix, rfc1123_date, tokenFinder, urlbase from common import absattr, aq_base, urlfix, rfc1123_date, tokenFinder, urlbase
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
############################################################################## ##############################################################################
__version__='$Revision: 1.5 $'[11:-2] __version__='$Revision: 1.6 $'[11:-2]
import Interface import Interface
...@@ -211,4 +211,3 @@ class WriteLockInterface(Interface.Base): ...@@ -211,4 +211,3 @@ class WriteLockInterface(Interface.Base):
def wl_clearLocks(): def wl_clearLocks():
""" Deletes ALL DAV locks on the object - should only be called """ Deletes ALL DAV locks on the object - should only be called
by lock management machinery. """ by lock management machinery. """
...@@ -35,4 +35,4 @@ ...@@ -35,4 +35,4 @@
Jensen, "HTTP Extensions for Distributed Authoring - WebDAV." RFC 2518. Jensen, "HTTP Extensions for Distributed Authoring - WebDAV." RFC 2518.
Microsoft, U.C. Irvine, Netscape, Novell. February, 1999.""" Microsoft, U.C. Irvine, Netscape, Novell. February, 1999."""
__version__='$Revision: 1.6 $'[11:-2] __version__='$Revision: 1.7 $'[11:-2]
"""HTTP 1.1 / WebDAV client library.""" """HTTP 1.1 / WebDAV client library."""
__version__='$Revision: 1.19 $'[11:-2] __version__='$Revision: 1.20 $'[11:-2]
import sys, os, time, types,re import sys, os, time, types,re
import socket, httplib, mimetools import socket, httplib, mimetools
...@@ -611,4 +611,3 @@ dav =Resource('http://tarzan.digicool.com/dev/dav/', ...@@ -611,4 +611,3 @@ dav =Resource('http://tarzan.digicool.com/dev/dav/',
username='brian', username='brian',
password='123') password='123')
adav=Resource('http://tarzan.digicool.com/dev/dav/') adav=Resource('http://tarzan.digicool.com/dev/dav/')
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"""Commonly used functions for WebDAV support modules.""" """Commonly used functions for WebDAV support modules."""
__version__='$Revision: 1.16 $'[11:-2] __version__='$Revision: 1.17 $'[11:-2]
import time, urllib, re import time, urllib, re
from App.Common import iso8601_date, rfc850_date, rfc1123_date from App.Common import iso8601_date, rfc850_date, rfc1123_date
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"""WebDAV xml request objects.""" """WebDAV xml request objects."""
__version__='$Revision: 1.19 $'[11:-2] __version__='$Revision: 1.20 $'[11:-2]
import sys, os import sys, os
from common import absattr, aq_base, urlfix, urlbase from common import absattr, aq_base, urlfix, urlbase
...@@ -497,4 +497,3 @@ class DeleteCollection: ...@@ -497,4 +497,3 @@ class DeleteCollection:
# element # element
result.write('</d:multistatus>\n') result.write('</d:multistatus>\n')
return result.getvalue() return result.getvalue()
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
in favor of a standard xml package once some issues are in favor of a standard xml package once some issues are
worked out.""" worked out."""
__version__='$Revision: 1.12 $'[11:-2] __version__='$Revision: 1.13 $'[11:-2]
import sys, os import sys, os
import Shared.DC.xml.xmllib import Shared.DC.xml.xmllib
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
"""An exception formatter that shows traceback supplements and traceback info, """An exception formatter that shows traceback supplements and traceback info,
optionally in HTML. optionally in HTML.
$Id: ExceptionFormatter.py,v 1.3 2002/04/08 12:41:52 htrd Exp $ $Id: ExceptionFormatter.py,v 1.4 2002/08/14 22:12:06 mj Exp $
""" """
import sys import sys
...@@ -250,4 +250,3 @@ def format_exception(t, v, tb, limit=None, as_html=0): ...@@ -250,4 +250,3 @@ def format_exception(t, v, tb, limit=None, as_html=0):
else: else:
fmt = text_formatter fmt = text_formatter
return fmt.formatException(t, v, tb, limit=limit) return fmt.formatException(t, v, tb, limit=limit)
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
############################################################################## ##############################################################################
"""ITracebackSupplement interface definition. """ITracebackSupplement interface definition.
$Id: ITracebackSupplement.py,v 1.2 2002/04/03 20:44:00 shane Exp $ $Id: ITracebackSupplement.py,v 1.3 2002/08/14 22:12:06 mj Exp $
""" """
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
These exceptions are so general purpose that they don't belong in Zope These exceptions are so general purpose that they don't belong in Zope
application-specific packages. application-specific packages.
$Id: __init__.py,v 1.3 2001/11/28 15:51:23 matt Exp $ $Id: __init__.py,v 1.4 2002/08/14 22:12:06 mj Exp $
""" """
from unauthorized import Unauthorized from unauthorized import Unauthorized
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
ExceptionFormatter tests. ExceptionFormatter tests.
Revision information: Revision information:
$Id: testExceptionFormatter.py,v 1.3 2002/06/10 20:18:45 shane Exp $ $Id: testExceptionFormatter.py,v 1.4 2002/08/14 22:12:07 mj Exp $
""" """
from __future__ import nested_scopes from __future__ import nested_scopes
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
############################################################################## ##############################################################################
""" """
$Id: unauthorized.py,v 1.4 2001/11/28 15:51:23 matt Exp $ $Id: unauthorized.py,v 1.5 2002/08/14 22:12:06 mj Exp $
""" """
from types import StringType from types import StringType
...@@ -66,4 +66,3 @@ class Unauthorized(Exception): ...@@ -66,4 +66,3 @@ class Unauthorized(Exception):
c = getattr(v, '__class__', type(v)) c = getattr(v, '__class__', type(v))
c = getattr(c, '__name__', 'object') c = getattr(c, '__name__', 'object')
return "a particular %s" % c return "a particular %s" % c
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
__version__='$Revision: 1.6 $'[11:-2] __version__='$Revision: 1.7 $'[11:-2]
try: try:
# Use the exception formatter in zExceptions # Use the exception formatter in zExceptions
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
__version__='$Revision: 1.11 $'[11:-2] __version__='$Revision: 1.12 $'[11:-2]
import os, sys, time import os, sys, time
......
...@@ -86,7 +86,7 @@ There is a default event logging facility that: ...@@ -86,7 +86,7 @@ There is a default event logging facility that:
can be overridden with the environment variable EVENT_LOG_SEVERITY can be overridden with the environment variable EVENT_LOG_SEVERITY
""" """
__version__='$Revision: 1.7 $'[11:-2] __version__='$Revision: 1.8 $'[11:-2]
from MinimalLogger import log_write, log_time, severity_string, \ from MinimalLogger import log_write, log_time, severity_string, \
_set_log_dest, initialize _set_log_dest, initialize
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment