web/views/basetemplates.py
branchtls-sprint
changeset 828 394927376a01
parent 826 51cb3d85c059
child 832 8e06873d80d3
--- a/web/views/basetemplates.py	Wed Feb 18 20:23:43 2009 +0100
+++ b/web/views/basetemplates.py	Wed Feb 18 20:25:12 2009 +0100
@@ -75,15 +75,11 @@
         return 0
     return view.templatable
 
-@objectify_selector
-def non_templatable_view(cls, req, rset, *args, **kwargs):
-    return not templatable_view()(cls, req, rset, *args, **kwargs)
-
 
 class NonTemplatableViewTemplate(MainTemplate):
     """main template for any non templatable views (xml, binaries, etc.)"""
     id = 'main-template'
-    __select__ = non_templatable_view()
+    __select__ = ~ templatable_view()
     
     def call(self, view):
         view.set_request_content_type()