def process_writings(dir, template): """Calls a factory method that processes all entries""" ef = EntryFactory(template) entry_count = ef.write_entries(dir) if entry_count == 0: print "I couldn't find any files in the dir." cont = raw_input("Continue (y/n)?") if cont == "n": sys.exit(1)
def update_rss(dir, template, filepath): ef = EntryFactory(template) ef.write_last_entry(dir, filepath)
def create_home(dir, template, filepath): """Generates the index page""" ef = EntryFactory(template) ef.write_last_entry(dir, filepath)