def pathheader(w,h): w.push('div',id='pathinfo') for path,p in misc.iterdir(h.linker.path_info): w.push('span',cls='pathinfoitem') w.a(p, href=h.linker.link('wiki_head',path=path)) w.pop() w.text('/') w.pop()
def _create_dirs(txn_root, cpath): if not cpath: return True kind = fs.check_path(txn_root,cpath) if kind == core.svn_node_dir: return True elif kind == core.svn_node_file: return False for dpath,p in misc.iterdir(cpath): dpath = _c(dpath) kind = fs.check_path(txn_root, dpath) if kind == core.svn_node_none: fs.make_dir(txn_root, dpath) continue pass return True