Re: [Catalyst] TT and UNICODE: Garbled special characters

2007-09-08 Thread Bill Moseley
e ENCODING option for TT. View::TT: ENCODING: UTF-8 Catalyst::View::TT will set the headers if not already set: unless ( $c->response->content_type ) { $c->response->content_type('text/html; charset=utf-8'); } -- Bill Moseley [EMAIL PROTECTED] _

Re: [Catalyst] post - all empty?

2007-09-07 Thread Bill Moseley
E post with zero content length. http://support.microsoft.com/default.aspx?kbid=831167 It's amazing that I still see this every so often. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/

Re: [Catalyst] TT and UNICODE: Garbled special characters

2007-09-05 Thread Bill Moseley
reated "D:\dev\eclipse\CatUtf\t\controller_TestController.t" > > Here, a Perl-File named "TestController.pm" has been created. > And as Daniel pointed out, it will be ASCII encoded. Is there anything in that file that is not seven bit ASCII? -- Bill Moseley [EMAIL

Re: [Catalyst] Rate limiting password attacks

2007-08-17 Thread Bill Moseley
On Fri, Aug 17, 2007 at 09:48:33PM -0500, Jonathan Rockway wrote: > Bill Moseley wrote: > > What's the status of the Cache plugin(s) wrt. backends? > > > > I want to be able to swap between FastMmap and Memcached via a config > > option > As per the docs: >

Re: [Catalyst] Rate limiting password attacks

2007-08-17 Thread Bill Moseley
e could use either the login or password (or both separately) as the key to the cache entry counting failed logins. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalys

Re: [Catalyst] Rate limiting password attacks

2007-08-17 Thread Bill Moseley
7;s are not great for accessibility. Maybe better to ask a question in text: "What is the airspeed velocity of an unladen swallow?" -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http

Re: [Catalyst] Rate limiting password attacks

2007-08-17 Thread Bill Moseley
thing to partition the cache. I want the sessions and failed login cache to be separate. Is August and not seeing nothingmuch around related? What's the status of the Cache plugin(s) wrt. backends? I want to be able to swap between FastMmap and Memcached via a config option. -- Bill Moseley

Re: [Catalyst] Rate limiting password attacks

2007-08-17 Thread Bill Moseley
out this an not follow that redirect. Fun anyways, though. ;) -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/

[Catalyst] Rate limiting password attacks

2007-08-16 Thread Bill Moseley
ng something like this already? Suggestions? Caveats? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lis

Re: [Catalyst] reset session timeout

2007-08-11 Thread Bill Moseley
after* the headers have already been sent. I sent a failing test case to nothingmuch a few days ago just in case it might be an obvious fix for someone familiar with the code -- but that's about as far as I could get with the time I had. I'll attach that test case. -

[Catalyst] Broken plugins

2007-08-09 Thread Bill Moseley
upgrades to Module::Install only, but I had a Makefile.PL that referenced the current versions on CPAN. But might be less confusing to people if they installed. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http:

Re: [Catalyst] Catalyst Unicode woes ...

2007-08-09 Thread Bill Moseley
7;t need Template::Provider::Encoding if you only have one encoding in your templates. Yes you need Unicode (or the older Unicode::Encoding) plugin so that input params are decoded and output is encoded back to utf8. -- Bill Moseley [EMAIL PROTECTED] ___

Re: [Catalyst] mod_proxy and https

2007-08-06 Thread Bill Moseley
will not return > the correct paths to the front end on the https ports. Not two backend servers, but a backend that listen on two ports. Just need a way to tell the difference between http and https in the backend, and using two ports is one way to accomplish that. -- Bill Mosele

Re: [Catalyst] Session trouble

