|
From: Chris W. <la...@us...> - 2001-10-17 12:10:58
|
Update of /cvsroot/openinteract/OpenInteract/pkg/base_page/conf
In directory usw-pr-cvs1:/tmp/cvs-serv23798/base_page/conf
Added Files:
action.perl spops.perl
Log Message:
add action/object config
--- NEW FILE: action.perl ---
$action = {
'basepage' => {
'class' => 'OpenInteract::Handler::BasePage',
'security' => 'yes',
# The next three items are used in the new version of
# the handler
# What should we try on directory requests or when we
# don't find an object?
'object_home_name' => 'home',
# What should we try on directory requests or when we
# don't find a file?
'filesystem_home_name' => 'index.html',
# Storage preference. Choices are:
# 'object', 'filesystem', 'both-object', 'both-filesystem'
#
# The entry with the 'both' items is what we should
# try first -- try fetching the object first with 'both-object'
# and the filesystem file first with 'both-filesystem'.
'storage' => 'both-object',
},
'editdocumentbox' => { redir => 'edit_document_box' },
'edit_document_box' => {
'weight' => 4,
'title' => 'Document Info',
'template' => 'edit_document_box',
'package' => 'static_page',
'security' => 'no',
},
};
--- NEW FILE: spops.perl ---
$spops = {
'basicpage' => {
class => 'OpenInteract::BasicPage',
code_class => 'OpenInteract::BasicPage',
isa => [ qw/ OpenInteract::SPOPS::DBI
SPOPS::Secure::Hierarchy
SPOPS::Utility SPOPS::DBI / ],
field => [ qw/ location directory title author keywords
active_on expires_on boxes main_template
is_file / ],
column_group => {},
id_field => 'location',
no_insert => [],
skip_undef => [],
no_update => [],
base_table => 'basic_page',
sql_defaults => [],
alias => [ 'static_page' ],
has_a => {},
links_to => {},
track => { create => 1, update => 1, remove => 1 },
display => { url => '/BasicPage/show/' },
name => 'title',
object_name => 'Document',
storage => 'filesystem',
db_table => 'basic_page_content',
hierarchy_separator => '/',
hierarchy_field => 'location',
},
};
|