Example #1
0
 def __init__(self, app, *a, **kw):
     """Extend to make the ``Application`` object available on models at
     ``.app``.
     """
     Postgres.__init__(self, *a, **kw)
     for model in MODELS:
         self.register_model(model)
         model.app = app
Example #2
0
 def __init__(self, app, *a, **kw):
     """Extend to make the ``Application`` object available on models at
     ``.app``.
     """
     Postgres.__init__(self, *a, **kw)
     for model in MODELS:
         self.register_model(model)
         model.app = app
Example #3
0
 def __init__(self, app, *a, **kw):
     """Extend to make the ``Application`` object available on models at
     ``.app``.
     """
     Postgres.__init__(self, *a, **kw)
     for model in (AccountElsewhere, Community, Country, ExchangeRoute,
                   Participant, Team):
         self.register_model(model)
         model.app = app
Example #4
0
 def __init__(self, url):
     Postgres.__init__(self, url)