Re: [Catalyst] RFC: file/path writing sub-class of Catalyst::Plugin::Static::Simple

2006-11-26 Thread Kieren Diment
[snipped prior correspondence] I'm not sure, because systems architecture is really not my thing, but this sounds like something you might describe as Catalyst::Plugin::Cache::Static - which would render a template into a variable and serve off an appropriate path for the webserver to deal with.

[Catalyst] Epiphany Sunday: chained action vs namespaces

2006-11-26 Thread apv
I just thought I'd share an epiphany in case any other lunkheads were under the same misconception I was. I had been avoiding chained actions for months b/c I was under the impression they were synonymous with code namespaces. Today, I realized they aren't. So, I was doing things like: /

Re: [Catalyst] RFC: file/path writing sub-class of Catalyst::Plugin::Static::Simple

2006-11-26 Thread apv
On Nov 26, 2006, at 2:01 PM, Ash Berlin wrote: apv wrote: I'm probably about to write a sub-class of Catalyst::Plugin::Static::Simple which writes the file to disk on the first request. The reason is I like to have all my extra static files (images, media, css, etc) in the same bundle as t

Re: [Catalyst] RFC: file/path writing sub-class of Catalyst::Plugin::Static::Simple

2006-11-26 Thread Ash Berlin
apv wrote: I'm probably about to write a sub-class of Catalyst::Plugin::Static::Simple which writes the file to disk on the first request. The reason is I like to have all my extra static files (images, media, css, etc) in the same bundle as the application but I also want to let Apache serve

[Catalyst] RFC: file/path writing sub-class of Catalyst::Plugin::Static::Simple

2006-11-26 Thread apv
I'm probably about to write a sub-class of Catalyst::Plugin::Static::Simple which writes the file to disk on the first request. The reason is I like to have all my extra static files (images, media, css, etc) in the same bundle as the application but I also want to let Apache serve them, ob

Re: [Catalyst] How to use HTML::Widget::Constraint::Date

2006-11-26 Thread Alejandro Imass
Hi Carl! Thank you again for such a wonderful idea! I decided to create my own class in my controller namespace but I think it can be contributed to HTML::Widget::Constraint namespace if anyone here has acces to that. Here is the class code just in case anyone here wants to use it or forward it

Re: [Catalyst] How to use HTML::Widget::Constraint::Date

2006-11-26 Thread Carl Franks
On 26/11/06, Alejandro Imass <[EMAIL PROTECTED]> wrote: Thanks! But how do I use this constraint if I have several date fields in my form? Suppose I have two dates which would mean 6 fields on the form (per your explanation above). Do I just pass all 6 in order to the constraint? or am I missing

Re: [Catalyst] HTML::Widget and Unicode

2006-11-26 Thread Carl Franks
On 26/11/06, Alejandro Imass <[EMAIL PROTECTED]> wrote: Hi, HTML::Widget is translating my UTF-8 characters into presumably ISO LATIN-1. Can I stop HTML::Widget from doing this? I looked into enctype but I don't think is for that, and if it is could someone kindly offer an example? if so (suppos

Re: [Catalyst] HTML::Widget and Unicode

2006-11-26 Thread Alejandro Imass
On 11/26/06, Carl Franks <[EMAIL PROTECTED]> wrote: On 26/11/06, Alejandro Imass <[EMAIL PROTECTED]> wrote: > Hi, > > HTML::Widget is translating my UTF-8 characters into presumably ISO > LATIN-1. Can I stop HTML::Widget from doing this? I looked into > enctype but I don't think is for that, and

Re: [Catalyst] How to use HTML::Widget::Constraint::Date

2006-11-26 Thread Alejandro Imass
Thanks! But how do I use this constraint if I have several date fields in my form? Suppose I have two dates which would mean 6 fields on the form (per your explanation above). Do I just pass all 6 in order to the constraint? or am I missing the point entirely? On 11/26/06, Michele Beltrame <[EMA

Re: [Catalyst] How to use HTML::Widget::Constraint::Date

2006-11-26 Thread Michele Beltrame
Hello! my $c = $widget->constraint( 'Date', 'year', 'month', 'day' ); This constraint requirtes you to have three fields: one with day, one with month, one with years. This a common thing, as in many cases there are three select boxes which allow the user to select a date. Others (includi

Re: [Catalyst] Where did the tutorials go?

2006-11-26 Thread Matt S Trout
Alejandro Imass wrote: perldoc Catalyst::Manual::Tutorial perldoc Catalyst::Manual::Tutorial::Intro perldoc Catalyst::Manual::Tutorial::CatalystBasics and so forth... all names are exact without spaces except for Introduction that is abreviated to Intro as shown above did you install Catalyst:

[Catalyst] HTML::Widget and Unicode

2006-11-26 Thread Alejandro Imass
Hi, HTML::Widget is translating my UTF-8 characters into presumably ISO LATIN-1. Can I stop HTML::Widget from doing this? I looked into enctype but I don't think is for that, and if it is could someone kindly offer an example? if so (supposing that enctyle is the answer) what happens to filenames

Re: [Catalyst] Where did the tutorials go?

2006-11-26 Thread Alejandro Imass
perldoc Catalyst::Manual::Tutorial perldoc Catalyst::Manual::Tutorial::Intro perldoc Catalyst::Manual::Tutorial::CatalystBasics and so forth... all names are exact without spaces except for Introduction that is abreviated to Intro as shown above On 11/9/06, Kieren Diment <[EMAIL PROTECTED]> w

[Catalyst] How to use HTML::Widget::Constraint::Date

2006-11-26 Thread Alejandro Imass
Hi, I was wondering if someone would kindly show me an example on how to use this. I searched the list archives and could not find any references to this. Say I have two date fields from a form how do I create the constraints? I tried this: $w->constraint(Date => qw/ fecha_nacimiento fecha_mue