mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
documented and cleaned up the aclmanager.py2
This commit is contained in:
parent
1a7fdd0d70
commit
41c37129c0
@ -149,7 +149,7 @@ class ACLManager(CollectionsManager):
|
|||||||
|
|
||||||
def validate_access(self, access):
|
def validate_access(self, access):
|
||||||
"""Returns true if the supplied access value is valid
|
"""Returns true if the supplied access value is valid
|
||||||
otherwise the terminates the process
|
otherwise terminates the process
|
||||||
|
|
||||||
:param str access: The access value to be validated
|
:param str access: The access value to be validated
|
||||||
:return: True if valid
|
:return: True if valid
|
||||||
@ -174,7 +174,7 @@ class ACLManager(CollectionsManager):
|
|||||||
|
|
||||||
:param str url: The URL for the rule
|
:param str url: The URL for the rule
|
||||||
:param str access: The access value for the rule
|
:param str access: The access value for the rule
|
||||||
:param bool exact_match: Is the rule an absolute value
|
:param bool exact_match: Is the rule to be added an exact match
|
||||||
:rtype: None
|
:rtype: None
|
||||||
"""
|
"""
|
||||||
if not self.validate_access(access):
|
if not self.validate_access(access):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user