1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-29 09:02:27 +01:00
pywb/pywb/cdx/perms.py

31 lines
738 B
Python
Raw Normal View History

#=================================================================
class AllowAllPerms(object):
"""
Sample Perm Checker which allows all
"""
def allow_url_lookup(self, urlkey, url):
"""
Return true/false if url or urlkey (canonicalized url)
should be allowed
"""
return True
def allow_capture(self, cdx):
"""
Return true/false is specified capture (cdx) should be
allowed
"""
return True
def filter_fields(self, cdx):
"""
Filter out any forbidden cdx fields from cdx dictionary
"""
return cdx
#=================================================================
#TODO: other types of perm handlers