[pirate-politics] r556 committed - Created wiki page through web user interface.

2 views
Skip to first unread message

pirate-...@googlecode.com

unread,
Feb 9, 2011, 12:15:48 AM2/9/11
to pirate-poli...@googlegroups.com
Revision: 556
Author: oly.m...@gmail.com
Date: Tue Feb 8 21:15:38 2011
Log: Created wiki page through web user interface.
http://code.google.com/p/pirate-politics/source/detail?r=556

Added:
/wiki/pp_get_solution.wiki

=======================================
--- /dev/null
+++ /wiki/pp_get_solution.wiki Tue Feb 8 21:15:38 2011
@@ -0,0 +1,45 @@
+#summary This is the documentation page for the tag pp_get_issue
+#sidebar TableOfContents
+
+= Custom Tag: `pp_get_solution` =
+====_Module: pirate_issues====
+
+This tag populates the pp_solution namespace object with an object called
solution. The solution object contains information about the specific
solution requested.
+
+
+==_Arguments and Parameters_==
+
+ #. *object*:
+ * This parameter tells the tag which issue to display details about it.
+ * for example: `object=request.object`
+
+
+==_Return value_==
+This adds the object "solution" to the pp_solution namespace object.
+
+The data within this object are:
+
+ * `pp_solution.solution.consensus`:
+ * `pp_solution.solution.upvotes`:
+ * `pp_solution.solution.downvotes`:
+ * `pp_solution.solution.neutralvotes`:
+
+==_Usage Notes_==
+ * *Assumptions*: None
+ * *Errors*: None
+
+==_Examples_==
+====Basic form====
+The following code will display information about an issue specified in
request.object (the path of the page being viewed)
+
+{{{
+{% pp_get_solution object=request.object %}
+<h2>Details for {{pp_solution.solution.name|title}}</h2>
+ <ul>
+ <li>{{pp_solution.solution.text }}</li>
+ <li><a
href="/upvote/{{pp_solution.solution.topic}}/{{pp_solution.solution.id}}">Support:
{{ pp_solution.upvotes }}</a></li>
+ <li><a
href="/neutvote/{{pp_solution.solution.topic}}/{{pp_solution.solution.id}}">Neutral:
{{ pp_solution.neutralvotes }}</a></li>
+ <li><a
href="/downvote/{{pp_solution.solution.topic}}/{{pp_solution.solution.id}}">Oppose:
{{ pp_solution.neutralvotes }}</a></li>
+ </ul>
+{% endpp_get_solution %}
+}}}

Reply all
Reply to author
Forward
0 new messages