# Path: webphamerator/app/sqlalchemy_ext/models.py
# class Database(db.Model):
# class Job(db.Model):
# class JobOrganismToDelete(db.Model):
# class GenbankFile(db.Model):
# class Password(db.Model):
#     def url(self):
#     def mysql_name_for(cls, name):
#     def phamerator_name_for(cls, name):
#     def mysql_name(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
# 
# Path: webphamerator/app/celery_ext/celery_app.py
# def make_celery(app_name=__name__):


import datetime
import os
import pham
from flask import (current_app)
from webphamerator.app.sqlalchemy_ext import models
from webphamerator.app.celery_ext.celery_app import celery as celery_app
        return self._modify

    def build_basemaker(self):
        if self._celery is None:
            raise AttributeError("Task handler missing valid Celery object.")

        class _BaseDatabaseTask(celery_app.Task):
            success_message = None
            type_code = None

            def __init__(self):
                self._server = None

            @property
            def server(self):
                if self._server is None:
                    self._server = pham.db.DatabaseServer.from_url(
                                                current_app.config[
                                                    'SQLALCHEMY_DATABASE_URI'])
                return self._server

            def database_call(self, database_id, genbank_files, organism_ids,
                              cdd_search, callback):
                pass

            def failure_hook(self, database_record, job_record, exception):
                pass

            def _get_job(self, job_id):
                return (models.db.session.query(models.Job)

# Path: webphamerator/app/sqlalchemy_ext/models.py
# class Database(db.Model):
# class Job(db.Model):
# class JobOrganismToDelete(db.Model):
# class GenbankFile(db.Model):
# class Password(db.Model):
#     def url(self):
#     def mysql_name_for(cls, name):
#     def phamerator_name_for(cls, name):
#     def mysql_name(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
# 
# Path: webphamerator/app/celery_ext/celery_app.py
# def make_celery(app_name=__name__):


# Path: webphamerator/app/celery_ext/celery_base.py
import datetime
import os
import pham
from flask import (current_app)
from webphamerator.app.sqlalchemy_ext import models
from webphamerator.app.celery_ext.celery_app import celery as celery_app

        return self._modify

    def build_basemaker(self):
        if self._celery is None:
            raise AttributeError("Task handler missing valid Celery object.")

        class _BaseDatabaseTask(celery_app.Task):
            success_message = None
            type_code = None

            def __init__(self):
                self._server = None

            @property
            def server(self):
                if self._server is None:
                    self._server = pham.db.DatabaseServer.from_url(
                                                current_app.config[
                                                    'SQLALCHEMY_DATABASE_URI'])
                return self._server

            def database_call(self, database_id, genbank_files, organism_ids,
                              cdd_search, callback):
                pass

            def failure_hook(self, database_record, job_record, exception):
                pass

            def _get_job(self, job_id):
                return (models.db.session.query(models.Job)

                        .filter(models.Job.id == job_id)