old_contents: # -*- coding: utf-8 -*-
  
  from flask import Flask
  import coaster.app
  from baseframe import baseframe, assets, Version
  
  import lastuser_core, lastuser_oauth, lastuser_ui
  from lastuser_core import login_registry
  from lastuser_core.models import db
  from lastuser_oauth import providers
  from ._version import __version__
  
  version = Version(__version__)
  app = Flask(__name__, instance_relative_config=True)
  
  app.register_blueprint(lastuser_core.lastuser_core)
  app.register_blueprint(lastuser_oauth.lastuser_oauth)
  app.register_blueprint(lastuser_ui.lastuser_ui)
  
  
  from . import views
  
  assets['lastuser-oauth.js'][version] = lastuser_oauth.lastuser_oauth_js,
  assets['lastuser-oauth.css'][version] = lastuser_oauth.lastuser_oauth_css
  
  
  def init_for(env):
      coaster.app.init_app(app, env)
      db.init_app(app)
      db.app = app  # To make it work without an app context
      baseframe.init_app(app, requires=['baseframe', 'cookie', 'timezone', 'lastuser-oauth'])
  
      lastuser_oauth.mailclient.mail.init_app(app)
      lastuser_oauth.views.login.oid.init_app(app)
  
      # Register some login providers
      if app.config.get('OAUTH_TWITTER_KEY') and app.config.get('OAUTH_TWITTER_SECRET'):
          login_registry['twitter'] = providers.TwitterProvider('twitter', 'Twitter',
              at_login=True, priority=True,
              key=app.config['OAUTH_TWITTER_KEY'],
              secret=app.config['OAUTH_TWITTER_SECRET'])
      login_registry['google'] = providers.GoogleProvider('google', 'Google',
          at_login=True, priority=True)
      if app.config.get('OAUTH_GITHUB_KEY') and app.config.get('OAUTH_GITHUB_SECRET'):
          login_registry['github'] = providers.GitHubProvider('github', 'GitHub',
              at_login=True, priority=False,
              key=app.config['OAUTH_GITHUB_KEY'],
              secret=app.config['OAUTH_GITHUB_SECRET'])
      login_registry['openid'] = providers.OpenIdProvider('openid', 'OpenID',
          at_login=True, priority=False)
  
new_contents: # -*- coding: utf-8 -*-
  
  from flask import Flask
  import coaster.app
  from baseframe import baseframe, assets, Version
  
  import lastuser_core, lastuser_oauth, lastuser_ui
  from lastuser_core import login_registry
  from lastuser_core.models import db
  from lastuser_oauth import providers
  from ._version import __version__
  
  version = Version(__version__)
  app = Flask(__name__, instance_relative_config=True)
  
  app.register_blueprint(lastuser_core.lastuser_core)
  app.register_blueprint(lastuser_oauth.lastuser_oauth)
  app.register_blueprint(lastuser_ui.lastuser_ui)
  
  
  from . import views
  
  assets['lastuser-oauth.js'][version] = lastuser_oauth.lastuser_oauth_js,
  assets['lastuser-oauth.css'][version] = lastuser_oauth.lastuser_oauth_css
  
  
  def init_for(env):
      coaster.app.init_app(app, env)
      db.init_app(app)
      db.app = app  # To make it work without an app context
      baseframe.init_app(app, requires=['baseframe', 'jquery.cookie', 'timezone', 'lastuser-oauth'])
  
      lastuser_oauth.mailclient.mail.init_app(app)
      lastuser_oauth.views.login.oid.init_app(app)
  
      # Register some login providers
      if app.config.get('OAUTH_TWITTER_KEY') and app.config.get('OAUTH_TWITTER_SECRET'):
          login_registry['twitter'] = providers.TwitterProvider('twitter', 'Twitter',
              at_login=True, priority=True,
              key=app.config['OAUTH_TWITTER_KEY'],
              secret=app.config['OAUTH_TWITTER_SECRET'])
      login_registry['google'] = providers.GoogleProvider('google', 'Google',
          at_login=True, priority=True)
      if app.config.get('OAUTH_GITHUB_KEY') and app.config.get('OAUTH_GITHUB_SECRET'):
          login_registry['github'] = providers.GitHubProvider('github', 'GitHub',
              at_login=True, priority=False,
              key=app.config['OAUTH_GITHUB_KEY'],
              secret=app.config['OAUTH_GITHUB_SECRET'])
      login_registry['openid'] = providers.OpenIdProvider('openid', 'OpenID',
          at_login=True, priority=False)
  
subject: Fix asset name.