Re: [Catalyst] Authorization ACL: future plans?

2008-06-12 Thread Matt S Trout
ble to integrate it into my model - so I can require a certain permission to call $obj->update on a DBIC row or whatever. Might be interesting to start a thread on the DBIC list about model level security if you were so inclined. -- Matt S Trout Need help with your Catalyst or DBIx::Cla

[Catalyst] Catalyst site design drafts feedback thread

2008-06-11 Thread Matt S Trout
1.png Scott Ladzinski: (3) http://ion0.com/hx/cat/new-version-2-26.jpg (4) http://ion0.com/hx/cat/catalystSiteDesign3.jpg Mike Whitaker: (5) http://agaton.scsys.co.uk/~matthewt/catsite/catsite-Penfold.pdf Gentlement, start your feedback engines. -- Matt S Trout Need help with your

[Catalyst] Catalyst site new design reminder: deadline TOMORROW

2008-06-04 Thread Matt S Trout
Remember, if you want your design to be considered for http://catalyst.perl.org/ it needs to be in the "mst (at) shadowcat.co.uk" mailbox by tomorrow or your excuse for needing until sunday needs to be instead. -- Matt S Trout Need help with your Catalyst or DBIx::Cla

[Catalyst] Catalyst new site design: call for comps

2008-05-30 Thread Matt S Trout
d; that's fine. I'll print out the dumbest complaints and put them on my wall or something. Happy designing. Please try and make it better than http://trout.me.uk/ ;) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorh

Re: [Catalyst] Suggestions for CatalystX::Installer

2008-05-30 Thread Matt S Trout
i in case somebody has time to do it later ... -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platf

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

2008-05-30 Thread Matt S Trout
On Thu, May 29, 2008 at 10:07:50AM +0100, Tomas Doran wrote: > > On 29 May 2008, at 06:44, Matt S Trout wrote: > >As I said before, Catalyst will treat the namespace corresponding > >to the > >file and any -subnamespaces- as components to load. > > > >W

Re: [Catalyst] uri_for() doesn't encode to utf8 first argument

2008-05-30 Thread Matt S Trout
s whitespaces changes. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/http:

Re: [Catalyst] Where to put common functions & how to get user id

2008-05-29 Thread Matt S Trout
atabase... No you don't. $c->user->obj returns the DBIC object. So $c->user->obj->user_id will give you the user_id. Although really, you shouldn't need that in your controller. Why do you think you need a model-specific integer in code that's no

Re: [Catalyst] Undefined subroutine &Test::WWW::Mechanize::Catalyst::Aux::request called

2008-05-28 Thread Matt S Trout
On Fri, May 23, 2008 at 10:36:54AM -0700, Bill Moseley wrote: > Before I start debugging I'm curious if this is a know issue. Yeah, it means your app is fucked and didn't load. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Techn

Re: [Catalyst] Suggestions for CatalystX::Installer

2008-05-28 Thread Matt S Trout
t; [3] Should script/myapp_setup.pl exist in a PAR archive in order to > > prevent the problem of the script not running because of missing > > dependencies? Yes, or bundle its own local::lib. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Techn

Re: [Catalyst] Adding Indexes To MySQL Database Tables in DBIC "result source" or "table classes"

2008-05-28 Thread Matt S Trout
On Mon, May 12, 2008 at 01:36:57PM -0400, Robert L Cochran wrote: > I have a MySQL version 5 table named languagelist structured like this: You seem to have accidentally posted this to the Catalyst list. I think you meant this to go to the dbix-class list? -- Matt S Trout Need h

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

2008-05-28 Thread Matt S Trout
troller/Foo.pm containing MyApp::Controller::Foo::Child[123]. We don't go round ranbdomly instnatiating every package we find in any file under Model/View/Controller - *that* would be a bug. Not doing so is a feature :) -- Matt S Trout Need help with your Catalyst or DBIx::Class pr

Re: [Catalyst] Suggestions for CatalystX::Installer

2008-05-28 Thread Matt S Trout
me sort that can be used to deploy > the application You want it to run 'make catalyst_par' for you? > - Install the preresiquites via CPAN You want it to run 'make installdeps' for you? -- Matt S Trout Need help with your Catalyst or DBIx::Class project

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

2008-05-11 Thread Matt S Trout
On Sat, May 10, 2008 at 07:16:44PM -0700, Ashley wrote: > 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

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

2008-05-11 Thread Matt S Trout
which could vary between controllers, say) or maybe passing an arrayref of action objects indicating the precise chain. Have a think about it and see about an RFC if you're still interested; the trouble is the extra bookkeeping rapidly gets us to the point where the base class + N contro

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

2008-05-10 Thread Matt S Trout
users are clearly repeatedly not getting this, it's time to change stuff. If we do a 5.71 I think the catalyst.pl default should change then, and then after a few months we file bugs against every distribution still using YAML examples instead of code and/or .conf. -- Matt S Trout

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

2008-05-10 Thread Matt S Trout
t=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > "> Try it now. > You're posting in HTML only. Fix your mail client. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.sha

Re: [Catalyst] Variable Catalyst seems to be undefined.

2008-05-10 Thread Matt S Trout
on - it's -usually- going to be enlightening. [0] If anybody ever finds out who coined the phrase "best practice" please tell me so I can send them a flaming llama turd as an expression of my love of it. -- Matt S Trout Need help with your Catalyst or DBIx::Class project

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

2008-05-10 Thread Matt S Trout
l.. > > Is there any sane way of doing this? Am I missing something obvious? > > Cheers > Tom > > > ___ > List: Catalyst@lists.scsys.co.uk > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searc

Re: [Catalyst] UTF-16 surrogate message when writing binary data (image)

2008-05-10 Thread Matt S Trout
is sending the response it's doing so by reading from the filehandle and the error's turning up during $fh->read. It'd of course be easier for you to confirm this, since you have the copy of IO/Handle.pm and the line number - maybe you could look? A good way to check would be to loop

Re: [Catalyst] Anybody who fancies some LWP poking ...

2008-05-09 Thread Matt S Trout
lement a fix didn't seem a very good > idea. 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. -- Matt S Trout Need help w

Re: [Catalyst] Anybody who fancies some LWP poking ...

2008-05-06 Thread Matt S Trout
that far down the dependency chain. Anyway, this thread was started to try and help get the fallout fixed, not for you to posture. Either write code, shut up, or start a separate thread so I can safely killfile it. -- Matt S Trout Need help with your Catalyst or DBIx::Class project

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread Matt S Trout
On Mon, May 05, 2008 at 07:50:08AM -0700, J. Shirley wrote: > On Mon, May 5, 2008 at 4:31 AM, Matt S Trout <[EMAIL PROTECTED]> wrote: > > > > On Sun, May 04, 2008 at 09:06:30AM -0700, J. Shirley wrote: > > > On Sun, May 4, 2008 at 8:52 AM, Zbigniew Lukasiak

Re: [Catalyst] Re: RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread Matt S Trout
Doubt it. The problem was the browsers gleefully threw out half the headers we were trying to send when we used a PUT request. Fuck all dojo can do about that so far as I can see. Of course I forget which browsers and which headers, but it sure as hell fucked our shit up but good. -- Mat

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread Matt S Trout
the database uses is completely useless to the > user. /user/1634254 is silly, /user/jshirley is meaningful. I fail to see how whether the PK is the lookup key or not has any relevance at all to the original point, which was "your lookup key and names of actions might clash so it

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread Matt S Trout
terns it can be a hell of a lot more efficient. Pragmatism is a many-edged sword :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed deve

Re: Fw: high school reunion [Catalyst] (no subject)

2008-05-05 Thread Matt S Trout
a thing, of course. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/

Re: [Catalyst] Tutorial

2008-05-05 Thread Matt S Trout
elp with. If you don't tell us the actual error message, we can't do anything - you're almost as vague as my uncle is when he says "the internet is broken". Oh, and ignore Ali M. He likes telling people how awful their documentation is and how they should write more but hasn&

Re: [Catalyst] Re: How to print/display some data in an end action

2008-05-05 Thread Matt S Trout
."]) > unless $id; > > my $gr = GeneRelations->new( > %{$c->config()->{dbinfos}}, > org => $c->session()->{org}->{id_org}, >); > > my $t = $gr->display_graph(type => 'id_gene', value => &g

Re: [Catalyst] modperl 1.3 wierdness

2008-05-05 Thread Matt S Trout
On Sun, May 04, 2008 at 11:19:24PM +1000, Toby Corkindale wrote: > On Sat, May 03, 2008 at 11:22:49PM +0100, Matt S Trout wrote: > > On Mon, Apr 28, 2008 at 11:30:53AM +1000, Toby Corkindale wrote: > > > Unfortunately due to somewhat unusual app deployment tactics her

Re: [Catalyst] So, what do we want in the -next- book?

2008-05-05 Thread Matt S Trout
On Sun, May 04, 2008 at 07:28:46PM +0200, Marcus Ramberg wrote: > On 4. mai. 2008, at 15.39, Matt S Trout wrote: > > >Then again, I originally learned Catalyst by reading the source; > >took me > >about 8 hours. The only thing that confused me was the dispatcher, >

[Catalyst] Anybody who fancies some LWP poking ...

2008-05-04 Thread Matt S Trout
http://use.perl.org/~acme/journal/36321 -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http

Re: [Catalyst] Re: RFC: Catalyst::Controller::REST::DBIC

2008-05-04 Thread Matt S Trout
ter for determining an architecture that allows you to use whatever alternative you like. Please don't let your obsessive REST advocacy blind you to pragmatic software development issues; it's starting to get boring. -- Matt S Trout Need help with your Catalyst or DBIx:

Re: [Catalyst] So, what do we want in the -next- book?

2008-05-04 Thread Matt S Trout
est suite. Then again, I originally learned Catalyst by reading the source; took me about 8 hours. The only thing that confused me was the dispatcher, which is why I rewrote most of it later when I became a contrib :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project

Re: [Catalyst] Catalyst website

2008-05-03 Thread Matt S Trout
uld end up being most of the website, > since it's powered by hierarchical fairy dust. I believe #catalyst-site is the location for the working party. Please nobody join that channel unless you're planning to implement; bikeshedders unwelcome and can expect to be banned. Commit bits

Re: [Catalyst] uri_for() doesn't encode to utf8 first argument

2008-05-03 Thread Matt S Trout
If you're going to resubmit a patch, please do so as a diff -ur or 'svn diff' or 'svk diff' to the list, and send it as plain text rather than application/octet-stream. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directo

Re: [Catalyst] modperl 1.3 wierdness

2008-05-03 Thread Matt S Trout
requiring that the > config file lived in the same non-standard location. How about using __PACKAGE__->config( 'Plugin::ConfigLoader' => { file => __PACKAGE__->path_to(...) } ); or setting an environment variable? -- Matt S Trout Need he

[Catalyst] Kill the book thread please

2008-05-03 Thread Matt S Trout
There's about four different conversations going on on it now. Please anybody who considers one of those conversations worth keeping start a fresh thread with a more accurate subject. It'll make the conversation saner. -- Matt S Trout Need help with your Catalyst or D

Re: [Catalyst] So, what do we want in the -next- book?

2008-05-03 Thread Matt S Trout
ty errata link here: http://catwiki.toeat.com/thebook Don't even waste your time submitting to them, just hassle them to link to the real errata list we've collected :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director

Re: Fw: high school reunion [Catalyst] (no subject)

2008-05-03 Thread Matt S Trout
Unsubscribed and banned. Bai. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com

Re: [Catalyst] Re: Dispatching based on path and host/domain

2008-04-25 Thread Matt S Trout
On Wed, Apr 23, 2008 at 10:56:07PM +0200, Aristotle Pagaltzis wrote: > * Matt S Trout <[EMAIL PROTECTED]> [2008-04-23 21:40]: > > On Wed, Apr 23, 2008 at 03:25:47PM +0100, Curtis Fletcher wrote: > > > Digging around, is it a sane thing to have: > > > > >

Re: [Catalyst] Why does $c->stats require -Debug flag?

2008-04-25 Thread Matt S Trout
tage of "completely broken" > kind of undermines that theory. > > I'm quite aware that I've spent more time debating the point than it > would have taken just to do this nugatory work, but then we wouldn't be > having this interesting discussion.

Re: [Catalyst] TT custom virtual methods available to all pages.

2008-04-23 Thread Matt S Trout
starts? package MyApp::View::TT; use base qw(Catalyst::View::TT); __PACKAGE__->config( ... ); use Moose; around template_vars => sub { my $orig = shift; my $self = shift; return (mk_hash => sub { ... }, $self->$orig(@_)); }; no Moose; 1; -- Matt S Trout

Re: [Catalyst] Dispatching based on path and host/domain

2008-04-23 Thread Matt S Trout
On Wed, Apr 23, 2008 at 03:25:47PM +0100, Curtis Fletcher wrote: > > -Original Message- > > From: Matt S Trout [mailto:[EMAIL PROTECTED] > > Sent: 23 April 2008 14:34 > > To: The elegant MVC web framework > > Subject: Re: [Catalyst] Dispatching

Re: [Catalyst] Dispatching based on path and host/domain

2008-04-23 Thread Matt S Trout
q->base at the moment though I'm not sure that's > the best way to go. I meant $c->req->uri->host, sorry. > Really finally, has anyone thought of putting together a flowchart of > the Classes/methods involved in a Catalyst request response if it's been > done

Re: [Catalyst] uri_for() doesn't encode to utf8 first argument

2008-04-22 Thread Matt S Trout
$URI::uric])/$URI::Escape::escapes{$1}/go for @args; > -unshift(@args, $path); > > It this case all data will be encoded. > > Any suggestions? $c->uri_for($c->controller('Network')->action_for('root'), 'some_param1', &

Re: [Catalyst] Dispatching based on path and host/domain

2008-04-22 Thread Matt S Trout
set of > Exceptions. The library provides come really common filtering facilities > for my apps like "active" flag and "valid_from"/"valid_to" date ranges > for records. That smells like there's a couple nice DBIC components in there trying to escape. Wa

Re: [Catalyst] Dispatching based on path and host/domain

2008-04-22 Thread Matt S Trout
> specific methods? (Well those that use DBIx::Class as their model > anyway) No, generally they don't. That's why they end up with controllers full of crap. Anybody trying to write -actual- MVC code with Catalyst+DBIC will have resultset classes though :) -- Matt S Trout

Re: [Catalyst] Dispatching based on path and host/domain

2008-04-22 Thread Matt S Trout
gt; sub view : Local Domain('mydomain.com') > { > } Write an Action Class. You can put whatever you want in the match() method. In your case, return 0 if grep { $c->req->host =~ /$_/ } @{$self->attributes->{Domain}||[]} looks about right. -- Matt S

Re: [Catalyst] Unit Testing

2008-04-21 Thread Matt S Trout
t. Don't. Stoppit. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/

Re: [Catalyst] modperl 1.3 wierdness

2008-04-21 Thread Matt S Trout
d; since obviously an unpacked dist -must- have a Makefile.PL otherwise it's not a valid dist[0] Choose one option :) [0] Yes, we do check for Build.PL as well. Hush. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorht

Re: [Catalyst] Why does $c->stats require -Debug flag?

2008-04-21 Thread Matt S Trout
d. Welcome to the real world sucking. If it was perfect, we'd need a lot less developers :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or dep

Re: [Catalyst] Why does $c->stats require -Debug flag?

2008-04-21 Thread Matt S Trout
On Mon, Apr 21, 2008 at 11:49:56AM +0930, Jon Schutz wrote: > On Sun, 2008-04-20 at 15:15 +0100, Matt S Trout wrote: > > > So far as I can see, all we really need to do is supply a proxy of the > > common Tree::Simple method from the C::Stats object through to $self->{tre

Re: [Catalyst] Catalyst and PayPal

2008-04-21 Thread Matt S Trout
le application and multiple inheritance -are- basically isomorphic for a lot of purposes; the difference is it's much easier to shoot yourself in the head with multiple inheritance. Which is probably why it's not popular - people are scared of powerful tools that can bite :) -- Mat

Re: [Catalyst] Catalyst and PayPal

2008-04-21 Thread Matt S Trout
dev.catalyst.perl.org/repos/Catalyst/trunk/Catalyst-Model-PayPal-IPN/ I wrote this for a project a while back but haven't had time to add docs and tests so it can be released. Volunteers would be much appreciated; commit bit on request. -- Matt S Trout Need help with your C

Re: [Catalyst] Unit Testing

2008-04-20 Thread Matt S Trout
n your controller (as opposed to your model) to -need- unit testing you're doing something wrong. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a

Re: [Catalyst] Unit Testing

2008-04-20 Thread Matt S Trout
n model, and then add your business logic methods below the md5 line so the skeleton parts can be regenerated. You should always be adding more code to your DBIC schema than you're adding to your controllers; if you find it's the other way round, you're doing it wrong. -- Matt S

Re: [Catalyst] Catalyst::Log::Log4perl autoflush

2008-04-20 Thread Matt S Trout
guration file? > > Do you (or others) agree that the autoflush option to new() is a misnomer? > If not, wouldn't my test simply prove that the code doesn't do what it > doesn't say it does? The autoflush option to new has the right name, but does the wrong thing. So

Re: [Catalyst] Why does $c->stats require -Debug flag?

2008-04-20 Thread Matt S Trout
urn it. So far as I can see, all we really need to do is supply a proxy of the common Tree::Simple method from the C::Stats object through to $self->{tree} and we're done. That'll provide compatibility with obvious usages without adding any significant compatibility overhead. I was ho

Re: [Catalyst] Sending email safely with Catalyst

2008-04-19 Thread Matt S Trout
On Fri, Apr 18, 2008 at 01:31:37PM -0700, Tatsuhiko Miyagawa wrote: > On Fri, Apr 18, 2008 at 10:54 AM, Matt S Trout <[EMAIL PROTECTED]> wrote: > > But you're writing a new catalyst app, so you're deploying it under > > fastcgi, > > right? > > > >

Re: [Catalyst] Testing View

2008-04-18 Thread Matt S Trout
ispatch setup and then expect the dispatcher to work. Also, a controller is an object. Calling methods as subroutines is -just- -wrong-. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co

Re: [Catalyst] CGI::Dump()

2008-04-18 Thread Matt S Trout
On Wed, Apr 16, 2008 at 06:59:14PM -0700, Ashley wrote: > Is there an established way to emulate this in Cat? > > CGI::Dump() > > I like it for dev work and simple one-off forms that are human > processed. [% USE Dumper; Dumper.Dump(c.req.params) | html; %] or so ? --

Re: [Catalyst] Why does $c->stats require -Debug flag?

2008-04-18 Thread Matt S Trout
e. I'm aware this sucks, and I'm still very pleased we have a proper documented stats API, but it still needs doing. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/

Re: [Catalyst] Sending email safely with Catalyst