2007-08-02 Thread Bill Moseley
); __PACKAGE__->setup; sub default : Private { my ( $self, $c ) = @_; $c->res->body( 'setting session' ); $c->session->{bar} = time; # Trigger session write } sub calculate_session_cookie_expires { my $c = shift; warn "in calculate_session_cook

Re: [Catalyst] Re: flash with DBIC session storage

2007-07-28 Thread Bill Moseley
s an unique id to get at that request-specific message? If so, how do you manage orphans, say if the redirect never happens? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinf

Re: [Catalyst] Catalyst-Plugin-Compress-Zlib

2007-07-26 Thread Bill Moseley
On Thu, Jul 26, 2007 at 10:20:59AM -0700, Bill Moseley wrote: > Looking at an existing version I hacked I see I did something a bit more > crude: > > my $body = $c->response->body; > $body = join "\n", <$body> : $body if ref $body; Except it com

[Catalyst] Catalyst-Plugin-Compress-Zlib

2007-07-26 Thread Bill Moseley
$body; Next time an author has a few minutes could that fix be uploaded to CPAN, please? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://

[Catalyst] Use Undo on A List Apart

2007-07-26 Thread Bill Moseley
ing the back button. Comments? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/

Re: [Catalyst] do I need to load Apache::DBI?

2007-07-24 Thread Bill Moseley
} && $ENV{MOD_PERL}) { $DBI::connect_via = "Apache::DBI::connect"; DBI->trace_msg("DBI connect via $DBI::connect_via in $INC{'Apache/DBI.pm'}\n"); } -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawm

Re: [Catalyst] Making Controllers thin and Models thick

2007-07-18 Thread Bill Moseley
by constraints on the database) so it also makes sense the forms are bundled with code. I doubt there's any best approach. But, if the idea is thin controllers then I like using one line of code. ;) -- Bill Moseley [EMAIL PROTECTED] ___ List: Catal

Re: [Catalyst] Making Controllers thin and Models thick

2007-07-18 Thread Bill Moseley
e to make sure the current user can access it, but that can also happen in a chain or auto method. Or that might be considered part of the validation and the form module can validate that the user can access $id. But, I kind of consider that more of a controller responsibility since an invalid $

Re: [Catalyst] Session trouble

2007-07-16 Thread Bill Moseley
e again: I think the behavior of dieing on invalid session id format is not right. The id should just be ignored in that case and a new cookie sent. If someone ends up with a bad cookie (or the cookie format changes) could result in a lockout. Thanks, -- Bill Moseley [EMAIL PROTEC

Re: [Catalyst] Command-line utility using Controller - examples?

2007-07-13 Thread Bill Moseley
URL when the app starts and then have the cron job use that. But, the infrastructure that Catalyst provides can make doing this in the application tempting. It's up to you if you want to give up those request cycles to other things than web requests. -- Bill Moseley [EMAIL PROTECTED] __

[Catalyst] Session trouble

2007-07-12 Thread Bill Moseley
ly stored it's using the latest session id, but not the same one used for the cookie: Store::store_session_data: setting [session:4cc5a1526a6958df043edfcd77de025ece5e6334] [HASH(0x9d937e8)] Store::store_session_data: setting [expires:4cc5a1526a6958df043edfcd77de025ece5e6334] [1184906823] --- Finalize

Re: [Catalyst] Duplicate session ids

2007-07-08 Thread Bill Moseley
finalize_session { my $c = shift; $c->NEXT::finalize_session; $c->_save_session_id; $c->_save_session; $c->_save_flash; $c->_save_session_expires; } [1] The result was when I tried to access the session a new session would then be create

Re: [Catalyst] Re: How to access current MyApp instance ?

2007-07-05 Thread Bill Moseley
label = 'Name', sortby = 'name'; ''; PROCESS table_heading_link label = 'Account', sortby = 'account'; %] But I think the macros help with readability. In the p

Re: [Catalyst] Using Log4perl -- setting caller()

2007-07-04 Thread Bill Moseley
at won't be right. The plugin uses caller, so obviously calling $c->log->warn will look different than calling warn (when is trapped and then calls $c->log->warn as in the code I posted). Print out %M and call both $c->log->warn and wa

Re: [Catalyst] Anyone using ProxyPass?

2007-07-03 Thread Bill Moseley
st recent upstream IP (last in the list) my ($ip) = $headers->{'X-Forwarded-For'} =~ /([^,\s]+)$/; $c->request->address( $ip ); } If your address isn't 127.0.0.1 then it's not going to check for a proxy unless "using_frontend_proxy" is set. -- Bi

Re: [Catalyst] Anyone using ProxyPass?

