[Catalyst] Catalyst::Model::Adaptor - because models shouldn't *do* anything

2007-10-07 Thread Jonathan Rockway
Hi all, I've been noticing that more and more people seem to be writing Catalyst models that do things that other modules on CPAN don't. This is not good. Instead of writing a reusable module, people are tying their logic to Catalyst, which is bad for everyone. When you tie your Model to

Re: [Catalyst] Re: Catalyst Unicode woes ctd.

2007-10-07 Thread Ash Berlin
Simon Wilcox wrote: A. Pagaltzis wrote: I know I’m not very constructive here… but have I mentioned that TT2 sucks? It would, perhaps, have been a little more constructive if you had recommended the alternative that you use that doesn't have these issues. Simon. From the TT mailing

Re: [Catalyst] Session trouble

2007-10-08 Thread Bill Moseley
I noticed jrockway has fixed this in C::P::Session. Thanks! Any idea when this might get pushed to CPAN? BTW -- I had created a test case some time back. I'll attach it just in case you want to add to the C::P::S::State::Cookie package. On Thu, Aug 02, 2007 at 12:17:12PM -0700, Bill

Re: [Catalyst] Re: Encoding problem - ?fastcgi?

2007-10-08 Thread Richard Robinson
On Mon, Oct 08, 2007 at 02:07:18PM +0200, A. Pagaltzis wrote: Hi Richard, did you ever get this sorted? Quoting in full since you seem to have been warnocked. I have no idea what to suggest but am curious about this issue as a matter of personal interest. Nice word, I hadn't met it before.

Re: [Catalyst] Re: Encoding problem - ?fastcgi?

2007-10-08 Thread Ash Berlin
I'm also sending generated PDFs from my FastCGI bassed app. The only difference between my setup and yours appears to be the use of C::P::Unicode. Works fine for me. Not very useful I'm affraid. -ash Richard Robinson wrote: On Mon, Oct 08, 2007 at 02:07:18PM +0200, A. Pagaltzis wrote: Hi

Re: [Catalyst] Re: Encoding problem - ?fastcgi?

2007-10-08 Thread Octavian Rasnita
I also had a maybe similar problem. I've used XML::Simple to parse an XML file which is UTF-8 encoded and if I used the Catalyst test web server it worked fine, but if I wanted to load the application with Apache, the page was double encoded. I used: $obj = XMLin($content) if $content =~

Re: [Catalyst] Session trouble

2007-10-08 Thread Jonathan Rockway
Bill Moseley wrote: I noticed jrockway has fixed this in C::P::Session. Thanks! Any idea when this might get pushed to CPAN? BTW -- I had created a test case some time back. I'll attach it just in case you want to add to the C::P::S::State::Cookie package. nuffin released the updated

[Catalyst] Any chance there is an arbitrary limit to how many classes you can load this way...?

2007-10-09 Thread Dustin Suchter
So let's assume I have the below code. Each of the 13 classes represent 1 table in the same MySQL db. All class definitions are essentially identical in structure and have nothing more complex than foreign keys in them. Here's the weird thing, if I run my code with all 13 classes, my default view

Re: [Catalyst] Any chance there is an arbitrary limit to how many classes you can load this way...?

2007-10-09 Thread Josef Chladek
Am 09.10.2007 um 11:51 schrieb Dustin Suchter: So let's assume I have the below code. Each of the 13 classes represent 1 table in the same MySQL db. All class definitions are essentially identical in structure and have nothing more complex than foreign keys in them. Here's the weird thing, if

Re: [Catalyst] Any chance there is an arbitrary limit to how many classes you can load this way...?

2007-10-09 Thread Dustin Suchter
The fact that someone else had this problem makes me feel a tiny bit better. At least I'm not *totally* insane. I'm not explicitly using that package though: -bash-3.00$ grep ErrorH `find . -name *` -bash-3.00$ grep RenderView `find . -name *` | grep -v svn ./Makefile.PL:requires

Re: [Catalyst] Any chance there is an arbitrary limit to how many classes you can load this way...?

2007-10-09 Thread Dustin Suchter
Why yes they are! There are classes like, 'User' and 'UserRoles'. This overlap happens a few time, actually. Can you elaborate on your solution? I'm a YAML beginner... Juan Miguel Paredes wrote: On 10/9/07, Dustin Suchter [EMAIL PROTECTED] wrote: The fact that someone else had this problem

Re: [Catalyst] Helper classes shared across multiple controllers - any recommendations?

2007-10-10 Thread Jonathan Rockway
Stefan Kühn wrote: I would like to provide functionality to multiple controllers. Base classes. Common code goes in a base class: package YourApp::BaseController::Foo; use base 'Catalyst::Controller'; sub some_method {} sub some_action :Attributes Are OK {} 1; Then:

