From: Ken Youens-C. <ky...@gm...> - 2005-04-14 21:33:30
|
On Apr 14, 2005, at 4:28 PM, Chris Winters wrote: > * Ken Youens-Clark (ky...@gm...) [050414 16:27]: >> ... >> And I'm up to the "Translate searching tasks to common" section. I >> made the changes to move to the "CommonSearch" as defined in this >> section. When I restart my web server, I see this following message: >> ... >> No template found in 'c_search_form_template' key. This template is >> mandatory >> for the task to function. >> >> Even though my "conf/action.ini" has the following: >> >> [book] >> class = OpenInteract2::Action::Book >> task_default = search_form >> is_secure = no >> c_object_type = book >> c_search_form_template = book::search_form >> c_search_results_template = book::search_results >> c_search_fields_like = title >> c_search_results_order = title >> >> And the template does exist. (FWIW, everything in the tutorial was >> working perfectly up to this point.) > > It's probably that you're using an earlier version of the > configuration. When you upgrade your package the action configuration > is copied to, in your case: > > $WEBSITE_DIR/conf/book/action.ini > > If that file already exists and the files are different, we copy the > new one to: > > $WEBSITE_DIR/conf/book/updates/action.ini-x.xx > > So see if you've got any updates there and if so, copy the latest over > the working configuration and see what happens. Unfortunately, I had already checked that the "action.ini" was kosher. I even upped the package.ini::version and installed a new package. Still the same error. I also tried deleting older versions of the package installed into $WEBSITE_DIR, starting/stopping. I should mention that I'm doing all this on a Intel Celeron/Debian Woody system that I just set up expressly for testing/learning OI2. I installed Perl 5.8.6 from source and all the modules are the latest from CPAN. I'm using the Apache/mod_perl (solo) setup. > Yeah, we should definitely stress that in the tutorial :-) > > I'm glad you brought this up because I'm now thinking that we might > want to make package configuration overwriting an option for people > who never change them from the default. Salve, what do you think? I would like "oi2_manage package_all" to automatically kill an existing .zip package of the same version, too. ky |