Patrick Samson avatar Patrick Samson committed a0876ca

The dependency to django-pagination in the default template set is removed

Comments (0)

Files changed (3)

 Broadcast a message to multiple Users.
 
 For an easier cleanup, all these messages are directly marked as archived and deleted on the sender side.
+The message is expected to be issued from a trusted application, so moderation
+is not necessary and the status is automatically set to 'accepted'.
 
 Arguments: (sender, recipients, subject, body='', skip_notification=False)
 
 Write a message to a User.
 
 Contrary to pm_broadcast(), the message is archived and/or deleted on the sender side only if requested.
+The message may come from an untrusted application, a gateway for example,
+so it may be useful to involve some auto moderators in the processing.
 
-Arguments: (sender, recipient, subject, body='', skip_notification=False, auto_archive=False, auto_delete=False)
+Arguments: (sender, recipient, subject, body='', skip_notification=False,
+auto_archive=False, auto_delete=False, auto_moderators=[])
 
 === Arguments ===
 
 * {{{auto_archive}}}: to mark the message as archived on the sender side
 * {{{auto_delete}}}: to mark the message as deleted on the sender side
+* {{{auto_moderators}}}: a list of auto-moderation functions
 * {{{body}}}: the contents of the message
 * {{{recipient}}}: a User instance
 * {{{recipients}}}: a list or tuple of User instances, or a single User instance

Frequently_Asked_Questions.wiki

 POSTMAN_AUTO_MODERATE_AS = True
 }}}
 
+**I installed django-pagination, and still I don't see any pagination widgets**
+
+* Is there really more messages than one page capacity (default is 20)?
+* Check that {{{pagination}}} is declared before {{{postman}}} in the {{{INSTALLED_APPS}}} setting.
+* See if it's better by disabling {{{postman/templatetags/pagination_tags.py}}} and {{{.pyc}}} (rename or move the files).
+
 
 ----
 <-//[[API|Previous]]// //[[Home]]//

Tags_and_Filters.wiki

 
 * {{{postman_admin_modify.py}}}: a library exclusively designed for a customized change_form
   template used in the Admin site for the moderation of pending messages.
-* {{{pagination_tags_for_tests.py}}}: a mock of the django-pagination application template tags,
-  only usable for the test suite in case the real application is not installed.
-  To rename to {{{pagination_tags.py}}} during the test session.
+* {{{pagination_tags.py}}}: a mock of the django-pagination application template tags.
+  For convenience, the design of the default template set is done with the use of that application.
+  The mock will avoid failures in template rendering if the real application is not installed,
+  as it may be the case for the test suite run in a minimal configuration.
+  To deactivate the mock and use the real implementation, just make sure that {{{pagination}}} is declared
+  before {{{postman}}} in the {{{INSTALLED_APPS}}} setting.
 
 === Tags ===
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.