removed: ezn patterns for rawcontent and ajaxcontent:
index_rawcontent.html, index_ajaxcontent.html now we have out_streams in Request and some special keyword in ezc templates for sending content to the specified streams changed: the way how winix answers to the client's browsers: info from Request class: winix answer send to the client's browser | | depending on send_bin_stream ------------------------------------------------- | | text answer binary answer | | depending on return_json sending out_bin_stream ------------------------------------ | | normal request ajax request | | sending out_streams[0] depending on return_info_only ------------------------------------------------------ | | generating JSON object from: generating JSON object only from info out_streams and info, e.g.: e.g.: { { info object serialized here } "stream_1": "some html content", "stream_2": "some other html content", "info": { info object serialized here } } note that out_streams[0] is not sent in JSON answers git-svn-id: svn://ttmath.org/publicrep/winix/trunk@937 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2010-2012, Tomasz Sowa
|
||||
* Copyright (c) 2010-2013, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
@@ -144,6 +144,30 @@ bool ssl = false;
|
||||
}
|
||||
|
||||
|
||||
void System::CreateItemLink(long parent_id, const std::wstring & url, const std::wstring & subdomain,
|
||||
std::wstring & link, bool clear_str)
|
||||
{
|
||||
PutUrlProto(config->use_ssl, link, clear_str);
|
||||
|
||||
if( !subdomain.empty() )
|
||||
{
|
||||
link += subdomain;
|
||||
link += '.';
|
||||
}
|
||||
|
||||
link += config->base_url;
|
||||
dirs.MakePath(parent_id, link, false); // !! IMPROVE ME may some kind of error checks here?
|
||||
link += url;
|
||||
}
|
||||
|
||||
|
||||
void System::CreateItemLink(const Item & item, std::wstring & link, bool clear_str)
|
||||
{
|
||||
CreateItemLink(item.parent_id, item.url, cur->request->subdomain, link, clear_str);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// !! IMPROVE ME
|
||||
// !! mozna zrobic jakas obsluge kiedy nie mozemy sie redirectnac, np gdy wystapil blad
|
||||
// !! moze zwracac jakas wartosc?
|
||||
|
Reference in New Issue
Block a user