for c in code:
(p, ext) = os.path.splitext(c.href)
if ext in valid_scripts:
- exe = os.path.join(os.path.abspath(dirname+c.href))
+ exe = os.path.join(os.path.abspath(dirname)+'/'+c.href)
xml = subprocess.Popen([exe],stdout=subprocess.PIPE)
xstr = bindery.parse(str(xml.stdout.read()))
idp = c.xml_index_on_parent
os.chdir(cwd)
def template(self,sitemap):
- htmlmenu = sitemap.gen_menu(self._lang,None,None)
+ htmlmenu = sitemap.gen_menu(self._lang,None,"menu")
levelmenu = sitemap.gen_menu(self._lang,self,"tree")
langmenu = sitemap.lang_menu(self._lang)
template = Template(file=style_tmpl,
missing = dir_.set() - sitemap.set()
removed = sitemap.set() - dir_.set()
for page in removed:
- print removed+' pages missing!!'
+ print page+' pages missing!!'
for page in missing:
print 'adding missing page '+page
sitemap.add_link(page)