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
250ebe00
Commit
250ebe00
authored
Oct 21, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added __str__ method to Record.Record
parent
deb005b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
lib/python/Main.py
lib/python/Main.py
+9
-0
No files found.
lib/python/Main.py
View file @
250ebe00
...
...
@@ -40,6 +40,12 @@ PickleJar.PickleJar.Broken=OFS.Uninstalled.Broken
Bobobase
=
OFS
.
Application
.
open_bobobase
()
SessionBase
=
Globals
.
SessionBase
=
TJar
.
TM
(
Bobobase
)
# hack Python __str__ method into the record class.
# This needs to be done better in the future.
import
Record
,
string
Record
.
Record
.
__str__
=
lambda
r
,
j
=
string
.
join
,
m
=
map
,
s
=
str
:
j
(
m
(
s
,
r
),
', '
)
del
Record
del
string
SingleThreadedTransaction
.
Transaction
.
commit
=
SessionBase
.
committer
()
...
...
@@ -56,6 +62,9 @@ if os.environ.has_key('PRINCIPIA_REALM'):
# Revision Log
#
# $Log: Main.py,v $
# Revision 1.20 1998/10/21 14:54:37 jim
# Added __str__ method to Record.Record
#
# Revision 1.19 1998/10/21 14:52:34 jim
# Added development mode flag.
#
...
...
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