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
801ff59a
Commit
801ff59a
authored
Jan 08, 2006
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zLOG -> logging
parent
1185d4ee
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+2
-1
lib/python/OFS/Uninstalled.py
lib/python/OFS/Uninstalled.py
+5
-3
No files found.
lib/python/OFS/ObjectManager.py
View file @
801ff59a
...
@@ -43,7 +43,7 @@ from webdav.Collection import Collection
...
@@ -43,7 +43,7 @@ from webdav.Collection import Collection
from
webdav.Lockable
import
ResourceLockedError
from
webdav.Lockable
import
ResourceLockedError
from
webdav.NullResource
import
NullResource
from
webdav.NullResource
import
NullResource
from
zExceptions
import
BadRequest
from
zExceptions
import
BadRequest
from
zLOG
import
LOG
,
ERROR
from
ZODB.POSException
import
ConflictError
from
ZODB.POSException
import
ConflictError
from
zope.interface
import
implements
from
zope.interface
import
implements
...
@@ -67,6 +67,7 @@ customImporters={
...
@@ -67,6 +67,7 @@ customImporters={
}
}
bad_id
=
re
.
compile
(
r'[^a-zA-Z0-9-_~,.$\
(
\)# @]'
).
search
bad_id
=
re
.
compile
(
r'[^a-zA-Z0-9-_~,.$\
(
\)# @]'
).
search
LOG
=
getLogger
(
'OFS.ObjectManager'
)
def
checkValidId
(
self
,
id
,
allow_dup
=
0
):
def
checkValidId
(
self
,
id
,
allow_dup
=
0
):
# If allow_dup is false, an error will be raised if an object
# If allow_dup is false, an error will be raised if an object
...
...
lib/python/OFS/Uninstalled.py
View file @
801ff59a
...
@@ -17,11 +17,13 @@ import SimpleItem, Globals, Acquisition
...
@@ -17,11 +17,13 @@ import SimpleItem, Globals, Acquisition
from
Acquisition
import
Acquired
from
Acquisition
import
Acquired
import
Persistence
import
Persistence
from
thread
import
allocate_lock
from
thread
import
allocate_lock
from
zLOG
import
LOG
,
WARNING
from
cgi
import
escape
from
cgi
import
escape
from
logging
import
getLogger
broken_klasses
=
{}
broken_klasses
=
{}
broken_klasses_lock
=
allocate_lock
()
broken_klasses_lock
=
allocate_lock
()
LOG
=
getLogger
(
'OFS.Uninstalled'
)
class
BrokenClass
(
Acquisition
.
Explicit
,
SimpleItem
.
Item
,
class
BrokenClass
(
Acquisition
.
Explicit
,
SimpleItem
.
Item
,
Persistence
.
Overridable
):
Persistence
.
Overridable
):
...
@@ -71,7 +73,7 @@ def Broken(self, oid, pair):
...
@@ -71,7 +73,7 @@ def Broken(self, oid, pair):
klass
.
info
=
(
klass
.
info
=
(
'This object
\
'
s class was %s in module %s.'
%
'This object
\
'
s class was %s in module %s.'
%
(
klass
.
__name__
,
klass
.
__module__
))
(
klass
.
__name__
,
klass
.
__module__
))
LOG
(
'ZODB'
,
WARNING
,
'Could not import class %s '
LOG
.
warning
(
'Could not import class %s '
'from module %s'
%
(
`klass.__name__`
,
`klass.__module__`
))
'from module %s'
%
(
`klass.__name__`
,
`klass.__module__`
))
finally
:
finally
:
broken_klasses_lock
.
release
()
broken_klasses_lock
.
release
()
...
...
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