# Permission List PLIST = ["article.read", "article.pend", "article.del", "setting.edit", "ig.accinfo", "ig.login", "ig.queue"] # no permission:usermgr except root PLIST_ROOT = PLIST + ["usermgr"] # event type EVENT_TYPE = { "general": ["newpost", "delpost", "newcomment", "delcomment"], "admin": ["login", "user.create", "user.delete", # user "article.delete", "comment.delete", # article "article.pend", "comment.pend", # comment "setting.modify"], # settings "server": ["server.start"] } # Platform Setting Model PLATFORM_SETTING_MODEL = { "Check_Before_Post": [bool], "JWT_Valid_Time": [int], "Niming_Max_Word": [int], "Attachment_Count": [int], "Attachment_Size": [int], "Allowed_MIME": [list, str], }