Exemplo n.º 1
0
}

# Wireup Algorithm
# ================

exc = None
try:
    website.version = get_version()
except Exception, e:
    exc = e
    website.version = 'x'

env = website.env = gratipay.wireup.env()
tell_sentry = website.tell_sentry = gratipay.wireup.make_sentry_teller(env)
website.db = gratipay.wireup.db(env)
website.mailer = gratipay.wireup.mail(env, website.project_root)
gratipay.wireup.crypto(env)
gratipay.wireup.base_url(website, env)
gratipay.wireup.secure_cookies(env)
gratipay.wireup.billing(env)
gratipay.wireup.team_review(env)
gratipay.wireup.username_restrictions(website)
gratipay.wireup.load_i18n(website.project_root, tell_sentry)
gratipay.wireup.other_stuff(website, env)
gratipay.wireup.accounts_elsewhere(website, env)

if exc:
    tell_sentry(exc, {})

# Periodic jobs
# =============
Exemplo n.º 2
0
    'b64decode': base64.b64decode,
    'b64encode': base64.b64encode,
    'filter_profile_subnav': utils.filter_profile_subnav,
    'to_javascript': utils.to_javascript,
    'urlquote': urlquote,
})


# Wireup Algorithm
# ================

env = website.env = wireup.env()
tell_sentry = website.tell_sentry = wireup.make_sentry_teller(env)
wireup.canonical(env)
website.db = wireup.db(env)
website.mailer = wireup.mail(env, website.project_root)
wireup.billing(env)
wireup.username_restrictions(website)
wireup.load_i18n(website.project_root, tell_sentry)
wireup.other_stuff(website, env)
wireup.accounts_elsewhere(website, env)


# Periodic jobs
# =============

cron = Cron(website)
cron(env.update_global_stats_every, lambda: utils.update_global_stats(website))
cron(env.check_db_every, website.db.self_check, True)
cron(env.dequeue_emails_every, Participant.dequeue_emails, True)
Exemplo n.º 3
0
# Wireup Algorithm
# ================

exc = None
try:
    website.version = get_version()
except Exception, e:
    exc = e
    website.version = 'x'


env = website.env = gratipay.wireup.env()
tell_sentry = website.tell_sentry = gratipay.wireup.make_sentry_teller(env)
website.db = gratipay.wireup.db(env)
website.mailer = gratipay.wireup.mail(env, website.project_root)
gratipay.wireup.base_url(website, env)
gratipay.wireup.secure_cookies(env)
gratipay.wireup.billing(env)
gratipay.wireup.team_review(env)
gratipay.wireup.username_restrictions(website)
gratipay.wireup.load_i18n(website.project_root, tell_sentry)
gratipay.wireup.other_stuff(website, env)
gratipay.wireup.accounts_elsewhere(website, env)
gratipay.wireup.cryptocoin_networks(website)

if exc:
    tell_sentry(exc, {})


# Periodic jobs
Exemplo n.º 4
0
    'filter_profile_subnav':
    utils.filter_profile_subnav,
    'to_javascript':
    utils.to_javascript,
    'urlquote':
    urlquote,
})

# Wireup Algorithm
# ================

env = website.env = wireup.env()
tell_sentry = website.tell_sentry = wireup.make_sentry_teller(env)
wireup.canonical(env)
website.db = wireup.db(env)
website.mailer = wireup.mail(env, website.project_root)
wireup.billing(env)
wireup.username_restrictions(website)
wireup.load_i18n(website.project_root, tell_sentry)
wireup.other_stuff(website, env)
wireup.accounts_elsewhere(website, env)

# Periodic jobs
# =============

cron = Cron(website)
cron(env.update_global_stats_every, lambda: utils.update_global_stats(website))
cron(env.check_db_every, website.db.self_check, True)
cron(env.dequeue_emails_every, Participant.dequeue_emails, True)

# Website Algorithm