# 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+')
# 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+')