2008-04-18 Thread Matt S Trout
t; correctly (the mod_perl guide recommends against forking > http://modperlbook.org/html/10-2-Forking-and-Executing-Subprocessesfrom-mod_perl.html). But you're writing a new catalyst app, so you're deploying it under fastcgi, right? Really, mod_perl is a legacy deployment option.

Re: [Catalyst] Memory leak under FastCGI?

2008-04-11 Thread Matt S Trout
. > > v/r > > -matt > > ___ > List: Catalyst@lists.scsys.co.uk > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ > Dev site:

Re: [Catalyst] Re: STDERR noise on Perl 5.10

2008-04-11 Thread Matt S Trout
in trunk. > Subroutine initialize redefined at > /usr/local/lib/perl5/site_perl/5.10.0/Class/C3.pm line 70. Send patches to Class::C3 > Name "MailRu::Catalyst::Plugin::Authentication::setup" used only once: > possible typo at /usr/local/lib/perl5/5.10.0/NEXT.pm line 58.

Re: [Catalyst] Memory leak under FastCGI?

2008-04-11 Thread Matt S Trout
On Thu, Apr 10, 2008 at 03:11:56PM -0400, Matt Pitts wrote: > > -Original Message- > > From: Matt S Trout [mailto:[EMAIL PROTECTED] > > Sent: Thursday, April 10, 2008 12:33 PM > > To: The elegant MVC web framework > > Subject: Re: [Catalyst] Memory leak under

Re: [Catalyst] RIA on Catalyst

2008-04-11 Thread Matt S Trout
wrappers are far, far more powerful so it made modeling the system as half object + protocol (the protocol being a JSON transport) much easier. I am not, however, a JS expert; I spent most of my time beating Cat + DBIC with a stick, as usual :) -- Matt S Trout Need help with

Re: [Catalyst] RFC: Catalyst::Plugin::AutoValidate

2008-04-10 Thread Matt S Trout
ests path (like > the .fb files when using Formbuilder). > > I'm curiuos of your opinions. Should be a controller base class. Using a plugin for this is bad style - see for example Controller::FormBuilder which replaces the old Plugin::FormBuilder -- Matt S Trout Need he

Re: [Catalyst] Why does $c->stats require -Debug flag?

2008-04-10 Thread Matt S Trout
accessible via $c->stats. Any ideas anyone? Debug mode is what turns on the internal statistics and action timing code, so the stats object isn't initialised without it. I'm not sure if this is a bug or a feature. -- Matt S Trout Need help with your Catalyst or DBIx::Clas

Re: [Catalyst] Re: New engine: HTTP::Prefork

2008-04-10 Thread Matt S Trout
et engine, but I wasn't > > really happy with it. > > Yeah – as I said, it’s faster when comparing all possible > approaches. But the app must be designed around that model. > Catalyst isn’t. Debolaz' auto-nonblocking DBIx::Coro (which works fine with DBIC) might make

Re: [Catalyst] Memory leak under FastCGI?

2008-04-10 Thread Matt S Trout
cManager just spawns another one. Note also that the FCGI::ProcManager maintainer is Gareth Kirwan and can be found hopefully via this list or as gbjk on IRC. (moral of the story: RFC on here first before coding lest ye be reinventing a wheel :) -- Matt S Trout Need help with your

Re: [Catalyst] catalyst and oracle "CONNECT BY PRIOR"

2008-04-06 Thread Matt S Trout
o with Catalyst. > Or post it to thedbix-list? There's no such thing as 'dbix', the project si called DBIx::Class. There are many others in the DBIx:: namespace and none of them are related. Also, the answer is going to be 'patches welcome' so unless you fancy implementin

Re: [Catalyst] Catalyst-Manual-FAQ Addition

2008-04-06 Thread Matt S Trout
est to back them up; if you've found a way to make Catalyst ignore such, it's almost certainly a bug in either our code our yours. It sure as hell isn't intentional, as you can tell by the fact that the string 'call' does not appear -at all- in Catalyst/Controller.pm --

Re: [Catalyst] RFC for plugin to strip script name from URI; plugin name + code review

2008-04-06 Thread Matt S Trout
%{REQUEST_URI} !(.*[^/])$ > RewriteRule ^(.*)/$ /$1 [QSA,L,R=301] > > RewriteCond %{REQUEST_FILENAME} !-d > RewriteCond %{REQUEST_FILENAME} !-f > RewriteRule ^(.*) /myapp.fcgi/$1 [QSA,L] Isn't it possible in mod_rewrite to use the P flag to pass the original URI throug

Re: [Catalyst] fix config right before database connect?

2008-04-06 Thread Matt S Trout
define a programmatic replacement for that. See Plugin::ConfigLoader docs for details. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a manage

Re: [Catalyst] Handy shotcuts

2008-04-06 Thread Matt S Trout
$path); $c->detach() > > I guess these shortcuts are really useful. Patch is attached. (1) Patches will -never- be attached without tests. If you haven't written tests, you should assume your code doesn't work. (2) There's no reason to pollute the core Catalyst with these;

