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
6af55f43
Commit
6af55f43
authored
Apr 14, 2004
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
death to zLOG
parent
c5bea2cf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
14 deletions
+11
-14
lib/python/Products/ZCatalog/Catalog.py
lib/python/Products/ZCatalog/Catalog.py
+8
-8
lib/python/Products/ZCatalog/CatalogBrains.py
lib/python/Products/ZCatalog/CatalogBrains.py
+0
-2
lib/python/Products/ZCatalog/ZCatalogIndexes.py
lib/python/Products/ZCatalog/ZCatalogIndexes.py
+3
-3
lib/python/Products/ZCatalog/regressiontests/regressionCatalog.py
...on/Products/ZCatalog/regressiontests/regressionCatalog.py
+0
-1
No files found.
lib/python/Products/ZCatalog/Catalog.py
View file @
6af55f43
...
...
@@ -17,7 +17,7 @@ import ExtensionClass
from
MultiMapping
import
MultiMapping
import
Record
from
Missing
import
MV
from
zLOG
import
LOG
,
ERROR
import
logging
from
Lazy
import
LazyMap
,
LazyFilter
,
LazyCat
,
LazyValues
from
CatalogBrains
import
AbstractCatalogBrain
,
NoBrainer
...
...
@@ -30,6 +30,8 @@ import time, sys, types
from
bisect
import
bisect
from
random
import
randint
LOG
=
logging
.
getLogger
(
'ZCatalog'
)
try
:
from
DocumentTemplate.cDocumentTemplate
import
safe_callable
except
ImportError
:
...
...
@@ -231,8 +233,7 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
_index
=
names
.
index
(
name
)
if
not
self
.
schema
.
has_key
(
name
):
LOG
(
'Catalog'
,
ERROR
,
(
'delColumn attempted to delete '
'nonexistent column %s.'
%
str
(
name
)))
LOG
.
error
(
'delColumn attempted to delete nonexistent column %s.'
%
str
(
name
))
return
names
.
remove
(
name
)
...
...
@@ -390,8 +391,7 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
blah
=
x
.
index_object
(
index
,
object
,
threshold
)
total
=
total
+
blah
else
:
LOG
(
'Catalog'
,
ERROR
,
(
'catalogObject was passed '
'bad index object %s.'
%
str
(
x
)))
LOG
.
error
(
'catalogObject was passed bad index object %s.'
%
str
(
x
))
return
total
...
...
@@ -424,9 +424,9 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
try
:
self
.
__len__
.
change
(
-
1
)
except
AttributeError
:
pass
# No managed length
else
:
LOG
(
'Catalog'
,
ERROR
,
(
'uncatalogObject unsuccessfully '
'attempted to uncatalog an object '
'with a uid of %s. '
%
str
(
uid
)
))
LOG
.
error
(
'uncatalogObject unsuccessfully '
'attempted to uncatalog an object '
'with a uid of %s. '
%
str
(
uid
))
def
uniqueValuesFor
(
self
,
name
):
...
...
lib/python/Products/ZCatalog/CatalogBrains.py
View file @
6af55f43
...
...
@@ -14,8 +14,6 @@
__version__
=
"$Revision$"
[
11
:
-
2
]
import
Acquisition
,
Record
import
zLOG
import
sys
class
AbstractCatalogBrain
(
Record
.
Record
,
Acquisition
.
Implicit
):
"""Abstract base brain that handles looking up attributes as
...
...
lib/python/Products/ZCatalog/ZCatalogIndexes.py
View file @
6af55f43
...
...
@@ -11,7 +11,7 @@
#
##############################################################################
"""$Id: ZCatalogIndexes.py,v 1.
8 2002/08/14 22:25:15 mj
Exp $
"""$Id: ZCatalogIndexes.py,v 1.
9 2004/04/14 08:20:23 andreasjung
Exp $
"""
from
Globals
import
DTMLFile
,
InitializeClass
...
...
@@ -24,11 +24,11 @@ from OFS.History import Historical
from
OFS.SimpleItem
import
SimpleItem
from
OFS.ObjectManager
import
ObjectManager
,
IFAwareObjectManager
import
os
,
sys
,
time
import
os
,
sys
,
time
from
Acquisition
import
Implicit
from
Persistence
import
Persistent
from
zLOG
import
LOG
,
ERROR
from
Products.PluginIndexes.common.PluggableIndex
import
PluggableIndexInterface
_marker
=
[]
...
...
lib/python/Products/ZCatalog/regressiontests/regressionCatalog.py
View file @
6af55f43
...
...
@@ -24,7 +24,6 @@ import Persistence
import
ExtensionClass
from
Testing
import
dispatcher
import
keywords
from
zLOG
import
LOG
import
getopt
,
whrandom
,
time
,
string
,
mailbox
,
rfc822
...
...
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