コード例 #1
0
ファイル: __init__.py プロジェクト: the-cc-dev/gratipay.com
 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
ファイル: __init__.py プロジェクト: cyberjacob/www.gittip.com
 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)