1. Guilherme Gondim
  2. django-diario

Commits

semente  committed 2ed1f64

Added documentation for signals.

--HG--
extra : convert_revision : svn%3Aea932676-bf3b-0410-9f11-03e9079df846/trunk%40165

  • Participants
  • Parent commits 9339970
  • Branches master

Comments (0)

Files changed (1)

File docs/signals.txt

View file
+==============
+Diário Signals
+==============
+
+Signals relating to entries.
+
+
+Signals Reference
+=================
+
+convert_body_to_html
+--------------------
+
+Convert plain text markup in ``body_source`` field to HTML.
+
+This signal always connected in models module using ``pre_save``
+method.
+
+
+update_draft_date
+-----------------
+
+Update instance's pub_date if entry was draft.
+
+This signal always connected in models module using ``pre_save``
+method.
+
+ping_with_pingomatic
+--------------------
+
+Updates multiple services and search engines about updates to
+weblog content, with `ping-o-matic <http://pingomatic.com/>`_.
+
+To connect this signal, you need use ``post_save``
+method. Example::
+
+  signals.post_save.connect(ping_with_pingomatic, sender=Entry)