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
f90d18e7
Commit
f90d18e7
authored
Aug 14, 2002
by
Martijn Pieters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up indentation and trailing whitespace.
parent
023c1df8
Changes
70
Show whitespace changes
Inline
Side-by-side
Showing
70 changed files
with
768 additions
and
832 deletions
+768
-832
lib/python/OFS/tests/testCopySupport.py
lib/python/OFS/tests/testCopySupport.py
+3
-4
lib/python/OFS/tests/testRanges.py
lib/python/OFS/tests/testRanges.py
+13
-13
lib/python/OFS/tests/testTraverse.py
lib/python/OFS/tests/testTraverse.py
+3
-4
lib/python/RestrictedPython/Eval.py
lib/python/RestrictedPython/Eval.py
+6
-7
lib/python/RestrictedPython/Guards.py
lib/python/RestrictedPython/Guards.py
+5
-9
lib/python/RestrictedPython/Limits.py
lib/python/RestrictedPython/Limits.py
+3
-4
lib/python/RestrictedPython/MutatingWalker.py
lib/python/RestrictedPython/MutatingWalker.py
+3
-4
lib/python/RestrictedPython/PrintCollector.py
lib/python/RestrictedPython/PrintCollector.py
+3
-3
lib/python/RestrictedPython/RCompile.py
lib/python/RestrictedPython/RCompile.py
+3
-4
lib/python/RestrictedPython/RCompile_2_1.py
lib/python/RestrictedPython/RCompile_2_1.py
+33
-33
lib/python/RestrictedPython/RestrictionMutator.py
lib/python/RestrictedPython/RestrictionMutator.py
+3
-4
lib/python/RestrictedPython/SafeMapping.py
lib/python/RestrictedPython/SafeMapping.py
+4
-4
lib/python/RestrictedPython/SelectCompiler.py
lib/python/RestrictedPython/SelectCompiler.py
+3
-5
lib/python/RestrictedPython/Utilities.py
lib/python/RestrictedPython/Utilities.py
+4
-4
lib/python/RestrictedPython/__init__.py
lib/python/RestrictedPython/__init__.py
+3
-4
lib/python/RestrictedPython/compiler_2_1/__init__.py
lib/python/RestrictedPython/compiler_2_1/__init__.py
+0
-1
lib/python/RestrictedPython/compiler_2_1/ast.py
lib/python/RestrictedPython/compiler_2_1/ast.py
+1
-1
lib/python/RestrictedPython/compiler_2_1/future.py
lib/python/RestrictedPython/compiler_2_1/future.py
+1
-2
lib/python/RestrictedPython/compiler_2_1/misc.py
lib/python/RestrictedPython/compiler_2_1/misc.py
+0
-1
lib/python/RestrictedPython/compiler_2_1/pyassem.py
lib/python/RestrictedPython/compiler_2_1/pyassem.py
+1
-1
lib/python/RestrictedPython/compiler_2_1/pycodegen.py
lib/python/RestrictedPython/compiler_2_1/pycodegen.py
+16
-16
lib/python/RestrictedPython/compiler_2_1/symbols.py
lib/python/RestrictedPython/compiler_2_1/symbols.py
+7
-7
lib/python/RestrictedPython/compiler_2_1/transformer.py
lib/python/RestrictedPython/compiler_2_1/transformer.py
+9
-9
lib/python/RestrictedPython/compiler_2_1/visitor.py
lib/python/RestrictedPython/compiler_2_1/visitor.py
+1
-1
lib/python/RestrictedPython/tests/restricted_module.py
lib/python/RestrictedPython/tests/restricted_module.py
+2
-3
lib/python/RestrictedPython/tests/security_in_syntax.py
lib/python/RestrictedPython/tests/security_in_syntax.py
+0
-1
lib/python/RestrictedPython/tests/testRestrictions.py
lib/python/RestrictedPython/tests/testRestrictions.py
+1
-2
lib/python/SearchIndex/GlobbingLexicon.py
lib/python/SearchIndex/GlobbingLexicon.py
+9
-10
lib/python/SearchIndex/Index.py
lib/python/SearchIndex/Index.py
+9
-26
lib/python/SearchIndex/Lexicon.py
lib/python/SearchIndex/Lexicon.py
+9
-13
lib/python/SearchIndex/PluggableIndex.py
lib/python/SearchIndex/PluggableIndex.py
+3
-3
lib/python/SearchIndex/ResultList.py
lib/python/SearchIndex/ResultList.py
+7
-8
lib/python/SearchIndex/TextIndex.py
lib/python/SearchIndex/TextIndex.py
+39
-39
lib/python/SearchIndex/UnIndex.py
lib/python/SearchIndex/UnIndex.py
+16
-17
lib/python/SearchIndex/UnKeywordIndex.py
lib/python/SearchIndex/UnKeywordIndex.py
+4
-4
lib/python/SearchIndex/UnTextIndex.py
lib/python/SearchIndex/UnTextIndex.py
+37
-37
lib/python/SearchIndex/__init__.py
lib/python/SearchIndex/__init__.py
+4
-5
lib/python/SearchIndex/randid.py
lib/python/SearchIndex/randid.py
+2
-2
lib/python/SearchIndex/tests/testSplitter.py
lib/python/SearchIndex/tests/testSplitter.py
+25
-25
lib/python/SearchIndex/tests/testUnKeywordIndex.py
lib/python/SearchIndex/tests/testUnKeywordIndex.py
+8
-8
lib/python/SearchIndex/tests/testUnTextIndex.py
lib/python/SearchIndex/tests/testUnTextIndex.py
+186
-186
lib/python/SearchIndex/tests/test_UnIndex.py
lib/python/SearchIndex/tests/test_UnIndex.py
+12
-12
lib/python/Shared/DC/Scripts/Bindings.py
lib/python/Shared/DC/Scripts/Bindings.py
+5
-8
lib/python/Shared/DC/Scripts/BindingsUI.py
lib/python/Shared/DC/Scripts/BindingsUI.py
+3
-3
lib/python/Shared/DC/Scripts/Script.py
lib/python/Shared/DC/Scripts/Script.py
+2
-3
lib/python/Shared/DC/Scripts/Signature.py
lib/python/Shared/DC/Scripts/Signature.py
+3
-4
lib/python/Shared/DC/Scripts/__init__.py
lib/python/Shared/DC/Scripts/__init__.py
+2
-2
lib/python/Shared/DC/ZRDB/Aqueduct.py
lib/python/Shared/DC/ZRDB/Aqueduct.py
+15
-15
lib/python/Shared/DC/ZRDB/Connection.py
lib/python/Shared/DC/ZRDB/Connection.py
+11
-11
lib/python/Shared/DC/ZRDB/DA.py
lib/python/Shared/DC/ZRDB/DA.py
+20
-21
lib/python/Shared/DC/ZRDB/RDB.py
lib/python/Shared/DC/ZRDB/RDB.py
+12
-12
lib/python/Shared/DC/ZRDB/Results.py
lib/python/Shared/DC/ZRDB/Results.py
+8
-8
lib/python/Shared/DC/ZRDB/Search.py
lib/python/Shared/DC/ZRDB/Search.py
+24
-35
lib/python/Shared/DC/ZRDB/THUNK.py
lib/python/Shared/DC/ZRDB/THUNK.py
+4
-4
lib/python/Shared/DC/ZRDB/TM.py
lib/python/Shared/DC/ZRDB/TM.py
+4
-4
lib/python/Shared/DC/ZRDB/__init__.py
lib/python/Shared/DC/ZRDB/__init__.py
+2
-2
lib/python/Shared/DC/ZRDB/dbi_db.py
lib/python/Shared/DC/ZRDB/dbi_db.py
+10
-10
lib/python/Shared/DC/ZRDB/sqlgroup.py
lib/python/Shared/DC/ZRDB/sqlgroup.py
+10
-10
lib/python/Shared/DC/ZRDB/sqltest.py
lib/python/Shared/DC/ZRDB/sqltest.py
+35
-35
lib/python/Shared/DC/ZRDB/sqlvar.py
lib/python/Shared/DC/ZRDB/sqlvar.py
+9
-9
lib/python/Shared/DC/__init__.py
lib/python/Shared/DC/__init__.py
+4
-4
lib/python/Shared/DC/xml/__init__.py
lib/python/Shared/DC/xml/__init__.py
+3
-3
lib/python/Shared/DC/xml/ppml.py
lib/python/Shared/DC/xml/ppml.py
+18
-19
lib/python/Shared/DC/xml/pyexpat/__init__.py
lib/python/Shared/DC/xml/pyexpat/__init__.py
+2
-2
lib/python/Shared/DC/xml/pyexpat/_checkversion.py
lib/python/Shared/DC/xml/pyexpat/_checkversion.py
+3
-3
lib/python/Shared/DC/xml/pyexpat/pyexpat.py
lib/python/Shared/DC/xml/pyexpat/pyexpat.py
+2
-2
lib/python/Shared/DC/xml/pyexpat/pyexpattest.py
lib/python/Shared/DC/xml/pyexpat/pyexpattest.py
+40
-40
lib/python/Shared/DC/xml/xmllib.py
lib/python/Shared/DC/xml/xmllib.py
+2
-2
lib/python/Shared/DC/xml/xyap.py
lib/python/Shared/DC/xml/xyap.py
+10
-11
lib/python/Shared/__init__.py
lib/python/Shared/__init__.py
+4
-4
No files found.
lib/python/OFS/tests/testCopySupport.py
View file @
f90d18e7
...
@@ -230,4 +230,3 @@ def main():
...
@@ -230,4 +230,3 @@ def main():
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
main
()
main
()
lib/python/OFS/tests/testRanges.py
View file @
f90d18e7
lib/python/OFS/tests/testTraverse.py
View file @
f90d18e7
...
@@ -137,4 +137,3 @@ def main():
...
@@ -137,4 +137,3 @@ def main():
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
main
()
main
()
lib/python/RestrictedPython/Eval.py
View file @
f90d18e7
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
##############################################################################
##############################################################################
"""Restricted Python Expressions
"""Restricted Python Expressions
"""
"""
__rcs_id__
=
'$Id: Eval.py,v 1.
4 2001/11/28 15:51:11 matt
Exp $'
__rcs_id__
=
'$Id: Eval.py,v 1.
5 2002/08/14 21:44:31 mj
Exp $'
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
from
string
import
translate
,
strip
from
string
import
translate
,
strip
import
string
import
string
...
@@ -119,4 +119,3 @@ class RestrictionCapableEval:
...
@@ -119,4 +119,3 @@ class RestrictionCapableEval:
def
__call__
(
self
,
**
kw
):
def
__call__
(
self
,
**
kw
):
return
self
.
eval
(
kw
)
return
self
.
eval
(
kw
)
lib/python/RestrictedPython/Guards.py
View file @
f90d18e7
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
##############################################################################
##############################################################################
from
__future__
import
nested_scopes
from
__future__
import
nested_scopes
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
import
new
import
new
...
@@ -110,7 +110,3 @@ safe_builtins['setattr'] = guarded_setattr
...
@@ -110,7 +110,3 @@ safe_builtins['setattr'] = guarded_setattr
def
guarded_delattr
(
object
,
name
):
def
guarded_delattr
(
object
,
name
):
delattr
(
full_write_guard
(
object
),
name
)
delattr
(
full_write_guard
(
object
),
name
)
safe_builtins
[
'delattr'
]
=
guarded_delattr
safe_builtins
[
'delattr'
]
=
guarded_delattr
lib/python/RestrictedPython/Limits.py
View file @
f90d18e7
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#
#
##############################################################################
##############################################################################
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
limited_builtins
=
{}
limited_builtins
=
{}
...
@@ -44,4 +44,3 @@ def limited_tuple(seq):
...
@@ -44,4 +44,3 @@ def limited_tuple(seq):
raise
TypeError
,
'cannot convert string to tuple'
raise
TypeError
,
'cannot convert string to tuple'
return
tuple
(
seq
)
return
tuple
(
seq
)
limited_builtins
[
'tuple'
]
=
limited_tuple
limited_builtins
[
'tuple'
]
=
limited_tuple
lib/python/RestrictedPython/MutatingWalker.py
View file @
f90d18e7
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#
#
##############################################################################
##############################################################################
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
from
SelectCompiler
import
ast
from
SelectCompiler
import
ast
...
@@ -72,4 +72,3 @@ class MutatingWalker:
...
@@ -72,4 +72,3 @@ class MutatingWalker:
def
walk
(
tree
,
visitor
):
def
walk
(
tree
,
visitor
):
return
MutatingWalker
(
visitor
).
dispatchNode
(
tree
)
return
MutatingWalker
(
visitor
).
dispatchNode
(
tree
)
lib/python/RestrictedPython/PrintCollector.py
View file @
f90d18e7
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#
#
##############################################################################
##############################################################################
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
class
PrintCollector
:
class
PrintCollector
:
'''Collect written text, and return it when called.'''
'''Collect written text, and return it when called.'''
...
...
lib/python/RestrictedPython/RCompile.py
View file @
f90d18e7
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
Python standard library.
Python standard library.
"""
"""
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
from
compiler
import
ast
,
parse
,
misc
,
syntax
from
compiler
import
ast
,
parse
,
misc
,
syntax
...
@@ -146,4 +146,3 @@ def compile_restricted(source, filename, mode):
...
@@ -146,4 +146,3 @@ def compile_restricted(source, filename, mode):
"'eval' or 'single'"
)
"'eval' or 'single'"
)
gen
.
compile
()
gen
.
compile
()
return
gen
.
getCode
()
return
gen
.
getCode
()
lib/python/RestrictedPython/RCompile_2_1.py
View file @
f90d18e7
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#
#
##############################################################################
##############################################################################
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
import
sys
import
sys
from
traceback
import
format_exception_only
from
traceback
import
format_exception_only
...
...
lib/python/RestrictedPython/RestrictionMutator.py
View file @
f90d18e7
...
@@ -15,7 +15,7 @@ RestrictionMutator modifies a tree produced by
...
@@ -15,7 +15,7 @@ RestrictionMutator modifies a tree produced by
compiler.transformer.Transformer, restricting and enhancing the
compiler.transformer.Transformer, restricting and enhancing the
code in various ways before sending it to pycodegen.
code in various ways before sending it to pycodegen.
'''
'''
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
10
$'
[
11
:
-
2
]
from
SelectCompiler
import
ast
,
parse
,
OP_ASSIGN
,
OP_DELETE
,
OP_APPLY
from
SelectCompiler
import
ast
,
parse
,
OP_ASSIGN
,
OP_DELETE
,
OP_APPLY
...
@@ -271,4 +271,3 @@ class RestrictionMutator:
...
@@ -271,4 +271,3 @@ class RestrictionMutator:
def
visitAugAssign
(
self
,
node
,
walker
):
def
visitAugAssign
(
self
,
node
,
walker
):
node
.
node
.
in_aug_assign
=
1
node
.
node
.
in_aug_assign
=
1
return
walker
.
defaultVisitNode
(
node
)
return
walker
.
defaultVisitNode
(
node
)
lib/python/RestrictedPython/SafeMapping.py
View file @
f90d18e7
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
##############################################################################
##############################################################################
__doc__
=
'''Read-only Mapping class based on MultiMapping
__doc__
=
'''Read-only Mapping class based on MultiMapping
$Id: SafeMapping.py,v 1.
2 2001/11/28 15:51:11 matt
Exp $'''
$Id: SafeMapping.py,v 1.
3 2002/08/14 21:44:31 mj
Exp $'''
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
from
MultiMapping
import
MultiMapping
from
MultiMapping
import
MultiMapping
...
...
lib/python/RestrictedPython/SelectCompiler.py
View file @
f90d18e7
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
##############################################################################
##############################################################################
'''
'''
Compiler selector.
Compiler selector.
$Id: SelectCompiler.py,v 1.
3 2001/12/22 16:39:05 Brian
Exp $
$Id: SelectCompiler.py,v 1.
4 2002/08/14 21:44:31 mj
Exp $
'''
'''
import
sys
import
sys
...
@@ -40,5 +40,3 @@ else:
...
@@ -40,5 +40,3 @@ else:
compile_restricted_function
,
\
compile_restricted_function
,
\
compile_restricted_exec
,
\
compile_restricted_exec
,
\
compile_restricted_eval
compile_restricted_eval
lib/python/RestrictedPython/Utilities.py
View file @
f90d18e7
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#
#
##############################################################################
##############################################################################
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
import
string
,
math
,
random
,
whrandom
import
string
,
math
,
random
,
whrandom
import
DocumentTemplate.sequence
import
DocumentTemplate.sequence
...
...
lib/python/RestrictedPython/__init__.py
View file @
f90d18e7
...
@@ -12,9 +12,8 @@
...
@@ -12,9 +12,8 @@
##############################################################################
##############################################################################
'''
'''
RestrictedPython package.
RestrictedPython package.
$Id: __init__.py,v 1.
4 2001/12/21 19:34:47 shane
Exp $
$Id: __init__.py,v 1.
5 2002/08/14 21:44:31 mj
Exp $
'''
'''
from
SelectCompiler
import
*
from
SelectCompiler
import
*
from
PrintCollector
import
PrintCollector
from
PrintCollector
import
PrintCollector
lib/python/RestrictedPython/compiler_2_1/__init__.py
View file @
f90d18e7
...
@@ -21,4 +21,3 @@ compile(filename)
...
@@ -21,4 +21,3 @@ compile(filename)
from
transformer
import
parse
,
parseFile
from
transformer
import
parse
,
parseFile
from
visitor
import
walk
from
visitor
import
walk
from
pycodegen
import
compile
from
pycodegen
import
compile
lib/python/RestrictedPython/compiler_2_1/ast.py
View file @
f90d18e7
lib/python/RestrictedPython/compiler_2_1/future.py
View file @
f90d18e7
...
@@ -76,4 +76,3 @@ if __name__ == "__main__":
...
@@ -76,4 +76,3 @@ if __name__ == "__main__":
walk
(
tree
,
v
)
walk
(
tree
,
v
)
print
v
.
found
print
v
.
found
print
print
lib/python/RestrictedPython/compiler_2_1/misc.py
View file @
f90d18e7
...
@@ -64,4 +64,3 @@ def mangle(name, klass):
...
@@ -64,4 +64,3 @@ def mangle(name, klass):
klass
=
klass
[:
MANGLE_LEN
-
tlen
]
klass
=
klass
[:
MANGLE_LEN
-
tlen
]
return
"_%s%s"
%
(
klass
,
name
)
return
"_%s%s"
%
(
klass
,
name
)
lib/python/RestrictedPython/compiler_2_1/pyassem.py
View file @
f90d18e7
lib/python/RestrictedPython/compiler_2_1/pycodegen.py
View file @
f90d18e7
lib/python/RestrictedPython/compiler_2_1/symbols.py
View file @
f90d18e7
lib/python/RestrictedPython/compiler_2_1/transformer.py
View file @
f90d18e7
lib/python/RestrictedPython/compiler_2_1/visitor.py
View file @
f90d18e7
lib/python/RestrictedPython/tests/restricted_module.py
View file @
f90d18e7
...
@@ -154,4 +154,3 @@ def nested_scopes_1():
...
@@ -154,4 +154,3 @@ def nested_scopes_1():
def
f2
():
def
f2
():
return
a
return
a
return
f1
()
+
f2
()
return
f1
()
+
f2
()
lib/python/RestrictedPython/tests/security_in_syntax.py
View file @
f90d18e7
# These are all supposed to raise a SyntaxError when using
# These are all supposed to raise a SyntaxError when using
# compile_restricted() but not when using compile().
# compile_restricted() but not when using compile().
# Each function in this module is compiled using compile_restricted().
# Each function in this module is compiled using compile_restricted().
...
...
lib/python/RestrictedPython/tests/testRestrictions.py
View file @
f90d18e7
from
string
import
rfind
from
string
import
rfind
import
sys
,
os
import
sys
,
os
...
...
lib/python/SearchIndex/GlobbingLexicon.py
View file @
f90d18e7
...
@@ -243,4 +243,3 @@ class GlobbingLexicon(Lexicon):
...
@@ -243,4 +243,3 @@ class GlobbingLexicon(Lexicon):
result = string.replace(result, '
?
', '
.
')
result = string.replace(result, '
?
', '
.
')
return "%s$" % result
return "%s$" % result
lib/python/SearchIndex/Index.py
View file @
f90d18e7
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
##############################################################################
##############################################################################
"""Simple column indices"""
"""Simple column indices"""
__version__
=
'$Revision: 1.
29
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
30
$'
[
11
:
-
2
]
from
Persistence
import
Persistent
from
Persistence
import
Persistent
from
BTrees.OOBTree
import
OOBTree
from
BTrees.OOBTree
import
OOBTree
...
@@ -244,20 +244,3 @@ class Index(Persistent):
...
@@ -244,20 +244,3 @@ class Index(Persistent):
else
:
return
None
else
:
return
None
return
r
,
(
id
,)
return
r
,
(
id
,)
lib/python/SearchIndex/Lexicon.py
View file @
f90d18e7
...
@@ -200,7 +200,3 @@ stop_words=(
...
@@ -200,7 +200,3 @@ stop_words=(
)
)
stop_word_dict
=
{}
stop_word_dict
=
{}
for
word
in
stop_words
:
stop_word_dict
[
word
]
=
None
for
word
in
stop_words
:
stop_word_dict
[
word
]
=
None
lib/python/SearchIndex/PluggableIndex.py
View file @
f90d18e7
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
##############################################################################
##############################################################################
"""Pluggable Index Base Class """
"""Pluggable Index Base Class """
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
import
Interface
import
Interface
...
...
lib/python/SearchIndex/ResultList.py
View file @
f90d18e7
...
@@ -92,4 +92,3 @@ class ResultList:
...
@@ -92,4 +92,3 @@ class ResultList:
return
self
.
__class__
(
return
self
.
__class__
(
result
,
union
(
self
.
_words
,
x
.
_words
),
self
.
_index
)
result
,
union
(
self
.
_words
,
x
.
_words
),
self
.
_index
)
lib/python/SearchIndex/TextIndex.py
View file @
f90d18e7
...
@@ -130,7 +130,7 @@ Notes on a new text index design
...
@@ -130,7 +130,7 @@ Notes on a new text index design
space.
space.
"""
"""
__version__
=
'$Revision: 1.3
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
1
$'
[
11
:
-
2
]
#XXX I strongly suspect that this is broken, but I'm not going to fix it. :(
#XXX I strongly suspect that this is broken, but I'm not going to fix it. :(
...
...
lib/python/SearchIndex/UnIndex.py
View file @
f90d18e7
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
"""Simple column indices"""
"""Simple column indices"""
__version__
=
'$Revision: 1.3
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
1
$'
[
11
:
-
2
]
from
Globals
import
Persistent
from
Globals
import
Persistent
from
Acquisition
import
Implicit
from
Acquisition
import
Implicit
...
@@ -387,4 +387,3 @@ class UnIndex(Persistent, Implicit):
...
@@ -387,4 +387,3 @@ class UnIndex(Persistent, Implicit):
v
=
IISet
((
v
,))
v
=
IISet
((
v
,))
items
.
append
((
k
,
v
))
items
.
append
((
k
,
v
))
return
items
return
items
lib/python/SearchIndex/UnKeywordIndex.py
View file @
f90d18e7
lib/python/SearchIndex/UnTextIndex.py
View file @
f90d18e7
...
@@ -19,7 +19,7 @@ undo information so that objects can be unindexed when the old value
...
@@ -19,7 +19,7 @@ undo information so that objects can be unindexed when the old value
is no longer known.
is no longer known.
"""
"""
__version__
=
'$Revision: 1.5
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.5
3
$'
[
11
:
-
2
]
import
string
,
re
import
string
,
re
...
...
lib/python/SearchIndex/__init__.py
View file @
f90d18e7
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
__doc__
=
'''Collected utilities to support database indexing.
__doc__
=
'''Collected utilities to support database indexing.
$Id: __init__.py,v 1.
9 2001/11/28 15:51:11 matt
Exp $'''
$Id: __init__.py,v 1.
10 2002/08/14 21:46:24 mj
Exp $'''
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
10
$'
[
11
:
-
2
]
import
warnings
import
warnings
warnings
.
warn
(
"The usage of the SearchIndex package is deprecated since
\
warnings
.
warn
(
"The usage of the SearchIndex package is deprecated since
\
Zope 2.4.
\
n
\
Zope 2.4.
\
n
\
...
@@ -23,4 +23,3 @@ and will go away in a future release.\n\
...
@@ -23,4 +23,3 @@ and will go away in a future release.\n\
\
n
\
\
n
\
Please use instead the re-factored modules in Products/PluginIndexes.
\
n
\
Please use instead the re-factored modules in Products/PluginIndexes.
\
n
\
"
,
DeprecationWarning
)
"
,
DeprecationWarning
)
lib/python/SearchIndex/randid.py
View file @
f90d18e7
lib/python/SearchIndex/tests/testSplitter.py
View file @
f90d18e7
lib/python/SearchIndex/tests/testUnKeywordIndex.py
View file @
f90d18e7
lib/python/SearchIndex/tests/testUnTextIndex.py
View file @
f90d18e7
lib/python/SearchIndex/tests/test_UnIndex.py
View file @
f90d18e7
lib/python/Shared/DC/Scripts/Bindings.py
View file @
f90d18e7
...
@@ -281,6 +281,3 @@ class Bindings:
...
@@ -281,6 +281,3 @@ class Bindings:
exec
bindcode
exec
bindcode
bound_data
=
bound_data
[
0
]
bound_data
=
bound_data
[
0
]
return
self
.
_exec
(
bound_data
,
args
,
kw
)
return
self
.
_exec
(
bound_data
,
args
,
kw
)
lib/python/Shared/DC/Scripts/BindingsUI.py
View file @
f90d18e7
lib/python/Shared/DC/Scripts/Script.py
View file @
f90d18e7
...
@@ -54,4 +54,3 @@ class Script(SimpleItem, BindingsUI):
...
@@ -54,4 +54,3 @@ class Script(SimpleItem, BindingsUI):
raise
"Redirect"
,
"%s?%s"
%
(
REQUEST
[
'URL1'
],
join
(
vv
,
'&'
))
raise
"Redirect"
,
"%s?%s"
%
(
REQUEST
[
'URL1'
],
join
(
vv
,
'&'
))
from
Signature
import
_setFuncSignature
from
Signature
import
_setFuncSignature
lib/python/Shared/DC/Scripts/Signature.py
View file @
f90d18e7
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
This provides support for simulating function signatures
This provides support for simulating function signatures
"""
"""
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
class
FuncCode
:
class
FuncCode
:
...
@@ -42,4 +42,3 @@ def _setFuncSignature(self, defaults=None, varnames=(), argcount=-1):
...
@@ -42,4 +42,3 @@ def _setFuncSignature(self, defaults=None, varnames=(), argcount=-1):
code
=
FuncCode
(
varnames
,
argcount
)
code
=
FuncCode
(
varnames
,
argcount
)
if
self
.
func_code
!=
code
:
if
self
.
func_code
!=
code
:
self
.
func_code
=
code
self
.
func_code
=
code
lib/python/Shared/DC/Scripts/__init__.py
View file @
f90d18e7
lib/python/Shared/DC/ZRDB/Aqueduct.py
View file @
f90d18e7
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
##############################################################################
##############################################################################
__doc__
=
'''Shared classes and functions
__doc__
=
'''Shared classes and functions
$Id: Aqueduct.py,v 1.5
5 2002/02/15 16:30:29 evan
Exp $'''
$Id: Aqueduct.py,v 1.5
6 2002/08/14 21:50:59 mj
Exp $'''
__version__
=
'$Revision: 1.5
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.5
6
$'
[
11
:
-
2
]
import
Globals
,
os
import
Globals
,
os
from
Globals
import
Persistent
from
Globals
import
Persistent
...
...
lib/python/Shared/DC/ZRDB/Connection.py
View file @
f90d18e7
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
##############################################################################
##############################################################################
__doc__
=
'''Generic Database Connection Support
__doc__
=
'''Generic Database Connection Support
$Id: Connection.py,v 1.3
4 2001/11/28 15:51:13 matt
Exp $'''
$Id: Connection.py,v 1.3
5 2002/08/14 21:50:59 mj
Exp $'''
__version__
=
'$Revision: 1.3
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
5
$'
[
11
:
-
2
]
import
Globals
,
OFS
.
SimpleItem
,
AccessControl
.
Role
,
Acquisition
,
sys
import
Globals
,
OFS
.
SimpleItem
,
AccessControl
.
Role
,
Acquisition
,
sys
from
DateTime
import
DateTime
from
DateTime
import
DateTime
...
...
lib/python/Shared/DC/ZRDB/DA.py
View file @
f90d18e7
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
__doc__
=
'''Generic Database adapter'''
__doc__
=
'''Generic Database adapter'''
__version__
=
'$Revision: 1.10
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.10
5
$'
[
11
:
-
2
]
import
OFS.SimpleItem
,
Aqueduct
,
RDB
,
re
import
OFS.SimpleItem
,
Aqueduct
,
RDB
,
re
import
DocumentTemplate
,
marshal
,
md5
,
base64
,
Acquisition
,
os
import
DocumentTemplate
,
marshal
,
md5
,
base64
,
Acquisition
,
os
...
@@ -547,4 +547,3 @@ class Traverse(ExtensionClass.Base):
...
@@ -547,4 +547,3 @@ class Traverse(ExtensionClass.Base):
r
=
self
.
__dict__
[
'_r'
]
r
=
self
.
__dict__
[
'_r'
]
if
hasattr
(
r
,
name
):
return
getattr
(
r
,
name
)
if
hasattr
(
r
,
name
):
return
getattr
(
r
,
name
)
return
getattr
(
self
.
__dict__
[
'_da'
],
name
)
return
getattr
(
self
.
__dict__
[
'_da'
],
name
)
lib/python/Shared/DC/ZRDB/RDB.py
View file @
f90d18e7
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
__doc__
=
'''Class for reading RDB files
__doc__
=
'''Class for reading RDB files
$Id: RDB.py,v 1.3
2 2001/11/28 15:51:13 matt
Exp $'''
$Id: RDB.py,v 1.3
3 2002/08/14 21:50:59 mj
Exp $'''
__version__
=
'$Revision: 1.3
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
3
$'
[
11
:
-
2
]
from
string
import
split
,
strip
,
lower
,
upper
,
atof
,
atoi
,
atol
,
find
,
join
,
find
from
string
import
split
,
strip
,
lower
,
upper
,
atof
,
atoi
,
atol
,
find
,
join
,
find
import
DateTime
,
re
import
DateTime
,
re
...
...
lib/python/Shared/DC/ZRDB/Results.py
View file @
f90d18e7
lib/python/Shared/DC/ZRDB/Search.py
View file @
f90d18e7
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
##############################################################################
##############################################################################
__doc__
=
'''Search Interface Wizard
__doc__
=
'''Search Interface Wizard
$Id: Search.py,v 1.
19 2002/07/19 18:24:23 efge
Exp $'''
$Id: Search.py,v 1.
20 2002/08/14 21:50:59 mj
Exp $'''
__version__
=
'$Revision: 1.
19
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
20
$'
[
11
:
-
2
]
from
Globals
import
DTMLFile
from
Globals
import
DTMLFile
from
Aqueduct
import
custom_default_report
,
custom_default_zpt_report
,
nicify
,
Args
from
Aqueduct
import
custom_default_report
,
custom_default_zpt_report
,
nicify
,
Args
...
@@ -252,14 +252,3 @@ def default_input_zpt_form(arguments,action='query',
...
@@ -252,14 +252,3 @@ def default_input_zpt_form(arguments,action='query',
'</body></html>
\
n
'
'</body></html>
\
n
'
%
(
tabs
,
action
)
%
(
tabs
,
action
)
)
)
lib/python/Shared/DC/ZRDB/THUNK.py
View file @
f90d18e7
lib/python/Shared/DC/ZRDB/TM.py
View file @
f90d18e7
lib/python/Shared/DC/ZRDB/__init__.py
View file @
f90d18e7
lib/python/Shared/DC/ZRDB/dbi_db.py
View file @
f90d18e7
...
@@ -13,14 +13,14 @@
...
@@ -13,14 +13,14 @@
__doc__
=
'''short description
__doc__
=
'''short description
$Id: dbi_db.py,v 1.
9 2001/11/28 15:51:13 matt
Exp $'''
$Id: dbi_db.py,v 1.
10 2002/08/14 21:50:59 mj
Exp $'''
# Copyright
# Copyright
#
#
# Copyright 1997 Digital Creations, Inc, 910 Princess Anne
# Copyright 1997 Digital Creations, Inc, 910 Princess Anne
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. All
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. All
# rights reserved.
# rights reserved.
#
#
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
10
$'
[
11
:
-
2
]
import
string
,
sys
import
string
,
sys
from
string
import
strip
,
split
,
find
,
join
from
string
import
strip
,
split
,
find
,
join
...
...
lib/python/Shared/DC/ZRDB/sqlgroup.py
View file @
f90d18e7
...
@@ -69,8 +69,8 @@
...
@@ -69,8 +69,8 @@
# rights reserved.
# rights reserved.
#
#
############################################################################
############################################################################
__rcs_id__
=
'$Id: sqlgroup.py,v 1.
8 2001/11/28 15:51:13 matt
Exp $'
__rcs_id__
=
'$Id: sqlgroup.py,v 1.
9 2002/08/14 21:50:59 mj
Exp $'
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
from
DocumentTemplate.DT_Util
import
parse_params
from
DocumentTemplate.DT_Util
import
parse_params
str
=
__builtins__
[
'str'
]
str
=
__builtins__
[
'str'
]
...
...
lib/python/Shared/DC/ZRDB/sqltest.py
View file @
f90d18e7
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
'and' or 'or' tag, otherwise, no text is inserted.
'and' or 'or' tag, otherwise, no text is inserted.
'''
'''
__rcs_id__
=
'$Id: sqltest.py,v 1.1
7 2002/08/09 17:58:33 jshell
Exp $'
__rcs_id__
=
'$Id: sqltest.py,v 1.1
8 2002/08/14 21:50:59 mj
Exp $'
############################################################################
############################################################################
# Copyright
# Copyright
...
@@ -65,7 +65,7 @@ __rcs_id__='$Id: sqltest.py,v 1.17 2002/08/09 17:58:33 jshell Exp $'
...
@@ -65,7 +65,7 @@ __rcs_id__='$Id: sqltest.py,v 1.17 2002/08/09 17:58:33 jshell Exp $'
# rights reserved.
# rights reserved.
#
#
############################################################################
############################################################################
__version__
=
'$Revision: 1.1
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
8
$'
[
11
:
-
2
]
import
sys
import
sys
from
DocumentTemplate.DT_Util
import
ParseError
,
parse_params
,
name_param
from
DocumentTemplate.DT_Util
import
ParseError
,
parse_params
,
name_param
...
...
lib/python/Shared/DC/ZRDB/sqlvar.py
View file @
f90d18e7
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
however, if x is ommitted or an empty string, then the value
however, if x is ommitted or an empty string, then the value
inserted is 'null'.
inserted is 'null'.
'''
'''
__rcs_id__
=
'$Id: sqlvar.py,v 1.1
2 2001/11/28 15:51:13 matt
Exp $'
__rcs_id__
=
'$Id: sqlvar.py,v 1.1
3 2002/08/14 21:50:59 mj
Exp $'
############################################################################
############################################################################
# Copyright
# Copyright
...
@@ -57,7 +57,7 @@ __rcs_id__='$Id: sqlvar.py,v 1.12 2001/11/28 15:51:13 matt Exp $'
...
@@ -57,7 +57,7 @@ __rcs_id__='$Id: sqlvar.py,v 1.12 2001/11/28 15:51:13 matt Exp $'
# rights reserved.
# rights reserved.
#
#
############################################################################
############################################################################
__version__
=
'$Revision: 1.1
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
3
$'
[
11
:
-
2
]
from
DocumentTemplate.DT_Util
import
ParseError
,
parse_params
,
name_param
from
DocumentTemplate.DT_Util
import
ParseError
,
parse_params
,
name_param
from
string
import
find
,
split
,
join
,
atoi
,
atof
from
string
import
find
,
split
,
join
,
atoi
,
atof
...
...
lib/python/Shared/DC/__init__.py
View file @
f90d18e7
...
@@ -10,5 +10,5 @@
...
@@ -10,5 +10,5 @@
# FOR A PARTICULAR PURPOSE
# FOR A PARTICULAR PURPOSE
#
#
##############################################################################
##############################################################################
__doc__
=
'''$Id: __init__.py,v 1.
8 2001/11/28 15:51:13 matt
Exp $'''
__doc__
=
'''$Id: __init__.py,v 1.
9 2002/08/14 21:50:59 mj
Exp $'''
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
lib/python/Shared/DC/xml/__init__.py
View file @
f90d18e7
...
@@ -10,4 +10,4 @@
...
@@ -10,4 +10,4 @@
# FOR A PARTICULAR PURPOSE
# FOR A PARTICULAR PURPOSE
#
#
##############################################################################
##############################################################################
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
lib/python/Shared/DC/xml/ppml.py
View file @
f90d18e7
...
@@ -787,4 +787,3 @@ def test3():
...
@@ -787,4 +787,3 @@ def test3():
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
test
()
test
()
lib/python/Shared/DC/xml/pyexpat/__init__.py
View file @
f90d18e7
lib/python/Shared/DC/xml/pyexpat/_checkversion.py
View file @
f90d18e7
lib/python/Shared/DC/xml/pyexpat/pyexpat.py
View file @
f90d18e7
lib/python/Shared/DC/xml/pyexpat/pyexpattest.py
View file @
f90d18e7
lib/python/Shared/DC/xml/xmllib.py
View file @
f90d18e7
lib/python/Shared/DC/xml/xyap.py
View file @
f90d18e7
...
@@ -168,4 +168,3 @@ def test():
...
@@ -168,4 +168,3 @@ def test():
if
__name__
==
'__main__'
:
print
test
()
if
__name__
==
'__main__'
:
print
test
()
lib/python/Shared/__init__.py
View file @
f90d18e7
...
@@ -10,5 +10,5 @@
...
@@ -10,5 +10,5 @@
# FOR A PARTICULAR PURPOSE
# FOR A PARTICULAR PURPOSE
#
#
##############################################################################
##############################################################################
__doc__
=
'''$Id: __init__.py,v 1.
6 2001/11/28 15:51:12 matt
Exp $'''
__doc__
=
'''$Id: __init__.py,v 1.
7 2002/08/14 21:50:59 mj
Exp $'''
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
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