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

2008-05-10 Thread Jonathan Rockway
* On Sun, May 11 2008, Ashley wrote: > 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 t

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

2008-05-10 Thread Andrew
And I'm doing everything exactly as the book states except the config change of putting the database path in the YAML file - it's still in the AddressDB.pm file. I looked in the DBIC.pm file which is generating the error message and the method that is causing the error is below: sub session_st

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

2008-05-10 Thread Octavian Rasnita
From: "Kieren Diment" <[EMAIL PROTECTED]> No, users who don't understand how to use the code well enough that they have to rely on the documentation need documentation that won't confuse them with trivial stuff and unadvertised interaction bugs. YAML in pod causes these bugs, which impacts

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 week

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: 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 weekend, I'll try if no one beats me to it). That on

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 com

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

2008-05-10 Thread Matt S Trout
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 come down to YAML indentation mistakes. If users

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

2008-05-10 Thread Jonathan Rockway
* On Sat, May 10 2008, Andreas Marienborg wrote: > On May 10, 2008, at 3:53 AM, Andrew wrote: > > > 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. > > On page 59, where it uses a database to store the session

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] In

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 do

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 whi

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

2008-05-10 Thread Kieren Diment
Hi, 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 white space. Therefore they interact. Even w

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: > 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.On page 59, > where it uses a database to store the session key, I've made all the code > changes, but when I star

[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 di

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_VA

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

2008-05-10 Thread Matt S Trout
On Fri, May 09, 2008 at 01:00:07PM +0100, Tomas Doran wrote: > Hi > > I'm building quite a complex app, which has a number of ways of > locating things, and I want to be able to rejoin chains.. > > Some example URLs: > > /volume/*/track/*/format/* > /track/*format/* > > This becomes: > > sub

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] 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

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] 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/* sub format : Chained('tracksequence', 'trackonvolume') PathPart ('format') Args(1) {} But this doesn't work...