Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
ZEO
Commits
f61b86d4
Commit
f61b86d4
authored
Jul 23, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetic changes to generated XML.
parent
8dbba0a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/ZODB/ExportImport.py
src/ZODB/ExportImport.py
+3
-1
No files found.
src/ZODB/ExportImport.py
View file @
f61b86d4
...
@@ -92,6 +92,7 @@ from cPickle import Pickler, Unpickler
...
@@ -92,6 +92,7 @@ from cPickle import Pickler, Unpickler
import
Shared.DC.xml.ppml
import
Shared.DC.xml.ppml
ppml
=
Shared
.
DC
.
xml
.
ppml
ppml
=
Shared
.
DC
.
xml
.
ppml
TupleType
=
type
(())
TupleType
=
type
(())
from
base64
import
encodestring
def
save_record
(
self
,
tag
,
data
):
def
save_record
(
self
,
tag
,
data
):
file
=
self
.
file
file
=
self
.
file
...
@@ -165,11 +166,12 @@ class ExportImport:
...
@@ -165,11 +166,12 @@ class ExportImport:
f
=
StringIO
(
p
)
f
=
StringIO
(
p
)
u
=
q
(
f
)
u
=
q
(
f
)
id
=
ppml
.
u64
(
oid
)
id
=
ppml
.
u64
(
oid
)
aka
=
encodestring
(
oid
)[:
-
1
]
u
.
idprefix
=
str
(
id
)
+
'.'
u
.
idprefix
=
str
(
id
)
+
'.'
p
=
u
.
load
().
__str__
(
4
)
p
=
u
.
load
().
__str__
(
4
)
if
f
.
tell
()
<
len
:
if
f
.
tell
()
<
len
:
p
=
p
+
u
.
load
().
__str__
(
4
)
p
=
p
+
u
.
load
().
__str__
(
4
)
String
=
' <record id="%s"
>
\
n
%s </record>
\
n
'
%
(
id
,
p
)
String
=
' <record id="%s"
aka="%s">
\
n
%s </record>
\
n
'
%
(
id
,
aka
,
p
)
return
String
return
String
def
exportXML
(
self
,
oid
,
file
=
None
):
def
exportXML
(
self
,
oid
,
file
=
None
):
...
...
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