Re: [Catalyst] Memory leak under FastCGI?

2008-04-06 Thread Matt S Trout
re leaking SVs. > Is it generally an acceptable practice to just restart the external > fastcgi process periodically to free its memory? Yep. Other than really gross leaks it's often not worth the developer time involved to track them down. -- Matt S Trout

Re: [Catalyst] How do I access 'Catalysed' custom datasets?

2008-04-06 Thread Matt S Trout
you, rather than hard coding a class. Also, never write class methods in DBIC. If you want methods, add methods - on row objects for single-record methods, on resultsets for collection methods, and on the schema for global things. -- Matt S Trout Need help with your Catalyst or DBIx:

Re: [Catalyst] Book - Japanese

2008-04-06 Thread Matt S Trout
o bug Packt about it, potential customers asking for it in Japanese is probably what will make them do it if they do :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems

Re: [Catalyst] Catalyst::Controller::REST and JSON::XS - Namespace/Custom modules

2008-04-06 Thread Matt S Trout
- if that's -not- working then you need to post your code and your config so we can try and figure out what's going wrong. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ S

Re: [Catalyst] Why use external FastCGI apps?

2008-04-06 Thread Matt S Trout
't so much care where it goes so long as it's there - a mis-placed article can be moved but a nonexistant one is no use at all :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalys

Re: [Catalyst] Catalyst::Plugin::Server::XMLRPC and default action

2008-03-21 Thread Matt S Trout
$c->action so those > don't work so well when $c->action is undefined. > > This a bug in the plugin or do I need to somehow define a default > XMLRPC action? Bug in the plugin. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Dir

Re: [Catalyst] Implementing DBIx::Class

2008-03-10 Thread Matt S Trout
ipt/myapp_create.pl model MyAppDB DBIC::Schema MyAppDB dbi:mysql > 'tutorial' '' '{ AutoCommit => 1 }' Yep. Note that DBIx::Class has its own mailing list (see DBIx::Class POD for the details) and you'd be best asking DBIC-specific questions (like 1 and 2

Re: [Catalyst] Patch for Catalyst::View::Mason

2008-03-10 Thread Matt S Trout
g different. On the other hand, you do have a point. So why not do it as a patch that allows a config option? -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Wan

Re: [Catalyst] Catalyst @ Flourish Conference

2008-03-10 Thread Matt S Trout
ed for UKUUG that week. But that looks like fun - any and all contribs should apply :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed de

Re: [Catalyst] Create tables on the fly using DBIC

2008-03-10 Thread Matt S Trout
ny additional extensions? It's probably possible, but your question isn't detailed enough to tell. Might I suggest you ask it again, in more detail, on the dbix-class list. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director

Re: [Catalyst] The performance test of 6 leading frameworks

2008-03-10 Thread Matt S Trout
s almost always either the templating or the DB stuff :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http:

