removed FromCSVTables.AUTOLOAD attribute. Should fix #7

This commit is contained in:
Yaroslav Klyuyev 2015-03-16 21:50:51 +02:00
parent 6928af52d7
commit b0d4ea7abc
2 changed files with 2 additions and 3 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
*.pyc
*~
*.egg-info

View file

@ -89,15 +89,13 @@ class Template(object):
class FromTablesGenerator(BaseGenerator):
SOURCE = None
AUTOLOAD = True # you may want to set ``AUTOLOAD = False`` when subclassing table-based generator to skip soruce loading on init
def __init__(self):
super(FromTablesGenerator, self).__init__()
self.templates_choices = {}
self.templates = []
self.tables = {}
if self.AUTOLOAD:
self.source_loader(self.SOURCE)
self.source_loader(self.SOURCE)
def source_loader(self, source):
if source is None: