Re: [Catalyst] Unknown column 'me.role' error

2007-09-07 Thread Jason Kohles
user_role_user_field: user_id -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive

Re: [Catalyst] SMTP vs sendmail

2007-08-31 Thread Jason Kohles
to sendmail and letting the local MTA handle the relay to the smarthost, then the mail would simply be queued until the mail server was available again. -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire

Re: [Catalyst] About output in a browser

2007-08-29 Thread Jason Kohles
is deciding that since you didn't specify a content-type, it's going to default to text/plain. -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire ___ List: Catalyst@lists.rawmode.org Listinfo: http

Re: [Catalyst] access stash outside methods

2007-08-22 Thread Jason Kohles
} ) { $descriptions{ $url } = $desc; } } return \%descriptions; } -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire ___ List: Catalyst@lists.rawmode.org Listinfo: http

[Catalyst] RFC: Multiple :Chained and/or :PathPart attributes?

2007-08-20 Thread Jason Kohles
, and it looks like it's going to take a while to wrap my brain around it, so if anyone has suggestions on how to implement this (or reasons that it's a very bad idea) I'd love to hear them... -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire

Re: [Catalyst] Rate limiting password attacks

2007-08-17 Thread Jason Kohles
sending bad passwords for people they don't like. -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo

Re: [Catalyst] Running MyAppB under MyAppA (only for developers)

2007-07-31 Thread Jason Kohles
... package MyApp::Controller::Admin; use strict; use warnings; use base qw( Admin::Base ); sub base : Chained('/') PathPart('admin') Args(0) {} 1; -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire

Re: [Catalyst] Test server as a child process

2007-07-31 Thread Jason Kohles
will have the same effect... use IPC::Run qw( run ); run( script/myapp_server.pl, 'pty', \$in, 'pty', $out_and_err ); -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire ___ List: Catalyst

Re: [catalyst] conditional loading of Controllers and Models

2007-07-17 Thread Jason Kohles
the condition that disables it. Just put this in the controller class... sub register_actions { my ( $self, $c ) = @_; if ( ! $c-debug ) { return } return $self-SUPER::register_actions( $c ); } -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying

Re: [Catalyst] html::prototype syntax in new Cat version

2007-07-10 Thread Jason Kohles
-Ajax-0.701/ -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail

Re: [Catalyst] Anyone using ProxyPass?

2007-07-03 Thread Jason Kohles
/ -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com

Re: [Catalyst] Template rendering error under mod_perl

2007-06-29 Thread Jason Kohles
/Build.PL or by figuring out where the libraries are installed, but that may not be the correct location for your root directory. Take a look at Catalyst::Utils for the home method to see how it figures it out... -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying

Re: [Catalyst] Custom error

2007-06-27 Thread Jason Kohles
On Jun 26, 2007, at 12:45 PM, Brian Kirkbride wrote: Jason Kohles wrote: On Jun 25, 2007, at 1:27 PM, Evaldas Imbrasas wrote: Yes, that's what I meant, thanks Brian. Please provide a code example using RenderView action. I think it would also make sense to incorporate that example

Re: [Catalyst] test server with -host

2007-06-18 Thread Jason Kohles
(I can see other webservers on this machine). It does bind everything by default, if you can't access it from another host I'd start by looking at things like hostbased-firewalls on your development machine... -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves

Re: [Catalyst] Template creates objects via belongs_to autovivification

2007-06-13 Thread Jason Kohles
::Schema::Author', 'author', {join_type = 'left'}); -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire ___ List: Catalyst@lists.rawmode.org Listinfo: http

Re: [Catalyst] HOWTO reference config settings from template

2007-04-12 Thread Jason Kohles
that are provided to TT by default... package MyApp::View::TT; sub template_vars { my ( $self, $c ) = @_; my %vars = $self-SUPER::template_vars( $c ); $vars{ 'ttconfig' } = $self-config; return %vars; } -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com

Re: [Catalyst] Custom finalize_error

2007-04-03 Thread Jason Kohles
On Apr 2, 2007, at 5:39 PM, Jim Spath wrote: Jim Spath wrote: Jason Kohles wrote: On Apr 2, 2007, at 4:13 PM, Jim Spath wrote: I wanted to get rid of the Please come back later error page, so I defined my own finalize_error() in MyApp.pm as mentioned in this post: http://www.mail

Re: [Catalyst] Sending email

2007-04-02 Thread Jason Kohles
( 'Template::Exception' ) ) { die Rendering template failed! ($body); } $c-email( header = [ To = $result-params-{email}, Subject = 'User Registration', ], body = $body, ); -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com

Re: [Catalyst] Custom finalize_error

2007-04-02 Thread Jason Kohles
. finalize_error is called long after the view processing has already been done, if you want to use a template to put a page there, you have to build your own Template object and process the template yourself. -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing

Re: [Catalyst] Where and how to access database

2007-03-21 Thread Jason Kohles
(or at least I couldn't figure out how at the time I needed to do it)... $c-model( 'MyModel' )-schema-storage-dbh-do( NOTIFY update_listener ); -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire

Re: [Catalyst] YAML config embedded path_to mysql_read_default_file

2007-03-19 Thread Jason Kohles
the default), then you can do this... Model::DBIC: schema_class: MyApp::Schema::DBIC connect_info: - dbi:mysql:opendevil;mysql_read_default_file=__path_to (configfile.cfg)__ -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire

Re: [Catalyst] Catalyst::Manual::Tutorial::CatalystBasics [error]Couldn't render template undef error - status_msg is undefined

2007-03-17 Thread Jason Kohles
be a good option for a debugging example... DEBUG = 'dirs', DEBUG_FORMAT = '!-- $file line $line: [% $text %] --', -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire ___ List: Catalyst

Re: [Catalyst] Catalyst::Manual::Tutorial::CatalystBasics [error] Couldn't render template undef error - status_msg is undefined

2007-03-14 Thread Jason Kohles
) { if ( ! defined $vars{ $x } ) { $vars{ $x } = q{} } } return %vars; } -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org

[Catalyst] Anybody using Chained('.') ?

2007-03-13 Thread Jason Kohles
| +- +--+ '- +--' And I don't seem to be able to get any chained actions working unless they are chained to a specific path... -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire

Re: [Catalyst] Anybody using Chained('.') ?

2007-03-13 Thread Jason Kohles
On Mar 13, 2007, at 10:41 AM, Robert 'phaylon' Sedlacek wrote: Jason Kohles wrote: I'm trying to use Chained('.') to create a controller base class that binds to the namespace of whatever controller class inherits it, but despite the documentation specifically mentioning this use, I can't

Re: [Catalyst] Performance

2007-03-12 Thread Jason Kohles
instead of {bar}. -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http

Re: [Catalyst] html mail (was: reserved words)

2007-03-08 Thread Jason Kohles
of the world must change? -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http

Re: [Catalyst] reserved words

2007-03-07 Thread Jason Kohles
anything to do with the name of the module... -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst

Re: [Catalyst] Accessing $c from Model

2007-03-06 Thread Jason Kohles
to happen if you ever attempt to run your application under the debugger when you have a package named 'DB'. I'd recommend using a different name... -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire

Re: [Catalyst] Role problem

2007-02-26 Thread Jason Kohles
::Schema::MemberRole; __PACKAGE__-add_columns( qw/member_role_id member_role_created member_id role_id/ ); __PACKAGE__-config( authorization = { dbic = { user_role_user_field = 'member_alias', }, }, ); -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com

Re: [Catalyst] Date::Calc and Date::Calendar with Catalyst?

2007-02-25 Thread Jason Kohles
the namespace with not one, but two useless methods (that do the exact same thing, no less) and gains nothing from being a plugin, it could very easily have been a module (in fact, take a look at the source, it does almost nothing anyway). -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com

Re: [Catalyst] unicode best practices

2007-02-16 Thread Jason Kohles
subversion, and in the .pod it's literally C???, so it appears it is supposed to be like that, and I don't get the point either... -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire ___ List

Re: [Catalyst] Re: looping

2007-02-14 Thread Jason Kohles
( 'myDB::Author' )-get_column( 'last_name' )-all; -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst

Re: [Catalyst] Using C::P::A::ACL and C::M::FormBuilder together?

2007-02-13 Thread Jason Kohles
. You've misunderstood what it means when it says it 'only works with Private', it means that if you have a sub like this: sub foo : Path('bar') { } Then the ACL can only be addressed by the name 'foo', not 'bar'. There is no reason to split your functions up like this. -- Jason Kohles