2007-07-02 Thread Bill Moseley
ly > >need to set $c->config->{using_frontend_proxy} per the docs. > Yes, both Apache servers (:80 and :81) are on the same host. I've still > no idea what is wrong here. Throw in some warn statements in Catalyst::Engine::Apache. -- Bill Moseley [EMAIL PROTECTED]

[Catalyst] Using Log4perl -- setting caller()

2007-07-02 Thread Bill Moseley
log() method to always pass along $c. How have others solved that problem? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://w

Re: [Catalyst] Re: How to access current MyApp instance ?

2007-07-01 Thread Bill Moseley
On Sun, Jul 01, 2007 at 09:27:17PM +0200, A. Pagaltzis wrote: > * Bill Moseley <[EMAIL PROTECTED]> [2007-07-01 19:25]: > > Macro? > > > > [% > > game_detail_link( Game, 'Click here' ); > > game_history_link( Game, 'View hi

Re: [Catalyst] How to access current MyApp instance ?

2007-07-01 Thread Bill Moseley
); game_history_link( Game, 'View history' ); %] -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.c

Re: [Catalyst] Anyone using ProxyPass?

2007-06-30 Thread Bill Moseley
quest->header( 'X-Forwarded-Host' ); if ( $host =~ /^(.+):(\d+)$/ ) { $host = $1; $port = $2; Which ends up setting the request base, which is used in uri_for. Is your front end machine on the same host? If not you would likely need to set $c->config->{usi

Re: [Catalyst] Template rendering error under mod_perl

2007-06-29 Thread Bill Moseley
pointed to by $path. Then you can do:[1] warn "Hey, TT is looking for [$path]\n"; which might give you a lead. [1] $ cat ~/bin/mvim #!/bin/sh sudo vim `perldoc -l "$1"` -- Bill Moseley [EMAIL PROTECTED] ___ List: C

Re: [Catalyst] Template rendering error under mod_perl

2007-06-29 Thread Bill Moseley
. I REALLY need to fix > this one or I'm sunk! What debugging did you do? Did you dump the INCLUDE_PATH? Template::Provider also has some dubbing available. Did you enable that? Have you tried making a local copy of Template::Provider in your l

Re: [Catalyst] sharefiles on /tmp

2007-06-21 Thread Bill Moseley
things a bit more. I have a plugin that alters temporary file locations to include the uid in the path. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Search

Re: [Catalyst] Adding DBIC schema causes TT error

2007-06-20 Thread Bill Moseley
$self->{ DEFBLOCKS } is cleared each time a parse() begins. * Fixed bug in Template::Provider to immediately invalidate the cache entry of any template that fails to compile. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.

Re: [Catalyst] plat_forms report published on June 20th. 2007. Geneva team on Catalyst wins the Perl track.

2007-06-20 Thread Bill Moseley
the report to support their claims of superiority. ;) -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode

Re: [Catalyst] Adding DBIC schema causes TT error

2007-06-20 Thread Bill Moseley
te the template then always missing. I don't see it mentioned in Changes but I suspect you need 2.19 if that's the problem you are hitting. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.

Re: [Catalyst] setup() called twice

2007-06-19 Thread Bill Moseley
r setup to be run twice, don't call it setup. ;) package MyApp; use Catalyst; __PACKAGE__->app_setup( @plugins ); sub app_setup { my $self = shift; $self->setup( @_ ); } -- Bill Moseley [EMAIL PROTECTED] __

Re: [Catalyst] preventing Cross Site Request Forgery

2007-06-19 Thread Bill Moseley
problem. If you care about CSRF, > get it from CPAN, load it into your app, and stop worrying :) Is this much different than Catalyst::Plugin::RequestToken? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://

Re: [Catalyst] :Template() Attribute

2007-06-18 Thread Bill Moseley
On Mon, Jun 18, 2007 at 02:42:13PM +, Zbigniew Lukasiak wrote: > On 6/18/07, Bill Moseley <[EMAIL PROTECTED]> wrote: > ... > >Do you mean instead of $c->action->reverse like C::V::TT does now? > >That is, so you always have to specify the template name? > &g

Re: [Catalyst] :Template() Attribute

