Re: [Catalyst] I'm getting wrong uri_for

2009-10-13 Thread Oleg Pronin
I rendered tt2 template from offline script (mail template). On
catalyst 5.7 i made a fake object i.e.
$c = new MyApp();
and set
$c-request/response etc. for the code to work as in request with no
differences.

But the way i initialized Request object is no longer working on 5.8
because Request is a Moose-based class. :-)

2009/10/12 Joel Bernstein j...@fysh.org:
 2009/10/12 Oleg Pronin syber@gmail.com:
 sorry for disturbing you guys, that was fully my issue :-)

 But what was it? Your explanation offline script made no sense. If
 you explain then the next person who makes the same mistake will be
 able to find the answer in the archives.

 /joel

 ___
 List: Catalyst@lists.scsys.co.uk
 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
 Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
 Dev site: http://dev.catalyst.perl.org/


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] I'm getting wrong uri_for

2009-10-13 Thread Tomas Doran

Oleg Pronin wrote:

I rendered tt2 template from offline script (mail template). On
catalyst 5.7 i made a fake object i.e.
$c = new MyApp();
and set
$c-request/response etc. for the code to work as in request with no
differences.

But the way i initialized Request object is no longer working on 5.8
because Request is a Moose-based class. :-)


Right.

That's massive doing it wrong.

Needing to load Catalyst in scripts to send mail means abstraction fail :/

Cheers
t0m

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/