Re: [Catalyst] Moose attributes not initializing when including FormHandler form

2012-01-04 Thread Tomas Doran
On 3 Jan 2012, at 23:56, Rippl, Steve wrote: I don't know if this is a Moose, FormHandler or Catalyst problem, so I'm starting here, hope that's OK! No worries :) So _temp_details has a default which is first called upon in _build_details. All this works fine if I comment out the use

Re: [Catalyst] Moose attributes not initializing when including FormHandler form

2012-01-04 Thread Rippl, Steve
On Wed, Jan 4, 2012 at 2:51 AM, Tomas Doran bobtf...@bobtfish.net wrote: Also, this ^^ assuming that 'ctx' is the Catalyst context, is always always wrong! You're (at least) leaking the context between requests here, and probably worse.. Yeah, guilty! What am I doing wrong? Why isn't

Re: [Catalyst] Moose attributes not initializing when including FormHandler form

2012-01-04 Thread Tomas Doran
On 4 Jan 2012, at 17:17, Rippl, Steve wrote: Thanks for the offer of help! Here's the error message and Stack Trace (excuse the html mail, but I'm thinking it makes it easier to read?)... Ah, right! has details = ( is = 'rw', isa = 'HashRef', builder =

Re: [Catalyst] Moose attributes not initializing when including FormHandler form

2012-01-04 Thread Tomas Doran
On 4 Jan 2012, at 19:16, Rippl, Steve wrote: That fixed it! Thanks so much! No worries! I'll set about re-factoring to try and stop passing the context object about so freely! I have to say this was my first app using catalyst that started a few years ago and has grown in a fairly