]> git.phdru.name Git - m_librarian.git/commitdiff
Add __all__ to mark public names
authorOleg Broytman <phd@phdru.name>
Tue, 22 Dec 2015 21:05:12 +0000 (00:05 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 22 Dec 2015 21:05:12 +0000 (00:05 +0300)
m_librarian/db.py
m_librarian/glst.py

index 28033f547a4408cd826215ead5dc2bb763ad4da6..9eb50d57321d01060d032fcb83d4bc7c484834a0 100755 (executable)
@@ -1,5 +1,9 @@
 #! /usr/bin/env python
 
+__all__ = ['Author', 'Book', 'Extension', 'Genre', 'Language',
+           'init_db',
+           ]
+
 import os
 from sqlobject import SQLObject, StringCol, UnicodeCol, IntCol, BoolCol, \
     ForeignKey, DateCol, connectionForURI, sqlhub, dberrors
index 6ff58de3d93fef990806ce1e4638d8ec5299ed21..867d4136590e2a0f4ccee0c429e0e7e270f065bf 100755 (executable)
@@ -1,5 +1,7 @@
 #! /usr/bin/env python
 
+__all__ = ['import_data']
+
 import codecs
 import os
 from sqlobject import sqlhub, SQLObjectNotFound