Diff of /branches/1.5/turbogears/controllers.py [r7419] .. [r7420] Maximize Restore

  Switch to side-by-side view

--- a/branches/1.5/turbogears/controllers.py
+++ b/branches/1.5/turbogears/controllers.py
@@ -445,7 +445,7 @@
             template = output.pop('tg_template', template)
             format = output.pop('tg_format', format)
 
-        if template and template.startswith('.'):
+        if isinstance(template, basestring) and template.startswith('.'):
             template = func.__module__[:func.__module__.rfind('.')] + template
 
         return _process_output(output, template, format, content_type,
@@ -462,7 +462,7 @@
 
 
 def _get_flash():
-    '''Retrieve the flash message (if one is set), clearing the message.'''
+    """Retrieve the flash message (if one is set), clearing the message."""
     request_cookie = request.cookie
     response_cookie = response.cookie