2007-06-18 Thread Bill Moseley
emplate_action stash what you are describing? I'm wondering how generic setting the template name can be. Do different templating tools use similar template names, or is this mostly for TT? I almost always tweak the template paths, too. Sometimes it's for skinning/branding or it's

Re: [Catalyst] RFC for handling reverse proxies not deployed to standard ports.

2007-06-15 Thread Bill Moseley
his, be sure to also patch the Apache engine. In fact, > maybe you could refactor this so the proxy checking can be done in a > single place in Catalyst::Engine, instead of duplicated in multiple > engines (my fault). That would be a nice refactoring. -- Bill Moseley [EMAIL PROTECT

Re: [Catalyst] :Template() Attribute

2007-06-15 Thread Bill Moseley
template => 'foo' ); For me, I actually prefer directly modifying the stash as a hash since it's very clear what is happening. Personal preference, I guess. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org

Re: [Catalyst] :Template() Attribute

2007-06-15 Thread Bill Moseley
{ > > my ( $self, $c ) = @_ > > $c->stash->{template} = 'edit.tt'; > > ... > > } > > > Yes. You can use both. Setting stash template always overrides the > default Template() attribute for that current action via ||= Mayb

Re: [Catalyst] Forms generation

2007-06-15 Thread Bill Moseley
ago. It's not the first time adding a weakened attribute has caught me. ;) Thanks, -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: h

Re: [Catalyst] :Template() Attribute

2007-06-15 Thread Bill Moseley
ff and let View:TT create the template name automatically from the action? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.ma

Re: [Catalyst] Forms generation

2007-06-14 Thread Bill Moseley
; field, and that they are different from the old password. How do you communicate that logic back to the controller or whatever in the session? It makes sense to have a separate form object to handle that work. -- Bill Moseley [EMAIL PROTECTED] ___

Re: [Catalyst] Forms generation

2007-06-14 Thread Bill Moseley
its own behavior. So my controllers to update/create look like: sub profile : Local { my ( $self, $c, $user_id ) = @_; $c->post_redirect( 'list', 'Profile Updated!') if $c->update_from_form( $user_id ); } -- Bill Moseley [EMAI

Re: [Catalyst] DateTime in session- breaks during login/logout

2007-06-13 Thread Bill Moseley
> After logout ($c->logout) I get: > > undef error - Invalid locale name or id: , at > /usr/lib/perl5/Cache/FastMmap.pm line 551 I just got caught by this. IIRC, upgrade DateTime::Locale. -- Bill Moseley [EMAIL PROTECTED] ___

Re: [Catalyst] Trailing undef in uri_for()

2007-06-05 Thread Bill Moseley
hinking of. > > Out of luck then, I'm afraid. That's what overriding is for. ;) -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst

Re: [Catalyst] Trailing undef in uri_for()

2007-06-05 Thread Bill Moseley
On Tue, Jun 05, 2007 at 09:18:50AM +0100, Matt S Trout wrote: > On Mon, Jun 04, 2007 at 10:59:41PM -0700, Bill Moseley wrote: > > In a template I was using: > > > > c.uri_for( 'path', arg1, arg2 ); > > > > where arg1 and arg2 are sometimes not defi

[Catalyst] Trailing undef in uri_for()

2007-06-04 Thread Bill Moseley
In a template I was using: c.uri_for( 'path', arg1, arg2 ); where arg1 and arg2 are sometimes not defined. In that case uri_for generates a url with two trailing slashes. Is there a reason to keep that behavior or should uri_for pop any undefined items off @args? -- Bill Mose

Re: [Catalyst] Duplicate session ids

2007-05-26 Thread Bill Moseley
f the session management process during the request. Even some comments in the code would be helpful. I just have not had time to get back to it. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.or

Re: [Catalyst] Duplicate session ids

2007-05-26 Thread Bill Moseley
On Sat, May 26, 2007 at 04:08:48PM -0400, Perrin Harkins wrote: > On 5/26/07, Bill Moseley <[EMAIL PROTECTED]> wrote: > >Perhaps an easier way to show the problem with duplicate created > >sessions would help. > > Do you mean duplicate or multiple? The session ID ge

Re: [Catalyst] Duplicate session ids

2007-05-26 Thread Bill Moseley
lyst::Plugin::Session::Store::FastMmap 0.02 | | Catalyst::Plugin::Static::Simple 0.14 $ perl -MCache::FastMmap -le 'print $Cache::FastMmap::VERSION' 1.16 -- Bill Moseley [EMAIL PROTECTED] ___ List:

[Catalyst] Duplicate session ids

2007-05-25 Thread Bill Moseley
.dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 6 Failed 1/9 tests, 88.89% okay t/7.ok -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/

Re: [Catalyst] Constants that refer to rows in a lookup table.

2007-05-22 Thread Bill Moseley
-- but does answer how not to use constants. ;) Thanks, -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/

Re: [Catalyst] Constants that refer to rows in a lookup table.

2007-05-22 Thread Bill Moseley
(name => 'Pending'); But if I did this everywhere instead: my $status = Cart::Status->fetch(name => cart_pending_status ); I'd still be on the beach. But the question was how do I represent constants best? -- Bill Moseley [EMAIL PROTECTED] __

[Catalyst] Constants that refer to rows in a lookup table.

2007-05-22 Thread Bill Moseley
cart namespace cart_status => $cart_class->pending_status -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/

[Catalyst] Setting time zone and locale on dates.

2007-05-21 Thread Bill Moseley
xperience) I think this is something that really belongs in the view. [% c.local_date( user.last_updated_time ) | html %] But, setting the locale and time_zone in the inflator would be handy since it's all one place instead of every time I use a date in the view.

Re: [Catalyst] Encrypt /Decrypt URI

2007-05-18 Thread Bill Moseley
On Fri, May 18, 2007 at 12:16:34PM -0700, mla wrote: > Bill Moseley wrote: > >Using md5s for images, as in your example, is fine. But if the images > >really needed to be protected then that scheme is purely security by > >obscurity. That's what we were talking ab

Re: [Catalyst] Encrypt /Decrypt URI

2007-05-18 Thread Bill Moseley
On Fri, May 18, 2007 at 07:55:35PM +0200, Matija Grabnar wrote: > Bill Moseley wrote: > >What you are proposing is if item 7 is instead encoded as > >84bc3da1b3e33a18e8d5e1bdd7a18d7a then they are less likely to try > >other numbers because of, ... why? Because it

Re: [Catalyst] Encrypt /Decrypt URI

2007-05-18 Thread Bill Moseley
y should your application bother with using obfuscated ids? As far as the user is concerned 3,5,7 are abstract ids, just like 84bc3da1b3e33a18e8d5e1bdd7a18d7a is. Of course, what you want is a method that requires checking that the user can access the item. Something like

Re: [Catalyst] Form validation in insert() and update()?

2007-05-15 Thread Bill Moseley
Processor form similar approaches. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev s

Re: [Catalyst] Form validation in insert() and update()?

2007-05-15 Thread Bill Moseley
under Catalyst: sub edit : Local { my ( $self, $c, $id ) = @_; $c->update_from_form( $id ); } Where $c->update_from_form requires the form module and does everything else the first example does. I commonly do a redirect if $c->update_from_form ret

Re: [Catalyst] Form validation in insert() and update()?

2007-05-14 Thread Bill Moseley
xception that is not expected and I log the message and send the user a 500 and a message that they have been a very, very bad user. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/lis

Re: [Catalyst] Form validation in insert() and update()?

2007-05-14 Thread Bill Moseley
lidation tools to not be specific to the web/HTML side of things. The HTML side of the forms are easy, anyway, and often require hand-customizing. That way the same "forms" can be used for more than just the web environment. -- Bill Moseley [EMAIL PROTECTED] _

Re: [Catalyst] Shoot out -- Catalyst / RoR / Other MVC apps --

2007-05-09 Thread Bill Moseley
hod = sub { ... } later: $self->$private_method( $foo ); -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/cat

Re: [Catalyst] Re: Redirects // Re: forwarding to chained actions

2007-04-27 Thread Bill Moseley
for( $loc ) : $loc ), > ( $is_old_proto ? 302 : 303 ), > ); > } I was going to say "Quick! Make a plugin on CPAN" but then realized the above exceeds the line limit for Catalyst plugins. ;) -- Bill Moseley [EMAIL PROTECTED] ___ Li

