예제 #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
예제 #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
예제 #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
예제 #4
0
파일: client.py 프로젝트: jo-m/pgjson
 def __init__(self, url):
     Postgres.__init__(self, url)