[pirate-politics] r585 committed - Edited wiki page pp_get_issue_list through web user interface.

4 views
Skip to first unread message

pirate-...@googlecode.com

unread,
Feb 9, 2011, 7:18:50 AM2/9/11
to pirate-poli...@googlegroups.com
Revision: 585
Author: fragro
Date: Wed Feb 9 04:18:37 2011
Log: Edited wiki page pp_get_issue_list through web user interface.
http://code.google.com/p/pirate-politics/source/detail?r=585

Modified:
/wiki/pp_get_issue_list.wiki

=======================================
--- /wiki/pp_get_issue_list.wiki Wed Feb 9 00:59:26 2011
+++ /wiki/pp_get_issue_list.wiki Wed Feb 9 04:18:37 2011
@@ -4,7 +4,7 @@
= Custom Tag: `pp_get_issue_list` =
====_Module: pirate_issues_====

-This tag populates the pp_issue namespace object with an object called
issue_list. Issue_list is an array of issues created using the
pp_issue_form tag. Within each element of this array, the fields _name_,
_neutralCount_, _opposeCount_, _text_, and _topic_ are populated with data.
This tag allows for easily printing a list of all the issues with their
information.
+This tag populates the pp_issue namespace object with an object called
issue_list. Issue list is an array of Consensus objects, not actually
issues. This is to solve a big scalability problem. However each Consensus
object is easily accessible through their reference to their parent object
`content_object`. Within each element of this array, the fields _name_,
_text_, and _topic_ are populated with data. This tag allows for easily
printing a list of all the issues with their information.

==_Arguments and Parameters_==
This tag takes no arguments or parameters.
@@ -14,18 +14,18 @@

The data within each object in the array are:

-_Note: the variable "issue" in these samples is not created by the tag
itself. It represents one object from the array "issue_list" created by
this tag_
-
- * `issue.name`:
+_Note: the variable "issue" in these samples is not created by the tag
itself. It represents one object from the array "issue_list" created by
this tag. In fact "issue" in this context is a Consensus object_
+
+ * `issue.content_object.name`:
This contains the name of the issue.

- * `issue.text`:
+ * `issue.content_object.text`:
This contains a text summary of the issue. It should be short enough to
display on a list of many issues.

- * `issue.topic`:
+ * `issue.content_object.topic`:
This contains a topic that this issue is in. This should be expanded to
allow for multiple issues.

- * `issue.id`:
+ * `issue.content_object.id`:
This is a unique integer identifying this object.

==_Usage Notes_==
@@ -43,10 +43,10 @@
{{{
{% pp_get_issue_list%}
{% for issue in pp_issue.issue_list %}
- {{issue.name}}
- {{issue.text}}
- {{issue.topic}}
- {{issue.id}}
+ {{issue.content_object.name}}
+ {{issue.content_object.text}}
+ {{issue.content_object.topic}}
+ {{issue.content_object.id}}
{% endfor %}
{% endpp_get_issue_list %}

@@ -58,10 +58,9 @@
{{{
{% pp_get_issue_list%}
{% for issue in pp_issue.issue_list %}
- {{issue.name|title}}
- {{issue.text}}
- Categorized under <a
href="/categories/{{issue.topic}}">{{issue.topic}}</a>
- <a href="{% url pp-page object='issue' id=issue.id
template='issue_detail.html' %}">More details</a>
+ {{issue.content_object.name|title}}
+ {{issue.content_object.text}}
+ <a href="{% pp_urk object=issue.content_object
template='issue_detail.html' %}">More details</a>
{% empty %}
There are no issues at this time
{% endfor %}

Reply all
Reply to author
Forward
0 new messages