Esempio n. 1
0
from pages import chat
from pages import blog
from pages import competition

from pages import members

from pages.donate import donate_pages
from pages.google_groups import google_groups_pages
from pages.equipment import equipment_pages
from pages.profile import profile_pages
from authorize import authorize_pages, login_manager

web_app = Flask(__name__, static_url_path='/static')
web_app.config['PROPAGATE_EXCEPTIONS'] = True
web_app.secret_key = settings.flask_secret_key
login_manager.init_app(web_app)

web_app.register_blueprint(authorize_pages)
web_app.register_blueprint(equipment_pages)
web_app.register_blueprint(profile_pages)
web_app.register_blueprint(google_groups_pages)
web_app.register_blueprint(donate_pages)


# local testing server, add your pages here
@web_app.route("/examples/", methods=['GET'])
def examples():
    """temporary for testing / examples"""
    return make_response(generate.examples())

Esempio n. 2
0
from constants import *

from templates.profile import view_profile_template, edit_profile_template
from templates.users import users_view
from templates.teams import teams_view
from templates.board import board_view
from templates.projects import project_view, projects_view, project_tickets_view, project_create
from templates.ticket import milestone_tickets_view
from templates.ticket import ticket_view, create_ticket, create_ticket_note, my_tickets_view, team_tickets_view, update_ticket_view


from authorize import authorize_pages, login_manager


app = Flask(__name__, static_url_path='/static')
login_manager.init_app(app)

app.config['UPLOAD_FOLDER'] = 'uploads'
app.secret_key = 'TODO F12Zr47j\3yX R~X@H!jmM]Lwf/,?K-CHANGEME'


app.register_blueprint(authorize_pages)

def todict(data):
    new_dict = {}
    for key, value in data.items():
        new_dict[key] = value
    return new_dict

def dict_to_list(data, keys):
    return [data.get(k) for k in keys]
Esempio n. 3
0
from pages import chat
from pages import blog
from pages import competition

from pages import members

from pages.donate import donate_pages
from pages.google_groups import google_groups_pages
from pages.equipment import equipment_pages
from pages.profile import profile_pages
from authorize import authorize_pages, login_manager

web_app = Flask(__name__, static_url_path='/static')
web_app.config['PROPAGATE_EXCEPTIONS'] = True
web_app.secret_key = settings.flask_secret_key
login_manager.init_app(web_app)

web_app.register_blueprint(authorize_pages)
web_app.register_blueprint(equipment_pages)
web_app.register_blueprint(profile_pages)
web_app.register_blueprint(google_groups_pages)
web_app.register_blueprint(donate_pages)


# local testing server, add your pages here
@web_app.route("/examples/", methods=['GET'])
def examples():
    """temporary for testing / examples"""
    return make_response(generate.examples())

@web_app.route("/blogs/", methods=['GET'])