start adding support for Models objects from Ezc
This commit is contained in:
@@ -63,7 +63,9 @@ void Item::fields()
|
||||
field(L"subject", subject);
|
||||
field(L"template", html_template);
|
||||
field(L"sort_index", sort_index);
|
||||
field(L"content_id", item_content, morm::FT::foreign_key);
|
||||
field(L"content_id", L"content", item_content, morm::FT::foreign_key);
|
||||
|
||||
//field(L"my_test_function", my_test_function);
|
||||
|
||||
// may we should add a method setTypeFromInt(int t)?
|
||||
type = static_cast<Type>(type_helper);
|
||||
|
||||
@@ -44,6 +44,10 @@
|
||||
#include "core/log.h"
|
||||
|
||||
|
||||
#include "funinfo.h"
|
||||
#include "templates/htmltextstream.h"
|
||||
|
||||
|
||||
|
||||
namespace Winix
|
||||
{
|
||||
@@ -180,6 +184,12 @@ public:
|
||||
void propagate_connector();
|
||||
|
||||
|
||||
// for tests
|
||||
static void my_test_function(Ezc::FunInfo<HtmlTextStream> & env)
|
||||
{
|
||||
env.out << L"hello from function";
|
||||
}
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user