Readability counts - PEP8™ (fix #347)

This commit is contained in:
Guillaume Ayoub 2016-01-06 20:19:12 +01:00
parent e47b50421e
commit 620d9f8316

View File

@ -54,11 +54,28 @@ else:
DEFINED_RIGHTS = { DEFINED_RIGHTS = {
"authenticated": "[rw]\nuser:.+\ncollection:.*\npermission:rw", "authenticated": """
"owner_write": "[w]\nuser:.+\ncollection:^%(login)s(/.*)?$\npermission:rw" [rw]
"[r]\nuser:.+\ncollection:.*\npermission:r\n", user:.+
"owner_only": "[rw]\nuser:.+\ncollection:^%(login)s(/.*)?$\npermission:rw", collection:.*
} permission:rw
""",
"owner_write": """
[w]
user:.+
collection:^%(login)s(/.*)?$
permission:rw
[r]
user:.+
collection:.*
permission:r
""",
"owner_only": """
[rw]
user:.+
collection:^%(login)s(/.*)?$
permission:rw
"""}
def _read_from_sections(user, collection_url, permission): def _read_from_sections(user, collection_url, permission):