Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
4ba09362
Commit
4ba09362
authored
Aug 14, 2002
by
Martijn Pieters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up indentation and trailing whitespace.
parent
a034b0a5
Changes
163
Show whitespace changes
Inline
Side-by-side
Showing
163 changed files
with
1611 additions
and
1755 deletions
+1611
-1755
ZServer/DebugLogger.py
ZServer/DebugLogger.py
+12
-13
ZServer/FCGIServer.py
ZServer/FCGIServer.py
+18
-21
ZServer/FTPRequest.py
ZServer/FTPRequest.py
+18
-25
ZServer/FTPResponse.py
ZServer/FTPResponse.py
+11
-11
ZServer/FTPServer.py
ZServer/FTPServer.py
+78
-78
ZServer/HTTPResponse.py
ZServer/HTTPResponse.py
+26
-27
ZServer/HTTPServer.py
ZServer/HTTPServer.py
+25
-26
ZServer/ICPServer.py
ZServer/ICPServer.py
+4
-4
ZServer/PCGIServer.py
ZServer/PCGIServer.py
+49
-49
ZServer/Producers.py
ZServer/Producers.py
+9
-10
ZServer/PubCore/ZEvent.py
ZServer/PubCore/ZEvent.py
+3
-4
ZServer/PubCore/ZRendezvous.py
ZServer/PubCore/ZRendezvous.py
+2
-2
ZServer/PubCore/ZServerPublisher.py
ZServer/PubCore/ZServerPublisher.py
+12
-12
ZServer/PubCore/__init__.py
ZServer/PubCore/__init__.py
+2
-2
ZServer/WebDAVSrcHandler.py
ZServer/WebDAVSrcHandler.py
+5
-5
ZServer/ZService.py
ZServer/ZService.py
+42
-42
ZServer/__init__.py
ZServer/__init__.py
+3
-3
inst/binary_install.py
inst/binary_install.py
+6
-6
inst/build_extensions.py
inst/build_extensions.py
+2
-3
inst/build_pcgi.py
inst/build_pcgi.py
+2
-2
inst/compilezpy.py
inst/compilezpy.py
+3
-3
inst/default_content.py
inst/default_content.py
+2
-6
inst/do.py
inst/do.py
+4
-4
inst/make_instance.py
inst/make_instance.py
+4
-4
inst/make_resource.py
inst/make_resource.py
+2
-3
inst/make_start.py
inst/make_start.py
+2
-2
inst/walkandscrub.py
inst/walkandscrub.py
+3
-3
lib/Components/ExtensionClass/setup.py
lib/Components/ExtensionClass/setup.py
+11
-11
lib/Components/ExtensionClass/src/Xaq.py
lib/Components/ExtensionClass/src/Xaq.py
+3
-3
lib/Components/ExtensionClass/test/regrtest.py
lib/Components/ExtensionClass/test/regrtest.py
+2
-2
lib/Components/ExtensionClass/test/test_AqAlg.py
lib/Components/ExtensionClass/test/test_AqAlg.py
+4
-5
lib/Components/ExtensionClass/test/test_MultiMapping.py
lib/Components/ExtensionClass/test/test_MultiMapping.py
+2
-2
lib/Components/ExtensionClass/test/test_Sync.py
lib/Components/ExtensionClass/test/test_Sync.py
+12
-12
lib/Components/ExtensionClass/test/test_ThreadLock.py
lib/Components/ExtensionClass/test/test_ThreadLock.py
+12
-12
lib/Components/ExtensionClass/test/test_acquisition.py
lib/Components/ExtensionClass/test/test_acquisition.py
+7
-7
lib/Components/ExtensionClass/test/test_add.py
lib/Components/ExtensionClass/test/test_add.py
+2
-2
lib/Components/ExtensionClass/test/test_binding.py
lib/Components/ExtensionClass/test/test_binding.py
+7
-8
lib/Components/ExtensionClass/test/test_explicit_acquisition.py
...mponents/ExtensionClass/test/test_explicit_acquisition.py
+2
-3
lib/Components/ExtensionClass/test/test_method_hook.py
lib/Components/ExtensionClass/test/test_method_hook.py
+2
-2
lib/Components/cPickle/copy_reg.py
lib/Components/cPickle/copy_reg.py
+0
-1
lib/python/AccessControl/AuthEncoding.py
lib/python/AccessControl/AuthEncoding.py
+3
-3
lib/python/AccessControl/DTML.py
lib/python/AccessControl/DTML.py
+12
-13
lib/python/AccessControl/Owned.py
lib/python/AccessControl/Owned.py
+13
-14
lib/python/AccessControl/Permission.py
lib/python/AccessControl/Permission.py
+7
-7
lib/python/AccessControl/PermissionMapping.py
lib/python/AccessControl/PermissionMapping.py
+11
-11
lib/python/AccessControl/PermissionRole.py
lib/python/AccessControl/PermissionRole.py
+10
-10
lib/python/AccessControl/Permissions.py
lib/python/AccessControl/Permissions.py
+3
-3
lib/python/AccessControl/Role.py
lib/python/AccessControl/Role.py
+28
-29
lib/python/AccessControl/SecurityInfo.py
lib/python/AccessControl/SecurityInfo.py
+10
-10
lib/python/AccessControl/SecurityManagement.py
lib/python/AccessControl/SecurityManagement.py
+7
-9
lib/python/AccessControl/SecurityManager.py
lib/python/AccessControl/SecurityManager.py
+5
-5
lib/python/AccessControl/SimpleObjectPolicies.py
lib/python/AccessControl/SimpleObjectPolicies.py
+4
-5
lib/python/AccessControl/SpecialUsers.py
lib/python/AccessControl/SpecialUsers.py
+4
-4
lib/python/AccessControl/User.py
lib/python/AccessControl/User.py
+51
-51
lib/python/AccessControl/ZopeGuards.py
lib/python/AccessControl/ZopeGuards.py
+3
-3
lib/python/AccessControl/ZopeSecurityPolicy.py
lib/python/AccessControl/ZopeSecurityPolicy.py
+6
-6
lib/python/AccessControl/__init__.py
lib/python/AccessControl/__init__.py
+2
-2
lib/python/AccessControl/securitySuite/ResultObject.py
lib/python/AccessControl/securitySuite/ResultObject.py
+6
-7
lib/python/AccessControl/securitySuite/SecurityBase.py
lib/python/AccessControl/securitySuite/SecurityBase.py
+20
-20
lib/python/AccessControl/securitySuite/framework.py
lib/python/AccessControl/securitySuite/framework.py
+2
-4
lib/python/AccessControl/securitySuite/regressionSecurity.py
lib/python/AccessControl/securitySuite/regressionSecurity.py
+14
-14
lib/python/AccessControl/tests/testClassSecurityInfo.py
lib/python/AccessControl/tests/testClassSecurityInfo.py
+2
-2
lib/python/AccessControl/tests/testDeprecatedAPI.py
lib/python/AccessControl/tests/testDeprecatedAPI.py
+5
-6
lib/python/AccessControl/tests/testModuleSecurity.py
lib/python/AccessControl/tests/testModuleSecurity.py
+5
-5
lib/python/AccessControl/tests/testPasswordDigest.py
lib/python/AccessControl/tests/testPasswordDigest.py
+5
-5
lib/python/AccessControl/tests/testPermissionRole.py
lib/python/AccessControl/tests/testPermissionRole.py
+4
-4
lib/python/AccessControl/tests/testSecurity.py
lib/python/AccessControl/tests/testSecurity.py
+4
-4
lib/python/AccessControl/tests/testUserFolder.py
lib/python/AccessControl/tests/testUserFolder.py
+5
-5
lib/python/AccessControl/tests/testZopeSecurityPolicy.py
lib/python/AccessControl/tests/testZopeSecurityPolicy.py
+5
-6
lib/python/AccessControl/unauthorized.py
lib/python/AccessControl/unauthorized.py
+3
-4
lib/python/App/ApplicationManager.py
lib/python/App/ApplicationManager.py
+11
-12
lib/python/App/CacheManager.py
lib/python/App/CacheManager.py
+11
-12
lib/python/App/Common.py
lib/python/App/Common.py
+7
-7
lib/python/App/DavLockManager.py
lib/python/App/DavLockManager.py
+5
-5
lib/python/App/Dialogs.py
lib/python/App/Dialogs.py
+9
-9
lib/python/App/Extensions.py
lib/python/App/Extensions.py
+16
-16
lib/python/App/Factory.py
lib/python/App/Factory.py
+6
-7
lib/python/App/FactoryDispatcher.py
lib/python/App/FactoryDispatcher.py
+6
-8
lib/python/App/FindHomes.py
lib/python/App/FindHomes.py
+5
-5
lib/python/App/Hotfixes.py
lib/python/App/Hotfixes.py
+2
-3
lib/python/App/ImageFile.py
lib/python/App/ImageFile.py
+6
-7
lib/python/App/Management.py
lib/python/App/Management.py
+10
-10
lib/python/App/Permission.py
lib/python/App/Permission.py
+5
-6
lib/python/App/PersistentExtra.py
lib/python/App/PersistentExtra.py
+5
-5
lib/python/App/Product.py
lib/python/App/Product.py
+17
-17
lib/python/App/ProductContext.py
lib/python/App/ProductContext.py
+11
-13
lib/python/App/ProductRegistry.py
lib/python/App/ProductRegistry.py
+10
-12
lib/python/App/RefreshFuncs.py
lib/python/App/RefreshFuncs.py
+5
-6
lib/python/App/Undo.py
lib/python/App/Undo.py
+12
-12
lib/python/App/__init__.py
lib/python/App/__init__.py
+2
-2
lib/python/App/class_init.py
lib/python/App/class_init.py
+4
-4
lib/python/App/special_dtml.py
lib/python/App/special_dtml.py
+8
-9
lib/python/App/tar.py
lib/python/App/tar.py
+8
-8
lib/python/App/version_txt.py
lib/python/App/version_txt.py
+4
-5
lib/python/DateTime/DateTime.py
lib/python/DateTime/DateTime.py
+72
-75
lib/python/DateTime/DateTimeZone.py
lib/python/DateTime/DateTimeZone.py
+4
-4
lib/python/DateTime/__init__.py
lib/python/DateTime/__init__.py
+2
-2
lib/python/DateTime/tests/testDateTime.py
lib/python/DateTime/tests/testDateTime.py
+3
-4
lib/python/HelpSys/APIHelpTopic.py
lib/python/HelpSys/APIHelpTopic.py
+20
-22
lib/python/HelpSys/HelpSys.py
lib/python/HelpSys/HelpSys.py
+12
-12
lib/python/HelpSys/HelpTopic.py
lib/python/HelpSys/HelpTopic.py
+15
-16
lib/python/HelpSys/HelpUtil.py
lib/python/HelpSys/HelpUtil.py
+11
-18
lib/python/HelpSys/ObjectRef.py
lib/python/HelpSys/ObjectRef.py
+8
-9
lib/python/HelpSys/__init__.py
lib/python/HelpSys/__init__.py
+2
-2
lib/python/Interface/Attribute.py
lib/python/Interface/Attribute.py
+3
-5
lib/python/Interface/Common/Mapping.py
lib/python/Interface/Common/Mapping.py
+3
-3
lib/python/Interface/Common/__init__.py
lib/python/Interface/Common/__init__.py
+2
-3
lib/python/Interface/Common/tests/BaseTestMapping.py
lib/python/Interface/Common/tests/BaseTestMapping.py
+5
-5
lib/python/Interface/Common/tests/__init__.py
lib/python/Interface/Common/tests/__init__.py
+2
-3
lib/python/Interface/Document.py
lib/python/Interface/Document.py
+7
-15
lib/python/Interface/Exceptions.py
lib/python/Interface/Exceptions.py
+2
-3
lib/python/Interface/IAttribute.py
lib/python/Interface/IAttribute.py
+3
-4
lib/python/Interface/IElement.py
lib/python/Interface/IElement.py
+4
-4
lib/python/Interface/IInterface.py
lib/python/Interface/IInterface.py
+5
-5
lib/python/Interface/IMethod.py
lib/python/Interface/IMethod.py
+3
-3
lib/python/Interface/Implements.py
lib/python/Interface/Implements.py
+4
-5
lib/python/Interface/Mapping.py
lib/python/Interface/Mapping.py
+2
-4
lib/python/Interface/Method.py
lib/python/Interface/Method.py
+4
-29
lib/python/Interface/Verify.py
lib/python/Interface/Verify.py
+3
-3
lib/python/Interface/_Element.py
lib/python/Interface/_Element.py
+5
-6
lib/python/Interface/_Interface.py
lib/python/Interface/_Interface.py
+4
-4
lib/python/Interface/_InterfaceClass.py
lib/python/Interface/_InterfaceClass.py
+11
-11
lib/python/Interface/__init__.py
lib/python/Interface/__init__.py
+4
-5
lib/python/Interface/_object.py
lib/python/Interface/_object.py
+4
-5
lib/python/Interface/pprint.py
lib/python/Interface/pprint.py
+6
-14
lib/python/Interface/pyskel.py
lib/python/Interface/pyskel.py
+5
-7
lib/python/Interface/tests/IFoo.py
lib/python/Interface/tests/IFoo.py
+2
-2
lib/python/Interface/tests/__init__.py
lib/python/Interface/tests/__init__.py
+2
-2
lib/python/Interface/tests/dummy.py
lib/python/Interface/tests/dummy.py
+2
-2
lib/python/Interface/tests/testDocument.py
lib/python/Interface/tests/testDocument.py
+5
-5
lib/python/Interface/tests/testImplements.py
lib/python/Interface/tests/testImplements.py
+2
-2
lib/python/Interface/tests/testInterface.py
lib/python/Interface/tests/testInterface.py
+6
-7
lib/python/Interface/tests/testVerify.py
lib/python/Interface/tests/testVerify.py
+9
-9
lib/python/Interface/tests/testVisitImplements.py
lib/python/Interface/tests/testVisitImplements.py
+3
-3
lib/python/Interface/tests/unitfixtures.py
lib/python/Interface/tests/unitfixtures.py
+3
-3
lib/python/ZServer/DebugLogger.py
lib/python/ZServer/DebugLogger.py
+12
-13
lib/python/ZServer/FCGIServer.py
lib/python/ZServer/FCGIServer.py
+18
-21
lib/python/ZServer/FTPRequest.py
lib/python/ZServer/FTPRequest.py
+18
-25
lib/python/ZServer/FTPResponse.py
lib/python/ZServer/FTPResponse.py
+11
-11
lib/python/ZServer/FTPServer.py
lib/python/ZServer/FTPServer.py
+78
-78
lib/python/ZServer/HTTPResponse.py
lib/python/ZServer/HTTPResponse.py
+26
-27
lib/python/ZServer/HTTPServer.py
lib/python/ZServer/HTTPServer.py
+25
-26
lib/python/ZServer/ICPServer.py
lib/python/ZServer/ICPServer.py
+4
-4
lib/python/ZServer/PCGIServer.py
lib/python/ZServer/PCGIServer.py
+49
-49
lib/python/ZServer/Producers.py
lib/python/ZServer/Producers.py
+9
-10
lib/python/ZServer/PubCore/ZEvent.py
lib/python/ZServer/PubCore/ZEvent.py
+3
-4
lib/python/ZServer/PubCore/ZRendezvous.py
lib/python/ZServer/PubCore/ZRendezvous.py
+2
-2
lib/python/ZServer/PubCore/ZServerPublisher.py
lib/python/ZServer/PubCore/ZServerPublisher.py
+12
-12
lib/python/ZServer/PubCore/__init__.py
lib/python/ZServer/PubCore/__init__.py
+2
-2
lib/python/ZServer/WebDAVSrcHandler.py
lib/python/ZServer/WebDAVSrcHandler.py
+5
-5
lib/python/ZServer/ZService.py
lib/python/ZServer/ZService.py
+42
-42
lib/python/ZServer/__init__.py
lib/python/ZServer/__init__.py
+3
-3
pcgi/MrCreosote/creosote.py
pcgi/MrCreosote/creosote.py
+0
-1
pcgi/Util/killpcgi.py
pcgi/Util/killpcgi.py
+5
-5
pcgi/Util/pcgifile.py
pcgi/Util/pcgifile.py
+4
-4
pcgi/pcgi_publisher.py
pcgi/pcgi_publisher.py
+9
-9
utilities/ExtensionBuilder.py
utilities/ExtensionBuilder.py
+3
-3
utilities/FS.py
utilities/FS.py
+2
-3
utilities/bbb.py
utilities/bbb.py
+14
-15
utilities/check_catalog.py
utilities/check_catalog.py
+16
-16
utilities/fixbbbts.py
utilities/fixbbbts.py
+2
-3
utilities/load_site.py
utilities/load_site.py
+73
-75
utilities/requestprofiler.py
utilities/requestprofiler.py
+31
-31
No files found.
ZServer/DebugLogger.py
View file @
4ba09362
...
...
@@ -64,4 +64,3 @@ class DebugLogger:
def
log
(
*
args
):
pass
ZServer/FCGIServer.py
View file @
4ba09362
...
...
@@ -764,6 +764,3 @@ class FCGIPipe:
#----------------------------------------------------------------------
ZServer/FTPRequest.py
View file @
4ba09362
...
...
@@ -122,10 +122,3 @@ class FTPRequest(HTTPRequest):
if
os
.
sep
!=
'/'
:
path
=
path
.
replace
(
os
.
sep
,
'/'
)
return
path
ZServer/FTPResponse.py
View file @
4ba09362
ZServer/FTPServer.py
View file @
4ba09362
ZServer/HTTPResponse.py
View file @
4ba09362
...
...
@@ -308,4 +308,3 @@ def make_response(request, headers):
request
.
header
).
lower
()
response
.
_server_version
=
request
.
channel
.
server
.
SERVER_IDENT
return
response
ZServer/HTTPServer.py
View file @
4ba09362
...
...
@@ -372,4 +372,3 @@ class zhttp_server(http_server):
# override asyncore limits for nt's listen queue size
self
.
accepting
=
1
return
self
.
socket
.
listen
(
num
)
ZServer/ICPServer.py
View file @
4ba09362
ZServer/PCGIServer.py
View file @
4ba09362
ZServer/Producers.py
View file @
4ba09362
...
...
@@ -102,4 +102,3 @@ class file_close_producer:
file
.
close
()
self
.
file
=
None
return
''
ZServer/PubCore/ZEvent.py
View file @
4ba09362
...
...
@@ -35,4 +35,3 @@ def Wakeup(thunk=None):
del
socket_map
[
the_trigger
.
_fileno
]
the_trigger
=
simple_trigger
()
# adds itself back into socket_map
the_trigger
.
pull_trigger
(
thunk
)
ZServer/PubCore/ZRendezvous.py
View file @
4ba09362
ZServer/PubCore/ZServerPublisher.py
View file @
4ba09362
ZServer/PubCore/__init__.py
View file @
4ba09362
ZServer/WebDAVSrcHandler.py
View file @
4ba09362
ZServer/ZService.py
View file @
4ba09362
ZServer/__init__.py
View file @
4ba09362
inst/binary_install.py
View file @
4ba09362
inst/build_extensions.py
View file @
4ba09362
...
...
@@ -22,4 +22,3 @@ print '-'*78
print
'Building extension modules'
do
(
'%s setup.py build_ext -i'
%
sys
.
executable
)
inst/build_pcgi.py
View file @
4ba09362
inst/compilezpy.py
View file @
4ba09362
inst/default_content.py
View file @
4ba09362
...
...
@@ -29,7 +29,3 @@ def main(home, user='', group=''):
print
'creating default database'
open
(
db_path
,
'wb'
).
write
(
open
(
dd_path
,
'rb'
).
read
())
ch
(
db_path
,
user
,
group
)
inst/do.py
View file @
4ba09362
inst/make_instance.py
View file @
4ba09362
inst/make_resource.py
View file @
4ba09362
...
...
@@ -39,4 +39,3 @@ INSTANCE_HOME=%(cwd)s
'''
%
vars
())
ch
(
name
,
user
,
group
,
0755
)
inst/make_start.py
View file @
4ba09362
inst/walkandscrub.py
View file @
4ba09362
lib/Components/ExtensionClass/setup.py
View file @
4ba09362
lib/Components/ExtensionClass/src/Xaq.py
View file @
4ba09362
...
...
@@ -12,7 +12,7 @@
#
##############################################################################
# Compatibility module
# $Id: Xaq.py,v 1.
2 2002/06/10 22:48:46 jeremy
Exp $
# $Id: Xaq.py,v 1.
3 2002/08/14 21:24:48 mj
Exp $
import
Acquisition
Acquirer
=
Acquisition
.
Explicit
lib/Components/ExtensionClass/test/regrtest.py
View file @
4ba09362
lib/Components/ExtensionClass/test/test_AqAlg.py
View file @
4ba09362
...
...
@@ -14,8 +14,8 @@
__doc__
=
'''Examples from the Acquisition Algebra Presentation
$Id: test_AqAlg.py,v 1.
4 2002/06/10 22:48:47 jeremy
Exp $'''
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
$Id: test_AqAlg.py,v 1.
5 2002/08/14 21:24:48 mj
Exp $'''
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
import
Acquisition
...
...
@@ -99,4 +99,3 @@ def main():
if
__name__
==
'__main__'
:
main
()
lib/Components/ExtensionClass/test/test_MultiMapping.py
View file @
4ba09362
lib/Components/ExtensionClass/test/test_Sync.py
View file @
4ba09362
lib/Components/ExtensionClass/test/test_ThreadLock.py
View file @
4ba09362
lib/Components/ExtensionClass/test/test_acquisition.py
View file @
4ba09362
lib/Components/ExtensionClass/test/test_add.py
View file @
4ba09362
lib/Components/ExtensionClass/test/test_binding.py
View file @
4ba09362
...
...
@@ -27,4 +27,3 @@ x=bar()
hi
=
x
.
hi
print
type
(
hi
)
hi
(
1
,
2
,
3
,
name
=
'spam'
)
lib/Components/ExtensionClass/test/test_explicit_acquisition.py
View file @
4ba09362
...
...
@@ -30,4 +30,3 @@ try:
A
().
hi
()
raise
'Program error'
,
'spam'
except
AttributeError
:
pass
lib/Components/ExtensionClass/test/test_method_hook.py
View file @
4ba09362
lib/Components/cPickle/copy_reg.py
View file @
4ba09362
...
...
@@ -18,4 +18,3 @@ def pickle_complex(c):
return
complex
,
(
c
.
real
,
c
.
imag
)
pickle
(
type
(
1j
),
pickle_complex
,
complex
)
lib/python/AccessControl/AuthEncoding.py
View file @
4ba09362
...
...
@@ -11,7 +11,7 @@
#
##############################################################################
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
import
sha
,
binascii
from
binascii
import
b2a_base64
,
a2b_base64
...
...
lib/python/AccessControl/DTML.py
View file @
4ba09362
...
...
@@ -12,8 +12,8 @@
##############################################################################
'''Add security system support to Document Templates
$Id: DTML.py,v 1.
9 2001/11/28 15:50:51 matt Exp $'''
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
$Id: DTML.py,v 1.
10 2002/08/14 21:29:07 mj Exp $'''
__version__
=
'$Revision: 1.
10
$'
[
11
:
-
2
]
from
DocumentTemplate
import
DT_Util
import
SecurityManagement
,
string
,
math
,
whrandom
,
random
...
...
@@ -127,4 +127,3 @@ class DTMLSecurityAPI:
return
r
DT_Util
.
TemplateDict
.
__dict__
.
update
(
DTMLSecurityAPI
.
__dict__
)
lib/python/AccessControl/Owned.py
View file @
4ba09362
...
...
@@ -13,8 +13,8 @@
__doc__
=
'''Support for owned objects
$Id: Owned.py,v 1.1
7 2002/06/12 18:14:39 shane
Exp $'''
__version__
=
'$Revision: 1.1
7
$'
[
11
:
-
2
]
$Id: Owned.py,v 1.1
8 2002/08/14 21:29:07 mj
Exp $'''
__version__
=
'$Revision: 1.1
8
$'
[
11
:
-
2
]
import
Globals
,
urlparse
,
SpecialUsers
,
ExtensionClass
from
AccessControl
import
getSecurityManager
,
Unauthorized
...
...
@@ -253,4 +253,3 @@ def ownerInfo(user,
path
.
reverse
()
return
path
,
uid
lib/python/AccessControl/Permission.py
View file @
4ba09362
...
...
@@ -13,8 +13,8 @@
__doc__
=
'''short description
$Id: Permission.py,v 1.
9 2001/12/13 14:24:26 andreasjung
Exp $'''
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
$Id: Permission.py,v 1.
10 2002/08/14 21:29:07 mj
Exp $'''
__version__
=
'$Revision: 1.
10
$'
[
11
:
-
2
]
import
string
,
Products
,
Globals
...
...
lib/python/AccessControl/PermissionMapping.py
View file @
4ba09362
lib/python/AccessControl/PermissionRole.py
View file @
4ba09362
...
...
@@ -13,8 +13,8 @@
__doc__
=
'''Objects that implement Permission-based roles.
$Id: PermissionRole.py,v 1.1
5 2001/12/13 14:24:41 andreasjung
Exp $'''
__version__
=
'$Revision: 1.1
5
$'
[
11
:
-
2
]
$Id: PermissionRole.py,v 1.1
6 2002/08/14 21:29:07 mj
Exp $'''
__version__
=
'$Revision: 1.1
6
$'
[
11
:
-
2
]
_use_python_impl
=
0
import
os
...
...
lib/python/AccessControl/Permissions.py
View file @
4ba09362
...
...
@@ -12,7 +12,7 @@
##############################################################################
"""Constant definitions for built-in Zope permissions"""
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
access_contents_information
=
'Access contents information'
...
...
lib/python/AccessControl/Role.py
View file @
4ba09362
...
...
@@ -12,7 +12,7 @@
##############################################################################
"""Access control support"""
__version__
=
'$Revision: 1.5
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.5
5
$'
[
11
:
-
2
]
from
Globals
import
DTMLFile
,
MessageDialog
,
Dictionary
...
...
@@ -562,4 +562,3 @@ def gather_permissions(klass, result, seen):
seen
[
name
]
=
None
gather_permissions
(
base
,
result
,
seen
)
return
result
lib/python/AccessControl/SecurityInfo.py
View file @
4ba09362
lib/python/AccessControl/SecurityManagement.py
View file @
4ba09362
...
...
@@ -13,8 +13,8 @@
__doc__
=
'''short description
$Id: SecurityManagement.py,v 1.
6 2001/11/28 15:50:51 matt
Exp $'''
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
$Id: SecurityManagement.py,v 1.
7 2002/08/14 21:29:07 mj
Exp $'''
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
def
getSecurityManager
():
"""Get a security manager, for the current thread.
...
...
@@ -68,5 +68,3 @@ class SecurityContext:
self
.
stack
=
[]
self
.
user
=
user
self
.
objectCache
=
{}
lib/python/AccessControl/SecurityManager.py
View file @
4ba09362
...
...
@@ -13,8 +13,8 @@
__doc__
=
'''short description
$Id: SecurityManager.py,v 1.1
2 2001/12/13 14:23:44 andreasjung
Exp $'''
__version__
=
'$Revision: 1.1
2
$'
[
11
:
-
2
]
$Id: SecurityManager.py,v 1.1
3 2002/08/14 21:29:07 mj
Exp $'''
__version__
=
'$Revision: 1.1
3
$'
[
11
:
-
2
]
import
ZopeSecurityPolicy
,
os
...
...
lib/python/AccessControl/SimpleObjectPolicies.py
View file @
4ba09362
...
...
@@ -12,8 +12,8 @@
##############################################################################
__doc__
=
'''Collect rules for access to objects that don
\
'
t have roles.
$Id: SimpleObjectPolicies.py,v 1.1
1 2002/03/12 19:37:14 evan Exp $'''
__version__
=
'$Revision: 1.1
1 $'
[
11
:
-
2
]
$Id: SimpleObjectPolicies.py,v 1.1
2 2002/08/14 21:29:07 mj Exp $'''
__version__
=
'$Revision: 1.1
2 $'
[
11
:
-
2
]
_noroles
=
[]
# this is imported from various places
...
...
@@ -58,4 +58,3 @@ def allow_type(Type, allowed=1):
if
not
(
isinstance
(
allowed
,
IntType
)
or
isinstance
(
allowed
,
DictType
)):
raise
ValueError
,
"The 'allowed' argument must be an int or dict."
ContainerAssertions
[
Type
]
=
allowed
lib/python/AccessControl/SpecialUsers.py
View file @
4ba09362
...
...
@@ -13,5 +13,5 @@
__doc__
=
'''Place to find special users
This is needed to avoid a circular import problem.
$Id: SpecialUsers.py,v 1.
3 2001/11/28 15:50:52 matt
Exp $'''
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
$Id: SpecialUsers.py,v 1.
4 2002/08/14 21:29:07 mj
Exp $'''
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
lib/python/AccessControl/User.py
View file @
4ba09362
...
...
@@ -12,7 +12,7 @@
##############################################################################
"""Access control package"""
__version__
=
'$Revision: 1.1
69
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
70
$'
[
11
:
-
2
]
import
Globals
,
socket
,
SpecialUsers
,
re
import
os
...
...
lib/python/AccessControl/ZopeGuards.py
View file @
4ba09362
...
...
@@ -11,7 +11,7 @@
#
##############################################################################
__version__
=
'$Revision: 1.1
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
1
$'
[
11
:
-
2
]
from
RestrictedPython.Guards
import
safe_builtins
,
_full_read_guard
,
\
full_write_guard
...
...
lib/python/AccessControl/ZopeSecurityPolicy.py
View file @
4ba09362
...
...
@@ -13,8 +13,8 @@
__doc__
=
'''Define Zope
\
'
s default security policy
$Id: ZopeSecurityPolicy.py,v 1.1
8 2002/01/11 17:14:27 evan
Exp $'''
__version__
=
'$Revision: 1.1
8
$'
[
11
:
-
2
]
$Id: ZopeSecurityPolicy.py,v 1.1
9 2002/08/14 21:29:07 mj
Exp $'''
__version__
=
'$Revision: 1.1
9
$'
[
11
:
-
2
]
_use_python_impl
=
0
...
...
lib/python/AccessControl/__init__.py
View file @
4ba09362
lib/python/AccessControl/securitySuite/ResultObject.py
View file @
4ba09362
...
...
@@ -16,7 +16,7 @@ class ResultObject:
""" result object used for keeping results from the
ZPublisher.Zope() calls
$Id: ResultObject.py,v 1.
3 2001/11/28 15:50:52 matt
Exp $
$Id: ResultObject.py,v 1.
4 2002/08/14 21:27:32 mj
Exp $
"""
def
__str__
(
self
,
expected
=-
1
,
with_output
=
1
):
...
...
@@ -36,4 +36,3 @@ class ResultObject:
def
__call__
(
self
,
expected
=-
1
):
return
self
.
__str__
(
expected
)
lib/python/AccessControl/securitySuite/SecurityBase.py
View file @
4ba09362
...
...
@@ -39,7 +39,7 @@ __bobo_before__=AccessControl.SecurityManagement.noSecurityManager
class
SecurityBase
(
unittest
.
TestCase
)
:
""" Base class for all security tests
$Id: SecurityBase.py,v 1.
6 2001/11/28 15:50:52 matt
Exp $
$Id: SecurityBase.py,v 1.
7 2002/08/14 21:27:32 mj
Exp $
"""
status_regex
=
re
.
compile
(
"Status: ([0-9]{1,4}) (.*)"
,
re
.
I
)
\
...
...
lib/python/AccessControl/securitySuite/framework.py
View file @
4ba09362
...
...
@@ -42,5 +42,3 @@ if not sys.modules.has_key('Testing'):
import
Testing
,
unittest
execfile
(
os
.
path
.
join
(
os
.
path
.
split
(
Testing
.
__file__
)[
0
],
'common.py'
))
lib/python/AccessControl/securitySuite/regressionSecurity.py
View file @
4ba09362
...
...
@@ -13,7 +13,7 @@
#
##############################################################################
# $Id: regressionSecurity.py,v 1.
4 2001/11/28 15:50:52 matt
Exp $
# $Id: regressionSecurity.py,v 1.
5 2002/08/14 21:27:32 mj
Exp $
import
os
,
sys
,
unittest
...
...
lib/python/AccessControl/tests/testClassSecurityInfo.py
View file @
4ba09362
lib/python/AccessControl/tests/testDeprecatedAPI.py
View file @
4ba09362
##############################################################################
#
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
...
...
@@ -17,8 +16,8 @@ To be removed together with the API in due time.
"""
__rcs_id__
=
'$Id: testDeprecatedAPI.py,v 1.
3 2001/11/28 15:50:52 matt
Exp $'
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: testDeprecatedAPI.py,v 1.
4 2002/08/14 21:28:08 mj
Exp $'
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
import
ZODB
# Sigh. Persistent needs to be set, so we import ZODB.
from
AccessControl
import
User
...
...
lib/python/AccessControl/tests/testModuleSecurity.py
View file @
4ba09362
...
...
@@ -13,8 +13,8 @@
"""Module Import Tests
"""
__rcs_id__
=
'$Id: testModuleSecurity.py,v 1.
2 2002/01/11 17:14:27 evan
Exp $'
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: testModuleSecurity.py,v 1.
3 2002/08/14 21:28:08 mj
Exp $'
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
import
os
,
sys
,
unittest
...
...
lib/python/AccessControl/tests/testPasswordDigest.py
View file @
4ba09362
...
...
@@ -13,8 +13,8 @@
"""Test of AuthEncoding
"""
__rcs_id__
=
'$Id: testPasswordDigest.py,v 1.
3 2001/11/28 15:50:52 matt
Exp $'
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: testPasswordDigest.py,v 1.
4 2002/08/14 21:28:08 mj
Exp $'
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
import
os
,
sys
,
unittest
...
...
lib/python/AccessControl/tests/testPermissionRole.py
View file @
4ba09362
...
...
@@ -13,8 +13,8 @@
"""Tests of PermissionRole
"""
__rcs_id__
=
'$Id: testPermissionRole.py,v 1.
2 2001/11/28 15:50:52 matt
Exp $'
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: testPermissionRole.py,v 1.
3 2002/08/14 21:28:08 mj
Exp $'
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
import
os
,
sys
,
unittest
...
...
lib/python/AccessControl/tests/testSecurity.py
View file @
4ba09362
...
...
@@ -13,8 +13,8 @@
"""Document Template Tests
"""
__rcs_id__
=
'$Id: testSecurity.py,v 1.
9 2002/04/03 20:59:49 shane
Exp $'
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: testSecurity.py,v 1.
10 2002/08/14 21:28:08 mj
Exp $'
__version__
=
'$Revision: 1.
10
$'
[
11
:
-
2
]
import
os
,
sys
,
unittest
...
...
lib/python/AccessControl/tests/testUserFolder.py
View file @
4ba09362
...
...
@@ -13,8 +13,8 @@
"""User folder tests
"""
__rcs_id__
=
'$Id: testUserFolder.py,v 1.
4 2001/11/28 15:50:52 matt
Exp $'
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: testUserFolder.py,v 1.
5 2002/08/14 21:28:08 mj
Exp $'
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
import
os
,
sys
,
unittest
...
...
lib/python/AccessControl/tests/testZopeSecurityPolicy.py
View file @
4ba09362
...
...
@@ -13,8 +13,8 @@
"""Tests of ZopeSecurityPolicy
"""
__rcs_id__
=
'$Id: testZopeSecurityPolicy.py,v 1.
4 2002/01/11 17:14:27 evan
Exp $'
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: testZopeSecurityPolicy.py,v 1.
5 2002/08/14 21:28:08 mj
Exp $'
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
import
os
,
sys
,
unittest
...
...
@@ -255,4 +255,3 @@ def main():
if
__name__
==
'__main__'
:
main
()
lib/python/AccessControl/unauthorized.py
View file @
4ba09362
...
...
@@ -31,4 +31,3 @@ class Unauthorized(zExceptions.Unauthorized):
c
=
getattr
(
v
,
'__class__'
,
type
(
v
))
c
=
getattr
(
c
,
'__name__'
,
'object'
)
return
"a particular %s"
%
c
lib/python/App/ApplicationManager.py
View file @
4ba09362
...
...
@@ -11,7 +11,7 @@
#
##############################################################################
__doc__
=
"""System management components"""
__version__
=
'$Revision: 1.8
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.8
1
$'
[
11
:
-
2
]
import
sys
,
os
,
time
,
Globals
,
Acquisition
,
os
,
Undo
...
...
@@ -441,4 +441,3 @@ class ApplicationManager(Folder,CacheManager):
self
.
_objects
=
tuple
(
lst
)
return
Folder
.
objectIds
(
self
,
spec
)
lib/python/App/CacheManager.py
View file @
4ba09362
...
...
@@ -13,8 +13,8 @@
__doc__
=
'''Cache management support
$Id: CacheManager.py,v 1.2
5 2002/06/10 20:20:43 shane
Exp $'''
__version__
=
'$Revision: 1.2
5
$'
[
11
:
-
2
]
$Id: CacheManager.py,v 1.2
6 2002/08/14 21:31:40 mj
Exp $'''
__version__
=
'$Revision: 1.2
6
$'
[
11
:
-
2
]
import
Globals
,
time
,
sys
from
DateTime
import
DateTime
...
...
@@ -362,4 +362,3 @@ class CacheManager:
Globals
.
default__class_init__
(
CacheManager
)
lib/python/App/Common.py
View file @
4ba09362
...
...
@@ -13,7 +13,7 @@
"""Commonly used utility functions."""
__version__
=
'$Revision: 1.1
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
5
$'
[
11
:
-
2
]
import
sys
,
os
,
time
...
...
lib/python/App/DavLockManager.py
View file @
4ba09362
...
...
@@ -11,7 +11,7 @@
#
##############################################################################
__version__
=
"$Revision: 1.
7
$"
[
11
:
-
2
]
__version__
=
"$Revision: 1.
8
$"
[
11
:
-
2
]
import
OFS
,
Acquisition
,
Globals
from
AccessControl
import
getSecurityManager
,
ClassSecurityInfo
...
...
lib/python/App/Dialogs.py
View file @
4ba09362
...
...
@@ -31,7 +31,7 @@
target='_top')
</PRE>"""
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
from
Globals
import
HTML
...
...
lib/python/App/Extensions.py
View file @
4ba09362
...
...
@@ -14,8 +14,8 @@ __doc__='''Standard routines for handling extensions.
Extensions currently include external methods and pluggable brains.
$Id: Extensions.py,v 1.1
8 2002/02/07 17:37:10 andreasjung
Exp $'''
__version__
=
'$Revision: 1.1
8
$'
[
11
:
-
2
]
$Id: Extensions.py,v 1.1
9 2002/08/14 21:31:40 mj
Exp $'''
__version__
=
'$Revision: 1.1
9
$'
[
11
:
-
2
]
import
os
,
zlib
,
rotor
,
imp
import
Products
...
...
lib/python/App/Factory.py
View file @
4ba09362
...
...
@@ -12,8 +12,8 @@
##############################################################################
__doc__
=
'''Factory objects
$Id: Factory.py,v 1.2
5 2001/11/28 15:50:52 matt
Exp $'''
__version__
=
'$Revision: 1.2
5
$'
[
11
:
-
2
]
$Id: Factory.py,v 1.2
6 2002/08/14 21:31:40 mj
Exp $'''
__version__
=
'$Revision: 1.2
6
$'
[
11
:
-
2
]
import
OFS.SimpleItem
,
Acquisition
,
Globals
,
AccessControl
.
Role
import
Products
,
Product
...
...
@@ -112,4 +112,3 @@ class Factory(
)
class
ProductFactory
(
Factory
):
pass
lib/python/App/FactoryDispatcher.py
View file @
4ba09362
...
...
@@ -109,5 +109,3 @@ class ofWrapper(ExtensionClass.Base):
self
.
_o
=
o
def
__of__
(
self
,
parent
):
return
self
.
__dict__
[
'_o'
]
lib/python/App/FindHomes.py
View file @
4ba09362
...
...
@@ -13,7 +13,7 @@
"""Commonly used utility functions."""
__version__
=
'$Revision: 1.1
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
1
$'
[
11
:
-
2
]
import
os
,
sys
,
Products
from
Common
import
package_home
,
realpath
...
...
lib/python/App/Hotfixes.py
View file @
4ba09362
...
...
@@ -57,4 +57,3 @@ def beforeApplyHotfix(id, req_major, req_minor, req_micro):
apply_hotfix
=
APPLY
logHotfix
(
id
,
apply_hotfix
)
return
apply_hotfix
lib/python/App/ImageFile.py
View file @
4ba09362
...
...
@@ -12,7 +12,7 @@
##############################################################################
"""Image object that is stored in a file"""
__version__
=
'$Revision: 1.1
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
8
$'
[
11
:
-
2
]
from
OFS.content_types
import
guess_content_type
from
Globals
import
package_home
...
...
@@ -100,4 +100,3 @@ class ImageFile(Acquisition.Explicit):
def
__str__
(
self
):
return
'<img src="%s" alt="" />'
%
self
.
__name__
lib/python/App/Management.py
View file @
4ba09362
...
...
@@ -13,9 +13,9 @@
"""Standard management interface support
$Id: Management.py,v 1.6
0 2002/04/12 19:45:33 Brian
Exp $"""
$Id: Management.py,v 1.6
1 2002/08/14 21:31:40 mj
Exp $"""
__version__
=
'$Revision: 1.6
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.6
1
$'
[
11
:
-
2
]
import
sys
,
Globals
,
ExtensionClass
,
urllib
from
Dialogs
import
MessageDialog
...
...
lib/python/App/Permission.py
View file @
4ba09362
...
...
@@ -12,8 +12,8 @@
##############################################################################
__doc__
=
'''Zope registerable permissions
$Id: Permission.py,v 1.
7 2001/11/28 15:50:52 matt
Exp $'''
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
$Id: Permission.py,v 1.
8 2002/08/14 21:31:40 mj
Exp $'''
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
import
OFS.SimpleItem
,
Acquisition
,
Globals
,
ExtensionClass
,
AccessControl
.
Role
...
...
@@ -89,4 +89,3 @@ class PermissionManager(ExtensionClass.Base):
self
.
_setObject
(
id
,
i
)
if
REQUEST
is
not
None
:
return
self
.
manage_main
(
self
,
REQUEST
,
update_menu
=
1
)
lib/python/App/PersistentExtra.py
View file @
4ba09362
lib/python/App/Product.py
View file @
4ba09362
lib/python/App/ProductContext.py
View file @
4ba09362
...
...
@@ -333,5 +333,3 @@ class ProductContext:
continue
ht
=
APIHelpTopic
.
APIHelpTopic
(
file
,
''
,
os
.
path
.
join
(
path
,
file
))
self
.
registerHelpTopic
(
file
,
ht
)
lib/python/App/ProductRegistry.py
View file @
4ba09362
...
...
@@ -175,5 +175,3 @@ class ProductRegistry(ProductRegistryMixin):
return
setattr
(
self
,
name
,
v
)
else
:
raise
AttributeError
,
name
lib/python/App/RefreshFuncs.py
View file @
4ba09362
...
...
@@ -12,7 +12,7 @@
##############################################################################
'''
Functions for refreshing products.
$Id: RefreshFuncs.py,v 1.
5 2002/06/16 01:56:00 shane
Exp $
$Id: RefreshFuncs.py,v 1.
6 2002/08/14 21:31:40 mj
Exp $
'''
import
os
,
sys
...
...
@@ -329,4 +329,3 @@ def setupAutoRefresh(jar):
connection_open_hooks
.
append
(
autoRefresh
)
# Init mod times.
checkAutoRefresh
(
jar
)
lib/python/App/Undo.py
View file @
4ba09362
...
...
@@ -12,8 +12,8 @@
##############################################################################
__doc__
=
'''short description
$Id: Undo.py,v 1.3
0 2002/02/08 18:58:23 andreasjung
Exp $'''
__version__
=
'$Revision: 1.3
0
$'
[
11
:
-
2
]
$Id: Undo.py,v 1.3
1 2002/08/14 21:31:40 mj
Exp $'''
__version__
=
'$Revision: 1.3
1
$'
[
11
:
-
2
]
import
Globals
,
ExtensionClass
from
DateTime
import
DateTime
...
...
lib/python/App/__init__.py
View file @
4ba09362
lib/python/App/class_init.py
View file @
4ba09362
lib/python/App/special_dtml.py
View file @
4ba09362
...
...
@@ -192,4 +192,3 @@ class DTMLFile(Bindings, Explicit, ClassicHTMLFile):
HTMLFile
=
ClassicHTMLFile
lib/python/App/tar.py
View file @
4ba09362
...
...
@@ -12,8 +12,8 @@
##############################################################################
__doc__
=
'''Simple module for writing tar files
$Id: tar.py,v 1.
5 2002/02/07 17:37:10 andreasjung
Exp $'''
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
$Id: tar.py,v 1.
6 2002/08/14 21:31:41 mj
Exp $'''
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
import
sys
,
time
,
zlib
try
:
...
...
lib/python/App/version_txt.py
View file @
4ba09362
...
...
@@ -73,4 +73,3 @@ def getZopeVersion():
"""
_prep_version_data()
return _zope_version
lib/python/DateTime/DateTime.py
View file @
4ba09362
...
...
@@ -12,7 +12,7 @@
##############################################################################
"""Encapsulation of date/time values"""
__version__
=
'$Revision: 1.7
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.7
9
$'
[
11
:
-
2
]
import
re
,
sys
,
os
,
math
,
DateTimeZone
...
...
@@ -1671,6 +1671,3 @@ class strftimeFormatter:
def
Timezones
():
"""Return the list of recognized timezone names"""
return
_cache
.
_zlst
lib/python/DateTime/DateTimeZone.py
View file @
4ba09362
lib/python/DateTime/__init__.py
View file @
4ba09362
lib/python/DateTime/tests/testDateTime.py
View file @
4ba09362
# To run these tests, use:
# python unittest.py DateTime.tests.suite
...
...
lib/python/HelpSys/APIHelpTopic.py
View file @
4ba09362
...
...
@@ -269,5 +269,3 @@ def trim_doc_string(text):
for
line
in
lines
[
1
:]:
nlines
.
append
(
line
[
min_indent
:])
return
'
\
n
'
.
join
(
nlines
)
lib/python/HelpSys/HelpSys.py
View file @
4ba09362
lib/python/HelpSys/HelpTopic.py
View file @
4ba09362
...
...
@@ -255,4 +255,3 @@ class ImageTopic(HelpTopic):
def
SearchableText
(
self
):
"The full text of the Help Topic, for indexing purposes"
return
''
lib/python/HelpSys/HelpUtil.py
View file @
4ba09362
...
...
@@ -12,7 +12,7 @@
##############################################################################
"""Help system support module"""
__version__
=
'$Revision: 1.1
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
2
$'
[
11
:
-
2
]
import
Globals
,
Acquisition
...
...
@@ -418,10 +418,3 @@ def _chAttribute(name, ob):
if name[0]=='
_
':
return 0
return 1
lib/python/HelpSys/ObjectRef.py
View file @
4ba09362
...
...
@@ -12,7 +12,7 @@
##############################################################################
"""Object Reference implementation"""
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
10
$'
[
11
:
-
2
]
import
sys
,
os
,
Globals
,
Acquisition
...
...
@@ -140,4 +140,3 @@ class ObjectRef(HelpBase):
def
__getitem__
(
self
,
key
):
return
self
.
__dict__
[
key
].
__of__
(
self
)
lib/python/HelpSys/__init__.py
View file @
4ba09362
lib/python/Interface/Attribute.py
View file @
4ba09362
...
...
@@ -14,7 +14,7 @@
"""
Revision information:
$Id: Attribute.py,v 1.
4 2002/06/11 15:34:28 chrism
Exp $
$Id: Attribute.py,v 1.
5 2002/08/14 21:35:32 mj
Exp $
"""
from
_Element
import
Element
...
...
@@ -27,5 +27,3 @@ class Attribute(Element):
# infrastructure in place.
#
#__implements__ = IAttribute
lib/python/Interface/Common/Mapping.py
View file @
4ba09362
...
...
@@ -14,7 +14,7 @@
"""
Revision information:
$Id: Mapping.py,v 1.
2 2002/06/07 17:18:29 jim
Exp $
$Id: Mapping.py,v 1.
3 2002/08/14 21:35:33 mj
Exp $
"""
from
Interface
import
Interface
...
...
lib/python/Interface/Common/__init__.py
View file @
4ba09362
...
...
@@ -11,4 +11,3 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
lib/python/Interface/Common/tests/BaseTestMapping.py
View file @
4ba09362
...
...
@@ -14,7 +14,7 @@
"""
Revision information:
$Id: BaseTestMapping.py,v 1.
2 2002/06/07 17:18:29 jim
Exp $
$Id: BaseTestMapping.py,v 1.
3 2002/08/14 21:35:33 mj
Exp $
"""
from
operator
import
__getitem__
...
...
lib/python/Interface/Common/tests/__init__.py
View file @
4ba09362
...
...
@@ -11,4 +11,3 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
lib/python/Interface/Document.py
View file @
4ba09362
...
...
@@ -17,7 +17,7 @@ This module provides a function, asStructuredText, for rendering an
interface as structured text.
Revision information:
$Id: Document.py,v 1.
2 2002/06/07 17:18:29 jim
Exp $
$Id: Document.py,v 1.
3 2002/08/14 21:35:32 mj
Exp $
"""
from
string
import
maketrans
...
...
@@ -116,11 +116,3 @@ def _justify_and_indent(text, level, munge=0, width=72):
lines
.
append
(
(
" "
*
level
)
+
line
)
return
'
\
n
'
.
join
(
lines
)
lib/python/Interface/Exceptions.py
View file @
4ba09362
...
...
@@ -61,4 +61,3 @@ class BadImplements(TypeError):
because it doesn't contain an interface or a sequence of valid
implementation assertions.
"""
lib/python/Interface/IAttribute.py
View file @
4ba09362
...
...
@@ -14,11 +14,10 @@
"""
Revision information:
$Id: IAttribute.py,v 1.
2 2002/06/07 17:18:29 jim
Exp $
$Id: IAttribute.py,v 1.
3 2002/08/14 21:35:32 mj
Exp $
"""
from
IElement
import
IElement
class
IAttribute
(
IElement
):
"""Attribute descriptors"""
lib/python/Interface/IElement.py
View file @
4ba09362
...
...
@@ -14,7 +14,7 @@
"""
Revision information:
$Id: IElement.py,v 1.
4 2002/06/11 15:34:28 chrism
Exp $
$Id: IElement.py,v 1.
5 2002/08/14 21:35:32 mj
Exp $
"""
from
_Interface
import
Interface
...
...
lib/python/Interface/IInterface.py
View file @
4ba09362
...
...
@@ -14,7 +14,7 @@
"""
Revision information:
$Id: IInterface.py,v 1.
2 2002/06/07 17:18:29 jim
Exp $
$Id: IInterface.py,v 1.
3 2002/08/14 21:35:32 mj
Exp $
"""
from
IElement
import
IElement
...
...
lib/python/Interface/IMethod.py
View file @
4ba09362
...
...
@@ -14,7 +14,7 @@
"""
Revision information:
$Id: IMethod.py,v 1.
2 2002/06/07 17:18:29 jim
Exp $
$Id: IMethod.py,v 1.
3 2002/08/14 21:35:32 mj
Exp $
"""
from
IAttribute
import
IAttribute
...
...
lib/python/Interface/Implements.py
View file @
4ba09362
...
...
@@ -14,7 +14,7 @@
"""Implemantation assertion facilities.
Revision information:
$Id: Implements.py,v 1.
2 2002/06/07 17:18:29 jim
Exp $
$Id: Implements.py,v 1.
3 2002/08/14 21:35:32 mj
Exp $
"""
import
Exceptions
...
...
@@ -156,4 +156,3 @@ def implements(klass, interface, check=1):
klass
.
__implements__
=
interface
else
:
klass
.
__implements__
=
old
,
interface
lib/python/Interface/Mapping.py
View file @
4ba09362
import
Basic
,
Util
class
Mapping
(
Basic
.
Base
):
...
...
@@ -79,4 +78,3 @@ class Sequential(Sequence):
Util
.
assertTypeImplements
(
type
(()),
(
Sequence
,
Sized
,
Basic
.
HashKey
))
Util
.
assertTypeImplements
(
type
([]),
(
Sequence
,
Sized
,
MutableMapping
))
Util
.
assertTypeImplements
(
type
({}),
(
Mapping
,
Sized
,
MutableMapping
))
lib/python/Interface/Method.py
View file @
4ba09362
...
...
@@ -14,7 +14,7 @@
"""Method interfaces
Revision information:
$Id: Method.py,v 1.1
1 2002/06/11 15:34:28 chrism
Exp $
$Id: Method.py,v 1.1
2 2002/08/14 21:35:32 mj
Exp $
"""
import
Exceptions
from
Attribute
import
Attribute
...
...
@@ -104,28 +104,3 @@ def fromFunction(func, interface='', imlevel=0):
def
fromMethod
(
meth
,
interface
=
''
):
func
=
meth
.
im_func
return
fromFunction
(
func
,
interface
,
imlevel
=
1
)
lib/python/Interface/Verify.py
View file @
4ba09362
lib/python/Interface/_Element.py
View file @
4ba09362
...
...
@@ -14,7 +14,7 @@
"""
Revision information:
$Id: _Element.py,v 1.
2 2002/06/07 17:18:29 jim
Exp $
$Id: _Element.py,v 1.
3 2002/08/14 21:35:32 mj
Exp $
"""
from
_object
import
object
...
...
@@ -57,4 +57,3 @@ class Element(object):
def
setTaggedValue
(
self
,
tag
,
value
):
""" Associates 'value' with 'key'. """
self
.
__tagged_values
[
tag
]
=
value
lib/python/Interface/_Interface.py
View file @
4ba09362
...
...
@@ -14,7 +14,7 @@
"""Interface object implementation
Revision information:
$Id: _Interface.py,v 1.
4 2002/06/11 15:34:28 chrism
Exp $
$Id: _Interface.py,v 1.
5 2002/08/14 21:35:32 mj
Exp $
"""
from
_InterfaceClass
import
Interface
as
InterfaceClass
...
...
lib/python/Interface/_InterfaceClass.py
View file @
4ba09362
...
...
@@ -14,7 +14,7 @@
"""Interface object implementation
Revision information:
$Id: _InterfaceClass.py,v 1.
5 2002/06/11 15:34:28 chrism
Exp $
$Id: _InterfaceClass.py,v 1.
6 2002/08/14 21:35:32 mj
Exp $
"""
from
inspect
import
currentframe
...
...
lib/python/Interface/__init__.py
View file @
4ba09362
...
...
@@ -64,10 +64,9 @@ There is also a script, pyself.py in the package that can be used to
create interface skeletins. Run it without arguments to get documentation.
Revision information:
$Id: __init__.py,v 1.
8 2002/06/11 15:34:28 chrism
Exp $
$Id: __init__.py,v 1.
9 2002/08/14 21:35:32 mj
Exp $
"""
from
_Interface
import
Interface
from
Attribute
import
Attribute
Base
=
Interface
# XXX We need to stamp out Base usage
lib/python/Interface/_object.py
View file @
4ba09362
...
...
@@ -13,7 +13,7 @@
##############################################################################
"""Provide a halfway believable rendition of Python 2.2's object
$Id: _object.py,v 1.
3 2002/06/10 20:15:14 shane
Exp $
$Id: _object.py,v 1.
4 2002/08/14 21:35:32 mj
Exp $
"""
class
_x
:
...
...
@@ -56,4 +56,3 @@ else:
ClassTypes
+=
(
type
(
_x
),
)
MethodTypes
+=
(
type
(
_x
.
m
),
)
lib/python/Interface/pprint.py
View file @
4ba09362
""" Pretty-Print an Interface object as structured text (Yum) """
import
string
...
...
@@ -80,10 +79,3 @@ def interface_as_stx(I, munge=0):
outp
=
outp
+
justify_and_indent
(
trim_doc_string
(
item
),
level
,
munge
)
+
"
\
n
\
n
"
return
outp
lib/python/Interface/pyskel.py
View file @
4ba09362
...
...
@@ -25,7 +25,7 @@ Example:
The dotted name is the module name and interface object name connected
with a dot.
Revision information: $Id: pyskel.py,v 1.
5 2002/07/09 12:14:42 gvanrossum
Exp $
Revision information: $Id: pyskel.py,v 1.
6 2002/08/14 21:35:32 mj
Exp $
"""
import
sys
,
os
,
re
...
...
@@ -187,5 +187,3 @@ def getAttributesInOrder(interface, order):
if
__name__
==
'__main__'
:
for
a
in
sys
.
argv
[
1
:]:
skel
(
a
)
lib/python/Interface/tests/IFoo.py
View file @
4ba09362
lib/python/Interface/tests/__init__.py
View file @
4ba09362
lib/python/Interface/tests/dummy.py
View file @
4ba09362
lib/python/Interface/tests/testDocument.py
View file @
4ba09362
...
...
@@ -14,7 +14,7 @@
"""
Revision information:
$Id: testDocument.py,v 1.
4 2002/06/11 15:34:28 chrism
Exp $
$Id: testDocument.py,v 1.
5 2002/08/14 21:35:33 mj
Exp $
"""
from
unittest
import
TestCase
,
TestSuite
,
main
,
makeSuite
...
...
lib/python/Interface/tests/testImplements.py
View file @
4ba09362
lib/python/Interface/tests/testInterface.py
View file @
4ba09362
...
...
@@ -144,4 +144,3 @@ def main():
if
__name__
==
"__main__"
:
main
()
lib/python/Interface/tests/testVerify.py
View file @
4ba09362
...
...
@@ -14,7 +14,7 @@
"""
Revision information:
$Id: testVerify.py,v 1.
2 2002/06/07 17:18:29 jim
Exp $
$Id: testVerify.py,v 1.
3 2002/08/14 21:35:33 mj
Exp $
"""
from
__future__
import
nested_scopes
...
...
lib/python/Interface/tests/testVisitImplements.py
View file @
4ba09362
lib/python/Interface/tests/unitfixtures.py
View file @
4ba09362
lib/python/ZServer/DebugLogger.py
View file @
4ba09362
...
...
@@ -64,4 +64,3 @@ class DebugLogger:
def
log
(
*
args
):
pass
lib/python/ZServer/FCGIServer.py
View file @
4ba09362
...
...
@@ -764,6 +764,3 @@ class FCGIPipe:
#----------------------------------------------------------------------
lib/python/ZServer/FTPRequest.py
View file @
4ba09362
...
...
@@ -122,10 +122,3 @@ class FTPRequest(HTTPRequest):
if
os
.
sep
!=
'/'
:
path
=
path
.
replace
(
os
.
sep
,
'/'
)
return
path
lib/python/ZServer/FTPResponse.py
View file @
4ba09362
lib/python/ZServer/FTPServer.py
View file @
4ba09362
lib/python/ZServer/HTTPResponse.py
View file @
4ba09362
...
...
@@ -308,4 +308,3 @@ def make_response(request, headers):
request
.
header
).
lower
()
response
.
_server_version
=
request
.
channel
.
server
.
SERVER_IDENT
return
response
lib/python/ZServer/HTTPServer.py
View file @
4ba09362
...
...
@@ -372,4 +372,3 @@ class zhttp_server(http_server):
# override asyncore limits for nt's listen queue size
self
.
accepting
=
1
return
self
.
socket
.
listen
(
num
)
lib/python/ZServer/ICPServer.py
View file @
4ba09362
lib/python/ZServer/PCGIServer.py
View file @
4ba09362
lib/python/ZServer/Producers.py
View file @
4ba09362
...
...
@@ -102,4 +102,3 @@ class file_close_producer:
file
.
close
()
self
.
file
=
None
return
''
lib/python/ZServer/PubCore/ZEvent.py
View file @
4ba09362
...
...
@@ -35,4 +35,3 @@ def Wakeup(thunk=None):
del
socket_map
[
the_trigger
.
_fileno
]
the_trigger
=
simple_trigger
()
# adds itself back into socket_map
the_trigger
.
pull_trigger
(
thunk
)
lib/python/ZServer/PubCore/ZRendezvous.py
View file @
4ba09362
lib/python/ZServer/PubCore/ZServerPublisher.py
View file @
4ba09362
lib/python/ZServer/PubCore/__init__.py
View file @
4ba09362
lib/python/ZServer/WebDAVSrcHandler.py
View file @
4ba09362
lib/python/ZServer/ZService.py
View file @
4ba09362
lib/python/ZServer/__init__.py
View file @
4ba09362
pcgi/MrCreosote/creosote.py
View file @
4ba09362
...
...
@@ -63,4 +63,3 @@ if __name__ == '__main__':
else
:
from
string
import
joinfields
spew
(
joinfields
(
sys
.
argv
[
1
:],
' '
))
pcgi/Util/killpcgi.py
View file @
4ba09362
pcgi/Util/pcgifile.py
View file @
4ba09362
pcgi/pcgi_publisher.py
View file @
4ba09362
utilities/ExtensionBuilder.py
View file @
4ba09362
utilities/FS.py
View file @
4ba09362
...
...
@@ -343,4 +343,3 @@ def fixpickle(p, oid):
p
=
newp
.
getvalue
()
return
p
utilities/bbb.py
View file @
4ba09362
...
...
@@ -330,4 +330,3 @@ def main(argv):
forgive
=
1
,
export
=
export
)
if
__name__
==
'__main__'
:
main
(
sys
.
argv
[
1
:])
utilities/check_catalog.py
View file @
4ba09362
...
...
@@ -15,7 +15,7 @@
""" script to consistency of a ZCatalog """
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
import
Zope
import
os
,
sys
,
re
,
getopt
...
...
utilities/fixbbbts.py
View file @
4ba09362
...
...
@@ -89,4 +89,3 @@ def main():
pos
=
pos
+
tlen
if
__name__
==
'__main__'
:
main
()
utilities/load_site.py
View file @
4ba09362
...
...
@@ -300,5 +300,3 @@ upload_jpg=upload_gif
upload_png
=
upload_gif
if
__name__
==
'__main__'
:
main
()
utilities/requestprofiler.py
View file @
4ba09362
...
...
@@ -15,7 +15,7 @@
""" Request log profiler script """
__version__
=
'$Revision: 1.1
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
7
$'
[
11
:
-
2
]
import
string
,
sys
,
time
,
getopt
,
tempfile
,
math
,
cPickle
try
:
import
gzip
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment