Author: alex.gaynor
Date: Tue Sep 30 07:34:16 2008
New Revision: 986

Modified:
    trunk/local_apps/account/templatetags/openid_tags.py

Log:
fixed use of a python 2.5ism

Modified: trunk/local_apps/account/templatetags/openid_tags.py
==============================================================================
--- trunk/local_apps/account/templatetags/openid_tags.py        (original)
+++ trunk/local_apps/account/templatetags/openid_tags.py        Tue Sep 30  
07:34:16 2008
@@ -2,6 +2,15 @@
  from django_openidauth.models import UserOpenID
  from django.utils.safestring import mark_safe

+try:
+    any
+except NameError:
+    def any(seq):
+        for x in seq:
+            if x:
+                return True
+        return False
+
  register = template.Library()

  def openid_icon(openid, user):
@@ -11,4 +20,4 @@
          return mark_safe(u'<img src="/site_media/openid-icon.png"  
alt="Logged in with OpenID" />')
      else:
          return u''
-register.simple_tag(openid_icon)
\ No newline at end of file
+register.simple_tag(openid_icon)

--~--~---------~--~----~------------~-------~--~----~
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