Ticket #151 (new enhancement)

Opened 5 years ago

Last modified 4 years ago

Proposal to enable non-delayed delivery of intermediate content while debug == true

Reported by: cemerick Owned by: ianb
Priority: normal Milestone:
Component: paste Version: svn-trunk
Severity: normal Keywords: intermediate content response generator debug spammed
Cc: ben@…

Description

As detailed in the pylons-discuss threads referenced below, paste/pylons collects all content yielded by an action (or a generator function explicitly attached to a Response) when debug == true. This is unfortunate, as it makes developing and debugging actions that do need to incrementally generate response content significantly more difficult than "normal" actions.

The core problem, as explained by Ben Bangert, is that the debug middleware needs to capture all of an action's response content before delivering it, so that it can display the interactive debugger if an error occurs.

My proposal is to allow actions to generate intermediate content without the debug middleware from delaying the delivery of output, but only when (a) an appropriate environment- or application-wide option is set in the effective .ini file, or (b) the action explicitly sets an appropriate attribute on the returned Response indicating that generator-yielded content should be delivered without delay. Neither of these approaches would impact existing applications until a developer chooses to utilize the option available described by approach (a), or sets the attribute mentioned in approach (b). Either way, if an error does occur after some content has been delivered to the client, thereby making the direct display of the interactive debugger impossible, a developer could easily pick the debug URL out of his or her console, and access backtrace information. If an error occurs before any content is delivered, then the debug middleware would be able to respond with the interactive debugger directly.

Personally, I believe that (b) is the superior approach -- it allows for each Response's behaviour within the debug middleware to be configured on an as-needed basis, is more local to the change at hand (i.e. doesn't introduce another .ini property) and probably represents less work overall.


 http://groups.google.com/group/pylons-discuss/browse_frm/thread/32f4a69cfc4a170f  http://groups.google.com/group/pylons-discuss/browse_frm/thread/2db53b1a91fa6f0a

Change History

Changed 5 years ago by cemerick

  • cc ianb@… removed

Changed 4 years ago by vaot123

 IT外包  韩国时装  韩国品牌  休闲服饰  韩国服饰  折扣店  服装折扣  品牌折扣店  上装  韩国上装  裤装  韩国裤装  鞋帽  韩国鞋帽  皮包  韩国皮包  配饰  韩国配饰  女装  韩国女装  休闲女装  韩国女裤  女裤  工厂店  服装工厂店  韩国服装工厂店  韩国服装  青密369  柏上泽  诗维雅  花花雀  太曼斯  kani girl  网络视频服务器  视频服务器  网络摄像机  视频光端机  视频监控  网络视频监控  远程视频监控  网络摄像机  物流软件  胶带机  胶带机械  胶带机器  封箱胶带机  塑料胶带  胶带设备  胶带生产设备  短信猫  代发短信  短信群发器  电流传感器  电压传感器  电流变送器  霍尔传感器  功率变送器  电流变送器  电压变送器  隔离端子  伟哥  阴茎增大  注册美国公司  美国公司注册  注册英国公司  英国公司注册  注册香港公司  香港公司注册  注册BVI公司  BVI公司注册  注册美国公司  美国公司注册  注册英国公司  英国公司注册  注册香港公司  香港公司注册  注册BVI公司  BVI公司注册  装修污染  装修污染治理  室内装修污染治理  室内空气污染治理  室内空气治理  室内环境治理  室内空气净化  空气治理  空气污染治理  mba  空气检测  环境检测  wire mesh  五金配件  藏獒  藏獒  利郎  领带  衬衫  丝巾  物流软件  针孔摄像机  窃听器  Beijing Tours  无线网桥  无线监控  渔具  废品回收  产品设计  工业设计  投影机灯泡  投影机维修  加盟连锁  性用品批发  成人用品批发  成人用品  成人保健  性用品  夫妻用品  情趣内衣  藏獒  物流认证  物流认证  物流认证  景观水  景观水  景观水  电子签章  癫痫病  精神病  移民  移民  技术移民  移民加拿大  加拿大技术移民  投资移民  投资移民  加拿大投资移民  美国投资移民  匈牙利留学  澳大利亚技术移民  移民签证  探亲签证  加拿大移民  加拿大移民  美国移民  成移民美国  澳大利亚移民  澳大利亚移民  移民澳大利亚  移民澳大利亚  出国留学  出国留学  留学中介  加拿大留学  留学加拿大  美国留学  留学美国  英国留学  留学英国  日本留学  留学日本  马来西亚留学  留学马来西亚  澳大利亚留学  留学澳大利亚  留学新加坡  新加坡留学  新西兰留学  留学新西兰  留学签证  商务签证  商务签证  美国签证  美国移民签证  澳大利亚移民签证  澳大利亚签证  留学  出国  签证  服装印花  北京装饰公司  北京装修公司  货架  java培训  精油  芳香疗法  Google左侧排名  Google优化  Google排名  Google优化  Google排名  网站建设  平面设计  电子杂志  Google左侧优化  Google排名优化  Google左侧排名  程序开发  电子杂志制作  电子杂志  论文发表  日语培训  日语学校  升降机  北京网站建设  模特衣架  模特衣架  高血压  小家电  迷你小家电  小电器  wow gold  wow Powerleveling

Changed 4 years ago by ianb

  • keywords spammed added
Note: See TracTickets for help on using tickets.