Esempio n. 1
0
def configure(**kw):
    config = books.configure(**kw)
    return os.path.abspath(config.get('database'))
Esempio n. 2
0
    
    for i, bookid in enumerate(keys):
        
        #print '%d.' % i,
        if is_poems_missing_directive(bookid):
            print bookid
        #else:
        #    print


def close():
    store = getUtility(IStore)
    store.close()
    
    
if __name__=='__main__':
    inifile = None
    if len(sys.argv) > 1:
        inifile = sys.argv[1]
        configure(inifile)
    else:
        configure()
    
    run()
    close()