Author: jtauber
Date: Sat Sep 27 04:41:43 2008
New Revision: 946

Added:
    trunk/local_apps/account/templatetags/other_service_tags.py

Log:
added other_service template tag

Added: trunk/local_apps/account/templatetags/other_service_tags.py
==============================================================================
--- (empty file)
+++ trunk/local_apps/account/templatetags/other_service_tags.py Sat Sep 27  
04:41:43 2008
@@ -0,0 +1,12 @@
+from django import template
+from account.models import OtherServiceInfo
+
+register = template.Library()
+
+def other_service(user, key):
+    try:
+        value = OtherServiceInfo.objects.get(user=user, key=key).value
+    except OtherServiceInfo.DoesNotExist:
+        value = u""
+    return value
+register.simple_tag(other_service)
\ No newline at end of file

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to