Re: [Catalyst] Catalyst::Model::DBIC::Schema Cpan Installation Error

2008-03-10 Thread Matt S Trout
g make test > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t t/*/*.t > Can't open t/*/*.t. No such file or directory > Cannot determine source f

Re: [Catalyst] multiple database model support

2008-03-10 Thread Matt S Trout
n to a single DBIx::Class::Schema. You can create as many of them as you like. DBIx::Class was designed from the ground up to support N connections via the same classes. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director

Re: [Catalyst] multiple schemas per application

2008-03-08 Thread Matt S Trout
e('schemaname.tablename') works just fine. if you have any further questions, please ask on the DBIx::Class list. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shado

Re: [Catalyst] model update

2008-03-08 Thread Matt S Trout
with the particular id. Read the DBIx::Class::ResultSet docs - update only takes one argument, the parameters to update with. If you want to restrict the query, call it on a row object or on a resultset you've already restricted using search(). If you have any more questions, please ask on th

Re: [Catalyst] OT: Recommendations for big-time hosting

2008-03-08 Thread Matt S Trout
call > that managed. I trust you guys/gals and your experiences a great deal > more than a forum like WHT! Rackspace are, in my experience of clients using them, a complete pain. The supported OS is a customised RHEL4. It goes downhill from there. -- Matt S Trout Need help with

Re: [Catalyst] So, what do we want in the -next- book?

2008-03-08 Thread Matt S Trout
On Sun, Feb 24, 2008 at 11:11:37AM -0800, Daniel Hembree wrote: > Matt S Trout wrote: > >Since a fair few of you will now have John's book, I figured it was time > >to ask what you'd want from a second book. > > > >I guess the existing one provides a pretty

Re: [Catalyst] So, what do we want in the -next- book?

2008-03-08 Thread Matt S Trout
On Sat, Feb 23, 2008 at 09:25:07PM +0300, Alex Povolotsky wrote: > Matt S Trout wrote: > >Since a fair few of you will now have John's book, I figured it was time > >to ask what you'd want from a second book. > > > >I guess the existing one provides a pretty

Re: [Catalyst] Why use external FastCGI apps?

2008-03-08 Thread Matt S Trout
On Mon, Feb 25, 2008 at 09:35:04AM -0500, Matt Pitts wrote: > > -Original Message- > > From: Matt S Trout [mailto:[EMAIL PROTECTED] > > Sent: Saturday, February 23, 2008 1:18 PM > > To: The elegant MVC web framework > > Subject: Re: [Catalyst] Why use external

Re: [Catalyst] Doing work inside the DBIx::Class model

2008-02-23 Thread Matt S Trout
8 > # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gkSc31rRGpYHxL8tAAd/kw > > # You can replace this text with custom content, and it will be preserved on > regeneration > 1; > > As I understand I have to add to above: > > __PACKAGE__->source_name('SomeName&

Re: [Catalyst] Doing work inside the DBIx::Class model

2008-02-23 Thread Matt S Trout
ema. Is there a better way to do it? Yes, don't write class methods in DBIC. If the operation is on multiple rows, make it a resultset method. If the operation is on a single row, make it a method on the row object. If the operation is on a bunch of different things and neither of those

Re: [Catalyst] Newbie question about keeping the server running

2008-02-23 Thread Matt S Trout
essible. Er. This reminds me of when I used to do desktop support and got told "the internet is down". Define "inaccessible" and "looks like it is still running" please :) -- Matt S Trout Need help with your Catalyst or DBIx::Class proje

Re: [Catalyst] $c->user->some_relationship always retrives user id from the db

2008-02-23 Thread Matt S Trout
; behavior and you were present in IRC during the design discussions... Well, I think it would be nice to be able to support both. And yes, my fault for not thinking about this before release - it didn't really occur to me until now when you pointed out how not doing it could break stuff ... :)

<    1   2   3   4   5   >