Beispiel #1
0
def get_or_create_provider():
    provider = Provider.all().filter("id =", PROVIDER_ID).get()
    if provider is None:
        provider = Provider(id=PROVIDER_ID, url="http://eurobank.by/", name=u"Евробанк")
        provider.put()

    return provider
Beispiel #2
0
def get_or_create_provider():
    provider = Provider.all().filter("id =", PROVIDER_ID).get()
    if provider is None:
        provider = Provider(id=PROVIDER_ID, url="http://belgazprombank.by/", name=u"Белгазпромбанк")
        provider.put()

    return provider
Beispiel #3
0
def get_or_create_provider():
    provider = Provider.all().filter('id =', PROVIDER_ID).get()
    if provider is None:
        provider = Provider(id=PROVIDER_ID,
                            url='http://bps-sberbank.by/',
                            name=u'БПС-Сбербанк')
        provider.put()

    return provider
Beispiel #4
0
def get_or_create_provider():
    provider = Provider.all().filter('id =', PROVIDER_ID).get()
    if provider is None:
        provider = Provider(id=PROVIDER_ID,
                            url='http://belinvestbank.by/',
                            name=u'Белинвестбанк')
        provider.put()

    return provider
Beispiel #5
0
def get_or_create_provider():
    provider = Provider.all().filter('id =', PROVIDER_ID).get()
    if provider is None:
        provider = Provider(id=PROVIDER_ID,
                            url='http://bnb.by/',
                            name=u'Белорусский Народный Банк')
        provider.put()

    return provider
Beispiel #6
0
def get_or_create_provider():
    provider = Provider.all().filter('id =', PROVIDER_ID).get()
    if provider is None:
        provider = Provider(id=PROVIDER_ID,
            url='http://rrb.by',
            name=u'РРБ-Банк')
        provider.put()

    return provider
Beispiel #7
0
def get_or_create_provider():
    provider = Provider.all().filter('id =', PROVIDER_ID).get()
    if provider is None:
        provider = Provider(id=PROVIDER_ID,
                            url='http://alfabank.by/',
                            name=u'Альфа-Банк')
        provider.put()

    return provider
Beispiel #8
0
def get_or_create_provider():
    provider = Provider.all().filter('id =', PROVIDER_ID).get()
    if provider is None:
        provider = Provider(id=PROVIDER_ID,
            url='http://bveb.by',
            name=u'Белвнешэкономбанк')
        provider.put()

    return provider
Beispiel #9
0
def get_or_create_provider():
    provider = Provider.all().filter('id =', PROVIDER_ID).get()
    if provider is None:
        provider = Provider(id=PROVIDER_ID,
            url='http://paritetbank.by',
            name=u'Паритетбанк')
        provider.put()

    return provider
Beispiel #10
0
def get_or_create_provider():
    provider = Provider.all().filter('id =', PROVIDER_ID).get()
    if provider is None:
        provider = Provider(id=PROVIDER_ID,
            url='http://credexbank.by',
            name=u'Кредэксбанк')
        provider.put()

    return provider
Beispiel #11
0
def get_or_create_provider():
    provider = Provider.all().filter('id =', PROVIDER_ID).get()
    if provider is None:
        provider = Provider(id=PROVIDER_ID,
                            url='http://belapb.by/',
                            name=u'Белагропромбанк')
        provider.put()

    return provider
Beispiel #12
0
 def post(self):
     user = users.get_current_user()
     if user:
         prov = Provider.all().filter('user =', user)
         prov[0] = {}