# Copyright (c) 2001-2007 bivio Software, Inc. All rights reserved. # # Visit http://www.bivio.biz for more info. # # This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; If not, you may get a copy from: # http://www.opensource.org/licenses/lgpl-license.html # # $Id: BConf.pm,v 2.51 2011/05/02 18:22:44 nagler Exp $ package Bivio::PetShop::BConf; use strict; use base 'Bivio::BConf'; our($VERSION) = sprintf('%d.%02d', q$Revision: 2.51 $ =~ /\d+/g); sub dev_overrides { my($proto, $pwd, $host) = @_; return { 'Bivio::UI::HTML::Widget::SourceCode' => { source_dir => "$pwd/src", }, }; } sub merge_overrides { my($proto) = @_; return Bivio::IO::Config->merge_list({ 'Bivio::Biz::Action::ClientRedirect' => { permanent_map => { '/permanent-redirect' => '/pub/products', }, }, 'Bivio::Biz::Model::UserCreateForm' => { unapproved_applicant_mode => 1, }, 'Bivio::Biz::Model::MailReceiveDispatchForm' => { filter_spam => 1, }, 'Bivio::Ext::DBI' => { database => 'pet', user => 'petuser', password => 'petpass', connection => 'Bivio::SQL::Connection::Postgres', }, $proto->merge_class_loader({ delegates => [ 'Bivio::Agent::TaskId', 'Bivio::Auth::RealmType', 'Bivio::Auth::Support', 'Bivio::Auth::Permission', 'Bivio::Auth::Role', 'Bivio::Type::ECService', 'Bivio::Type::Location', 'Bivio::TypeError', ], maps => { Action => ['Bivio::PetShop::Action'], Delegate => ['Bivio::PetShop::Delegate'], Facade => ['Bivio::PetShop::Facade'], HTMLWidget => ['Bivio::PetShop::Widget'], Model => ['Bivio::PetShop::Model'], ShellUtil => ['Bivio::PetShop::Util'], TestLanguage => ['Bivio::PetShop::Test'], Type => ['Bivio::PetShop::Type'], View => ['Bivio::PetShop::View'], }, }), 'Bivio::Test::HTMLParser::Forms' => { error_color => '#993300', }, 'Bivio::UI::Facade' => { default => 'PetShop', http_suffix => 'bivio.biz', mail_host => 'bivio.biz', }, 'Bivio::UI::View::ThreePartPage' => { center_replaces_middle => 1, }, 'Bivio::UI::View::Wiki' => { use_wysiwyg => 1, }, 'Bivio::Util::RealmUser' => { audit_map => [ 'site-admin' => [ USER => [ ], MEMBER => [ [[qw(site site-help site-contact)] => [qw(MEMBER MAIL_RECIPIENT FILE_WRITER)]], ], ADMINISTRATOR => [ [[qw(site site-help site-contact)] => [qw(MAIL_RECIPIENT FILE_WRITER ADMINISTRATOR)]], ], ], realm_user_util1 => [ MEMBER => [ [realm_user_util2 => [qw(MEMBER MAIL_RECIPIENT)]], ], ADMINISTRATOR => [ [realm_user_util2 => [qw(MAIL_RECIPIENT ADMINISTRATOR FILE_WRITER)]], [realm_user_util3 => [qw(MAIL_RECIPIENT ADMINISTRATOR FILE_WRITER)]], ['realm_user_util4 EXPLICIT' => 'GUEST'], ], ], realm_user_util5 => [ MEMBER => [ [FORUM => [qw(WITHDRAWN)]], ], ], ], }, }, $proto->default_merge_overrides({ version => 10, root => 'Bivio/PetShop', prefix => 'pet', owner => 'bivio Software, Inc.', })); } 1;