Create API calls to Manage Blacklisted Domains

Add all API calls to manage blacklisted domains via a database.
Also, change the code to use the blacklisted domains from
the database and not from the config file.

bp/blacklist

Change-Id: I0fa08652cc0f15ab57708cd28413c43200e6d802
This commit is contained in:
betsy luzader
2013-12-19 09:40:35 -06:00
parent a2934600e8
commit e60a585457
19 changed files with 799 additions and 23 deletions

View File

@@ -160,6 +160,10 @@ class DuplicateRecord(Duplicate):
error_type = 'duplicate_record'
class DuplicateBlacklist(Duplicate):
error_type = 'duplicate_blacklist'
class NotFound(Base):
error_code = 404
error_type = 'not_found'
@@ -177,6 +181,10 @@ class TsigKeyNotFound(NotFound):
error_type = 'tsigkey_not_found'
class BlacklistNotFound(NotFound):
error_type = 'blacklist_not_found'
class DomainNotFound(NotFound):
error_type = 'domain_not_found'