def create_app(self): try: browser = twill.get_browser() browser.go("http://localhost:5200/") app = setup_app(__name__, 'corrdb.test.integrate') app.config['LIVESERVER_PORT'] = 5210 app.config['TESTING'] = True app.config['MONGODB_SETTINGS'] = {'db': 'corr-integrate','host': 'localhost','port': 27017} except: app = setup_app(__name__, 'corrdb.test.integrate') app.config['LIVESERVER_PORT'] = 5200 app.config['TESTING'] = True app.config['MONGODB_SETTINGS'] = {'db': 'corr-integrate','host': 'localhost','port': 27017} return app
def create_app(self): try: browser = twill.get_browser() browser.go("http://localhost:5200/") app = setup_app(__name__, 'corrdb.tests.integrate') app.config['LIVESERVER_PORT'] = 5210 app.config['TESTING'] = True app.config['MONGODB_SETTINGS'] = { 'db': 'corr-integrate', 'host': 'localhost', 'port': 27017 } except: app = setup_app(__name__, 'corrdb.tests.integrate') app.config['LIVESERVER_PORT'] = 5200 app.config['TESTING'] = True app.config['MONGODB_SETTINGS'] = { 'db': 'corr-integrate', 'host': 'localhost', 'port': 27017 } return app
import json import difflib import hashlib import datetime import boto3 import traceback import requests from datetime import date, timedelta from functools import update_wrapper from calendar import monthrange import time # from difflib_data import * app = setup_app(__name__) s3 = boto3.resource('s3') # from flask.ext.stormpath import StormpathManager # stormpath_manager = StormpathManager(app) def check_api(token): for user in UserModel.objects(): print "%s -- %s." % (user.email, user.api_token) return UserModel.objects(api_token=token).first() def check_app(token):
from io import StringIO from io import BytesIO import zipfile import simplejson as json import time import traceback import datetime import requests from datetime import date, timedelta from functools import update_wrapper from calendar import monthrange import time app, storage_manager, access_manager = setup_app(__name__) CLOUD_VERSION = 0.1 CLOUD_URL = '/cloud/v{0}'.format(CLOUD_VERSION) # Stormpath # from flask.ext.stormpath import StormpathManager # stormpath_manager = StormpathManager(app) from datetime import date, timedelta from functools import update_wrapper def get_week_days(year, week):
import json import difflib import hashlib import datetime import boto3 import traceback import requests from datetime import date, timedelta from functools import update_wrapper from calendar import monthrange import time # from difflib_data import * app = setup_app(__name__) s3 = boto3.resource('s3') # from flask.ext.stormpath import StormpathManager # stormpath_manager = StormpathManager(app) def check_api(token): for user in UserModel.objects(): print "%s -- %s." %(user.email, user.api_token) return UserModel.objects(api_token=token).first() def check_app(token): for application in ApplicationModel.objects():
from io import StringIO from io import BytesIO import zipfile import simplejson as json import time import traceback import datetime import requests from datetime import date, timedelta from functools import update_wrapper from calendar import monthrange import time from mongoengine.queryset.visitor import Q app, storage_manager, access_manager = setup_app(__name__) CLOUD_VERSION = 0.2 CLOUD_URL = '/cloud/v{0}'.format(CLOUD_VERSION) # Stormpath # from flask.ext.stormpath import StormpathManager # stormpath_manager = StormpathManager(app) from datetime import date, timedelta from functools import update_wrapper pagination_logs = []