Hi Jeremy,

Am 23.11.2010 um 18:15 schrieb Jeremy Dack:

> I have multiple views in my view folder but I am not using them at present; 
> however just their presence seems to be enough to cause the resultset error. 
> 
> 
> I've found that adding: 
> 
> $c->config->{'Action::RenderView'}->{ignore_classes} = []; 
> 
> To my root sub end : ActionClass('RenderView') stops the error from 
> triggering. This seems to override it from ignoring the 
> DBIx::Class::ResultSource::Table & DBIx::Class::ResultSourceHandle as per 
> the RenderView.pm (see below). 
> 
> $c->config->{'Action::RenderView'}->{ignore_classes} = 
> ( ref($c->config->{'debug'}) eq 'HASH' ? 
> $c->config->{'debug'}->{ignore_classes} : undef ) 
> || [ qw/ 
> DBIx::Class::ResultSource::Table 
> DBIx::Class::ResultSourceHandle 
> DateTime 
> / ] unless exists 
> $c->config->{'Action::RenderView'}->{ignore_classes}; 
> 
> I have no idea why this fixes the issue as I have only just started playing 
> with Catalyst so I maybe talking rubbish however it has definitely solved my 
> issues.

I just found out I never got this email through the mailing list and found it 
in an archive on the web.  Thanks you for this, this solves the issue at first 
glance!

However, when using dump_info=1 I get the following lines on the console where 
the development server (the one that is shipped with Catalyst) is running:

SV = IV(0x10535fb40) at 0x10535fb48
  REFCNT = 1
  FLAGS = (ROK,READONLY)
  RV = 0x1053d6148
    SV = PVHV(0x1057f55f0) at 0x1053d6148
      REFCNT = 1
      FLAGS = (OBJECT,SHAREKEYS)
      STASH = 0x102282120       "DBI::db"
      ARRAY = 0x0
      KEYS = 0
      FILL = 0
      MAX = 7
      RITER = -1
      EITER = 0x0
        (in cleanup) dbih_getcom handle DBI::db=HASH(0x1053d6148) is not a DBI 
handle (has no magic) at 
/opt/local/lib/perl5/site_perl/5.12.2/Data/Visitor/Callback.pm line 97.

Maybe someone can help sometime.  For now it's working, thank you!

Best,
  Matthias

-- 
rainboxx Software Engineering
Matthias Dietrich

rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
Königsallee 43               |  Fax  : +49 3222 / 1 47 63 00 
71638 Ludwigsburg            |  Mobil: +49  151 / 50 60 78 64
                             |  WWW  :  http://www.rainboxx.de

CPAN: http://search.cpan.org/~mdietrich/
XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to