[Checkins] SVN: z3c.pt/branches/Missing_handling/src/z3c/pt/pagetemplate.py Convert things that are False to None

Patrick Gerken do3ccqrv at gmail.com
Fri Jun 4 11:36:25 EDT 2010


Log message for revision 113117:
  Convert things that are False to None

Changed:
  U   z3c.pt/branches/Missing_handling/src/z3c/pt/pagetemplate.py

-=-
Modified: z3c.pt/branches/Missing_handling/src/z3c/pt/pagetemplate.py
===================================================================
--- z3c.pt/branches/Missing_handling/src/z3c/pt/pagetemplate.py	2010-06-04 15:22:30 UTC (rev 113116)
+++ z3c.pt/branches/Missing_handling/src/z3c/pt/pagetemplate.py	2010-06-04 15:36:24 UTC (rev 113117)
@@ -121,6 +121,8 @@
             # bind translation-method to request
             def translate(
                 msgid, domain=None, mapping=None, target_language=None, default=None):
+                if not msgid:
+                    msgid = None
                 return fast_translate(
                     msgid, domain, mapping, request, target_language, default)
             context[config.SYMBOLS.translate] = translate



More information about the checkins mailing list