Revision 440 (by ahitrov, 2014/09/05 17:41:48) Object edit form date check.
$document->delete now deletes multimedia_multi attachments.
Script template now contains code for plugins init
#!/usr/bin/perl

use strict;
use warnings "all";
use locale;

use FindBin;
BEGIN {
	require "$FindBin::RealBin/../lib/Modules.pm";
}

use Contenido::Globals;
use Contenido::Init;
use ErrorTee;
use PidFile;


# begin
Contenido::Init->init();

my $keeper_module = $state->project.'::Keeper';
$keeper = $keeper_module->new($state);

#PidFile->new($keeper, compat=>1);                # db-based locking (run only on one host)
#PidFile->new($keeper, compat=>1, per_host=>1);   # db-based locking (run on whole cluster)

# Plugins init
#for my $plugin ( split(/\s+/, $state->plugins) ) {
#	my $class = $plugin.'::Apache';
#	eval { $class->child_init(); };
#	if ( $@ ) {
#		$log->error("Не могу выполнить метод child_init плагина $plugin ($class) по причине '$@'");
#	}
#}

############################################
# please use:
#     $state->{log_dir} for logging
#     $state->{tmp_dir} for temporary files
###########################################