f.write(json.dumps(includes))
f.close()
+ lib._fileadd(resolve('parts'))
+
# update the parts cache
PartCache.update_cache(docid, current.owner,\
stored_includes, includes)
# now that the parts are ok, write xml
f = lib._fileopen(resolve('xml'), 'w+')
- f.write(data)
+ f.write(data.encode('utf-8'))
f.close()
ndoc = None
"parent_user_resivion": udoc.revision,
"parent_revision": doc.revision,
"revision": udoc.revision,
- })
\ No newline at end of file
+ })