X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_librarian%2Fdb.py;h=b3ddd5211961196f282c411cfffe79acf9edada7;hb=d6ef04787834ffeded257d96af4c965ca7055a51;hp=7e5744f243e64eabebe14afadd66f768a08e2430;hpb=07794a8efe6512dd65b98c692d35a1a41ed5683e;p=m_librarian.git diff --git a/m_librarian/db.py b/m_librarian/db.py index 7e5744f..b3ddd52 100755 --- a/m_librarian/db.py +++ b/m_librarian/db.py @@ -1,16 +1,16 @@ #! /usr/bin/env python -__all__ = ['Author', 'Book', 'Extension', 'Genre', 'Language', - 'AuthorBook', 'BookGenre', 'open_db', 'init_db', - 'insert_name', 'insert_author', 'update_counters', - ] - import os from sqlobject import SQLObject, StringCol, UnicodeCol, IntCol, BoolCol, \ ForeignKey, DateCol, DatabaseIndex, RelatedJoin, \ connectionForURI, sqlhub, SQLObjectNotFound, dberrors from .config import get_config +__all__ = ['Author', 'Book', 'Extension', 'Genre', 'Language', + 'AuthorBook', 'BookGenre', 'open_db', 'init_db', + 'insert_name', 'insert_author', 'update_counters', + ] + class Author(SQLObject): surname = UnicodeCol(notNull=True)