[Catalyst] Chained action confusion...

2007-02-10 Thread Jason Kohles
| ' +---' And the output to the browser is just index. -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable

[Catalyst] Chained action confusion...

2007-02-10 Thread Jason Kohles
| ' +---' And the output to the browser is just index. This seems to happen with any chained action where the pathpart is '', in the full application I have other -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire

Re: [Catalyst] Bread crumb

2007-02-08 Thread Jason Kohles
On Feb 7, 2007, at 11:30 AM, Peter Karman wrote: Jason Kohles scribbled on 2/6/07 8:33 AM: It still feels a little kludgy, but this is how I'm doing it currently... [...] fwiw, that is pretty close to how http://search.cpan.org/~tigris/Catalyst-Plugin-Breadcrumbs-5/lib/ Catalyst/Plugin

Re: [Catalyst] MyAction for locally namespaced ActionClasses?

2007-02-08 Thread Jason Kohles
. I didn't have time to look into it any deeper than that though... -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org

Re: [Catalyst] Reaction Development?

2007-02-06 Thread Jason Kohles
and on for the last three or four days, it's been driving me crazy... -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman

Re: [Catalyst] Bread crumb

2007-02-06 Thread Jason Kohles
IN site.breadcrumbs %] [% IF loop.last %] [% title or template.title or item.label %] [% ELSE %] a href=[% item.uri %][% item.label %]/a gt;gt; [% END %] [% END %] -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire

Re: [Catalyst] getting the role id

2007-02-04 Thread Jason Kohles
with $c-user-map_user_role. -- Jason Kohles [EMAIL PROTECTED] http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive

Re: [Catalyst] Can we use both TT and TTsite at the same time

2006-11-12 Thread Jason Kohles
On Nov 8, 2006, at 10:10 AM, Bill Moseley wrote: On Wed, Nov 08, 2006 at 08:18:49AM -0500, Jason Kohles wrote: site/wrapper: [% IF template.name.match('\.(css|js|txt)') OR nowrap OR template.nowrap; debug(Passing page through as text: $template.name); content; Is your css

Re: [Catalyst] Can we use both TT and TTsite at the same time

2006-11-08 Thread Jason Kohles
by using $c-{ 'stash' }-{ 'nowrap' } = 1 in your controller method, or by putting [% META nowrap = 1 %] in the template itself. -- Jason Kohles[EMAIL PROTECTED]http://www.jasonkohles.com/"A witty saying proves nothing."  -- Voltaire ___ List: Catalyst@li

Re: [Catalyst] problem with FormBuilder + TT2

2006-09-19 Thread Jason Kohles
h the Path::Class::File object that path_to is going to return,use $c-path_to(qw/root customer signup.tt2/)-stringify instead.--  Jason Kohles[EMAIL PROTECTED]http://www.jasonkohles.com/"A witty saying proves nothing."  -- Voltaire __

Re: [Catalyst] Catalyst::View::TT - strange caching annoyance

2006-09-13 Thread Jason Kohles
'perldoc Template': Caching and Compiling Options CACHE_SIZE Maximum number of compiled templates to cache in memory (default: undef - cache all) -- Jason Kohles [EMAIL PROTECTED] - http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire

Re: [Catalyst] HTML::Widget, callback constraint, and multiple records per form

2006-09-01 Thread Jason Kohles
that were passed to make_counties_widget, which is why they don't make any sense, and why the context is being passed as a second argument. -- Jason Kohles [EMAIL PROTECTED] - http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire

Re: [Catalyst] HTML::Widget, callback constraint, and multiple records per form

2006-09-01 Thread Jason Kohles
('Reset'); return $w; } -- Jason Kohles [EMAIL PROTECTED] - http://www.jasonkohles.com/ A witty saying proves nothing. -- Voltaire ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive

Re: [Catalyst] Anyone actually using FastCGI with Apache (or even lighttpd)?

2006-08-30 Thread Jason Kohles
On 8/30/06, Matt S Trout [EMAIL PROTECTED] wrote: On 30/08/06, Jason Kohles [EMAIL PROTECTED] wrote: On 8/29/06, Matt S Trout [EMAIL PROTECTED] wrote: If somebody could write this up for Engine::FastCGI in the form of a patch I'm sure it could ship in 5.7002 I started