Home | Trees | Indices | Help |
|
---|
|
1 """Test module for Python 2.5-specific syntax, like the @-decorator syntax.""" 2 3 from cherrypy import expose, tools7 8 @expose 11 12 @expose() 15 16 @expose("call_alias") 19 20 @expose(["alias1", "alias2"]) 23 24 @expose(alias="alias3")2730 31 @expose 32 @tools.response_headers(headers=[('Content-Type', 'application/data')]) 35 # This is here to demonstrate that _cp_config = {...} overwrites 36 # the _cp_config attribute added by the Tool decorator. You have 37 # to write _cp_config[k] = v or _cp_config.update(...) instead. 38 blah._cp_config['response.stream'] = True39
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Aug 24 13:21:40 2009 | http://epydoc.sourceforge.net |