renamed: WinixModel -> WinixModelDeprecated (this class will be removed)
added: WinixModel (models/winixmodel.h|cpp) - a class inheriting from morm::WinixModel, we have methods such as: get_config(), get_logger(), get_request()
and this class will be a base class for our models
added: WinixModelConnector (models/winixmodelconnector.h|cpp) - a class inheriting from morm::WinixModelConnector
this connector we are using instead of morm::ModelConnector - there are pointers to winix objects there (config, request, log)
added to Request: Ezc::Models models
removed from TemplatesFunctions: Ezc::Models ezc_models;
changed: ImgCrop winix functions is using its own item_tab vector now (not finished yet)
added: Item::is(), Item::link(), ItemContent::print_content()
This commit is contained in:
@@ -72,7 +72,7 @@ void ImgCrop::GetDirContent()
|
||||
|
||||
morm::Finder<Item> finder(model_connector);
|
||||
|
||||
cur->request->item_tab = finder.
|
||||
item_tab = finder.
|
||||
select().
|
||||
where().
|
||||
eq(L"type", static_cast<int>(Item::file)).
|
||||
@@ -81,7 +81,7 @@ void ImgCrop::GetDirContent()
|
||||
get_vector();
|
||||
|
||||
//db->GetItems(cur->request->item_tab, iq);
|
||||
system->CheckWriteAccessToItems(cur->request->item_tab);
|
||||
system->CheckWriteAccessToItems(item_tab);
|
||||
}
|
||||
|
||||
|
||||
@@ -137,7 +137,10 @@ void ImgCrop::MakePost()
|
||||
void ImgCrop::MakeGet()
|
||||
{
|
||||
if( !cur->request->is_item )
|
||||
{
|
||||
GetDirContent();
|
||||
cur->request->models.Add(L"item_tab", item_tab);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user