# -*- coding: utf-8 -*-
# Copyright (c) 2020, JINGROW
# For license information, please see license.txt


from jingrow.model.page import Page


class SiteConfigKeyBlacklist(Page):
	# begin: auto-generated types
	# This code is auto-generated. Do not modify anything in this block.

	from typing import TYPE_CHECKING

	if TYPE_CHECKING:
		from jingrow.types import DF

		key: DF.Data
		reason: DF.SmallText | None
	# end: auto-generated types

	def validate(self):
		import jingrow

		if jingrow.db.exists("Site Config Key", {"key": self.key, "enabled": True}):
			jingrow.msgprint(f"Key {self.key} exists in Site Config Key. This means that ")
