Re: [Catalyst] Request paths - rejoining Chained actions together.

2008-05-10 Thread Tomas Doran
On 9 May 2008, at 15:55, J. Shirley wrote: On Fri, May 9, 2008 at 5:00 AM, Tomas Doran [EMAIL PROTECTED] wrote: Some example URLs: /volume/*/track/*/format/* /track/*format/* snip sub format : Chained('tracksequence', 'trackonvolume') PathPart ('format') Args(1) {} But this doesn't

Re: [Catalyst] session in DB example in Catalyst book

2008-05-10 Thread Andrew
The only Session.pm is found in /AddressBook/Schema. I don't have Models for the People or Addresses that I'm retrieving in this address book example, but I've only got Schemas and Controllers. The code of /AddressBook/Schema/Session.pm is and as you can see by the package designation Session.pm

Re: [Catalyst] Anybody who fancies some LWP poking ...

2008-05-10 Thread Daniel McBrearty
I think there was some discussion over the same error in the POE HTTP client over on perlmonks that included a this is the line of code that is wrong. I can't find the link offhand though. well, I see really three places to look at this: 1. in HTTP::Message - IMO the check on the content is

Re: [Catalyst] UTF-16 surrogate message when writing binary data (image)

2008-05-10 Thread Matt S Trout
On Fri, May 09, 2008 at 02:58:41PM +0800, Martin Ellison wrote: If I write binary data (a JPEG) using $c-res-body then I get all these errors stderr: UTF-16 surrogate 0xdf98 at /usr/lib/perl/5.8/IO/Handle.pm line 199. My code looks like $c-res-content_type(q{image/jpeg});

Re: [Catalyst] Variable Catalyst seems to be undefined.

2008-05-10 Thread Matt S Trout
On Sat, May 10, 2008 at 12:09:21AM +1000, Kieren Diment wrote: Catalyst::View::TT uses c.stash.whatever in templates, while Catalyst::View::TTSite uses Catalyst.stash.whatever Sort of. the TTSite -helper- generates a Catalyst::View::TT subclass with __PACKAGE__-config( ... CATALYST_VAR

[Catalyst] Re: Request paths - rejoining Chained actions together.

2008-05-10 Thread Aristotle Pagaltzis
* Tomas Doran [EMAIL PROTECTED] [2008-05-10 09:25]: If I was to hack some code (and tests) up which supported my originally suggested syntax ( Chained('sub1', 'sub2') for joining chains), what would anyone feel about it? You could no longer make `uri_for` work in the general case if you did

Re: [Catalyst] session in DB example in Catalyst book

2008-05-10 Thread Matt S Trout
On Fri, May 09, 2008 at 06:53:47PM -0700, Andrew wrote: table cellspacing='0' cellpadding='0' border='0' trtd style='font: inherit;'Using the Rockway's Catalyst book to help bring me up to speed on Catalyst and I've got a problem that I can't figure out.brbrOn page 59, where it uses a

Re: [Catalyst] IMPORTANT: To all Catalyst::Whatever Authors, please read and ACT

2008-05-10 Thread Ashley
On May 10, 2008, at 5:39 PM, Kieren Diment wrote: If you maintain a Catalyst::Plugin, View, Controller or anything else, please pay attention and address the following issue: YAML is not an appropriate configuration format for use in perldoc because both yaml and perldoc are sensitive to

Re: [Catalyst] IMPORTANT: To all Catalyst::Whatever Authors, please read and ACT

2008-05-10 Thread Kieren Diment
On 11 May 2008, at 10:56, Ashley wrote: Arguing that users who cargo-cult their configs from POD deserve coddling and MODULE AUTHORS MUST ACT TO AVERT THIS DISASTER is silly. No, users who don't understand how to use the code well enough that they have to rely on the documentation need

Re: [Catalyst] Invalid session ids being generated

2008-05-10 Thread Jonathan Rockway
* On Fri, May 09 2008, Hartmaier Alexander wrote: Delete the session cache file! I had a similar problem. -Alex -Original Message- From: Ryan Pack [mailto:[EMAIL PROTECTED] Sent: Friday, May 09, 2008 1:03 AM To: The elegant MVC web framework Subject: RE: [Catalyst] Invalid

Re: [Catalyst] IMPORTANT: To all Catalyst::Whatever Authors, please read and ACT

2008-05-10 Thread Ashley
On May 10, 2008, at 6:44 PM, Matt S Trout wrote: On Sat, May 10, 2008 at 05:56:41PM -0700, Ashley wrote: Arguing that users who cargo-cult their configs from POD deserve coddling and MODULE AUTHORS MUST ACT TO AVERT THIS DISASTER is silly. There are several requests A DAY on #catalyst that

Re: [Catalyst] IMPORTANT: To all Catalyst::Whatever Authors, please read and ACT

2008-05-10 Thread Ashley
On May 10, 2008, at 7:18 PM, Kieren Diment wrote: On 11 May 2008, at 10:56, Ashley wrote: Two or more config examples is nice and kind to users and I think it's a great best practice to include it (maybe someone would attach a simple script to dump several formats? If I have time this