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
4873c8fb
Commit
4873c8fb
authored
Jul 23, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed xml output option.
parent
476821d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
48 deletions
+0
-48
utilities/bbb.py
utilities/bbb.py
+0
-48
No files found.
utilities/bbb.py
View file @
4873c8fb
...
@@ -248,60 +248,12 @@ def undo_log(pos, oid, start, tname, user, t, p, first, newtrans):
...
@@ -248,60 +248,12 @@ def undo_log(pos, oid, start, tname, user, t, p, first, newtrans):
sys
.
stdout
.
write
(
"%s:
\
t
%s
\
t
%s
\
t
%s
\
n
"
%
(
pos
,
start
,
user
,
t
))
sys
.
stdout
.
write
(
"%s:
\
t
%s
\
t
%s
\
t
%s
\
n
"
%
(
pos
,
start
,
user
,
t
))
def
xml
(
pos
,
oid
,
start
,
tname
,
user
,
t
,
p
,
first
,
newtrans
):
global
ppml
if
ppml
is
None
:
import
ppml
u
=
ppml
.
ToXMLUnpickler
write
=
sys
.
stdout
.
write
if
first
:
write
(
'<?xml version="1.0">
\
n
<ZopeData>
\
n
'
)
if
pos
is
None
:
write
(
'</transaction>
\
n
'
)
write
(
'</ZopeData>
\
n
'
)
return
if
newtrans
:
if
pos
>
9
:
write
(
'</transaction>
\
n
'
)
write
(
'<transaction name="%s" user="%s">
\
n
%s
\
n
'
%
(
tname
,
user
,
t
))
l
=
len
(
p
)
pp
=
p
f
=
StringIO
(
p
)
u
=
u
(
f
)
u
.
idprefix
=
'%s.'
%
pos
p
=
u
.
load
().
__str__
(
4
)
if
f
.
tell
()
<
l
:
p
=
p
+
u
.
load
().
__str__
(
4
)
write
(
' <rec id="%s" time="%s">
\
n
%s </rec>
\
n
'
%
(
oid
,
start
,
p
))
def
xmls
(
pos
,
oid
,
start
,
tname
,
user
,
t
,
p
,
first
,
newtrans
):
write
=
sys
.
stdout
.
write
if
first
:
write
(
'<?xml version="1.0">
\
n
<transactions>
\
n
'
)
if
pos
is
None
:
write
(
'</transaction>
\
n
'
)
write
(
'</transactioons>
\
n
'
)
return
if
newtrans
:
if
pos
>
9
:
write
(
'</transaction>
\
n
'
)
write
(
'<transaction name="%s" user="%s">
\
n
%s
\
n
'
%
(
tname
,
user
,
t
))
reports
=
{
reports
=
{
'none'
:
(
none
,
'none'
:
(
none
,
(
'Read a database file checking for errors'
,
(
'Read a database file checking for errors'
,
'but producing no output'
)
'but producing no output'
)
),
),
'xml'
:
(
xml
,
(
'Convert the database to XML format'
,)
),
'transactions'
:
(
xmls
,
(
'Output a summary of the database'
,
'transactions in XML'
)
),
'oids'
:
(
oids
,
'oids'
:
(
oids
,
(
'Read the database and output object ids'
,)),
(
'Read the database and output object ids'
,)),
'positions'
:
(
positions
,
'positions'
:
(
positions
,
...
...
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