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 <[email protected]> wrote:
> Thanks. grep fail :)
>
> -Thadeus
>
>
>
>
>
> On Fri, Jan 29, 2010 at 3:22 PM, Jonathan Lundell <[email protected]> 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 [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.