added: to plugin ticket: message WINIX_PL_TICKET_LOAD_TICKETS
someone can send this message with a directory id and tickets will be loaded from the directory (and to display them you can use ezc functions) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@889 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -198,23 +198,38 @@ void TicketInfo::ReadTicketConf(bool skip_existing_configs)
|
||||
}
|
||||
|
||||
|
||||
void TicketInfo::FindCurrentConf()
|
||||
void TicketInfo::FindCurrentConf(long dir_id)
|
||||
{
|
||||
long dir_id = cur->mount->dir_id;
|
||||
ConfTab::iterator i = conf_tab.find(dir_id);
|
||||
Mount * mount = system->mounts.CalcMount(dir_id);
|
||||
|
||||
if( i != conf_tab.end() )
|
||||
if( mount )
|
||||
{
|
||||
cur_conf_wrap = &i->second;
|
||||
cur_conf = &i->second.conf;
|
||||
// long dir_id = cur->mount->dir_id;
|
||||
ConfTab::iterator i = conf_tab.find(mount->dir_id);
|
||||
|
||||
if( i != conf_tab.end() )
|
||||
{
|
||||
cur_conf_wrap = &i->second;
|
||||
cur_conf = &i->second.conf;
|
||||
}
|
||||
else
|
||||
{
|
||||
log << log1 << "Ticket: there is no a ticket_conf parameter in the mount point (an empty config used)" << logend;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
log << log1 << "Ticket: there is no a ticket_conf parameter in the mount point (an empty config used)" << logend;
|
||||
log << log1 << "Ticket: I cannot find the mount point for dir id: " << dir_id << logend;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void TicketInfo::FindCurrentConf()
|
||||
{
|
||||
if( !cur->request->dir_tab.empty() )
|
||||
FindCurrentConf(cur->request->dir_tab.back()->id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user