seitime-frappe/webnotes/hooks.txt
2014-02-11 20:27:06 +05:30

45 lines
No EOL
1.9 KiB
Text

app_name = webnotes
app_title = Frappe Framework
app_publisher = Web Notes Technologies
app_description = Full Stack Web Application Framwork in Python
app_icon = assets/webnotes/images/frappe.svg
app_version = 4.0.0-wip
app_color = #3498db
before_install = webnotes.utils.install.before_install
after_install = webnotes.utils.install.after_install
# website
app_include_js = assets/js/webnotes.min.js
app_include_css = assets/webnotes/css/splash.css
app_include_css = assets/css/webnotes.css
web_include_js = assets/js/webnotes-web.min.js
web_include_css = assets/css/webnotes-web.css
web_include_js = website_script.js
web_include_css = style_settings.css
website_clear_cache = webnotes.templates.generators.website_group.clear_cache
get_desktop_icons = webnotes.manage.get_desktop_icons
notification_config = webnotes.core.notifications.get_notification_config
scheduler_event = all:webnotes.utils.email_lib.bulk.flush
scheduler_event = daily:webnotes.utils.email_lib.bulk.clear_outbox
scheduler_event = daily:webnotes.core.doctype.notification_count.notification_count.delete_event_notification_count
scheduler_event = daily:webnotes.core.doctype.event.event.send_event_digest
scheduler_event = hourly:webnotes.templates.generator.website_group.clear_event_cache
on_session_creation = webnotes.auth.notify_administrator_login
# permissions
permission_query_conditions:Event = webnotes.core.doctype.event.event.get_permission_query_conditions
has_permission:Event = webnotes.core.doctype.event.event.has_permission
permission_query_conditions:ToDo = webnotes.core.doctype.todo.todo.get_permission_query_conditions
has_permission:ToDo = webnotes.core.doctype.todo.todo.has_permission
# bean
bean_event:User Vote:after_insert = webnotes.templates.generators.website_group.clear_cache_on_bean_event
bean_event:Website Sitemap Permission:on_update = webnotes.templates.generators.website_group.clear_cache_on_bean_event