'tickets' can use 'threads' now

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@706 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2011-01-20 18:37:51 +00:00
parent 3fad25b8c8
commit ab84a5169e
61 changed files with 1928 additions and 980 deletions

View File

@@ -77,14 +77,7 @@ return true;
void Emacs::PostFunEmacsModifyMountPoint(bool adding)
{
if( system->mounts.pmount->type == system->mounts.MountTypeThread() && adding )
db->EditThreadAddItem(request->dir_tab.back()->id, request->item.id);
if( system->mounts.pmount->type == system->mounts.MountTypeCms() )
system->RedirectTo(request->item);
else
system->RedirectToLastDir();
system->RedirectToLastItem();
}
@@ -92,8 +85,9 @@ void Emacs::PostFunEmacsModifyMountPoint(bool adding)
int Emacs::NotifyCodeEdit()
{
if( system->mounts.pmount->type == system->mounts.MountTypeThread() )
return WINIX_NOTIFY_CODE_THREAD_POST_CHANGED;
// !! nie potrzebne
// if( system->mounts.pmount->type == system->mounts.MountTypeThread() )
// return WINIX_NOTIFY_CODE_THREAD_POST_CHANGED;
return WINIX_NOTIFY_CODE_FILE_EDIT;
}
@@ -103,8 +97,9 @@ return WINIX_NOTIFY_CODE_FILE_EDIT;
int Emacs::NotifyCodeAdd()
{
if( system->mounts.pmount->type == system->mounts.MountTypeThread() )
return WINIX_NOTIFY_CODE_THREAD_REPLAYED;
// !! nie potrzebne
// if( system->mounts.pmount->type == system->mounts.MountTypeThread() )
// return WINIX_NOTIFY_CODE_THREAD_REPLAYED;
return WINIX_NOTIFY_CODE_FILE_ADD;
}

View File

@@ -176,7 +176,6 @@ void Functions::CreateFunctions()
Add(fun_chown);
Add(fun_ckeditor);
Add(fun_cp);
Add(fun_createthread);
Add(fun_default);
Add(fun_download);
Add(fun_emacs);
@@ -196,7 +195,6 @@ void Functions::CreateFunctions()
Add(fun_stat);
Add(fun_subject);
Add(fun_template);
Add(fun_thread);
Add(fun_tinymce);
Add(fun_uname);
Add(fun_upload);
@@ -249,10 +247,12 @@ void Functions::SetDefaultFunctionForFile()
void Functions::SetDefaultFunctionForDir()
{
if( system->mounts.pmount->type == system->mounts.MountTypeThread() )
request->function = &fun_thread;
else
request->function = &fun_ls;
// !! nie potrzebne
// if( system->mounts.pmount->type == system->mounts.MountTypeThread() )
// request->function = &fun_thread;
// else
request->function = &fun_ls;
log << log3 << "Functions: default function: " << request->function->fun.url << logend;
}

View File

@@ -19,7 +19,6 @@
#include "chown.h"
#include "ckeditor.h"
#include "cp.h"
#include "createthread.h"
#include "default.h"
#include "download.h"
#include "emacs.h"
@@ -38,7 +37,6 @@
#include "specialdefault.h"
#include "stat.h"
#include "subject.h"
#include "funthread.h"
#include "template.h"
#include "tinymce.h"
#include "uname.h"
@@ -63,7 +61,6 @@ public:
Fun::Chown fun_chown;
Fun::Ckeditor fun_ckeditor;
Fun::Cp fun_cp;
Fun::CreateThread fun_createthread;
Fun::Default fun_default;
Fun::Download fun_download;
Fun::Emacs fun_emacs;
@@ -82,7 +79,6 @@ public:
Fun::SpecialDefault fun_special_default;
Fun::Stat fun_stat;
Fun::Subject fun_subject;
Fun::FunThread fun_thread;
Fun::Template fun_template;
Fun::Tinymce fun_tinymce;
Fun::Uname fun_uname;

View File

@@ -147,7 +147,9 @@ void Rm::RemoveFileOrSymlink(Item & item)
TemplatesFunctions::pattern_cacher.DeletePattern(item);
plugin.Call(WINIX_FILE_REMOVED, item.id);
db->EditThreadRemoveItem(item.parent_id);
// !! nie potrzebne
//db->EditThreadRemoveItem(item.parent_id);
if( item.file_type != WINIX_ITEM_FILETYPE_NONE )
RemoveStaticFile(item);
@@ -182,7 +184,9 @@ void Rm::RemoveDirTree(long dir_id)
if( db->DelDirById(dir_id) == WINIX_ERR_OK )
{
system->dirs.DelDir(dir_id);
db->RemoveThread(dir_id);
// !! nie potrzebne
//db->RemoveThread(dir_id);
plugin.Call(WINIX_DIR_REMOVED, dir_id);
}