[Catalyst] Problem with static model in Tutorial::MoreCatalystBasics

2009-03-11 Thread Adam Witney
Hi, I am new to Catalyst and so working my way through the tutorial. Everything has been working fine until i reached the A STATIC DATABASE MODEL WITH DBIx::Class section of the MoreCatalystBasics tutorial. After generating the static schema files and adding the relationships as

Re: [Catalyst] Problem with static model in Tutorial::MoreCatalystBasics

2009-03-11 Thread Adam Witney
On 11 Mar 2009, at 11:23, Adam Witney wrote: Hi, I am new to Catalyst and so working my way through the tutorial. Everything has been working fine until i reached the A STATIC DATABASE MODEL WITH DBIx::Class section of the MoreCatalystBasics tutorial. After generating the static

Re: [Catalyst] clear() method for Catalyst::Plugin::Cache?

2009-03-11 Thread Tomas Doran
Larry Leszczynski wrote: But I see your point about the danger of clearing/flushing more than you might expect. Regardless of cache flavor, you could set up separate backend instances for different pools of data (via e.g. different cache_roots for Cache::FileCache or different server instances

Re: [Catalyst] Problem with static model in Tutorial::MoreCatalystBasics

2009-03-11 Thread Adam Witney
On 11 Mar 2009, at 13:10, Tomas Doran wrote: Adam Witney wrote: ok, so i posted too soon and have figured out the problem. I need to add Result into the relationships. Does the Tutorial need to be updated to reflect this? If so i have included below a quick patch against

Re: [Catalyst] Problem with static model in Tutorial::MoreCatalystBasics

2009-03-11 Thread J. Shirley
On Wed, Mar 11, 2009 at 6:26 AM, Adam Witney awit...@sgul.ac.uk wrote: On 11 Mar 2009, at 13:10, Tomas Doran wrote: Adam Witney wrote: ok, so i posted too soon and have figured out the problem. I need to add Result into the relationships. Does the Tutorial need to be updated to reflect

Re: [Catalyst] Problem with static model in Tutorial::MoreCatalystBasics

2009-03-11 Thread Adam Witney
On 11 Mar 2009, at 13:59, J. Shirley wrote: The line in the tutorial to create the static files is this: $ script/myapp_create.pl model DB DBIC::Schema MyApp::Schema create=static dbi:SQLite:myapp.db I don't see where you got 'Result' as part of the class name. yes thats the command

[Catalyst] Problem creating accessors once per server instance

2009-03-11 Thread Emmanuel Quevillon
Hi list, I am trying to create accessors to load static data once per server instance as described at : http://search.cpan.org/~hkclark/Catalyst-Manual-5.7017/lib/Catalyst/Manual/Cookbook.pod#Create_accessors_to_preload_static_data_once_per_server_instance Following this tuts, I modified my

Re: [Catalyst] reconnecting the DB model using a different DB account

2009-03-11 Thread Tomas Doran
Karl Forner wrote: The problem is that I get error messages [error] DBIx::Class::Storage::DBI::ensure_connected(): DBI Connection failed: ERROR OCIEnvNlsCreate. Check ORACLE_HOME (Linux) env var or PATH (Windows) and or NLS settings, permissions, etc. I have tried using directly the DBI dbh

Re: [Catalyst] Thoughts On GeoIP Modules?

2009-03-11 Thread Tomas Doran
Andy Dorman wrote: We have several signup web sites using Catalyst. Recently we have realized we are going to have to limit signups by geographical region to help limit abuse. Captchas (we use and love reCaptcha) and other heuristics just do not seem to be sufficient. Please start new threads

Re: [Catalyst] Accessing a Controller from ~/script

2009-03-11 Thread Tomas Doran
Dermot wrote: Currently I load the configuration into the stand alone Class with a combination of FindBin and Config::General. I thought I could avoid that seeming as config is already in my context ($c). So I did: package MyApp::Model::MyAdaptor; use strict; use warnings; use base

Re: [Catalyst] Problem with static model in Tutorial::MoreCatalystBasics

2009-03-11 Thread hkclark
On Wed, Mar 11, 2009 at 7:23 AM, Adam Witney awit...@sgul.ac.uk wrote: Hi, I am new to Catalyst and so working my way through the tutorial. Everything has been working fine until i reached the A STATIC DATABASE MODEL WITH DBIx::Class section of the MoreCatalystBasics tutorial. After

Re: [Catalyst] reconnecting the DB model using a different DB account

2009-03-11 Thread Karl Forner
On Wed, Mar 11, 2009 at 5:03 PM, Tomas Doran bobtf...@bobtfish.net wrote: Karl Forner wrote: The problem is that I get error messages [error] DBIx::Class::Storage::DBI::ensure_connected(): DBI Connection failed: ERROR OCIEnvNlsCreate. Check ORACLE_HOME (Linux) env var or PATH (Windows) and