Re: Redirects // Re: [Catalyst] Re: forwarding to chained actions

2007-04-27 Thread Bill Moseley
be to pass a comment that gets stuffed into the session (flash). -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive

Re: [Catalyst] Re: Catalyst videos from YAPC::Asia

2007-04-26 Thread Bill Moseley
ammers can do a lot of damage. I suspect you will be cursing it later when you have to go back and find all the places to add "| html" after the fact. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://

Re: [Catalyst] A View that may include elements optionally returnedfrom other funcs

2007-04-25 Thread Bill Moseley
tructure of the resulting page. No clue how that works in Seamstress. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/ca

Re: [Catalyst] [RFC] ditch svn

2007-04-18 Thread Bill Moseley
On Wed, Apr 18, 2007 at 09:14:40PM +1000, Kieren Diment wrote: > I think jrockway's original complaint was that the svn/svk model makes > merging quite difficult and slows down progress which means that new > features are only released slowly. Sounds like a feature. -- Bill

Re: [Catalyst] HOWTO reference config settings from template

2007-04-13 Thread Bill Moseley
guration settings. I'm using a view generated by the catalyst > helper script. [% USE foo = Class( 'Whatever::View::TT' ); USE Dumper; Dumper.dump(foo.config ) | stderr; %] -- Bill Moseley [EMAIL PROTECTED] ___ Lis

Re: [Catalyst] HOWTO reference config settings from template

2007-04-12 Thread Bill Moseley
stderr %] Maybe your View isn't stuffing $c into the stash, or is using a different name (see C::View::TT). -- Bill Moseley [EMAIL PROTECTED] ___ List: [EMAIL PROTECTED] Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable arch

Re: [Catalyst] little syntax

2007-04-12 Thread Bill Moseley
% USE Dumper %] or other variations can save a lot of time when dealing with the templates. -- Bill Moseley [EMAIL PROTECTED] ___ List: [EMAIL PROTECTED] Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-arch

Re: [Catalyst] internal redirect

