from london.dispatch import Signal image_form_initialize = Signal() image_form_pre_save = Signal()
from london.dispatch import Signal from images import add_image_field_to_sender_form from london.apps.seo import add_meta_info_fields_to_sender_form, save_meta_info_from_sender_form from london.apps.collections import add_collections_to_sender_form, save_collections_from_sender_form try: from londonforms import add_forms_to_page_form except: add_forms_to_page_form = None try: from revision import add_delayed_publication_field_to_form, save_delayed_publication except: add_delayed_publication_field_to_form = None save_delayed_publication = None page_form_initialize = Signal() page_form_initialize.connect(add_meta_info_fields_to_sender_form) page_form_initialize.connect(add_image_field_to_sender_form) page_form_initialize.connect(add_collections_to_sender_form) page_form_pre_save = Signal() page_form_post_save = Signal() page_form_post_save.connect(save_meta_info_from_sender_form) page_form_post_save.connect(save_collections_from_sender_form) page_form_clean = Signal() page_model_save = Signal() page_get_name = Signal() page_get_title = Signal() page_get_content = Signal() if add_forms_to_page_form: page_form_initialize.connect(add_forms_to_page_form)
from images import add_image_field_to_sender_form from london.apps.seo import add_meta_info_fields_to_sender_form, save_meta_info_from_sender_form from london.apps.collections import add_collections_to_sender_form, save_collections_from_sender_form try: from londonforms import add_forms_to_page_form except: add_forms_to_page_form = None try: from revision import add_delayed_publication_field_to_form, save_delayed_publication except: add_delayed_publication_field_to_form = None save_delayed_publication = None page_form_initialize = Signal() page_form_initialize.connect(add_meta_info_fields_to_sender_form) page_form_initialize.connect(add_image_field_to_sender_form) page_form_initialize.connect(add_collections_to_sender_form) page_form_pre_save = Signal() page_form_post_save = Signal() page_form_post_save.connect(save_meta_info_from_sender_form) page_form_post_save.connect(save_collections_from_sender_form) page_form_clean = Signal() page_model_save = Signal() page_get_name = Signal() page_get_title = Signal() page_get_content = Signal() if add_forms_to_page_form: page_form_initialize.connect(add_forms_to_page_form)
from london.dispatch import Signal # This signal is useful for customizing and adding single fields to the comment post_comment = Signal(required=('comment', 'request'))
from london.dispatch import Signal from london.apps.collections import add_collection_items_to_sender_form, save_collection_items_from_sender_form collections_form_initialize = Signal() collections_form_initialize.connect(add_collection_items_to_sender_form) collections_form_pre_save = Signal() collections_form_post_save = Signal() collections_form_post_save.connect(save_collection_items_from_sender_form) collections_form_clean = Signal()
from london.dispatch import Signal from images import add_image_field_to_sender_form from london.apps.seo import add_meta_info_fields_to_sender_form, save_meta_info_from_sender_form from london.apps.collections import add_collections_to_sender_form, save_collections_from_sender_form post_form_initialize = Signal() post_form_initialize.connect(add_meta_info_fields_to_sender_form) post_form_initialize.connect(add_image_field_to_sender_form) post_form_initialize.connect(add_collections_to_sender_form) post_form_pre_save = Signal() post_form_post_save = Signal() post_form_post_save.connect(save_meta_info_from_sender_form) post_form_post_save.connect(save_collections_from_sender_form) #post_form_clean = Signal()