Re: [Catalyst] Helper classes shared across multiple controllers - any recommendations?

2007-10-10 Thread Stefan Kühn
Yes, it looks nice. But could you also add controller specific functionality, like so? === package TestApp::Controller::Adaptor; use strict; use warnings; use base 'TestApp::BaseController::Adaptor'; __PACKAGE__-config( model = 'SomeClass' ); sub method_A : Local { my ( $self, $c ) = @_;

Re: [Catalyst] Helper classes shared across multiple controllers - any recommendations?

2007-10-10 Thread Jonathan Rockway
Stefan Kühn wrote: Yes, it looks nice. But could you also add controller specific functionality, like so? Yes, you can. In your example, you'll be able to hit /adaptor/method_A (and B) in addition to the actions defined in the superclass. As an aside, Perl has multiple inheritance, so your

[Catalyst] BUG? value isn't numeric on Catalyst.pm 1357

2007-10-10 Thread Ruben Fonseca
Hi! I'm here to report something I think it's a bug. I'm using the latest Catalyst stable distribution on Perl 5.8.8 and MacOS 10.4. I notice *a lot* of errors of this kind during debug: Argument 0,055361 isn't numeric in numeric eq (==) at /opt/local/

Re: [Catalyst] uri_for and Chained actions

2007-10-10 Thread Oleg Pronin
If your project is heavy loaded then i think the best way is to write: form action=/myapp/[%object.id%]/update or (easy to change): form action=[%object.update_url%] in Object: sub update_url {'/myapp/'.shift-id.'/update} because Catalyst.uri_for() still takes to much CPU to call it a hundred

Re: [Catalyst] email confirmation widget?

2007-10-11 Thread Ian Docherty
Dave Rolsky wrote: On Wed, 10 Oct 2007, Dustin Suchter wrote: Has anyone put together a nice email-validation-link-generator widget for Catalyst (or Perl, for that matter)? All I can find on CPAN is something that is part of Jifty (whatever that is).

Re: [Catalyst] Any chance there is an arbitrary limit to how many classes you can load this way...?

2007-10-11 Thread Matt S Trout
On Tue, Oct 09, 2007 at 04:41:02PM -0500, Jonathan Rockway wrote: FWIW, this is going to burn users of View::Template::Declare also. Given YourApp::View::TD and a templates like YourApp::View::TD::*, set: YourApp-config( default_view = qw/View::TD$/ ); and *NOT*: YourApp-config(

Re: [Catalyst] New auth stuff and LDAP store...

2007-10-12 Thread Matt S Trout
On Fri, Oct 12, 2007 at 07:58:21AM -0500, Peter Karman wrote: On 09/24/2007 12:55 PM, Adam Jacob wrote: Anyone willing to give this a test run and let me know if things are working correctly for them? I don't have any apps using the new interface. :) Adam Having not heard

Re: [Catalyst] uri_for and Chained actions

2007-10-12 Thread Oleg Pronin
I have a hundred of img src= and a hundred of a href=.. per page on 1-2mln hosts/day project. If your project is not under subfolder of some domain then there is no need to call img src=[%c.uri_for('/images/img.jpg')%]/ instead of img src=/images/img.jpg/ as they are both pointing to the same

Re: [Catalyst] Catalyst::Plugin::Prototype

2007-10-12 Thread Ash Berlin
Stefan Kühn wrote: The documentation of Catalyst::Plugin::Prototype is a rather thin. Only one example of a method is given: [% c.prototype.observe_field( 'editor', uri, { 'update' = 'view' } ) %] Is it correct that Catalyst::Plugin::Prototype uses and that the methods can be determined

Re: [Catalyst] Limiting flash to a specific request

2007-10-12 Thread Bill Moseley
On Fri, Oct 12, 2007 at 12:42:10PM -0500, Dave Rolsky wrote: I'm doing something very similar, except I just the session itself, and it's my _only_ use of sessions. In my case, I just put the session id in the URI. Sessions never contain sensitive info, and they expire after 5 minutes,

[Catalyst] connecting to a remote sqlite

2007-10-12 Thread rahed
Hello, I connect to a local sqlite db. The data is being retrieved roughly like this: my $rs = $c-model('MyAppDB::Table1')-search( undef, { prefetch={ 'rel1'={'rel2'=['table4','table5'] } },

Re: [Catalyst] connecting to a remote sqlite

2007-10-13 Thread rahed
On 10/12/07, Matt S Trout [EMAIL PROTECTED] wrote: On Fri, Oct 12, 2007 at 11:50:01AM +0200, rahed wrote: Without prefetch, there is no error. Is it possible (and which way) to retrieve data from a remote db via proxy with Catalyst? Yes, use a database that's network capable like mysql or

Re: [Catalyst] connecting to a remote sqlite

2007-10-14 Thread Matt S Trout
On Sat, Oct 13, 2007 at 12:07:54PM +, rahed wrote: On 10/12/07, Matt S Trout [EMAIL PROTECTED] wrote: On Fri, Oct 12, 2007 at 11:50:01AM +0200, rahed wrote: Without prefetch, there is no error. Is it possible (and which way) to retrieve data from a remote db via proxy with Catalyst?

Re: [Catalyst] Web Services Integration with Catalyst

2007-10-15 Thread Bill Moseley
On Mon, Oct 15, 2007 at 09:16:14AM +0100, Ash Berlin wrote: I'm toying with using a ticket based authentication where the token would be sent in the XMLRPC request body, but use the existing (cookie-based) session setup that that application uses. Using cookies for XMLRPC is considered

[Catalyst] How to setup production Lighttpd and Catalyst apps...

2007-10-16 Thread Dustin Suchter
So I'm having a bit of a problem getting my app to run under Lighttpd using FastCGI. Essentially my question is, Can someone explain how to set lighty, fastcgi, and my app up? I've scoured Google/Yahoo for more info but can't find a perl-FCGI specific tutorial - just a PHP one. PHP fastcgi, for

Re: [Catalyst] Re: Handel Installation Problems

2007-10-17 Thread Christopher H. Laco
Collin Condray wrote: Christopher, It looks like DBD::SQLite 1.14 is installed. Do I need to use a different version? I don't believe so. This is a bug in DBD::SQlite 1.13/1.14 where the query immediately after a failing 'pk value already exists' error also failsand of course, I keep

[Catalyst] ::Session::Store::FastMmap issues

2007-10-17 Thread Florian Ragwitz
Hi, there is an issue with the Cache::FastMmap store for the Session plugin. When $c-session contains some large very data structures Cache::FastMmap refuses to store them for whatever reason and returns false when calling -set on it. However Catalyst::Plugin::Session::Store::FastMmap doesn't

Re: [Catalyst] BUG: Catalyst dev server converts encoded '+' (%2B) into spaces in query string. (With fix and test)

2007-10-18 Thread Tatsuhiko Miyagawa
I fixed this a while ago on SVN with the following changeset. http://dev.catalyst.perl.org/svnweb/Catalyst/revision/?rev=6873 On 10/18/07, Oleg Pronin [EMAIL PROTECTED] wrote: http://rt.cpan.org/Ticket/Display.html?id=30087 -- Tatsuhiko Miyagawa

Re: [Catalyst] New auth stuff and LDAP store...

2007-10-18 Thread Peter Karman
Thanks to Adam, mst and jshirley for bringing me into the Cat fold. Catalyst-Plugin-Authentication-Store-LDAP-0.0600 was just pushed to CPAN. This brings the LDAP auth plugin up to speed with the current C::P::Authentication realms API. On 09/24/2007 12:22 PM, Peter Karman wrote: On

[Catalyst] Where is the Catalyst for Dummies page?

2007-10-19 Thread Faber J. Fedor
I've been playing with Catalyst seriously for the past week ( and not-seriously for the past several months) and I can't figure out what to do with it; I can't even figure out how to display a Hello World page using a template. Yes, I've read the tutorials, attended the lectures, etc.. I still

Re: [Catalyst] Catalyst RPMs for CentOS5

2007-10-19 Thread James R. Leu
Have you heard of cpan2rpm? On Fri, Oct 19, 2007 at 04:02:58PM +0200, mh wrote: Hi everyone, i am new to catalyst and to this list so i hope i am not asking something that has been answered a thousand times before. I didn't find anything useful in the archives though, except some

Re: [Catalyst] transforming a Catalyst uni-lang app into a multi-langone

2007-10-19 Thread Zbigniew Lukasiak
On 10/19/07, Brian Cassidy [EMAIL PROTECTED] wrote: Octavian Rasnita wrote: From: Jonas Alves Why not use $c-uri_with(lang = $lang) ? Thank you. I didn't know about $c-uri_with. Actually, it's $c-request-uri_with(). He can also use the third parameter to uri_for for that:

Re: [Catalyst] Mapping parameters for web services

2007-10-24 Thread Bill Moseley
On Wed, Oct 24, 2007 at 07:10:09PM +0100, Matt S Trout wrote: The C::P::Server::XMLRPC plugin allows adding attributes to existing controllers, so you can do: sub user_detail : Local : XMLRPC { my ( $self, $c, $user_id ) = @_; # validate user_id and place user

[Catalyst] Parley / http://dev.catalystframework.org/

2007-10-25 Thread Chisel Wright
I was just scanning through http://dev.catalystframework.org/ and realised that (my project) Parley is listed under 'Examples'. I'm not sure how good an example the application is ... Would a kind soul with edit rights to this page please move Parley out of examples and into 'Open Source

Re: [Catalyst] Fucking spam.

2007-10-25 Thread Matt S Trout
Reported to nabble abuse. I'll be killing the post out the archives as well. -- 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

Re: [Catalyst] [OT] Firefox input type=image issues?

2007-10-26 Thread Christopher H. Laco
[EMAIL PROTECTED] wrote: Christopher, I have run into this issue as well, every time it appeared to be because one or more web developer extensions were loaded on the client and were causing the issue. I have not tracked it down to which ones or the settings that seem to cause it

Re: [Catalyst] Fucking spam from nabble

2007-10-26 Thread Matt S Trout
On Fri, Oct 26, 2007 at 07:45:35AM -0500, Thomas L. Shinnick wrote: Any chance from a guy named 'Rod'? Google for nabble and you'll see other problems also. Nabble allows people to post through nabble into maillists that nabble is subscribed to. The email came from nabble: Received:

[Catalyst] Hypothetical Site and Scalability Planning

2007-10-26 Thread Mesdaq, Ali
Hey All, Just wanted to start a thread about scalability planning and design. I was thinking we could take the approach of what peoples opinions, ideas, and best practices are for large scale sites and use a hypothetical site or a existing site as the model to plan for. Not everything discussed

Re: [Catalyst] Hypothetical Site and Scalability Planning

2007-10-26 Thread J. Shirley
On 10/26/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: NFS gets a bad wrap, as long as you do sane planning and lay it out properly NFS works very very well for servicing static files to the webservers. Breaking out to S3 seems silly (Amazon is out to make money with S3 and if you do it

RE: [Catalyst] Hypothetical Site and Scalability Planning

2007-10-26 Thread Mesdaq, Ali
J, Amazing feedback this is great! I think memcached is great. I haven't had time to play with it yet but I have pretty much read everything and been prepped to play with it once I have a chance. I personally think that storing images in the DB is the best place to start because if other

Re: [Catalyst] returning empty 200 response

2007-10-28 Thread Jonathan Rockway
I wrote: Devo Coran wrote: but the problem is it keeps going to /end MyApp::View::TT-process return 1 if $c-response-status =~ /^(?:204|3\d\d)$/; Actually, you want to send a 204 status instead of 200. 204 means success but no body content, which is exactly your case.

[Catalyst] Re: Hypothetical Site and Scalability Planning

2007-10-28 Thread A. Pagaltzis
* Robert Mah [EMAIL PROTECTED] [2007-10-28 15:00]: Memcached is not distributed. What are you talking about? Thus, you can't support distributed session state with it. Well, you can’t put sessions in it because it doesn’t guarantee that things you put in it will stay in it (it’s a cache, not

RE: [Catalyst] Hypothetical Site and Scalability Planning

2007-10-28 Thread Johan Lindstr
At 21:58 2007-10-26, Mesdaq, Ali wrote: I personally think that storing images in the DB is the best place to start because if other better solutions are available later you can very easily migrate. But if you start out with filesystem migration is a little bit more cludgy in my opinion. I mean

Re: [Catalyst] Hypothetical Site and Scalability Planning

2007-10-28 Thread Brian Kirkbride
wrote: At 21:58 2007-10-26, Mesdaq, Ali wrote: I personally think that storing images in the DB is the best place to start because if other better solutions are available later you can very easily migrate. But if you start out with filesystem migration is a little bit more cludgy in my

[Catalyst] Open-enrollment Catalyst Training in Chicago

2007-10-28 Thread Jonathan Rockway
Hi all, Stonehenge is doing a few low-cost open-enrollment Perl and Catalyst courses this December in downtown Chicago. Anyone is welcome to enroll. The schedule is as follows: Day courses, 8am to 4pm --- Learning Perl, Dec 10-12, $750/person Intermediate Perl, Dec 13-15,

[Catalyst] WindyCity.pm Perl Hackathon

2007-10-28 Thread Jonathan Rockway
Hi all, Sorry to spam you with all these announcements. :) WindyCity.pm is sponsoring a Perl hackathon on the weekend of December 14-16th (Friday-Sunday; right after the training). It's downtown at the J. Ira Nicki Harris Family Hostel (http://www.hichicago.org/), and is free for anyone to

[Catalyst] Warnings on application startup

2007-10-29 Thread Marius Kjeldahl
Greetings, I'm developing a catalyst-based application on development machines running Gentoo linux. They're all pretty much the same machines as I update them pretty frequently. When I run the same source on two different development machines, I have lately started to get some warnings on

Re: [Catalyst] apache at almost 100%

2007-10-29 Thread Jonathan Rockway
Octavian Rasnita wrote: Please tell me how can I discover which of the application's modules make this high processor usage occur (in order to repair it). http://www.google.com/search?q=apache+profile+perl http://www.perl.com/pub/a/2006/02/09/debug_mod_perl.html?page=last

[Catalyst] MyApp::C::PageHooks - thoughts ?

2007-10-29 Thread Matthew Pitts
I wanted to get some thoughts on something a little different that I'm doing... What I want to to have is Controllers that are temporary (i.e. date sensitive) that represent a particular promotion that's running on a site. This promotion may need to affect different areas of the site, but I don't

RE: [Catalyst] SOLVED: Warnings on application startup

2007-10-29 Thread Dylan Vanderhoof
-Original Message- From: Marius Kjeldahl [mailto:[EMAIL PROTECTED] Sent: Monday, October 29, 2007 2:17 PM To: The elegant MVC web framework Subject: Re: [Catalyst] SOLVED: Warnings on application startup As suggested by Michael Higgins I may look into g-cpan later to see if that

Re: [Catalyst] Warnings on application startup

2007-10-29 Thread Michael Higgins
On Mon, 29 Oct 2007 13:29:55 +0100 Marius Kjeldahl [EMAIL PROTECTED] wrote: Greetings, I'm developing a catalyst-based application on development machines running Gentoo linux. They're all pretty much the same machines as I update them pretty frequently. I also use Gentoo. Check out

Re: [Catalyst] MyApp::C::PageHooks - thoughts ?

2007-10-29 Thread Wade . Stuart
Matthew Pitts [EMAIL PROTECTED] wrote on 10/29/2007 03:24:10 PM: I wanted to get some thoughts on something a little different that I'm doing... What I want to to have is Controllers that are temporary (i.e. date sensitive) that represent a particular promotion that's running on a site.

Re: [Catalyst] New Catalyst site

2007-10-30 Thread Ash Berlin
Carl Johnstone wrote: I would like to announce that www.manchestereveningnews.co.uk has just been relaunched using Catalyst and mod_perl. Further to my original email, we've now finished rolling out our Manchester newspaper sites onto Catalyst. a.. Accrington Observer

Re: [Catalyst] Hypothetical Site and Scalability Planning

2007-10-30 Thread Matt Rosin
One company mentioned their perl based large scale sns site at YAPC::Asia IIRC - sorry it might have been six apart as mentioned above, can't remember which. I do know they wrote their own system to be able to basically split and merge their user pool according to user name (alphabetical order)

Re: [Catalyst] Preventing Catalyst from loading a Controller pm module

2007-10-30 Thread John Goulah
On 10/30/07, Valentin Tumarkin [EMAIL PROTECTED] wrote: Hi, I was wondering if there's a standard way for preventing Catalyst from loading a Controller module. I would like to keep my base Controller modules in the MyApp/Controller directory, but do not want Catalyst treating them as

Re: [Catalyst] Preventing Catalyst from loading a Controller pm module

2007-10-30 Thread Lars Balker Rasmussen
On Tue, Oct 30, 2007 at 03:19:48PM +0200, Valentin Tumarkin wrote: Hi, I was wondering if there's a standard way for preventing Catalyst from loading a Controller module. I would like to keep my base Controller modules in the MyApp/Controller directory, but do not want Catalyst treating them

[Catalyst] Chained Madness

2007-10-30 Thread Christopher H. Laco
What am I missing here. This passage from DispatchType/Chained.pm yields no public actions: Another interesting possibility gives :Chained('.'), which chains itself to an action with the path of the current controller's namespace. For example: # in MyApp::Controller::Foo sub bar :

Re: [Catalyst] Preventing Catalyst from loading a Controller pm module

2007-10-31 Thread Oleg Pronin
I put these things into MyApp::SAME_AS_CATALYST_BASE_CLASSES, i.e: MyApp::Catalyst::Controller MyApp::Catalyst::View::TT etc. It's clean and nice :) ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

Re: [Catalyst] Preventing Catalyst from loading a Controller pm module

2007-10-31 Thread Christopher H. Laco
Oleg Pronin wrote: I put these things into MyApp::SAME_AS_CATALYST_BASE_CLASSES, i.e: MyApp::Catalyst::Controller MyApp::Catalyst::View::TT etc. It's clean and nice :) I do the same thing. It works out great if you have a lot og MyApp:: modules that have nothing to do with Catalyst, like fat

[Catalyst] Charset best practice

2007-10-31 Thread Dominic Germain
Hi, We are currently building an application using Catalyst framework and have a lot of encoding problem. Since we use a lot on french characters (like é-è-ê-à-ç), we need to take care of the encoding of Perl module and TT templates. We have a running setup with Perl module in

Re: [Catalyst] Charset best practice

2007-10-31 Thread Bill Moseley
On Wed, Oct 31, 2007 at 05:04:28PM -0400, Dominic Germain wrote: We have a running setup with Perl module in ISO-8859-1 (latin1) and templates in UTF-8. In TT's view : ENCODING = 'ISO-8859-1' You are telling Template Toolkit that your templates are Latin1, but you say your

RE: [Catalyst] Charset best practice

2007-11-01 Thread Dami Laurent (PJ)
-Message d'origine- De : Dominic Germain [mailto:[EMAIL PROTECTED] Envoyé : mercredi, 31. octobre 2007 22:04 À : The elegant MVC web framework Objet : [Catalyst] Charset best practice Hi, We are currently building an application using Catalyst framework and have a lot of encoding

[Catalyst] detach behaviour clarification

2007-11-01 Thread Geoff Flarity
Hi everyone, I've seem to run into a behavior discrepancy between the included dev server and apache when using $c-detach. But I'd like to confirm my understanding of exactly how detach should behave before I debug any futher. Please consider the following example: sub one : Local { my ($self,

Re: [Catalyst] detach behaviour clarification

2007-11-01 Thread Antano Solar
On 11/1/07, Geoff Flarity [EMAIL PROTECTED] wrote: Hi everyone, I've seem to run into a behavior discrepancy between the included dev server and apache when using $c-detach. But I'd like to confirm my understanding of exactly how detach should behave before I debug any futher. Please

[Catalyst] Shared Host Setup

2007-11-01 Thread Mesdaq, Ali
Been working on setting up Catalyst on a shared host and I have to say its been pretty painful. Been trying to use the default install on the host and add the modules I need but came across the suggestion to install a new version of perl and that helped a lot. But the host I am using (aplus.net)

Re: [Catalyst] detach behaviour clarification

2007-11-01 Thread Jonathan Rockway
Geoff Flarity wrote: Please consider the following example: sub one : Local { my ($self, $c ) = @_; $c-forward( '_two') $c-stash-{template} = 'one.tt2' } sub two : Private { my ($self, $c ) = @_; $c-detach('_three'); $c-stash-{template} = 'two.tt2' } sub three : Private

Re: [Catalyst] detach behaviour clarification

2007-11-01 Thread Geoff Flarity
I'm sorry but I don't quite follow. Using '_three' is different than 'three'? Geff } sub three : Private { my ($self, $c ) = @_; $c-stash-{template} = 'three.tt2'; } My current understanding is that the value of template should be three.tt2. Is this correct? It would be

Re: [Catalyst] detach behaviour clarification

2007-11-01 Thread Geoff Flarity
Oh, whoops, those subs should be named _two and _three, typo. My question was really if you 'detach' during a 'forward', does the code after the forward get called. Apparently the answer is yes. Geoff On 11/1/07, Geoff Flarity [EMAIL PROTECTED] wrote: I'm sorry but I don't quite follow.

Re: [Catalyst] detach behaviour clarification

2007-11-01 Thread Geoff Flarity
Thanks, things are starting make more sense :) Geoff On 11/1/07, Antano Solar [EMAIL PROTECTED] wrote: On 11/1/07, Geoff Flarity [EMAIL PROTECTED] wrote: Hi everyone, I've seem to run into a behavior discrepancy between the included dev server and apache when using $c-detach. But

Re: [Catalyst] Shared Host Setup

2007-11-01 Thread John Goulah
On Nov 1, 2007 2:06 PM, Mesdaq, Ali [EMAIL PROTECTED] wrote: Been working on setting up Catalyst on a shared host and I have to say its been pretty painful. Been trying to use the default install on the host and add the modules I need but came across the suggestion to install a new version

RE: [Catalyst] Shared Host Setup

2007-11-01 Thread Mesdaq, Ali
Myself and I am sure many others would really appreciate a howto on using local-lib. I have suspicion that it won't work in all setups on shared hosts. But this is a case where I would LOVE to be wrong. Thanks, -- Ali Mesdaq Security Researcher II

Re: [Catalyst] semi-OT: is it possible to circumvent tests that are related to WWW::Mechanize?

2007-11-02 Thread Matt Lawrence
Joe Landman wrote: Hi folks: Working on deploying a Catalyst app on a customers machine. Installation is going well ... until the Catalyst modules that depend upon WWW::Mechanize and family come up. As far as we can tell, the breakage is not the modules, but the WWW::Mechanize (and

[Catalyst] DProf

2007-11-02 Thread Octavian Rasnita
Hi, I have tried to see which of the modules of my Catalyst application take so much time, because at certain moments the processor is occupied 99.9%, then goes down to 12%, then again at 99.9% and so on. I've used the module Apache::DProf in httpd.conf, and the results are below, but I

Re: [Catalyst] DProf

2007-11-03 Thread Jon Schutz
If benchmark testing isn't showing the fault, it's likely that it is data-dependent, i.e. it depends on something in the request or response - something that the benchmark doesn't trigger. Perhaps clients are left lingering - an incorrect Content-Length could cause that. I've also seen apache

Re: [Catalyst] DProf

2007-11-03 Thread Octavian Rasnita
From: Antano Solar Does restricting the number or threads in the maximum worker/prcoesses in your apache configuration file help ? I've just tried using the ab Apache tool but the processor reached at 60 - 80% even if I lowered the settings for the prefork MPM. StartServers

Re: [Catalyst] DProf

2007-11-04 Thread Octavian Rasnita
Hi, From: Jon Schutz [EMAIL PROTECTED] All those FIN_WAIT[12] states mean that the connection is closed, and the process is waiting for a shutdown from the remote end. If you repeat the netstat command over a period of time and get the same processes/ports showing up, that's a problem -

Re: [Catalyst] DProf

2007-11-04 Thread Octavian Rasnita
Thank you for your help. I found some interesting information in the server stats. Can you please tell me what does contain the column CPU? I thought it is the percentage of CPU usage, like the commands top and ps show, but I've seen even a number like 1468.634 in that column, so it should be

RE: [Catalyst] DProf

2007-11-04 Thread Peter Edwards
I guess CPU is number of processor seconds required for the most recent transaction. Further down the server stats page you should see something like Srv Child Server number - generation PID OS process ID Acc Number of accesses this connection / this child / this slot M Mode of operation

Re: [Catalyst] DProf

2007-11-05 Thread Carl Johnstone
It's probably useful to tell you what these various commands are actually doing, rather than just saying check-this and check-that... lsof = LiSt Open Files basically it lists every file that a process has open, that includes the executable file itself and any libraries or shared code. The

[Catalyst] Catalyst-Runtime fails tests with lighttpd-1.4.18

2007-11-05 Thread Bernhard Weisshuhn
Hi, am I the only one who cannot get the lighttpd-fastcgi-tests for Catalyst-Runtime-5.7011 to pass with the current lighttpd 1.4.18? I've already incorporated a patch for content in 307 response bodies from http://trac.lighttpd.net/trac/ticket/1412 . But still the tests below fail. Can some

Re: [Catalyst] Catalyst-Runtime fails tests with lighttpd-1.4.18

2007-11-05 Thread Andy Grundman
On Nov 5, 2007, at 8:06 AM, Bernhard Weisshuhn wrote: Hi, am I the only one who cannot get the lighttpd-fastcgi-tests for Catalyst-Runtime-5.7011 to pass with the current lighttpd 1.4.18? I've already incorporated a patch for content in 307 response bodies from

Re: [Catalyst] Catalyst::Engine file handle exhaustion with C::P::JSONRPC

2007-11-05 Thread Tatsuhiko Miyagawa
Hi, On 11/5/07, James R. Leu [EMAIL PROTECTED] wrote: If the file handle exhaustion I'll mention below is due to something that C::P::JSONRPC is doing wrong, I'll accept that and just use the 'hack' I have in place. If Catalyst::Engine doesn't cleanup the body of the request, it doesn't

Re: [Catalyst] semi-OT: is it possible to circumvent tests that are related to WWW::Mechanize?

2007-11-05 Thread Matt Lawrence
Jonathan Rockway wrote: * On Monday 05 November 2007 08:50:03 am Matt Lawrence wrote: Jonathan Rockway wrote: How is Module::Mask different from Devel::Hide? The interface is different, Module::Mask has a slightly more flexible OO interface, but it does have some

Re: [Catalyst] Catalyst-Runtime fails tests with lighttpd-1.4.18

2007-11-05 Thread Bernhard K. Weißhuhn
Andy Grundman schrieb: On Nov 5, 2007, at 8:06 AM, Bernhard Weisshuhn wrote: Hi, am I the only one who cannot get the lighttpd-fastcgi-tests for Catalyst-Runtime-5.7011 to pass with the current lighttpd 1.4.18? [...] 1.4.18 passes all tests for me on OSX, except the 307 one and

Re: [Catalyst] Catalyst-Runtime fails tests with lighttpd-1.4.18

2007-11-05 Thread Andy Grundman
On Nov 5, 2007, at 1:47 PM, Bernhard K. Weißhuhn wrote: Andy Grundman schrieb: On Nov 5, 2007, at 8:06 AM, Bernhard Weisshuhn wrote: Hi, am I the only one who cannot get the lighttpd-fastcgi-tests for Catalyst-Runtime-5.7011 to pass with the current lighttpd 1.4.18? [...] 1.4.18 passes

[Catalyst] C::C::FormBuilder and TT

2007-11-05 Thread Ferruccio Zamuner
Hi, I've found some strange behaviours from Catalyst about CGI::FormBuilder and TT2: example 1: in - edit.tt --- [% IF FormBuilder %] TRUE [% ELSE %] FALSE [% END %] - end - myapp::Controller::mycontroller --- sub edit : Local Form { my ( $self, $c ) = @_;

Re: [Catalyst] In search of a clue ... how do I access _PACKAGE_-config values , or more specifically, values put into myapp.yml ?

2007-11-05 Thread John Goulah
On Nov 5, 2007 12:37 PM, Joe Landman [EMAIL PROTECTED] wrote: Hi folks: This should be an easy one. I read and read and read. The manual is fine, but my reading skills may be in doubt. This is what I want to do. I want to set a simple variable named myvar in myapp.yml. Then I want

Re: [Catalyst] In search of a clue ... how do I access _PACKAGE_-config values , or more specifically, values put into myapp.yml ?

2007-11-05 Thread Matt S Trout
On Mon, Nov 05, 2007 at 12:37:27PM -0500, Joe Landman wrote: Hi folks: This should be an easy one. I read and read and read. The manual is fine, but my reading skills may be in doubt. This is what I want to do. I want to set a simple variable named myvar in myapp.yml. Then I

[Catalyst] Test::WWW::Mechanize::Catalyst and is_base()

2007-11-06 Thread Chisel Wright
I've recently started Doing The Right Thing and have starting fleshing out the test suite for one of my projects. In the last day or three I've added Test::WWW::Mechanize::Catalyst based tests. I seem to be having a problem with the value set for base in the tests; I'm using: base

[Catalyst] Selective debug output

2007-11-06 Thread Joe Landman
How do I selectively enable or disable debugging output? Specifically, FormBuilder debugging output is simply far to verbose to be meaningful to us. I suppose I could simply pass in a debug=0 when I create the form. Is there any global way? FWIW: I only want to surpress formbuilder output

Re: [Catalyst] Selective debug output

2007-11-06 Thread Jonathan Rockway
Joe Landman wrote: How do I selectively enable or disable debugging output? Specifically, FormBuilder debugging output is simply far to verbose to be meaningful to us. I suppose I could simply pass in a debug=0 when I create the form. Is there any global way? FWIW: I only want to

Re: [Catalyst] Selective debug output

2007-11-06 Thread J. Shirley
On Nov 6, 2007 5:47 PM, Jonathan Rockway [EMAIL PROTECTED] wrote: Joe Landman wrote: How do I selectively enable or disable debugging output? Specifically, FormBuilder debugging output is simply far to verbose to be meaningful to us. I suppose I could simply pass in a debug=0 when I

[Catalyst] A question on persistence with sessions or similar

2007-11-06 Thread Joe Landman
Hi Folks: Here is what I want to do. I want to preserve values of stuff across the life of a session, without having to jump through hoops to do it. I want it to survive redirects in the app. It would be nice if it were just like stash. Really, it is very simple. And I thought I had

Re: [Catalyst] A question on persistence with sessions or similar

2007-11-06 Thread Peter Karman
Joe Landman wrote on 11/6/07 9:40 PM: Hi Folks: Here is what I want to do. I want to preserve values of stuff across the life of a session, without having to jump through hoops to do it. I want it to survive redirects in the app. It would be nice if it were just like stash.

Re: [Catalyst] A question on persistence with sessions or similar

2007-11-06 Thread Andrew Rodland
On Tuesday 06 November 2007 09:40:01 pm Joe Landman wrote: Hi Folks: Here is what I want to do. I want to preserve values of stuff across the life of a session, without having to jump through hoops to do it. I want it to survive redirects in the app. It would be nice if it were just

Re: [Catalyst] Selective debug output

2007-11-06 Thread Jonathan Rockway
J. Shirley writes: I would prefer something like: MyApp-config( 'PluginName' = { debug = 0 } ); Thoughts? Nice. But maybe do Plugin::PluginName to avoid namespace collisions. I wonder how we can best make this approach standard though... If I were nothingmuch, I would do caller magic

Re: [Catalyst] A question on persistence with sessions or similar

2007-11-06 Thread Joe Landman
Jonathan Rockway wrote: Just out of curiosity, what documentation lead you in this direction? flash doesn't get much mention officially, I don't think. http://search.cpan.org/~nuffin/Catalyst-Plugin-Session-0.19/lib/Catalyst/Plugin/Session.pm For some reason, session didn't work the first

Re: [Catalyst] A question on persistence with sessions or similar

2007-11-06 Thread Jonathan Rockway
Joe Landman wrote: There is. It's called session. Flash works like session except that stuff disappears after the first time you read it -- thus the mysterious data dropouts. Yup. Pilot error. s/flash/session/g works the way I want. Thanks. Just out of curiosity, what documentation

  1   2   3   4   5   6   7   8   9   10   >