bah I need to take a break, my eyes play tricks on me. -Thadeus
On Fri, Jan 29, 2010 at 3:35 PM, Thadeus Burgess <thade...@thadeusb.com> wrote: > Why does this function get a dictionary, when this is the only > function in postprocessing > > def compress_response(xml): > print xml # prints {'form': <gluon.sqlhtml.SQLFORM object at 0x3f32b50>} > cpat = > re.compile(r'[\n\t\r\f\v]|(?s)\s\s\s|(?s)<pre(.*?)</pre>|(?s)<blockquote(.*?)</blockquote>|(?s)<textarea(.*?)</textarea>') > d = cpat.sub(save_pre, xml) > return d > > response.postprocessing.append(compress_response) > > and this function get a string? when it is the only function in > postprocessing? > > def hi(vars): > print vars # prints <!DOCTYPE html PUBLIC "-//W3C//DT............ > return vars > > response.postprocessing.append(hi) > > -Thadeus > > > > > > On Fri, Jan 29, 2010 at 3:26 PM, Thadeus Burgess <thade...@thadeusb.com> > wrote: >> Thanks. grep fail :) >> >> -Thadeus >> >> >> >> >> >> On Fri, Jan 29, 2010 at 3:22 PM, Jonathan Lundell <jlund...@pobox.com> wrote: >>> On Jan 29, 2010, at 1:16 PM, Thadeus Burgess wrote: >>> >>>> Maybe its just me and I need to look harder >>>> >>>> but I can't find where web2py calls this... at all >>> >>> run_controller_in() (in compileapp.py) >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "web2py-users" group. >>> To post to this group, send email to web...@googlegroups.com. >>> To unsubscribe from this group, send email to >>> web2py+unsubscr...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/web2py?hl=en. >>> >>> >> > -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.