You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
def domain_relative_to(domain):
|
|
if domain == '@':
|
|
return zone
|
|
if domain[-1] != '.':
|
|
return f"{domain}.{zone}"
|
|
return domain
|
|
|
|
class FilterModule(object):
|
|
def filters(self):
|
|
return {'domain_relative_to': domain_relative_to}
|