[Catalyst] Cache of unchanging content

2011-03-01 Thread John M. Dlugosz
Say I want to use TT in the .css, so (for example) I can name my colors and other repeated content easily. I'm assuming that I can define a Path of some kind on a rule to serve those. Any recipes to share? More critically, I want the browser to know that it doesn't have to keep re-fetching

Re: [Catalyst] Cache of unchanging content

2011-03-01 Thread John M. Dlugosz
That's only part of it. It should also answer status 304, and set headers to tell the client not to even bother asking again any time soon. On 3/1/2011 4:45 AM, Jorge Gonzalez jorge.gonzalez-at-daikon.es |Catalyst/Allow to home| wrote: So what you need then is a templating system which

Re: [Catalyst] Simple literal Model

2011-03-01 Thread Zbigniew Lukasiak
On Sat, Feb 26, 2011 at 6:22 AM, John M. Dlugosz wxju46g...@snkmail.comwrote: On 2/25/2011 9:30 AM, Ashley Pond V apv-at-sedition.com |Catalyst/Allow to home| wrote: What t0m suggested is perfectly fine but if you want to mimic the DBIC API with a different engine, this example does that

Re: [Catalyst] Cache of unchanging content

2011-03-01 Thread will trillich
Also see http://wiki.catalystframework.org/wiki/adventcalendararticles/2007/11-Making_your_Catalyst_App_Cache-friendly for a neat approach to setting browser-cache expiry info. On Tue, Mar 1, 2011 at 5:49 AM, John M. Dlugosz wxju46g...@snkmail.comwrote: That's only part of it. It should also

Re: [Catalyst] Inconsistent hierarchy during C3 merge of class

2011-03-01 Thread Anne Wainwright
Hi, Was this issue actually resolved, the thread does not indicate so. I also have had the same problem with the same error messages at the same place, but one year on from the original post. I note that the tests and debugging on pp72-73 ran fine (last night, absolutely), then I ran through

Re: [Catalyst] Cache of unchanging content

2011-03-01 Thread Bill Moseley
On Tue, Mar 1, 2011 at 1:23 AM, John M. Dlugosz wxju46g...@snkmail.comwrote: Say I want to use TT in the .css, so (for example) I can name my colors and other repeated content easily. I'm assuming that I can define a Path of some kind on a rule to serve those. Any recipes to share? More

[Catalyst] UTF-8 and Catalyst::Action::Serialize::JSONP

2011-03-01 Thread James Spath
We were having some problems with UTF-8 output via Catalyst::Action::Serialize::JSONP which Catalyst::Controller::REST uses for JSONP output. Basically, unicode data was not being read correctly by browsers when read via JSONP, whereas it was fine as JSON. A solution that worked for us was to

[Catalyst] Re: DBI handle without magic when calling with dump_info=1 after updating Catalyst::Runtime

2011-03-01 Thread Matthias Dietrich
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} =

Re: [Catalyst] UTF-8 and Catalyst::Action::Serialize::JSONP

2011-03-01 Thread Tomas Doran
On 1 Mar 2011, at 16:55, James Spath wrote: Does this seems like a reasonable solution to our problem? Is there a better way? Were you using Plugin::Unicode::Encoding? It should do this for you I think... Cheers t0m ___ List:

Re: [Catalyst] Re: DBI handle without magic when calling with dump_info=1 after updating Catalyst::Runtime

2011-03-01 Thread Tomas Doran
On 1 Mar 2011, at 17:38, Matthias Dietrich wrote: 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

Re: [Catalyst] Re: DBI handle without magic when calling with dump_info=1 after updating Catalyst::Runtime

2011-03-01 Thread Matthias Dietrich
Hi, Am 01.03.2011 um 19:06 schrieb Tomas Doran: What perl version are you using here? I'm on v5.12.2 on a Mac OS X 10.6.6 with a custom Perl build (via macports). Matthias -- rainboxx Software Engineering Matthias Dietrich rainboxx Matthias Dietrich | Phone: +49 7141 / 2 39 14 71

Re: [Catalyst] Re: DBI handle without magic when calling with dump_info=1 after updating Catalyst::Runtime

2011-03-01 Thread Matthias Dietrich
Hi, Am 01.03.2011 um 19:32 schrieb Tomas Doran: What perl version are you using here? I'm on v5.12.2 on a Mac OS X 10.6.6 with a custom Perl build (via macports). Bah, no idea what's going on there then :) oh, it's all the same... ;-) With custom I mean it's not the Perl that is

[Catalyst] [ANNOUNCE] Catalyst-Runtime-5.89001-TRIAL PSGI Catalyst - second development release

2011-03-01 Thread Florian Ragwitz
Hi It gives me great pleasure to announce the second development release of the next major version of Catalyst. The changes from the previous PSGI development release include merging all changes of the non-PSGI releases 5.80031 and 5.80032, much improved upgrading documentation, and fixes for

Re: [Catalyst] UTF-8 and Catalyst::Action::Serialize::JSONP

2011-03-01 Thread James Spath
On Tue, Mar 1, 2011 at 1:03 PM, Tomas Doran bobtf...@bobtfish.net wrote: On 1 Mar 2011, at 16:55, James Spath wrote: Does this seems like a reasonable solution to our problem?  Is there a better way? Were you using Plugin::Unicode::Encoding? It should do this for you I think... This

Re: [Catalyst] UTF-8 and Catalyst::Action::Serialize::JSONP

2011-03-01 Thread James Spath
On Tue, Mar 1, 2011 at 3:35 PM, James Spath jsp...@pangeamedia.com wrote: On Tue, Mar 1, 2011 at 1:03 PM, Tomas Doran bobtf...@bobtfish.net wrote: On 1 Mar 2011, at 16:55, James Spath wrote: Does this seems like a reasonable solution to our problem?  Is there a better way? Were you using

[Catalyst] Auto-remove POD

2011-03-01 Thread gvim
I've just started with Catalyst and am working through the tutorials but find I need to remove the POD from all the auto-generated helper files. Is there any option to turn off the POD generation or a quick way to remove it? gvim ___ List:

Re: [Catalyst] Auto-remove POD

2011-03-01 Thread Peter Edwards
On 2 March 2011 01:42, gvim gvi...@gmail.com wrote: I've just started with Catalyst and am working through the tutorials but find I need to remove the POD from all the auto-generated helper files. Is there any option to turn off the POD generation or a quick way to remove it? gvim Why do

Re: [Catalyst] Auto-remove POD

2011-03-01 Thread gvim
On 02/03/2011 02:09, Peter Edwards wrote: Why do you need to remove the POD, Perl does that for you when compiling the programs? Regards, Peter http://perl.dragonstaff.co.uk I may be missing something but whenever I edit any of the Catalyst-generated files 75% of it is POD commentary

Re: [Catalyst] Cache of unchanging content

2011-03-01 Thread John M. Dlugosz
On 3/1/2011 9:58 AM, Bill Moseley moseley-at-hank.org |Catalyst/Allow to home| wrote: At build time I minimize and compress css and js (and images) and combine into single files grouped by page(s). They could be pre-processed by TT very easily. The final file names include an MD5 of their

RE: [Catalyst] Auto-remove POD

2011-03-01 Thread Fahad Khan
I may be missing something but whenever I edit any of the Catalyst-generated files 75% of it is POD commentary mixed with comments. I just want it out the way so I can concentrate on the code. gvim Use your editor to fold it away? http://use.perl.org/~Ovid/journal/38543