Get rid of $Revision$ in a few prominant places. Use an $Id$ in the

docstring instead, as the new style suggests.
parent 54de3ac5
...@@ -10,11 +10,10 @@ ...@@ -10,11 +10,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
'''Add security system support to Document Templates """Add security system support to Document Templates
$Id$'''
__version__='$Revision: 1.13 $'[11:-2]
$Id$
"""
from DocumentTemplate import DT_Util from DocumentTemplate import DT_Util
import SecurityManagement, string, math, whrandom, random import SecurityManagement, string, math, whrandom, random
import DocumentTemplate.sequence import DocumentTemplate.sequence
......
...@@ -10,12 +10,10 @@ ...@@ -10,12 +10,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
__doc__='''short description """Permissions
$Id$'''
__version__='$Revision: 1.10 $'[11:-2]
$Id$
"""
import string, Products, Globals import string, Products, Globals
ListType=type([]) ListType=type([])
......
...@@ -10,11 +10,10 @@ ...@@ -10,11 +10,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
"""Access control support""" """Access control support
__version__='$Revision: 1.61 $'[11:-2]
$Id$
"""
from Globals import DTMLFile, MessageDialog, Dictionary from Globals import DTMLFile, MessageDialog, Dictionary
from Acquisition import Implicit, Acquired, aq_get from Acquisition import Implicit, Acquired, aq_get
import Globals, ExtensionClass, PermissionMapping, Products import Globals, ExtensionClass, PermissionMapping, Products
......
...@@ -10,12 +10,10 @@ ...@@ -10,12 +10,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
__doc__='''short description """Security management
$Id$'''
__version__='$Revision: 1.10 $'[11:-2]
$Id$
"""
def getSecurityManager(): def getSecurityManager():
"""Get a security manager, for the current thread. """Get a security manager, for the current thread.
""" """
......
...@@ -18,8 +18,6 @@ initialization. ...@@ -18,8 +18,6 @@ initialization.
$Id$ $Id$
""" """
__version__='$Revision: 1.5 $'[11:-2]
nobody = None nobody = None
system = None system = None
emergency_user = None emergency_user = None
......
...@@ -10,11 +10,10 @@ ...@@ -10,11 +10,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
__doc__='''Application support """Application support
$Id$'''
__version__='$Revision: 1.202 $'[11:-2]
$Id$
"""
import Globals,Folder,os,sys,App.Product, App.ProductRegistry, misc_ import Globals,Folder,os,sys,App.Product, App.ProductRegistry, misc_
import time, traceback, os, Products import time, traceback, os, Products
from DateTime import DateTime from DateTime import DateTime
......
...@@ -10,12 +10,10 @@ ...@@ -10,12 +10,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
__doc__="""Cacheable object and cache management base classes. """Cacheable object and cache management base classes.
$Id$"""
__version__='$Revision: 1.12 $'[11:-2]
$Id$
"""
import time, sys import time, sys
import Globals import Globals
from Globals import DTMLFile from Globals import DTMLFile
......
...@@ -10,9 +10,10 @@ ...@@ -10,9 +10,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
__doc__="""Copy interface""" """Copy interface
__version__='$Revision: 1.91 $'[11:-2]
$Id$
"""
import sys, Globals, Moniker, tempfile, ExtensionClass import sys, Globals, Moniker, tempfile, ExtensionClass
from marshal import loads, dumps from marshal import loads, dumps
from urllib import quote, unquote from urllib import quote, unquote
......
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
"""DTML Document objects.""" """DTML Document objects.
__version__='$Revision: 1.51 $'[11:-2]
$Id$
"""
from ZPublisher.Converters import type_converters from ZPublisher.Converters import type_converters
from Globals import HTML, DTMLFile, MessageDialog from Globals import HTML, DTMLFile, MessageDialog
from OFS.content_types import guess_content_type from OFS.content_types import guess_content_type
......
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
"""DTML Method objects.""" """DTML Method objects.
__version__='$Revision: 1.85 $'[11:-2]
$Id$
"""
import History import History
from Globals import HTML, DTMLFile, MessageDialog from Globals import HTML, DTMLFile, MessageDialog
from SimpleItem import Item_w__name__, pretty_tb from SimpleItem import Item_w__name__, pretty_tb
......
...@@ -10,15 +10,13 @@ ...@@ -10,15 +10,13 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
__doc__="""Implement Observable interface (see """Implement Observable interface (see
http://www.zope.org/Members/michel/Projects/Interfaces/ObserverAndNotification) http://www.zope.org/Members/michel/Projects/Interfaces/ObserverAndNotification)
This class is intended to be used as a mixin (note that it doesn't derive This class is intended to be used as a mixin (note that it doesn't
from any Zope persistence classes, for instance). derive from any Zope persistence classes, for instance).
$Id$"""
__version__='$Revision: 1.7 $'[11:-2]
$Id$
"""
from types import StringType from types import StringType
class DefaultObservable: class DefaultObservable:
......
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
"""Deprecated - use DTMLMethod""" """Deprecated - use DTMLMethod
__version__='$Revision: 1.76 $'[11:-2]
$Id$
"""
import DTMLMethod import DTMLMethod
Document=DTMLMethod.DTMLMethod Document=DTMLMethod.DTMLMethod
......
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
__doc__="""Find support""" """Find support
__version__='$Revision: 1.33 $'[11:-2]
$Id$
"""
import sys, os, time, Globals, ExtensionClass import sys, os, time, Globals, ExtensionClass
from DocumentTemplate.DT_Util import Eval from DocumentTemplate.DT_Util import Eval
from AccessControl.Permission import name_trans from AccessControl.Permission import name_trans
......
...@@ -10,15 +10,12 @@ ...@@ -10,15 +10,12 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
"""Folder object """Folder object
Folders are the basic container objects and are analogous to directories. Folders are the basic container objects and are analogous to directories.
$Id$""" $Id$
"""
__version__='$Revision: 1.104 $'[11:-2]
import Globals, SimpleItem, ObjectManager, PropertyManager import Globals, SimpleItem, ObjectManager, PropertyManager
import AccessControl.Role, webdav.Collection, FindSupport import AccessControl.Role, webdav.Collection, FindSupport
from webdav.WriteLockInterface import WriteLockInterface from webdav.WriteLockInterface import WriteLockInterface
......
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
"""Object Histories""" """Object Histories
__version__='$Revision: 1.18 $'[11:-2]
$Id$
"""
import Globals, ExtensionClass, difflib import Globals, ExtensionClass, difflib
from DateTime import DateTime from DateTime import DateTime
from Acquisition import Implicit, aq_base from Acquisition import Implicit, aq_base
......
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
"""Image object""" """Image object
__version__='$Revision: 1.152 $'[11:-2]
$Id$
"""
import Globals, struct import Globals, struct
from OFS.content_types import guess_content_type from OFS.content_types import guess_content_type
from Globals import DTMLFile from Globals import DTMLFile
......
...@@ -17,10 +17,8 @@ ...@@ -17,10 +17,8 @@
a real object that retains its correct version context a real object that retains its correct version context
and aquisition relationships via a simple interface. and aquisition relationships via a simple interface.
$Id$
""" """
__version__='$Revision: 1.16 $'[11:-2]
import Globals import Globals
class Moniker: class Moniker:
......
...@@ -10,12 +10,10 @@ ...@@ -10,12 +10,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
__doc__="""Object Manager """Object Manager
$Id$"""
__version__='$Revision: 1.175 $'[11:-2]
$Id$
"""
import App.Management, Acquisition, Globals, CopySupport, Products import App.Management, Acquisition, Globals, CopySupport, Products
import os, App.FactoryDispatcher, re, Products import os, App.FactoryDispatcher, re, Products
from OFS.Traversable import Traversable from OFS.Traversable import Traversable
......
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
"""Property management
"""Property management""" $Id$
__version__='$Revision: 1.56 $'[11:-2] """
import ExtensionClass, Globals import ExtensionClass, Globals
import ZDOM import ZDOM
from PropertySheets import DefaultPropertySheets, vps from PropertySheets import DefaultPropertySheets, vps
......
...@@ -10,11 +10,10 @@ ...@@ -10,11 +10,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
"""Property sheets
"""Property sheets""" $Id$
"""
__version__='$Revision: 1.95 $'[11:-2]
import time, App.Management, Globals, sys import time, App.Management, Globals, sys
from webdav.WriteLockInterface import WriteLockInterface from webdav.WriteLockInterface import WriteLockInterface
from ZPublisher.Converters import type_converters from ZPublisher.Converters import type_converters
......
...@@ -10,16 +10,15 @@ ...@@ -10,16 +10,15 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
'''This module implements a simple item mix-in for objects that have a """This module implements a simple item mix-in for objects that have a
very simple (e.g. one-screen) management interface, like documents, very simple (e.g. one-screen) management interface, like documents,
Aqueduct database adapters, etc. Aqueduct database adapters, etc.
This module can also be used as a simple template for implementing new This module can also be used as a simple template for implementing new
item types. item types.
$Id$''' $Id$
__version__='$Revision: 1.110 $'[11:-2] """
import re, sys, Globals, App.Management, Acquisition, App.Undo import re, sys, Globals, App.Management, Acquisition, App.Undo
import AccessControl.Role, AccessControl.Owned, App.Common import AccessControl.Role, AccessControl.Owned, App.Common
from webdav.Resource import Resource from webdav.Resource import Resource
......
...@@ -10,12 +10,10 @@ ...@@ -10,12 +10,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
'''This module implements a mix-in for traversable objects. """This module implements a mix-in for traversable objects.
$Id$'''
__version__='$Revision: 1.24 $'[11:-2]
$Id$
"""
from Acquisition import Acquired, aq_inner, aq_parent, aq_base from Acquisition import Acquired, aq_inner, aq_parent, aq_base
from AccessControl import getSecurityManager from AccessControl import getSecurityManager
from AccessControl import Unauthorized from AccessControl import Unauthorized
......
...@@ -10,9 +10,10 @@ ...@@ -10,9 +10,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
"""A utility module for content-type handling.""" """A utility module for content-type handling.
__version__='$Revision: 1.20 $'[11:-2]
$Id$
"""
import mimetypes import mimetypes
import os.path import os.path
import re import re
......
...@@ -10,11 +10,10 @@ ...@@ -10,11 +10,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
"""Restricted unpickler""" """Restricted unpickler
__version__='$Revision: 1.7 $'[11:-2]
$Id$
"""
import pickle import pickle
reg={} reg={}
......
...@@ -10,11 +10,10 @@ ...@@ -10,11 +10,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
__doc__='''Batch class, for iterating over a sequence in batches """Batch class, for iterating over a sequence in batches
$Id$'''
__version__='$Revision: 1.10 $'[11:-2]
$Id$
"""
from ExtensionClass import Base from ExtensionClass import Base
class LazyPrevBatch(Base): class LazyPrevBatch(Base):
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
__doc__='''Iterator class """Iterator class
Unlike the builtin iterators of Python 2.2+, these classes are Unlike the builtin iterators of Python 2.2+, these classes are
designed to maintain information about the state of an iteration. designed to maintain information about the state of an iteration.
...@@ -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$''' $Id$
__version__='$Revision: 1.11 $'[11:-2] """
class Iterator: class Iterator:
'''Simple Iterator class''' '''Simple Iterator class'''
......
...@@ -10,11 +10,10 @@ ...@@ -10,11 +10,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
__doc__='''Simple Tree classes """Simple Tree classes
$Id$'''
__version__='$Revision: 1.5 $'[11:-2]
$Id$
"""
from Tree import TreeMaker, TreeNode, b2a from Tree import TreeMaker, TreeNode, b2a
from cgi import escape from cgi import escape
......
...@@ -10,11 +10,10 @@ ...@@ -10,11 +10,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
__doc__='''Tree manipulation classes """Tree manipulation classes
$Id$'''
__version__='$Revision: 1.19 $'[11:-2]
$Id$
"""
from Acquisition import Explicit from Acquisition import Explicit
from ComputedAttribute import ComputedAttribute from ComputedAttribute import ComputedAttribute
from types import ListType, TupleType from types import ListType, TupleType
......
...@@ -10,11 +10,10 @@ ...@@ -10,11 +10,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
__doc__='''Zope-specific versions of ZTUTils classes """Zope-specific versions of ZTUTils classes
$Id$'''
__version__='$Revision: 1.15 $'[11:-2]
$Id$
"""
import sys, cgi, urllib, cgi import sys, cgi, urllib, cgi
from Tree import encodeExpansion, decodeExpansion, TreeMaker from Tree import encodeExpansion, decodeExpansion, TreeMaker
from SimpleTree import SimpleTreeMaker from SimpleTree import SimpleTreeMaker
......
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
__doc__='''Package of template utility classes and functions. """Package of template utility classes and functions.
$Id$''' $Id$
__version__='$Revision: 1.6 $'[11:-2] """
from Batch import Batch from Batch import Batch
from Iterator import Iterator from Iterator import Iterator
......
#!/usr/bin/env python2.3 #!/usr/bin/env python2.3
############################################################################## ##############################################################################
# #
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved. # Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
...@@ -12,11 +11,10 @@ ...@@ -12,11 +11,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
"""Script to check consistency of a ZCatalog
""" script to consistency of a ZCatalog """ $Id$
"""
__version__='$Revision: 1.6 $'[11:-2]
import Zope import Zope
import os,sys,re,getopt import os,sys,re,getopt
from types import IntType from types import IntType
......
#!/usr/bin/env python2.3 #!/usr/bin/env python2.3
############################################################################## ##############################################################################
# #
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved. # Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
...@@ -12,11 +11,10 @@ ...@@ -12,11 +11,10 @@
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE
# #
############################################################################## ##############################################################################
"""Request log profiler script
""" Request log profiler script """ $Id$
"""
__version__='$Revision: 1.19 $'[11:-2]
import sys, time, getopt, math, cPickle import sys, time, getopt, math, cPickle
from types import StringType from types import StringType
try: import gzip try: import gzip
......
...@@ -39,9 +39,6 @@ for all necessary information. The available options are: ...@@ -39,9 +39,6 @@ for all necessary information. The available options are:
Filename is required and should be the name of the file to store the Filename is required and should be the name of the file to store the
information in (usually "inituser" or "access"). information in (usually "inituser" or "access").
""" """
__version__='$Revision: 1.5 $ '[11:-2]
import sys, sha, binascii, random, getopt, getpass, os import sys, sha, binascii, random, getopt, getpass, os
try: try:
......
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