Commit 5ef601d8 authored by 's avatar

*** empty log message ***

parent 29754727
...@@ -16,8 +16,8 @@ Aqueduct database adapters, etc. ...@@ -16,8 +16,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.25 1998/11/30 15:27:13 jeffrey Exp $''' $Id: SimpleItem.py,v 1.26 1998/11/30 15:50:25 brian Exp $'''
__version__='$Revision: 1.25 $'[11:-2] __version__='$Revision: 1.26 $'[11:-2]
import regex, sys, Globals, App.Management import regex, sys, Globals, App.Management
from DateTime import DateTime from DateTime import DateTime
...@@ -70,7 +70,6 @@ class Item(CopySource, App.Management.Tabs): ...@@ -70,7 +70,6 @@ class Item(CopySource, App.Management.Tabs):
t=self.title t=self.title
return t and ("%s (%s)" % (t,self.id)) or self.id return t and ("%s (%s)" % (t,self.id)) or self.id
def this(self): def this(self):
"Handy way to talk to ourselves in document templates." "Handy way to talk to ourselves in document templates."
return self return self
...@@ -184,8 +183,7 @@ def format_exception(etype,value,tb,limit=None): ...@@ -184,8 +183,7 @@ def format_exception(etype,value,tb,limit=None):
except: pass except: pass
tb = tb.tb_next tb = tb.tb_next
n = n+1 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 # sys.exc_type,sys.exc_value,sys.exc_traceback=etype,value,tb
return result return result
...@@ -198,6 +196,9 @@ def pretty_tb(t,v,tb): ...@@ -198,6 +196,9 @@ def pretty_tb(t,v,tb):
############################################################################## ##############################################################################
# #
# $Log: SimpleItem.py,v $ # $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 # Revision 1.25 1998/11/30 15:27:13 jeffrey
# fixed Syntax error in tpValues # fixed Syntax error in tpValues
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment