[Zope3-checkins] SVN: Zope3/trunk/src/zope/ Made sure that all
module doc strings have an $Id$ tag. While doing this
Stephan Richter
srichter at cosmos.phy.tufts.edu
Fri Jul 16 03:54:40 EDT 2004
Log message for revision 26570:
Made sure that all module doc strings have an $Id$ tag. While doing this
I discovered several packages that did not have a doc string at all.
Changed:
U Zope3/trunk/src/zope/app/__init__.py
U Zope3/trunk/src/zope/app/appsetup/__init__.py
U Zope3/trunk/src/zope/app/broken/__init__.py
U Zope3/trunk/src/zope/app/component/tests/module.py
U Zope3/trunk/src/zope/app/component/tests/test_interface.py
U Zope3/trunk/src/zope/app/component/tests/test_requirepermissions.py
U Zope3/trunk/src/zope/app/debug/__init__.py
U Zope3/trunk/src/zope/app/debugskin/__init__.py
U Zope3/trunk/src/zope/app/demo/jobboard/browser.py
U Zope3/trunk/src/zope/app/demo/jobboard/interfaces.py
U Zope3/trunk/src/zope/app/demo/jobboard/job.py
U Zope3/trunk/src/zope/app/demo/jobboard/tests.py
U Zope3/trunk/src/zope/app/generations/browser/__init__.py
U Zope3/trunk/src/zope/app/generations/browser/ftests.py
U Zope3/trunk/src/zope/app/locales/pygettext.py
U Zope3/trunk/src/zope/app/observable/observers.py
U Zope3/trunk/src/zope/app/pagetemplate/__init__.py
U Zope3/trunk/src/zope/app/pluggableauth/browser/__init__.py
U Zope3/trunk/src/zope/app/pluggableauth/tests/__init__.py
U Zope3/trunk/src/zope/app/rotterdam/__init__.py
U Zope3/trunk/src/zope/app/security/tests/module.py
U Zope3/trunk/src/zope/app/security/tests/modulehookup.py
U Zope3/trunk/src/zope/app/security/tests/test_loginpassword.py
U Zope3/trunk/src/zope/app/sqlexpr/tests/__init__.py
U Zope3/trunk/src/zope/app/tests/test.py
U Zope3/trunk/src/zope/app/tests/test_datetimeparse.py
U Zope3/trunk/src/zope/app/tests/test_standard_dates.py
U Zope3/trunk/src/zope/app/utility/browser/tests/__init__.py
U Zope3/trunk/src/zope/cachedescriptors/__init__.py
U Zope3/trunk/src/zope/component/tests/test_api.py
U Zope3/trunk/src/zope/configuration/exceptions.py
U Zope3/trunk/src/zope/index/field/tests/test_fieldindex.py
U Zope3/trunk/src/zope/index/interfaces/lexicon.py
U Zope3/trunk/src/zope/index/interfaces/nbest.py
U Zope3/trunk/src/zope/index/interfaces/pipelineelement.py
U Zope3/trunk/src/zope/index/interfaces/pipelineelementfactory.py
U Zope3/trunk/src/zope/index/interfaces/queryparser.py
U Zope3/trunk/src/zope/index/interfaces/queryparsetree.py
U Zope3/trunk/src/zope/index/interfaces/splitter.py
U Zope3/trunk/src/zope/index/keyword/index.py
U Zope3/trunk/src/zope/index/keyword/tests/test_keywordindex.py
U Zope3/trunk/src/zope/index/text/cosineindex.py
U Zope3/trunk/src/zope/index/text/lexicon.py
U Zope3/trunk/src/zope/index/text/nbest.py
U Zope3/trunk/src/zope/index/text/okapiindex.py
U Zope3/trunk/src/zope/index/text/setops.py
U Zope3/trunk/src/zope/index/text/stopdict.py
U Zope3/trunk/src/zope/index/text/tests/hs-tool.py
U Zope3/trunk/src/zope/index/text/tests/indexhtml.py
U Zope3/trunk/src/zope/index/text/tests/queryhtml.py
U Zope3/trunk/src/zope/index/text/tests/test_index.py
U Zope3/trunk/src/zope/index/text/tests/test_nbest.py
U Zope3/trunk/src/zope/index/text/tests/test_setops.py
U Zope3/trunk/src/zope/index/text/tests/wordstats.py
U Zope3/trunk/src/zope/index/text/widcode.py
U Zope3/trunk/src/zope/index/topic/index.py
U Zope3/trunk/src/zope/interface/tests/dummy.py
U Zope3/trunk/src/zope/interface/tests/ifoo.py
U Zope3/trunk/src/zope/interface/tests/m1.py
U Zope3/trunk/src/zope/interface/tests/m2.py
U Zope3/trunk/src/zope/interface/tests/test_interface.py
U Zope3/trunk/src/zope/interface/verify.py
U Zope3/trunk/src/zope/modulealias/metadirectives.py
U Zope3/trunk/src/zope/modulealias/tests/test_modulealias.py
U Zope3/trunk/src/zope/pagetemplate/__init__.py
U Zope3/trunk/src/zope/pagetemplate/pagetemplatefile.py
U Zope3/trunk/src/zope/pagetemplate/tests/test_basictemplate.py
U Zope3/trunk/src/zope/pagetemplate/tests/test_ptfile.py
U Zope3/trunk/src/zope/publisher/tests/test_browserlanguages.py
U Zope3/trunk/src/zope/schema/tests/test_tabcomplete.py
U Zope3/trunk/src/zope/security/__init__.py
U Zope3/trunk/src/zope/security/setup.py
U Zope3/trunk/src/zope/security/tests/test_interpreter.py
U Zope3/trunk/src/zope/server/ftp/tests/__init__.py
U Zope3/trunk/src/zope/server/maxsockets.py
U Zope3/trunk/src/zope/server/trigger.py
U Zope3/trunk/src/zope/server/utilities.py
U Zope3/trunk/src/zope/tal/driver.py
U Zope3/trunk/src/zope/tal/interfaces.py
U Zope3/trunk/src/zope/tal/ndiff.py
U Zope3/trunk/src/zope/tal/setpath.py
U Zope3/trunk/src/zope/tal/talgettext.py
U Zope3/trunk/src/zope/tal/tests/markbench.py
U Zope3/trunk/src/zope/tal/tests/test_sourcepos.py
U Zope3/trunk/src/zope/tal/tests/test_talgettext.py
U Zope3/trunk/src/zope/tal/tests/utils.py
U Zope3/trunk/src/zope/tales/__init__.py
U Zope3/trunk/src/zope/testing/loghandler.py
U Zope3/trunk/src/zope/xmlpickle/__init__.py
U Zope3/trunk/src/zope/xmlpickle/ppml.py
-=-
Modified: Zope3/trunk/src/zope/app/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/__init__.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/__init__.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -12,4 +12,6 @@
#
##############################################################################
"""Zope application package.
+
+$Id$
"""
Modified: Zope3/trunk/src/zope/app/appsetup/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/appsetup/__init__.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/appsetup/__init__.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -1,3 +1,20 @@
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (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.
+#
+##############################################################################
+"""Zope Application Server setup package
+
+$Id$
+"""
from zope.app.appsetup.appsetup import IDatabaseOpenedEvent, DatabaseOpened
from zope.app.appsetup.appsetup import IProcessStartingEvent, ProcessStarting
from zope.app.appsetup.appsetup import config, database
Modified: Zope3/trunk/src/zope/app/broken/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/broken/__init__.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/broken/__init__.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -1 +1 @@
-#
+# Make this directory a package.
Modified: Zope3/trunk/src/zope/app/component/tests/module.py
===================================================================
--- Zope3/trunk/src/zope/app/component/tests/module.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/component/tests/module.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -16,8 +16,10 @@
This is necessary because the test framework interferes with seeing changes in
the running modules via the module namespace. This enables having some
subject classes, instances, permissions, etc, that don't live in the test
-modules, themselves."""
+modules, themselves.
+$Id$
+"""
from zope.interface import Interface
from zope.schema import Text
Modified: Zope3/trunk/src/zope/app/component/tests/test_interface.py
===================================================================
--- Zope3/trunk/src/zope/app/component/tests/test_interface.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/component/tests/test_interface.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,6 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""Interface utility tests
+
+$Id$
+"""
import unittest
from zope.testing.doctestunit import DocTestSuite
Modified: Zope3/trunk/src/zope/app/component/tests/test_requirepermissions.py
===================================================================
--- Zope3/trunk/src/zope/app/component/tests/test_requirepermissions.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/component/tests/test_requirepermissions.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,8 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-""" Test handler for 'require' subdirective of 'content' directive """
+"""Test handler for 'require' subdirective of 'content' directive
+$Id$
+"""
from cStringIO import StringIO
import unittest
Modified: Zope3/trunk/src/zope/app/debug/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/debug/__init__.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/debug/__init__.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -1 +1,18 @@
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (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.
+#
+##############################################################################
+"""Zope Application debugger package
+
+$Id$
+"""
from zope.app.debug.debug import Debugger
Modified: Zope3/trunk/src/zope/app/debugskin/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/debugskin/__init__.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/debugskin/__init__.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -1 +1 @@
-##
\ No newline at end of file
+# Make this directory a package.
Modified: Zope3/trunk/src/zope/app/demo/jobboard/browser.py
===================================================================
--- Zope3/trunk/src/zope/app/demo/jobboard/browser.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/demo/jobboard/browser.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -1,3 +1,20 @@
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (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.
+#
+##############################################################################
+"""Jobboard browser views
+
+$Id$
+"""
from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
from zope.app.publisher.browser import BrowserView
from zope.event import notify
Modified: Zope3/trunk/src/zope/app/demo/jobboard/interfaces.py
===================================================================
--- Zope3/trunk/src/zope/app/demo/jobboard/interfaces.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/demo/jobboard/interfaces.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -1,3 +1,20 @@
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (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.
+#
+##############################################################################
+"""Jobboard interfaces
+
+$Id$
+"""
from zope.interface import Interface
from zope.interface import Attribute
@@ -35,13 +52,6 @@
PendingApproval = "pending approval"
Approved = "approved"
-
-##############################################################
-#
-#
-#
-#
-##############################################################
class IJobList(Interface):
Modified: Zope3/trunk/src/zope/app/demo/jobboard/job.py
===================================================================
--- Zope3/trunk/src/zope/app/demo/jobboard/job.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/demo/jobboard/job.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -1,8 +1,20 @@
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (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.
+#
+##############################################################################
+"""Job implementation
+
+$Id$
"""
-Job.py
-"""
-
-
from persistent import Persistent
from interfaces import IJob, JobState, IJobList
from zope.interface import implements
Modified: Zope3/trunk/src/zope/app/demo/jobboard/tests.py
===================================================================
--- Zope3/trunk/src/zope/app/demo/jobboard/tests.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/demo/jobboard/tests.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -1,6 +1,22 @@
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (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.
+#
+##############################################################################
+"""Jobboard Tests
+
+$Id$
+"""
import unittest, doctest
-
def test_suite():
return unittest.TestSuite((
Modified: Zope3/trunk/src/zope/app/generations/browser/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/generations/browser/__init__.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/generations/browser/__init__.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -1 +1 @@
-#
+# Make this directory a package.
Modified: Zope3/trunk/src/zope/app/generations/browser/ftests.py
===================================================================
--- Zope3/trunk/src/zope/app/generations/browser/ftests.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/generations/browser/ftests.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -1,3 +1,20 @@
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (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.
+#
+##############################################################################
+"""Functional tests for Database generations.
+
+$Id$
+"""
import unittest
from zope.app.tests import ztapi
Modified: Zope3/trunk/src/zope/app/locales/pygettext.py
===================================================================
--- Zope3/trunk/src/zope/app/locales/pygettext.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/locales/pygettext.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -135,8 +135,9 @@
conjunction with the -D option above.
If `inputfile' is -, standard input is read.
+
+$Id$
"""
-
import os
import sys
import time
Modified: Zope3/trunk/src/zope/app/observable/observers.py
===================================================================
--- Zope3/trunk/src/zope/app/observable/observers.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/observable/observers.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -104,7 +104,7 @@
>>> subs
['sub11', 'sub12 1', 'sub22', 'sub_1']
-
+$Id$
"""
Modified: Zope3/trunk/src/zope/app/pagetemplate/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/pagetemplate/__init__.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/pagetemplate/__init__.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,6 +11,9 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""Zope-specific Page Templates
+$Id$
+"""
from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
#from zope.app.pagetemplate.simpleviewclass import SimpleViewClass
Modified: Zope3/trunk/src/zope/app/pluggableauth/browser/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/pluggableauth/browser/__init__.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/pluggableauth/browser/__init__.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -1 +1,2 @@
-#
+# Make this directory a package.
+
Modified: Zope3/trunk/src/zope/app/pluggableauth/tests/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/pluggableauth/tests/__init__.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/pluggableauth/tests/__init__.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -1 +1 @@
-""" duh """
+# Make this directory a package.
Modified: Zope3/trunk/src/zope/app/rotterdam/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/rotterdam/__init__.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/rotterdam/__init__.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -1 +1 @@
-##
\ No newline at end of file
+# Make this directory a package.
Modified: Zope3/trunk/src/zope/app/security/tests/module.py
===================================================================
--- Zope3/trunk/src/zope/app/security/tests/module.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/security/tests/module.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -14,4 +14,7 @@
"""This empty module is for containing objects used in the course of tests.
(There is a problem with the way the unit tests interact with the modules
-being tests, so the objects can't be expected to show up in place.)"""
+being tests, so the objects can't be expected to show up in place.)
+
+$Id$
+"""
Modified: Zope3/trunk/src/zope/app/security/tests/modulehookup.py
===================================================================
--- Zope3/trunk/src/zope/app/security/tests/modulehookup.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/security/tests/modulehookup.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -16,8 +16,10 @@
This is necessary because the test framework interferes with seeing changes in
the running modules via the module namespace. This enables having some
subject classes, instances, permissions, etc, that don't live in the test
-modules, themselves."""
+modules, themselves.
+$Id$
+"""
from zope.interface import Interface
from zope.app.security.tests import module as TestModule
Modified: Zope3/trunk/src/zope/app/security/tests/test_loginpassword.py
===================================================================
--- Zope3/trunk/src/zope/app/security/tests/test_loginpassword.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/security/tests/test_loginpassword.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,6 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""Test Login and Password
+
+$Id$
+"""
import unittest
from zope.app.security.loginpassword import LoginPassword
Modified: Zope3/trunk/src/zope/app/sqlexpr/tests/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/sqlexpr/tests/__init__.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/sqlexpr/tests/__init__.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -0,0 +1 @@
+# Make this directory a package.
Modified: Zope3/trunk/src/zope/app/tests/test.py
===================================================================
--- Zope3/trunk/src/zope/app/tests/test.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/tests/test.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -246,8 +246,9 @@
As before, but now opens up a minimized PyUnit GUI window (only showing
the progress bar). Useful for refactoring runs where you continually want
to make sure all tests still pass.
+
+$Id$
"""
-
import gc
import hotshot, hotshot.stats
import logging
Modified: Zope3/trunk/src/zope/app/tests/test_datetimeparse.py
===================================================================
--- Zope3/trunk/src/zope/app/tests/test_datetimeparse.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/tests/test_datetimeparse.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,6 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""Test datetime parser
+
+$Id$
+"""
import unittest
from zope.app.datetimeutils import parse, time, DateTimeError
Modified: Zope3/trunk/src/zope/app/tests/test_standard_dates.py
===================================================================
--- Zope3/trunk/src/zope/app/tests/test_standard_dates.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/tests/test_standard_dates.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,6 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""Tests standard date parsing
+
+$Id$
+"""
import unittest
from zope.app.datetimeutils import time
Modified: Zope3/trunk/src/zope/app/utility/browser/tests/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/utility/browser/tests/__init__.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/app/utility/browser/tests/__init__.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -1 +1 @@
-"""Tests of the utility service views."""
+# Make this directory a package.
Modified: Zope3/trunk/src/zope/cachedescriptors/__init__.py
===================================================================
--- Zope3/trunk/src/zope/cachedescriptors/__init__.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/cachedescriptors/__init__.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -1,3 +1,16 @@
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (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.
+#
+##############################################################################
"""Cached descriptors
Cached descriptors cache their output. They take into account
@@ -23,4 +36,5 @@
**Note**, methods haven't been implemented yet.
+$Id$
"""
Modified: Zope3/trunk/src/zope/component/tests/test_api.py
===================================================================
--- Zope3/trunk/src/zope/component/tests/test_api.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/component/tests/test_api.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,7 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""API tests
+$Id$
+"""
import unittest
from zope import component
Modified: Zope3/trunk/src/zope/configuration/exceptions.py
===================================================================
--- Zope3/trunk/src/zope/configuration/exceptions.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/configuration/exceptions.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -12,6 +12,8 @@
#
##############################################################################
"""Standard configuration errors
+
+$Id$
"""
class ConfigurationError(Exception):
Modified: Zope3/trunk/src/zope/index/field/tests/test_fieldindex.py
===================================================================
--- Zope3/trunk/src/zope/index/field/tests/test_fieldindex.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/field/tests/test_fieldindex.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,7 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""Test field index
+$Id$
+"""
from unittest import TestCase, TestSuite, main, makeSuite
from BTrees.IIBTree import IISet
Modified: Zope3/trunk/src/zope/index/interfaces/lexicon.py
===================================================================
--- Zope3/trunk/src/zope/index/interfaces/lexicon.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/interfaces/lexicon.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,7 +11,10 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
+"""Lexicon interface
+$Id$
+"""
from zope.interface import Interface
class ILexicon(Interface):
Modified: Zope3/trunk/src/zope/index/interfaces/nbest.py
===================================================================
--- Zope3/trunk/src/zope/index/interfaces/nbest.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/interfaces/nbest.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,12 +11,13 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-
"""NBest Interface.
An NBest object remembers the N best-scoring items ever passed to its
.add(item, score) method. If .add() is called M times, the worst-case
number of comparisons performed overall is M * log2(N).
+
+$Id$
"""
Modified: Zope3/trunk/src/zope/index/interfaces/pipelineelement.py
===================================================================
--- Zope3/trunk/src/zope/index/interfaces/pipelineelement.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/interfaces/pipelineelement.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,7 +11,10 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
+"""Pipeline Element Interface
+$Id$
+"""
from zope.interface import Interface
class IPipelineElement(Interface):
Modified: Zope3/trunk/src/zope/index/interfaces/pipelineelementfactory.py
===================================================================
--- Zope3/trunk/src/zope/index/interfaces/pipelineelementfactory.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/interfaces/pipelineelementfactory.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,7 +11,10 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
+"""Pipeline Element Factory interface
+$Id$
+"""
from zope.interface import Interface
class IPipelineElementFactory(Interface):
Modified: Zope3/trunk/src/zope/index/interfaces/queryparser.py
===================================================================
--- Zope3/trunk/src/zope/index/interfaces/queryparser.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/interfaces/queryparser.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,9 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""Query Parser Interface.
-"""Query Parser Interface."""
-
+$Id$
+"""
from zope.interface import Interface
class IQueryParser(Interface):
Modified: Zope3/trunk/src/zope/index/interfaces/queryparsetree.py
===================================================================
--- Zope3/trunk/src/zope/index/interfaces/queryparsetree.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/interfaces/queryparsetree.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,9 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""Query Parser Tree Interface.
-"""Query Parser Tree Interface."""
-
+$Id$
+"""
from zope.interface import Interface
class IQueryParseTree(Interface):
Modified: Zope3/trunk/src/zope/index/interfaces/splitter.py
===================================================================
--- Zope3/trunk/src/zope/index/interfaces/splitter.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/interfaces/splitter.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,7 +11,10 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
+"""Splitter interface
+$Id$
+"""
from zope.interface import Interface
class ISplitter(Interface):
Modified: Zope3/trunk/src/zope/index/keyword/index.py
===================================================================
--- Zope3/trunk/src/zope/index/keyword/index.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/keyword/index.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,9 +11,10 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
+"""Keyword index
-"""Keyword index"""
-
+$Id$
+"""
from persistent import Persistent
from BTrees.IOBTree import IOBTree
Modified: Zope3/trunk/src/zope/index/keyword/tests/test_keywordindex.py
===================================================================
--- Zope3/trunk/src/zope/index/keyword/tests/test_keywordindex.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/keyword/tests/test_keywordindex.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,7 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""Keyword Index
+$Id$
+"""
from unittest import TestCase, TestSuite, main, makeSuite
from BTrees.IIBTree import IISet
Modified: Zope3/trunk/src/zope/index/text/cosineindex.py
===================================================================
--- Zope3/trunk/src/zope/index/text/cosineindex.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/text/cosineindex.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,9 +11,10 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
+"""Full text index with relevance ranking, using a cosine measure.
-"""Full text index with relevance ranking, using a cosine measure."""
-
+$Id$
+"""
import math
from BTrees.IIBTree import IIBucket
Modified: Zope3/trunk/src/zope/index/text/lexicon.py
===================================================================
--- Zope3/trunk/src/zope/index/text/lexicon.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/text/lexicon.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,7 +11,10 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
+"""Lexicon
+$Id$
+"""
import re
from zope.interface import implements
Modified: Zope3/trunk/src/zope/index/text/nbest.py
===================================================================
--- Zope3/trunk/src/zope/index/text/nbest.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/text/nbest.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -16,6 +16,8 @@
An NBest object remembers the N best-scoring items ever passed to its
.add(item, score) method. If .add() is called M times, the worst-case
number of comparisons performed overall is M * log2(N).
+
+$Id$
"""
from bisect import bisect_left as bisect
Modified: Zope3/trunk/src/zope/index/text/okapiindex.py
===================================================================
--- Zope3/trunk/src/zope/index/text/okapiindex.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/text/okapiindex.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,157 +11,8 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
+"""Full text index with relevance ranking, using an Okapi BM25 rank.
-"""Full text index with relevance ranking, using an Okapi BM25 rank."""
-
-# Lots of comments are at the bottom of this file. Read them to
-# understand what's going on.
-
-from BTrees.IIBTree import IIBucket
-
-from zope.index.text.baseindex import BaseIndex
-from zope.index.text.baseindex import inverse_doc_frequency, scaled_int
-
-class OkapiIndex(BaseIndex):
-
- # BM25 free parameters.
- K1 = 1.2
- B = 0.75
- assert K1 >= 0.0
- assert 0.0 <= B <= 1.0
-
- def __init__(self, lexicon):
- BaseIndex.__init__(self, lexicon)
-
- # ._wordinfo for Okapi is
- # wid -> {docid -> frequency}; t -> D -> f(D, t)
-
- # ._docweight for Okapi is
- # docid -> # of words in the doc
- # This is just len(self._docwords[docid]), but _docwords is stored
- # in compressed form, so uncompressing it just to count the list
- # length would be ridiculously expensive.
-
- # sum(self._docweight.values()), the total # of words in all docs
- # This is a long for "better safe than sorry" reasons. It isn't
- # used often enough that speed should matter.
- self._totaldoclen = 0L
-
- def index_doc(self, docid, text):
- count = BaseIndex.index_doc(self, docid, text)
- self._totaldoclen += count
- return count
-
- def _reindex_doc(self, docid, text):
- self._totaldoclen -= self._docweight[docid]
- return BaseIndex._reindex_doc(self, docid, text)
-
- def unindex_doc(self, docid):
- self._totaldoclen -= self._docweight[docid]
- BaseIndex.unindex_doc(self, docid)
-
- # The workhorse. Return a list of (IIBucket, weight) pairs, one pair
- # for each wid t in wids. The IIBucket, times the weight, maps D to
- # TF(D,t) * IDF(t) for every docid D containing t.
- # As currently written, the weights are always 1, and the IIBucket maps
- # D to TF(D,t)*IDF(t) directly, where the product is computed as a float
- # but stored as a scaled_int.
- # NOTE: This may be overridden below, by a function that computes the
- # same thing but with the inner scoring loop in C.
- def _search_wids(self, wids):
- if not wids:
- return []
- N = float(len(self._docweight)) # total # of docs
- meandoclen = self._totaldoclen / N
- K1 = self.K1
- B = self.B
- K1_plus1 = K1 + 1.0
- B_from1 = 1.0 - B
-
- # f(D, t) * (k1 + 1)
- # TF(D, t) = -------------------------------------------
- # f(D, t) + k1 * ((1-b) + b*len(D)/E(len(D)))
-
- L = []
- docid2len = self._docweight
- for t in wids:
- d2f = self._wordinfo[t] # map {docid -> f(docid, t)}
- idf = inverse_doc_frequency(len(d2f), N) # an unscaled float
- result = IIBucket()
- for docid, f in d2f.items():
- lenweight = B_from1 + B * docid2len[docid] / meandoclen
- tf = f * K1_plus1 / (f + K1 * lenweight)
- result[docid] = scaled_int(tf * idf)
- L.append((result, 1))
- return L
-
- # Note about the above: the result is tf * idf. tf is small -- it
- # can't be larger than k1+1 = 2.2. idf is formally unbounded, but
- # is less than 14 for a term that appears in only 1 of a million
- # documents. So the product is probably less than 32, or 5 bits
- # before the radix point. If we did the scaled-int business on
- # both of them, we'd be up to 25 bits. Add 64 of those and we'd
- # be in overflow territory. That's pretty unlikely, so we *could*
- # just store scaled_int(tf) in result[docid], and use scaled_int(idf)
- # as an invariant weight across the whole result. But besides
- # skating near the edge, it's not a speed cure, since the computation
- # of tf would still be done at Python speed, and it's a lot more
- # work than just multiplying by idf.
-
- # The same function as _search_wids above, but with the inner scoring
- # loop written in C (module okascore, function score()).
- # Cautions: okascore hardcodes the values of K, B1, and the scaled_int
- # function.
- def _search_wids_NOTYET(self, wids):
- if not wids:
- return []
- N = float(len(self._docweight)) # total # of docs
- meandoclen = self._totaldoclen / N
- #K1 = self.K1
- #B = self.B
- #K1_plus1 = K1 + 1.0
- #B_from1 = 1.0 - B
-
- # f(D, t) * (k1 + 1)
- # TF(D, t) = -------------------------------------------
- # f(D, t) + k1 * ((1-b) + b*len(D)/E(len(D)))
-
- L = []
- docid2len = self._docweight
- for t in wids:
- d2f = self._wordinfo[t] # map {docid -> f(docid, t)}
- idf = inverse_doc_frequency(len(d2f), N) # an unscaled float
- result = IIBucket()
- score(result, d2f.items(), docid2len, idf, meandoclen)
- L.append((result, 1))
- return L
-
- def query_weight(self, terms):
- # Get the wids.
- wids = []
- for term in terms:
- termwids = self._lexicon.termToWordIds(term)
- wids.extend(termwids)
- # The max score for term t is the maximum value of
- # TF(D, t) * IDF(Q, t)
- # We can compute IDF directly, and as noted in the comments below
- # TF(D, t) is bounded above by 1+K1.
- N = float(len(self._docweight))
- tfmax = 1.0 + self.K1
- sum = 0
- for t in self._remove_oov_wids(wids):
- idf = inverse_doc_frequency(len(self._wordinfo[t]), N)
- sum += scaled_int(idf * tfmax)
- return sum
-
- def _get_frequencies(self, wids):
- d = {}
- dget = d.get
- for wid in wids:
- d[wid] = dget(wid, 0) + 1
- return d, len(wids)
-
-"""
"Okapi" (much like "cosine rule" also) is a large family of scoring gimmicks.
It's based on probability arguments about how words are distributed in
documents, not on an abstract vector space model. A long paper by its
@@ -337,4 +188,150 @@
regardless of k3's value. So, in a trivial sense, we are incorporating
this measure (and optimizing it by not bothering to multiply by 1 <wink>).
+
+$Id$
"""
+from BTrees.IIBTree import IIBucket
+
+from zope.index.text.baseindex import BaseIndex
+from zope.index.text.baseindex import inverse_doc_frequency, scaled_int
+
+class OkapiIndex(BaseIndex):
+
+ # BM25 free parameters.
+ K1 = 1.2
+ B = 0.75
+ assert K1 >= 0.0
+ assert 0.0 <= B <= 1.0
+
+ def __init__(self, lexicon):
+ BaseIndex.__init__(self, lexicon)
+
+ # ._wordinfo for Okapi is
+ # wid -> {docid -> frequency}; t -> D -> f(D, t)
+
+ # ._docweight for Okapi is
+ # docid -> # of words in the doc
+ # This is just len(self._docwords[docid]), but _docwords is stored
+ # in compressed form, so uncompressing it just to count the list
+ # length would be ridiculously expensive.
+
+ # sum(self._docweight.values()), the total # of words in all docs
+ # This is a long for "better safe than sorry" reasons. It isn't
+ # used often enough that speed should matter.
+ self._totaldoclen = 0L
+
+ def index_doc(self, docid, text):
+ count = BaseIndex.index_doc(self, docid, text)
+ self._totaldoclen += count
+ return count
+
+ def _reindex_doc(self, docid, text):
+ self._totaldoclen -= self._docweight[docid]
+ return BaseIndex._reindex_doc(self, docid, text)
+
+ def unindex_doc(self, docid):
+ self._totaldoclen -= self._docweight[docid]
+ BaseIndex.unindex_doc(self, docid)
+
+ # The workhorse. Return a list of (IIBucket, weight) pairs, one pair
+ # for each wid t in wids. The IIBucket, times the weight, maps D to
+ # TF(D,t) * IDF(t) for every docid D containing t.
+ # As currently written, the weights are always 1, and the IIBucket maps
+ # D to TF(D,t)*IDF(t) directly, where the product is computed as a float
+ # but stored as a scaled_int.
+ # NOTE: This may be overridden below, by a function that computes the
+ # same thing but with the inner scoring loop in C.
+ def _search_wids(self, wids):
+ if not wids:
+ return []
+ N = float(len(self._docweight)) # total # of docs
+ meandoclen = self._totaldoclen / N
+ K1 = self.K1
+ B = self.B
+ K1_plus1 = K1 + 1.0
+ B_from1 = 1.0 - B
+
+ # f(D, t) * (k1 + 1)
+ # TF(D, t) = -------------------------------------------
+ # f(D, t) + k1 * ((1-b) + b*len(D)/E(len(D)))
+
+ L = []
+ docid2len = self._docweight
+ for t in wids:
+ d2f = self._wordinfo[t] # map {docid -> f(docid, t)}
+ idf = inverse_doc_frequency(len(d2f), N) # an unscaled float
+ result = IIBucket()
+ for docid, f in d2f.items():
+ lenweight = B_from1 + B * docid2len[docid] / meandoclen
+ tf = f * K1_plus1 / (f + K1 * lenweight)
+ result[docid] = scaled_int(tf * idf)
+ L.append((result, 1))
+ return L
+
+ # Note about the above: the result is tf * idf. tf is small -- it
+ # can't be larger than k1+1 = 2.2. idf is formally unbounded, but
+ # is less than 14 for a term that appears in only 1 of a million
+ # documents. So the product is probably less than 32, or 5 bits
+ # before the radix point. If we did the scaled-int business on
+ # both of them, we'd be up to 25 bits. Add 64 of those and we'd
+ # be in overflow territory. That's pretty unlikely, so we *could*
+ # just store scaled_int(tf) in result[docid], and use scaled_int(idf)
+ # as an invariant weight across the whole result. But besides
+ # skating near the edge, it's not a speed cure, since the computation
+ # of tf would still be done at Python speed, and it's a lot more
+ # work than just multiplying by idf.
+
+ # The same function as _search_wids above, but with the inner scoring
+ # loop written in C (module okascore, function score()).
+ # Cautions: okascore hardcodes the values of K, B1, and the scaled_int
+ # function.
+ def _search_wids_NOTYET(self, wids):
+ if not wids:
+ return []
+ N = float(len(self._docweight)) # total # of docs
+ meandoclen = self._totaldoclen / N
+ #K1 = self.K1
+ #B = self.B
+ #K1_plus1 = K1 + 1.0
+ #B_from1 = 1.0 - B
+
+ # f(D, t) * (k1 + 1)
+ # TF(D, t) = -------------------------------------------
+ # f(D, t) + k1 * ((1-b) + b*len(D)/E(len(D)))
+
+ L = []
+ docid2len = self._docweight
+ for t in wids:
+ d2f = self._wordinfo[t] # map {docid -> f(docid, t)}
+ idf = inverse_doc_frequency(len(d2f), N) # an unscaled float
+ result = IIBucket()
+ score(result, d2f.items(), docid2len, idf, meandoclen)
+ L.append((result, 1))
+ return L
+
+ def query_weight(self, terms):
+ # Get the wids.
+ wids = []
+ for term in terms:
+ termwids = self._lexicon.termToWordIds(term)
+ wids.extend(termwids)
+ # The max score for term t is the maximum value of
+ # TF(D, t) * IDF(Q, t)
+ # We can compute IDF directly, and as noted in the comments below
+ # TF(D, t) is bounded above by 1+K1.
+ N = float(len(self._docweight))
+ tfmax = 1.0 + self.K1
+ sum = 0
+ for t in self._remove_oov_wids(wids):
+ idf = inverse_doc_frequency(len(self._wordinfo[t]), N)
+ sum += scaled_int(idf * tfmax)
+ return sum
+
+ def _get_frequencies(self, wids):
+ d = {}
+ dget = d.get
+ for wid in wids:
+ d[wid] = dget(wid, 0) + 1
+ return d, len(wids)
+
Modified: Zope3/trunk/src/zope/index/text/setops.py
===================================================================
--- Zope3/trunk/src/zope/index/text/setops.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/text/setops.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,9 +11,10 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
+"""SetOps -- Weighted intersections and unions applied to many inputs.
-"""SetOps -- Weighted intersections and unions applied to many inputs."""
-
+$Id$
+"""
from BTrees.IIBTree import \
IIBucket, weightedIntersection, weightedUnion
Modified: Zope3/trunk/src/zope/index/text/stopdict.py
===================================================================
--- Zope3/trunk/src/zope/index/text/stopdict.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/text/stopdict.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,11 +11,12 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-
"""Provide a default list of stop words for the index.
The specific splitter and lexicon are customizable, but the default
ZCTextIndex should do something useful.
+
+$Id$
"""
def get_stopdict():
Modified: Zope3/trunk/src/zope/index/text/tests/hs-tool.py
===================================================================
--- Zope3/trunk/src/zope/index/text/tests/hs-tool.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/text/tests/hs-tool.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -1,5 +1,4 @@
#! /usr/bin/env python
-
##############################################################################
#
# Copyright (c) 2003 Zope Corporation and Contributors.
@@ -13,7 +12,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""HS-Tool
+$Id$
+"""
import cPickle
import os.path
import sys
Modified: Zope3/trunk/src/zope/index/text/tests/indexhtml.py
===================================================================
--- Zope3/trunk/src/zope/index/text/tests/indexhtml.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/text/tests/indexhtml.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -20,6 +20,8 @@
options:
-f data.fs -- the path to the filestorage datafile
+
+$Id$
"""
import os
from time import clock
Modified: Zope3/trunk/src/zope/index/text/tests/queryhtml.py
===================================================================
--- Zope3/trunk/src/zope/index/text/tests/queryhtml.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/text/tests/queryhtml.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,6 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""Query HTML tests
+
+$Id$
+"""
from time import clock
from ZODB.Storage.FileStorage import FileStorage
Modified: Zope3/trunk/src/zope/index/text/tests/test_index.py
===================================================================
--- Zope3/trunk/src/zope/index/text/tests/test_index.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/text/tests/test_index.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,7 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""Text Index Tests
+$Id$
+"""
from unittest import TestCase, TestSuite, main, makeSuite
from zope.index.text.lexicon import Lexicon, Splitter
Modified: Zope3/trunk/src/zope/index/text/tests/test_nbest.py
===================================================================
--- Zope3/trunk/src/zope/index/text/tests/test_nbest.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/text/tests/test_nbest.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,7 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""N-Best index tests
+$Id$
+"""
from unittest import TestCase, main, makeSuite
from zope.index.text.nbest import NBest
Modified: Zope3/trunk/src/zope/index/text/tests/test_setops.py
===================================================================
--- Zope3/trunk/src/zope/index/text/tests/test_setops.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/text/tests/test_setops.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,7 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""Set Options tests
+$Id$
+"""
from unittest import TestCase, main, makeSuite
from BTrees.IIBTree import IIBTree, IIBucket
Modified: Zope3/trunk/src/zope/index/text/tests/wordstats.py
===================================================================
--- Zope3/trunk/src/zope/index/text/tests/wordstats.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/text/tests/wordstats.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -15,6 +15,8 @@
"""Dump statistics about each word in the index.
usage: wordstats.py data.fs [index key]
+
+$Id$
"""
from ZODB.Storage.FileStorage import FileStorage
Modified: Zope3/trunk/src/zope/index/text/widcode.py
===================================================================
--- Zope3/trunk/src/zope/index/text/widcode.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/text/widcode.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,52 +11,55 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""Widcode
-# A byte-aligned encoding for lists of non-negative ints, using fewer bytes
-# for smaller ints. This is intended for lists of word ids (wids). The
-# ordinary string .find() method can be used to find the encoded form of a
-# desired wid-string in an encoded wid-string. As in UTF-8, the initial byte
-# of an encoding can't appear in the interior of an encoding, so find() can't
-# be fooled into starting a match "in the middle" of an encoding. Unlike
-# UTF-8, the initial byte does not tell you how many continuation bytes
-# follow; and there's no ASCII superset property.
+A byte-aligned encoding for lists of non-negative ints, using fewer bytes
+for smaller ints. This is intended for lists of word ids (wids). The
+ordinary string .find() method can be used to find the encoded form of a
+desired wid-string in an encoded wid-string. As in UTF-8, the initial byte
+of an encoding can't appear in the interior of an encoding, so find() can't
+be fooled into starting a match "in the middle" of an encoding. Unlike
+UTF-8, the initial byte does not tell you how many continuation bytes
+follow; and there's no ASCII superset property.
-# Details:
-#
-# + Only the first byte of an encoding has the sign bit set.
-#
-# + The first byte has 7 bits of data.
-#
-# + Bytes beyond the first in an encoding have the sign bit clear, followed
-# by 7 bits of data.
-#
-# + The first byte doesn't tell you how many continuation bytes are
-# following. You can tell by searching for the next byte with the
-# high bit set (or the end of the string).
-#
-# The int to be encoded can contain no more than 28 bits.
-#
-# If it contains no more than 7 bits, 0abcdefg, the encoding is
-# 1abcdefg
-#
-# If it contains 8 thru 14 bits,
-# 00abcdef ghijkLmn
-# the encoding is
-# 1abcdefg 0hijkLmn
-#
-# Static tables _encoding and _decoding capture all encodes and decodes for
-# 14 or fewer bits.
-#
-# If it contains 15 thru 21 bits,
-# 000abcde fghijkLm nopqrstu
-# the encoding is
-# 1abcdefg 0hijkLmn 0opqrstu
-#
-# If it contains 22 thru 28 bits,
-# 0000abcd efghijkL mnopqrst uvwxyzAB
-# the encoding is
-# 1abcdefg 0hijkLmn 0opqrstu 0vwxyzAB
+Details:
++ Only the first byte of an encoding has the sign bit set.
+
++ The first byte has 7 bits of data.
+
++ Bytes beyond the first in an encoding have the sign bit clear, followed
+ by 7 bits of data.
+
++ The first byte doesn't tell you how many continuation bytes are
+ following. You can tell by searching for the next byte with the
+ high bit set (or the end of the string).
+
+The int to be encoded can contain no more than 28 bits.
+
+If it contains no more than 7 bits, 0abcdefg, the encoding is
+ 1abcdefg
+
+If it contains 8 thru 14 bits,
+ 00abcdef ghijkLmn
+the encoding is
+ 1abcdefg 0hijkLmn
+
+Static tables _encoding and _decoding capture all encodes and decodes for
+14 or fewer bits.
+
+If it contains 15 thru 21 bits,
+ 000abcde fghijkLm nopqrstu
+the encoding is
+ 1abcdefg 0hijkLmn 0opqrstu
+
+If it contains 22 thru 28 bits,
+ 0000abcd efghijkL mnopqrst uvwxyzAB
+the encoding is
+ 1abcdefg 0hijkLmn 0opqrstu 0vwxyzAB
+
+$Id$
+"""
assert 0x80**2 == 0x4000
assert 0x80**4 == 0x10000000
Modified: Zope3/trunk/src/zope/index/topic/index.py
===================================================================
--- Zope3/trunk/src/zope/index/topic/index.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/index/topic/index.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,9 +11,10 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
+"""Topic index
-"""Topic index"""
-
+$Id$
+"""
from persistent import Persistent
from BTrees.OOBTree import OOBTree
Modified: Zope3/trunk/src/zope/interface/tests/dummy.py
===================================================================
--- Zope3/trunk/src/zope/interface/tests/dummy.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/interface/tests/dummy.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,6 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""Dummy Module
+
+$Id$
+"""
from zope.interface import moduleProvides
from zope.interface.tests.ifoo import IFoo
from zope.interface import moduleProvides
Modified: Zope3/trunk/src/zope/interface/tests/ifoo.py
===================================================================
--- Zope3/trunk/src/zope/interface/tests/ifoo.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/interface/tests/ifoo.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,6 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""IFoo test module
+
+$Id$
+"""
from zope.interface import Interface
class IFoo(Interface):
Modified: Zope3/trunk/src/zope/interface/tests/m1.py
===================================================================
--- Zope3/trunk/src/zope/interface/tests/m1.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/interface/tests/m1.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -1,6 +1,20 @@
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (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.
+#
+##############################################################################
"""Test module that declares an interface
+
+$Id$
"""
-
from zope.interface import Interface, moduleProvides
class I1(Interface): pass
Modified: Zope3/trunk/src/zope/interface/tests/m2.py
===================================================================
--- Zope3/trunk/src/zope/interface/tests/m2.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/interface/tests/m2.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -1,2 +1,17 @@
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (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.
+#
+##############################################################################
"""Test module that doesn't declare an interface
+
+$Id$
"""
Modified: Zope3/trunk/src/zope/interface/tests/test_interface.py
===================================================================
--- Zope3/trunk/src/zope/interface/tests/test_interface.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/interface/tests/test_interface.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,7 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""Test Interface implementation
+$Id$
+"""
import unittest
from zope.testing.doctestunit import DocTestSuite
from zope.interface.tests.unitfixtures import * # hehehe
Modified: Zope3/trunk/src/zope/interface/verify.py
===================================================================
--- Zope3/trunk/src/zope/interface/verify.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/interface/verify.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,7 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""Verify interface implementations
+$Id$
+"""
from zope.interface.exceptions import BrokenImplementation, DoesNotImplement
from zope.interface.exceptions import BrokenMethodImplementation
from types import FunctionType, MethodType
Modified: Zope3/trunk/src/zope/modulealias/metadirectives.py
===================================================================
--- Zope3/trunk/src/zope/modulealias/metadirectives.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/modulealias/metadirectives.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,7 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""'zope:modulealias' directive interface
+$Id$
+"""
from zope.configuration.fields import PythonIdentifier
from zope.interface import Interface
Modified: Zope3/trunk/src/zope/modulealias/tests/test_modulealias.py
===================================================================
--- Zope3/trunk/src/zope/modulealias/tests/test_modulealias.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/modulealias/tests/test_modulealias.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -1,3 +1,20 @@
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (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.
+#
+##############################################################################
+"""Module Alias Tests
+
+$Id$
+"""
import unittest
import sys
from zope.configuration import xmlconfig
Modified: Zope3/trunk/src/zope/pagetemplate/__init__.py
===================================================================
--- Zope3/trunk/src/zope/pagetemplate/__init__.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/pagetemplate/__init__.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,4 +11,7 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-"""Page Templates"""
+"""Page Templates
+
+$Id$
+"""
Modified: Zope3/trunk/src/zope/pagetemplate/pagetemplatefile.py
===================================================================
--- Zope3/trunk/src/zope/pagetemplate/pagetemplatefile.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/pagetemplate/pagetemplatefile.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -14,6 +14,8 @@
"""Filesystem Page Template module
Zope object encapsulating a Page Template from the filesystem.
+
+$Id$
"""
import os, sys
import logging
Modified: Zope3/trunk/src/zope/pagetemplate/tests/test_basictemplate.py
===================================================================
--- Zope3/trunk/src/zope/pagetemplate/tests/test_basictemplate.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/pagetemplate/tests/test_basictemplate.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,6 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""Basic Page Template tests
+
+$Id$
+"""
import unittest
from zope.pagetemplate.tests import util
Modified: Zope3/trunk/src/zope/pagetemplate/tests/test_ptfile.py
===================================================================
--- Zope3/trunk/src/zope/pagetemplate/tests/test_ptfile.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/pagetemplate/tests/test_ptfile.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -1,5 +1,20 @@
-"""Tests of PageTemplateFile."""
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (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.
+#
+##############################################################################
+"""Tests of PageTemplateFile.
+$Id$
+"""
import os
import tempfile
import unittest
Modified: Zope3/trunk/src/zope/publisher/tests/test_browserlanguages.py
===================================================================
--- Zope3/trunk/src/zope/publisher/tests/test_browserlanguages.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/publisher/tests/test_browserlanguages.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,6 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""Test Browser Languages detector
+
+$Id$
+"""
import unittest
# Note: The expected output is in order of preference,
Modified: Zope3/trunk/src/zope/schema/tests/test_tabcomplete.py
===================================================================
--- Zope3/trunk/src/zope/schema/tests/test_tabcomplete.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/schema/tests/test_tabcomplete.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,9 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""Tests of the 'tab completion' example vocabulary.
-"""Tests of the 'tab completion' example vocabulary."""
-
+$Id$
+"""
import unittest
from zope.schema.interfaces import ITerm, IVocabularyQuery
Modified: Zope3/trunk/src/zope/security/__init__.py
===================================================================
--- Zope3/trunk/src/zope/security/__init__.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/security/__init__.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -1,7 +1,20 @@
+##############################################################################
#
-# This file is necessary to make this directory a package.
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (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.
+#
+##############################################################################
+"""Security Package
-
+$Id$
+"""
# TODO: There's a circular import problem with the proxy package.
# The proxy framework needs some refactoring, but not today.
import zope.proxy
Modified: Zope3/trunk/src/zope/security/setup.py
===================================================================
--- Zope3/trunk/src/zope/security/setup.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/security/setup.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -12,7 +12,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""Security setup
+$Id$
+"""
from distutils.core import setup, Extension
setup(name="_Proxy", version = "0.1",
Modified: Zope3/trunk/src/zope/security/tests/test_interpreter.py
===================================================================
--- Zope3/trunk/src/zope/security/tests/test_interpreter.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/security/tests/test_interpreter.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,6 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""Test Restricted Python Interpreter
+
+$Id$
+"""
import unittest
from zope.security.interpreter import RestrictedInterpreter
Modified: Zope3/trunk/src/zope/server/ftp/tests/__init__.py
===================================================================
--- Zope3/trunk/src/zope/server/ftp/tests/__init__.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/server/ftp/tests/__init__.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -1 +1 @@
-#
+# Make this directory a package.
Modified: Zope3/trunk/src/zope/server/maxsockets.py
===================================================================
--- Zope3/trunk/src/zope/server/maxsockets.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/server/maxsockets.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -1,3 +1,20 @@
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (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.
+#
+##############################################################################
+"""Find max number of sockets allowed.
+
+$Id$
+"""
# Medusa max_sockets module.
import socket
Modified: Zope3/trunk/src/zope/server/trigger.py
===================================================================
--- Zope3/trunk/src/zope/server/trigger.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/server/trigger.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,7 +11,10 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
+"""Trigger
+$Id$
+"""
import asyncore
import os
import socket
Modified: Zope3/trunk/src/zope/server/utilities.py
===================================================================
--- Zope3/trunk/src/zope/server/utilities.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/server/utilities.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -1,12 +1,20 @@
-# Copyright 2001-2002 Zope Corporation and Contributors. All Rights Reserved.
+##############################################################################
#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (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.
+#
+##############################################################################
+"""Server utility functions
+$Id$
+"""
def find_double_newline(s):
"""Returns the position just after a double newline in the given string."""
Modified: Zope3/trunk/src/zope/tal/driver.py
===================================================================
--- Zope3/trunk/src/zope/tal/driver.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/tal/driver.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -35,6 +35,8 @@
Leave I18N substitution strings un-interpolated.
-a
Enable source annotations
+
+$Id$
"""
import os
Modified: Zope3/trunk/src/zope/tal/interfaces.py
===================================================================
--- Zope3/trunk/src/zope/tal/interfaces.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/tal/interfaces.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -13,8 +13,9 @@
##############################################################################
"""Interface that a TAL expression implementation provides to the METAL/TAL
implementation.
+
+$Id$
"""
-
from zope.interface import Attribute, Interface
Modified: Zope3/trunk/src/zope/tal/ndiff.py
===================================================================
--- Zope3/trunk/src/zope/tal/ndiff.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/tal/ndiff.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -54,6 +54,8 @@
sed -n '/^[+ ] /s/^..//p'
See module comments for details and programmatic interface.
+
+$Id$
"""
__version__ = 1, 5, 0
Modified: Zope3/trunk/src/zope/tal/setpath.py
===================================================================
--- Zope3/trunk/src/zope/tal/setpath.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/tal/setpath.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -16,6 +16,8 @@
If .path file isn't found in the directory of the setpath.py module, then try
to import ZODB. If that succeeds, we assume the path is already set up
correctly. If that import fails, an IOError is raised.
+
+$Id$
"""
# TODO: Why does this want to find ZODB ???
Modified: Zope3/trunk/src/zope/tal/talgettext.py
===================================================================
--- Zope3/trunk/src/zope/tal/talgettext.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/tal/talgettext.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -26,6 +26,8 @@
-u / --update <file>
Update the existing translation <file> with any new translation strings
found.
+
+$Id$
"""
import sys
import time
Modified: Zope3/trunk/src/zope/tal/tests/markbench.py
===================================================================
--- Zope3/trunk/src/zope/tal/tests/markbench.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/tal/tests/markbench.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -12,8 +12,11 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-'''Run benchmarks of TAL vs. DTML'''
+"""Run benchmarks of TAL vs. DTML
+$Id$
+"""
+
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)
Modified: Zope3/trunk/src/zope/tal/tests/test_sourcepos.py
===================================================================
--- Zope3/trunk/src/zope/tal/tests/test_sourcepos.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/tal/tests/test_sourcepos.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -12,8 +12,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-"""Tests for TALInterpreter."""
+"""Tests for TALInterpreter.
+$Id$
+"""
import unittest
from StringIO import StringIO
Modified: Zope3/trunk/src/zope/tal/tests/test_talgettext.py
===================================================================
--- Zope3/trunk/src/zope/tal/tests/test_talgettext.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/tal/tests/test_talgettext.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -12,8 +12,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-"""Tests for the talgettext utility."""
+"""Tests for the talgettext utility.
+$Id$
+"""
import sys
import unittest
Modified: Zope3/trunk/src/zope/tal/tests/utils.py
===================================================================
--- Zope3/trunk/src/zope/tal/tests/utils.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/tal/tests/utils.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,8 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-"""Helper functions for the test suite."""
+"""Helper functions for the test suite.
+$Id$
+"""
import os
import sys
Modified: Zope3/trunk/src/zope/tales/__init__.py
===================================================================
--- Zope3/trunk/src/zope/tales/__init__.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/tales/__init__.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,5 +11,8 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-"""Template Attribute Language - Expression Syntax"""
+"""Template Attribute Language - Expression Syntax
+$Id$
+"""
+
Modified: Zope3/trunk/src/zope/testing/loghandler.py
===================================================================
--- Zope3/trunk/src/zope/testing/loghandler.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/testing/loghandler.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -11,8 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-"""logging handler for tests that check logging output."""
+"""logging handler for tests that check logging output.
+$Id$
+"""
import logging
class Handler(logging.Handler):
Modified: Zope3/trunk/src/zope/xmlpickle/__init__.py
===================================================================
--- Zope3/trunk/src/zope/xmlpickle/__init__.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/xmlpickle/__init__.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -18,7 +18,8 @@
dumps(object) -- Returns an XML pickle
loads(xmlpickle) -- Returns an object loaded from the pickle.
+
+$Id$
"""
-
from xmlpickle import dumps, loads
from xmlpickle import fromxml, toxml
Modified: Zope3/trunk/src/zope/xmlpickle/ppml.py
===================================================================
--- Zope3/trunk/src/zope/xmlpickle/ppml.py 2004-07-16 07:38:49 UTC (rev 26569)
+++ Zope3/trunk/src/zope/xmlpickle/ppml.py 2004-07-16 07:54:40 UTC (rev 26570)
@@ -10,8 +10,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-"""Provide conversion between Python pickles and XML."""
+"""Provide conversion between Python pickles and XML.
+$Id$
+"""
# TODO: This doesn't work properly for protocol 2 pickles yet; that
# still needs to be dealt with. Particular issues that need to be
# addressed involve supporting the changes for new-style objects.
More information about the Zope3-Checkins
mailing list