namespace PT renamed to pt
This commit is contained in:
@@ -103,7 +103,7 @@ bool Item::insert(morm::ModelData * model_data, bool update_whole_tree)
|
||||
{
|
||||
if( !url_prepared_correctly )
|
||||
{
|
||||
PT::Toa(id, url);
|
||||
pt::Toa(id, url);
|
||||
insert_status = morm::Model::update(model_data, false);
|
||||
}
|
||||
}
|
||||
@@ -137,7 +137,7 @@ bool Item::update(morm::ModelData * model_data, bool update_whole_tree)
|
||||
{
|
||||
if( !url_prepared_correctly )
|
||||
{
|
||||
PT::Toa(id, url);
|
||||
pt::Toa(id, url);
|
||||
update_status = morm::Model::update(model_data, false);
|
||||
}
|
||||
}
|
||||
@@ -197,7 +197,7 @@ std::wstring postfix;
|
||||
if( index > 1 )
|
||||
{
|
||||
postfix = L"_(";
|
||||
PT::Toa(index, postfix, false);
|
||||
pt::Toa(index, postfix, false);
|
||||
postfix += L")";
|
||||
}
|
||||
|
||||
@@ -291,14 +291,14 @@ bool Item::do_migration_to_2()
|
||||
eq(L"content_id", -1).
|
||||
get_list();
|
||||
|
||||
PT::Log * log = model_connector->get_logger();
|
||||
pt::Log * log = model_connector->get_logger();
|
||||
|
||||
for(Item & item : list)
|
||||
{
|
||||
if( log )
|
||||
{
|
||||
(*log) << "Item: adding a content row corresponding to item id: " << item.id << ", type: " << (int)item.type << ", url: " << item.url
|
||||
<< ", subject: " << item.subject << PT::Log::logend;
|
||||
<< ", subject: " << item.subject << pt::Log::logend;
|
||||
}
|
||||
|
||||
item.item_content.set_save_mode(morm::Model::DO_INSERT_ON_SAVE);
|
||||
|
@@ -113,12 +113,12 @@ public:
|
||||
/*
|
||||
* when the object was created
|
||||
*/
|
||||
PT::Date date_creation;
|
||||
pt::Date date_creation;
|
||||
|
||||
/*
|
||||
* when the object was last modified
|
||||
*/
|
||||
PT::Date date_modification;
|
||||
pt::Date date_modification;
|
||||
|
||||
|
||||
|
||||
@@ -201,13 +201,13 @@ public:
|
||||
* meta information
|
||||
* additional information in the form af a Space struct
|
||||
*/
|
||||
PT::Space meta;
|
||||
pt::Space meta;
|
||||
|
||||
/*
|
||||
* admin meta information
|
||||
* additional information available to edit only by an admin
|
||||
*/
|
||||
PT::Space meta_admin;
|
||||
pt::Space meta_admin;
|
||||
|
||||
|
||||
ItemContent();
|
||||
|
@@ -78,19 +78,19 @@ bool Migration::do_migration(morm::ModelConnector * model_connector, morm::Model
|
||||
migration.table_version = current_table_version;
|
||||
migration_status = migration.save();
|
||||
|
||||
PT::Log * log = model_connector->get_logger();
|
||||
pt::Log * log = model_connector->get_logger();
|
||||
|
||||
if( log )
|
||||
{
|
||||
(*log) << PT::Log::log2 << "Migration: table " << table_name << " has been migrated to version " << current_table_version << PT::Log::logend;
|
||||
(*log) << pt::Log::log2 << "Migration: table " << table_name << " has been migrated to version " << current_table_version << pt::Log::logend;
|
||||
}
|
||||
|
||||
if( !migration_status && log )
|
||||
{
|
||||
(*log) << PT::Log::log1 << "Migration: table " << table_name << " has been migrated to version " << current_table_version;
|
||||
(*log) << " but there was a problem with saving this information in the migration table." << PT::Log::logend;
|
||||
(*log) << "Make sure the migration table is created and save/update following record there:" << PT::Log::logend;
|
||||
(*log) << migration << PT::Log::logend;
|
||||
(*log) << pt::Log::log1 << "Migration: table " << table_name << " has been migrated to version " << current_table_version;
|
||||
(*log) << " but there was a problem with saving this information in the migration table." << pt::Log::logend;
|
||||
(*log) << "Make sure the migration table is created and save/update following record there:" << pt::Log::logend;
|
||||
(*log) << migration << pt::Log::logend;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -52,7 +52,7 @@ public:
|
||||
long id;
|
||||
std::wstring table_name;
|
||||
int table_version;
|
||||
PT::Date migration_date;
|
||||
pt::Date migration_date;
|
||||
|
||||
|
||||
void fields()
|
||||
|
@@ -107,12 +107,12 @@ public:
|
||||
|
||||
// environment variables which can be set by this user
|
||||
// use 'env' winix function
|
||||
PT::Space env;
|
||||
pt::Space env;
|
||||
|
||||
// environment variables set only by an administrator
|
||||
// an administrator can use 'env' winix function with 'a' parameter
|
||||
// IMPROVEME rename me to something better (env_admin?)
|
||||
PT::Space aenv;
|
||||
pt::Space aenv;
|
||||
|
||||
// account status
|
||||
// WINIX_ACCOUNT_*
|
||||
@@ -138,7 +138,7 @@ public:
|
||||
|
||||
void Clear(); // IMPROVEME what about clear() from Model?
|
||||
bool IsMemberOf(long group);
|
||||
bool ReadMonthDayTime(PT::Date & date, const wchar_t * str);
|
||||
bool ReadMonthDayTime(pt::Date & date, const wchar_t * str);
|
||||
bool SetTzFromEnv();
|
||||
|
||||
void clear_passwords();
|
||||
|
Reference in New Issue
Block a user