adhocracy_core.resources.subscriber module¶
Autoupdate resources.
-
update_modification_date_modified_by(event)[source]¶ Update the IMetadata fields modified_by and modification_date.
-
autoupdate_versionable_has_new_version(event)[source]¶ Auto updated versionable resource if a reference has new version.
Raises: AutoUpdateNoForkAllowedError – if a fork is created but not allowed
-
autoupdate_non_versionable_has_new_version(event)[source]¶ Auto update non versionable resources if a reference has new version.
-
send_password_reset_mail(event)[source]¶ Send mail with reset password link if a reset resource is created.
-
apply_user_activation_configuration(event)[source]¶ Activate user or send activation or invite email.
-
download_external_picture_for_created(event: <InterfaceClass adhocracy_core.interfaces.IResourceCreatedAndAdded>)[source]¶ Download external_picture_url for new resources.
-
download_external_picture_for_version(event: <InterfaceClass adhocracy_core.interfaces.IItemVersionNewVersionAdded>)[source]¶ Download external_picture_url for new item versions.
-
download_external_picture_for_edited(event: <InterfaceClass adhocracy_core.interfaces.IResourceSheetModified>)[source]¶ Download external_picture_url for edited resources.