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
4c3767ed
Commit
4c3767ed
authored
Dec 27, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1797: unicode safety
parent
d49cb7ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
lib/python/OFS/SimpleItem.py
lib/python/OFS/SimpleItem.py
+9
-5
No files found.
lib/python/OFS/SimpleItem.py
View file @
4c3767ed
...
@@ -89,8 +89,8 @@ Aqueduct database adapters, etc.
...
@@ -89,8 +89,8 @@ Aqueduct database adapters, etc.
This module can also be used as a simple template for implementing new
This module can also be used as a simple template for implementing new
item types.
item types.
$Id: SimpleItem.py,v 1.8
0 2000/12/11 15:01:57
brian Exp $'''
$Id: SimpleItem.py,v 1.8
1 2000/12/27 16:27:45
brian Exp $'''
__version__
=
'$Revision: 1.8
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.8
1
$'
[
11
:
-
2
]
import
ts_regex
,
sys
,
Globals
,
App
.
Management
,
Acquisition
,
App
.
Undo
import
ts_regex
,
sys
,
Globals
,
App
.
Management
,
Acquisition
,
App
.
Undo
import
AccessControl.Role
,
AccessControl
.
Owned
,
App
.
Common
import
AccessControl.Role
,
AccessControl
.
Owned
,
App
.
Common
...
@@ -238,9 +238,13 @@ class Item(Base, Resource, CopySource, App.Management.Tabs, Traversable,
...
@@ -238,9 +238,13 @@ class Item(Base, Resource, CopySource, App.Management.Tabs, Traversable,
if
not
error_message
:
if
not
error_message
:
if
type
(
error_value
)
is
InstanceType
:
if
type
(
error_value
)
is
InstanceType
:
s
=
str
(
error_value
)
try
:
if
tagSearch
(
s
)
>=
0
:
s
=
str
(
error_value
)
error_message
=
error_value
except
:
pass
else
:
if
tagSearch
(
s
)
>=
0
:
error_message
=
error_value
elif
(
type
(
error_value
)
is
StringType
elif
(
type
(
error_value
)
is
StringType
and
tagSearch
(
error_value
)
>=
0
):
and
tagSearch
(
error_value
)
>=
0
):
error_message
=
error_value
error_message
=
error_value
...
...
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