2007-04-11 Thread Bill Moseley
On Wed, Apr 11, 2007 at 08:36:52AM -0700, Bill Moseley wrote: > On Wed, Apr 11, 2007 at 03:28:59PM +0100, Adeola Awoyemi wrote: > > if ( $new_img->write( file => $new_filename ) ) { > > > > I tried using "$c->response->redirect( $new_filepath )" but

Re: [Catalyst] internal redirect

2007-04-11 Thread Bill Moseley
eb document root is not the root of the file system. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.co

Re: [Catalyst] code after finalize: mod_perl, testserver ok - fastcgi not

2007-04-07 Thread Bill Moseley
nd STDOUT to /dev/null, and then call setsid(). It's interesting this is working for you with mod_perl if you are not doing the above. But, again, it's been years since I did this. Hopefully, someone with a bit more knowledge of FastCGI can respond. -- Bill Moseley [E

Re: [Catalyst] Re: HTML::FormFu and Rose::DB::Object?

2007-04-04 Thread Bill Moseley
('Email', 'email', 'This is required so we can send you promotional spam' ); field('Contact Phone', 'phone', 'Required so we can follow up why you didn't respond to the spam we s

Re: [Catalyst] Re: HTML::FormFu and Rose::DB::Object?

2007-04-03 Thread Bill Moseley
a select list then the html/template editors can change that to a radio select if they like without changing how the form is defined. As for javascript, I only do limited form validation -- required fields, and so on. And I feel that's often done better unobtrusively, as they say. That&#

Re: [Catalyst] HOWTO: extend the Authentication tutorial example and redirect to original URI

2007-03-29 Thread Bill Moseley
On Thu, Mar 29, 2007 at 12:40:51PM -0500, Dave Rolsky wrote: > On Thu, 29 Mar 2007, Bill Moseley wrote: > > >This always makes me wish for a 4xx code that could be returned to the > >client but not force the browser to ask for authentication. After > >all, the user is not

Re: [Catalyst] Componentised actions.

2007-03-29 Thread Bill Moseley
ivate actions. > > If the docs state that, they're wrong. It's perfectly possible to > forward to public actions. When you start up the server in debug mode you can see the private names for the public paths. So, you forward to the action using it

Re: [Catalyst] HOWTO: extend the Authentication tutorial example and redirect to original URI

2007-03-29 Thread Bill Moseley
the browser to ask for authentication. After all, the user is not currently authorized to view the page. And the idea being that the browser would not cache the 4xx response. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listi

Re: [Catalyst] Catalyst Exception received by e-mail?

2007-03-27 Thread Bill Moseley
e screen and on e-mail. I > like those complete scrolling screens > when something bad happens ... I would recommend you use a separate process to watch the error log and send mail. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.raw

Re: [Catalyst] Help needed with Unicode

2007-03-20 Thread Bill Moseley
ng DBD::Pg's pg_enable_utf8? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/

Re: [Catalyst] C::C::FB and captchas or similar

2007-03-19 Thread Bill Moseley
e time. That seems to have, for the most part, reduced the bot submissions. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archi

Re: [Catalyst] context object in TT

2007-03-15 Thread Bill Moseley
e_vars { my ( $self, $c ) = @_; my $cvar = $self->config->{CATALYST_VAR}; defined $cvar ? ( $cvar => $c ) : ( c=> $c, base => $c->req->base, name => $c->config->{name} ) } -- Bill Moseley [EMAIL PROTECTED] _

Re: [Catalyst] Catalyst::Plugin::DateTime

2007-03-09 Thread Bill Moseley
gt; can't find the time zone. > Is there anything I can do to install this Catalyst Plugin under Windows? What does that plugin offer over the standard DateTime module? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.

Re: [Catalyst] Performance

2007-03-09 Thread Bill Moseley
On Fri, Mar 09, 2007 at 11:34:14AM -0600, Dave Rolsky wrote: > On Fri, 9 Mar 2007, Bill Moseley wrote: > > >I just checked and on some pages I'm calling uri_for a few hundred > >times. If that's a bottle neck then optimization would be most > >welcome. >

Re: [Catalyst] Performance

2007-03-09 Thread Bill Moseley
s a bottle neck then optimization would be most welcome. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/

Re: [Catalyst] Merging configs

2007-03-09 Thread Bill Moseley
ig ) { $self->_config->{$key} = $val; } } return $self->_config; } -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable arc

Re: [Catalyst] Merging configs

2007-03-09 Thread Bill Moseley
ey}; if ( ref $value eq 'HASH' ) { $config->{$key} ||= {}; $self->deep_merge( $config->{$key}, $value ); } else { $config->{$key} = $value; } } } -- Bill Moseley [EMAIL PROTECTED] __

[Catalyst] Merging configs

2007-03-08 Thread Bill Moseley
ngs. Is the answer Hash::Merge? Or does Catalyst have anything to help here? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-a

Re: [Catalyst] Regex -- optional index.html

2007-03-02 Thread Bill Moseley
On Thu, Mar 01, 2007 at 04:13:05PM -0800, Bill Moseley wrote: > Seems that Catalyst first tries to match the full path, then tries to > match a reduced path. Adding a bit of debugging to Regex.pm's match() > method: > > Request = /training/webcasts/webcast_data/162/foo.ht

Re: [Catalyst] Regex -- optional index.html

2007-03-01 Thread Bill Moseley
h() method: Request = /training/webcasts/webcast_data/162/foo.html Checking [training/webcasts/webcast_data/162/foo.html] Checking [training/webcasts/webcast_data/162] *MATCHED* So that's why it's matchine when I don't want it to match. -- Bill Moseley [EMAIL PROTECTED

[Catalyst] Regex -- optional index.html

2007-03-01 Thread Bill Moseley
: yes Regex('^training/webcasts/webcast_data/(\d+)(/?index.html)?$') matches: ../186/index.html : yes ../186/foo.html : yes ../186/ : yes ../186 : yes -- Bill Moseley

Re: [Catalyst] Apache2::RequestIO::read: (70007) The timeout specified has expired

2007-02-28 Thread Bill Moseley
e_body() throw an error if a content-length header is found for GET requests? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://w

  1   2   >