updated to the new Ezc API
[ezc stream] has gone, now we have [ezc out] and [out] the output streams have names now: it's a std::map, before we have a std::vector and the streams are serialized to "out" space in json Request::out_streams[] are split into Request::out_main_stream and Request::out_streams class git-svn-id: svn://ttmath.org/publicrep/winix/trunk@1017 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -490,7 +490,9 @@ void Rm::Clear()
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* !! IMPROVE ME what about a Content-Type header for javascript?
|
||||
*/
|
||||
void Rm::CreateJSON(bool status)
|
||||
{
|
||||
using TemplatesFunctions::R;
|
||||
@@ -498,7 +500,7 @@ PT::WTextStream buf;
|
||||
|
||||
JSONescape(buf, cur->request->item.url);
|
||||
|
||||
auto & out = cur->request->out_streams[0];
|
||||
auto & out = cur->request->out_main_stream;
|
||||
out << R("{\"files\": [{\"") << R(buf) << R("\": ");
|
||||
|
||||
if( status )
|
||||
@@ -508,8 +510,8 @@ PT::WTextStream buf;
|
||||
|
||||
out << R("}]}");
|
||||
|
||||
cur->request->page_generated = true;
|
||||
cur->request->use_html_filter[0] = false;
|
||||
cur->request->page_generated = true;
|
||||
cur->request->out_main_stream_use_html_filter = false;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user