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

2 views
Skip to first unread message

pirate-...@googlecode.com

unread,
Feb 9, 2011, 8:07:10 AM2/9/11
to pirate-poli...@googlegroups.com
Revision: 597
Author: fragro
Date: Wed Feb 9 04:46:17 2011
Log: Created wiki page through web user interface.
http://code.google.com/p/pirate-politics/source/detail?r=597

Added:
/wiki/pp_get_user_profile.wiki

=======================================
--- /dev/null
+++ /wiki/pp_get_user_profile.wiki Wed Feb 9 04:46:17 2011
@@ -0,0 +1,32 @@
+#summary To load this tag include {% load notificationtags %} at the top
of the html file.
+#sidebar TableOfContents
+
+= Custom Tag: `pp_get_user_profile` =
+====_Module: pirate_messges_====
+
+This template tag populates the namespace `pp_profile` with a Profile
object, containing biographical and other information
+
+==_Arguments and Parameters_==
+
+ * user: the user we need a Profile for
+
+==_Return value_==
+
+ * `pp_profile.profile`: a Profile object containing all of the Profile
model fields
+ * `pp_profile.user`: A User object the profile is associated with.
+
+==_Usage Notes_==
+ * *Assumptions*: None
+
+ * *Errors*: None
+
+==_Examples_==
+====Basic form====
+The following code will display the reputation integer.
+{{{
+ {% pp_get_user_profile user=request.user %}
+ {{ pp_profile.profile.bio }}
+ {{ pp_profile.profile.birthdate }}
+ {{ pp_profile.user }}
+ {% endpp_get_user_profile %}
+}}}

Reply all
Reply to author
Forward
0 new messages