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
5ef601d8
Commit
5ef601d8
authored
Nov 30, 1998
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
29754727
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
86 additions
and
85 deletions
+86
-85
lib/python/OFS/SimpleItem.py
lib/python/OFS/SimpleItem.py
+86
-85
No files found.
lib/python/OFS/SimpleItem.py
View file @
5ef601d8
...
...
@@ -16,8 +16,8 @@ Aqueduct database adapters, etc.
This module can also be used as a simple template for implementing new
item types.
$Id: SimpleItem.py,v 1.2
5 1998/11/30 15:27:13 jeffrey
Exp $'''
__version__
=
'$Revision: 1.2
5
$'
[
11
:
-
2
]
$Id: SimpleItem.py,v 1.2
6 1998/11/30 15:50:25 brian
Exp $'''
__version__
=
'$Revision: 1.2
6
$'
[
11
:
-
2
]
import
regex
,
sys
,
Globals
,
App
.
Management
from
DateTime
import
DateTime
...
...
@@ -70,7 +70,6 @@ class Item(CopySource, App.Management.Tabs):
t
=
self
.
title
return
t
and
(
"%s (%s)"
%
(
t
,
self
.
id
))
or
self
.
id
def
this
(
self
):
"Handy way to talk to ourselves in document templates."
return
self
...
...
@@ -184,8 +183,7 @@ def format_exception(etype,value,tb,limit=None):
except
:
pass
tb
=
tb
.
tb_next
n
=
n
+
1
result
.
append
(
join
(
traceback
.
format_exception_only
(
etype
,
value
),
' '
))
result
.
append
(
join
(
traceback
.
format_exception_only
(
etype
,
value
),
' '
))
# sys.exc_type,sys.exc_value,sys.exc_traceback=etype,value,tb
return
result
...
...
@@ -198,6 +196,9 @@ def pretty_tb(t,v,tb):
##############################################################################
#
# $Log: SimpleItem.py,v $
# Revision 1.26 1998/11/30 15:50:25 brian
# *** empty log message ***
#
# Revision 1.25 1998/11/30 15:27:13 jeffrey
# fixed Syntax error in tpValues
#
...
...
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