def __repr__(self):
return '<ContentFilepath %s>' % self.filepath
-class ContentAssociations(object):
+class ContentAssociation(object):
def __init__(self, *args, **kwargs):
pass
mapper(DBConfig, self.tbl_config,
properties = dict(config_id = self.tbl_config.c.id))
- mapper(ContentAssociations, self.tbl_content_associations,
+ mapper(ContentAssociation, self.tbl_content_associations,
properties = dict(ca_id = self.tbl_content_associations.c.id,
filename_id = self.tbl_content_associations.c.filename,
filename = relation(ContentFilename),
self.db_meta.bind = self.db_pg
self.db_smaker = sessionmaker(bind=self.db_pg,
autoflush=True,
- autocommit=True)
+ autocommit=False)
self.__setuptables()
self.__setupmappers()