from jingrow.model.document import Page def action_key(document: Page) -> str: if document.pagetype == "Site" and document.is_new(): return "allow_site_creation" if document.pagetype == "Server" and document.is_new(): return "allow_server_creation" if document.pagetype == "Release Group" and document.is_new(): return "allow_bench_creation" if document.pagetype == "Jcloude Webhook": return "allow_webhook_configuration" return ""