Browser accesses URL of Application:
http://www.example.com/private_media/my_file.pdf
The Permissions are checked by the application backend. If Access is denied the application backend returns a 403
and thats the end of it.
[tool.poetry] | |
name = "app" | |
version = "0.1.0" | |
description = "" | |
authors = ["None"] | |
[tool.poetry.dependencies] | |
python = "3.6" | |
hyper = "^0.7.0" | |
cryptography = "^2.3" |
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
import pip | |
import pip.req | |
import uuid | |
# from pprint import pprint as pp; import key_requirements_compare; reload(key_requirements_compare); compared=key_requirements_compare.tst(); print(len(compared['old'])) |
test_basic (__main__.AWS4Auth_AmzCanonicalPath_Test) ... ERROR | |
test_handle_basic_quoting (__main__.AWS4Auth_AmzCanonicalPath_Test) ... ERROR | |
test_handle_path_normalization (__main__.AWS4Auth_AmzCanonicalPath_Test) ... ERROR | |
test_handle_percent_encode_non_s3 (__main__.AWS4Auth_AmzCanonicalPath_Test) ... ERROR | |
test_handle_percent_encode_s3 (__main__.AWS4Auth_AmzCanonicalPath_Test) ... ERROR | |
test_handle_querystring (__main__.AWS4Auth_AmzCanonicalPath_Test) ... ERROR | |
test_basic (__main__.AWS4Auth_AmzCanonicalQuerystring_Test) ... ok | |
test_multiple_params (__main__.AWS4Auth_AmzCanonicalQuerystring_Test) ... ok | |
test_quoting (__main__.AWS4Auth_AmzCanonicalQuerystring_Test) ... ok | |
test_space (__main__.AWS4Auth_AmzCanonicalQuerystring_Test) ... ok |
""" | |
Do not rename the table for plugins in the first "create" migration. | |
OR: if you do... make the create table statement only run if the table does not already exist. | |
""" | |
class Migration(): | |
def forwards(self, orm): | |
# ... | |
# -*- coding: utf-8 -*- | |
from waffle import TEST_COOKIE_NAME, flag_is_active | |
from waffle.middleware import WaffleMiddleware | |
# FIXME: only works if TEST_COOKIE_NAME ends with the flag name | |
TEST_COOKIE_PREFIX = TEST_COOKIE_NAME.split('%s')[0] | |
class AlwaysWaffleMiddleware(WaffleMiddleware): |
# -*- coding: utf-8 -*- | |
"""Refactor South migrations to use settings.AUTH_USER_MODEL. | |
Inserts a backwards-compatible code-snippet in all | |
your schema migration files and uses a possibly customized user | |
model as introduced in Django 1.5. | |
Please note that this has nothing to do with changing | |
settings.AUTH_USER_MODEL to a new model. If you do this, stuff | |
will very likely break in reusable apps that have their own | |
migration trees. |
# -*- coding: utf-8 -*- | |
from django.utils.translation import get_language, activate, deactivate_all, deactivate | |
class LanguageFieldProxy(object): | |
def contribute_to_class(self, cls, name): | |
self.name = name | |
setattr(cls, self.name, self) | |
def __get__(self, instance, instance_type=None): |
# -*- coding: utf-8 -*- | |
import requests | |
import json | |
import pprint | |
from secrets import hipchat_api_key # the hipchat API key with admin rights | |
from secrets import github_credentials # a tuple for github access (github_username, password), | |
from secrets import hipchat_notification_api_key # the hipchat API key to use for the notification hooks on github | |
hipchat_apps_room_name = 'Divio Application Suite' |