FILE_EXT = 'html' """ Files with a .html extension will be an entry. """ __version__ = '$Id:$0.2' # change title search to regexp __author__ = 'Joseph Reagle joseph.2008@reagle.org' def cb_entryparser(args): args[FILE_EXT] = readfile return args def readfile(filename, request): from Pyblosxom import tools import re entryData = {} html = file(filename).read() #title = html[html.find('

') + 4:html.find('

')] title_p = re.compile(r'(.*?)') + 5:html.find('')] entryData = {'title': title, 'body': body} # Call the postformat callbacks tools.run_callback('postformat', {'request': request, 'entry_data': entryData}) return entryData