def get_sharejs_uuid(node, wname):
 wiki_key = to_mongo_key(wname)
 private_uuid = node.wiki_private_uuids.get(wiki_key)
 return (str(uuid.uuid5(uuid.UUID(private_uuid), str(node._id))) if private_uuid else None)

def get_sharejs_uuid ( node , wname ) : wiki_key = to_mongo_key ( wname ) private_uuid = node . wiki_private_uuids . get ( wiki_key ) return ( str ( uuid . uuid5 ( uuid . UUID ( private_uuid ) , str ( node . _id ) ) ) if private_uuid else None )
format private uuid into the form used in mongo and sharejs .