Merge pull request #10 from imposeren/anti_autoload

removed FromCSVTables.AUTOLOAD attribute. Should fix #7
This commit is contained in:
Aliaksei Yaletski 2015-03-21 08:37:51 +02:00
commit fda0396052
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: