view.py
branchstable
changeset 4702 d9e51820d0c2
parent 4459 f628abfb3a6c
child 5377 84d14ddfae13
equal deleted inserted replaced
4701:3acd198a66c9 4702:d9e51820d0c2
    89     * if the view is not templatable, it should set the `content_type` class
    89     * if the view is not templatable, it should set the `content_type` class
    90       attribute to the correct MIME type (text/xhtml by default)
    90       attribute to the correct MIME type (text/xhtml by default)
    91     * the `category` attribute may be used in the interface to regroup related
    91     * the `category` attribute may be used in the interface to regroup related
    92       objects together
    92       objects together
    93 
    93 
    94     At instantiation time, the standard `req`, `rset`, and `cursor`
    94     At instantiation time, the standard `_cw`, and `cw_rset` attributes are
    95     attributes are added and the `w` attribute will be set at rendering
    95     added and the `w` attribute will be set at rendering time to a write
    96     time to a write function to use.
    96     function to use.
    97     """
    97     """
    98     __registry__ = 'views'
    98     __registry__ = 'views'
    99 
    99 
   100     templatable = True
   100     templatable = True
   101     # content_type = 'application/xhtml+xml' # text/xhtml'
   101     # content_type = 'application/xhtml+xml' # text/xhtml'