Re: [Catalyst] Detecting if a user aborted a (long) download

2007-03-11 Thread Jeff Chimene
Jonathan Rockway wrote: On Sunday 11 March 2007 09:26, Thomas Klausner wrote: But how do I figure out if the download was successfull? I didn't find anything in the docs (but a RTFM-answer is appreciated, if I missed the right piece of codocumentation). You probably want a subclass of

Re: [Catalyst] Detecting if a user aborted a (long) download

2007-03-11 Thread Jeff Chimene
Jonathan Rockway wrote: On Sunday 11 March 2007 20:59, Jeff Chimene wrote: How does that differ from something that compares bytes sent to bytes received? Assuming that the OP defines success when bytes received = bytes sent How do you determine how many bytes were received

Re: [Catalyst] Detecting if a user aborted a (long) download

2007-03-11 Thread Jeff Chimene
Jonathan Rockway wrote: On Sunday 11 March 2007 20:59, Jeff Chimene wrote: How does that differ from something that compares bytes sent to bytes received? Assuming that the OP defines success when bytes received = bytes sent How do you determine how many bytes were received

Re: [Catalyst] Detecting if a user aborted a (long) download

2007-03-12 Thread Jeff Chimene
Jonathan Rockway wrote: On Sunday 11 March 2007 21:18, Jeff Chimene wrote: Jonathan Rockway wrote: On Sunday 11 March 2007 20:59, Jeff Chimene wrote: How does that differ from something that compares bytes sent to bytes received? Assuming that the OP defines success when bytes

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

2007-03-29 Thread Jeff Chimene
Hi, I was wondering if anyone has extended the Authentication tutorial example to handle the redirect to original URI concept requested in this thread: http://www.gossamer-threads.com/lists/catalyst/users/11676 Does that suggested answer work with the implementation in

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

2007-03-29 Thread Jeff Chimene
Chisel Wright wrote: On Thu, Mar 29, 2007 at 02:27:14AM -0700, Jeff Chimene wrote: Hi, I was wondering if anyone has extended the Authentication tutorial example to handle the redirect to original URI concept requested in this thread: http://www.gossamer-threads.com/lists/catalyst/users

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

2007-03-29 Thread Jeff Chimene
Chisel Wright wrote: if( not $c-is_logged_in($c) ) { I had to change to if( not $c-user_exists() ) { it looks like is_logged_in() is a routine you wrote? otherwise, it does what I need. Thanks! cheers, jec ___ List:

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

2007-03-29 Thread Jeff Chimene
Chisel Wright wrote: On Thu, Mar 29, 2007 at 09:13:31AM -0700, Jeff Chimene wrote: As a side question, why does this particular technique use redirect()? As opposed to, e.g. detach()? Because Parley has kinda evolved over [a long period of] time, and I expect there wasn't a detach

[Catalyst] Catalyst capitalization rules

2007-04-05 Thread Jeff Chimene
Hi all, I seem to recall someplace there is a Best Practice for Catalyst capitalization rules. Would some kind sole please post the reference? Cheers, jec ___ List: Catalyst@lists.rawmode.org Listinfo:

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

2007-04-07 Thread Jeff Chimene
Peter Karman wrote: Quinn Weaver scribbled on 4/4/07 1:12 AM: Bill Moseley wrote: On Tue, Apr 03, 2007 at 08:53:32PM -0700, Quinn Weaver wrote: In contrast to FormBuilder, RHTMLO wants you to write your HTML form by calling Perl methods, somewhat in the spirit of CGI.pm. This makes it

[Catalyst] HOWTO reference config settings from template

2007-04-12 Thread Jeff Chimene
Hi, I'm not sure if this is a Catalyst question - How do I reference __PACKAGE__config settings from a Template Toolkit template? I'd like to use the config tool to set values outside the stash. Cheers, jec ___ List: [EMAIL PROTECTED] Listinfo:

Re: [Catalyst] HOWTO reference config settings from template

2007-04-12 Thread Jeff Chimene
Peter Karman wrote: Jeff Chimene scribbled on 4/12/07 9:29 AM: Hi, I'm not sure if this is a Catalyst question - How do I reference __PACKAGE__config settings from a Template Toolkit template? I'd like to use the config tool to set values outside the stash

Re: [Catalyst] HOWTO reference config settings from template

2007-04-12 Thread Jeff Chimene
Peter Karman wrote: Jeff Chimene scribbled on 4/12/07 10:35 AM: and I don't see the TT2 configuration settings. When I try the similar experiment in the perl module, dump __PACKAGE__-config, the TT2 configuration settings are displayed. that's because your TT config probably isn't

Re: [Catalyst] HOWTO reference config settings from template

2007-04-12 Thread Jeff Chimene
Jason Kohles wrote: On Apr 12, 2007, at 1:01 PM, Jeff Chimene wrote: The config is called in the View package (fori::View::Menu) I was hoping to set TT2 values /per package/ via the config as created by the TT2 helper. It looks like (after DEBUG = 'all') that TT2 only references the stash

Re: [Catalyst] HOWTO reference config settings from template

2007-04-13 Thread Jeff Chimene
Bill Moseley wrote: On Thu, Apr 12, 2007 at 04:18:06PM -0700, Jeff Chimene wrote: Thanks for the reply. The problem I'm trying to solve is referencing (reading) config settings from a template. I'd like to tell one or more templates that sometimes they will use frames sometimes

Re: [Catalyst] HOWTO reference config settings from template

2007-04-13 Thread Jeff Chimene
Hi, Thanks for the reply. I see two ways to obtain TT2 configuration values in the TT2 template: Bill Moseley wrote: [% USE foo = Class( 'Whatever::View::TT' ); USE Dumper; Dumper.dump(foo.config ) | stderr; %] and Robert 'phaylon' Sedlacek wrote: The merged configuration will

Re: [Catalyst] HOWTO reference config settings from template

2007-04-13 Thread Jeff Chimene
Hi, Thanks for the reply. I see two ways to obtain TT2 configuration values in the TT2 template: Bill Moseley wrote: [% USE foo = Class( 'Whatever::View::TT' ); USE Dumper; Dumper.dump(foo.config ) | stderr; %] and Robert 'phaylon' Sedlacek wrote: The merged configuration will

Re: [Catalyst] HOWTO reference config settings from template

2007-04-13 Thread Jeff Chimene
Jeff Chimene wrote: Hi, I'm not sure if this is a Catalyst question - How do I reference __PACKAGE__config settings from a Template Toolkit template? I'd like to use the config tool to set values outside the stash. Cheers, jec OK. After much research, it turns out that the correct answer

Re: [Catalyst] [ANNOUNCE] Rose::* modules on CPAN

2007-04-23 Thread Jeff Chimene
Peter Karman wrote: Cattle-lusters, As mentioned here in passing last month, I have uploaded some base components to CPAN for use with Rose::HTML::Objects, Rose::DB::Object and Catalyst. * http://search.cpan.org/dist/Catalyst-Model-RDBO/ (latest: 0.03) A Model base class for integrating

Re: [Catalyst] MySQL server has gone away

2007-04-27 Thread Jeff Chimene
Oleg Pronin wrote: One can say that it is a very rare situation. I can tell you that in production environment (about 1.000.000 hits per day) it happens every day several times. Some users just see an error, some lost their data. This is just not always visible to you. The OP may find a

Re: [Catalyst] MySQL server has gone away

2007-04-27 Thread Jeff Chimene
transaction which may consist of several prepare/execute operations that can be rolled back and retried. Transactions are /precisely/ the mechanism to determine, at a high level, when a certain operation has failed. 2007/4/27, Jeff Chimene [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Oleg Pronin

Re: [Catalyst] MySQL server has gone away

2007-04-27 Thread Jeff Chimene
transaction which may consist of several prepare/execute operations that can be rolled back and retried. Transactions are /precisely/ the mechanism to determine, at a high level, when a certain operation has failed. 2007/4/27, Jeff Chimene [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Oleg Pronin

Re: [Catalyst] Howto use ConfigLoader?

2007-05-12 Thread Jeff Chimene
Johannes Rumpf wrote: Hey Geeks, i'm starting actually with catalyst and try to use the ConfigLoader. Actually i'm to dump to get something loaded or accessed. Maybe someone arround can give me a helping hand. Thats what i've done: package myapp; use Catalyst qw/-Debug ConfigLoader /;

[Catalyst] Catalyst::Helper generating bad code

2007-05-17 Thread Jeff Chimene
Hi, I'm trying to figure out what's going on w/ Catalyst::Helper. It's generating bad code for my controller since 7-May - generated code follows =head1 METHODS =over 4 # # Uncomment and modify this or add new actions to fit your needs # #=item default # #=cut # #sub default : Private { #

Re: [Catalyst] Catalyst::Helper generating bad code

2007-05-17 Thread Jeff Chimene
Jeff Chimene wrote: Hi, I'm trying to figure out what's going on w/ Catalyst::Helper. It's generating bad code for my controller since 7-May - generated code follows =head1 METHODS =over 4 # # Uncomment and modify this or add new actions to fit your needs # #=item default

[Catalyst] Session unexpectedly expiring

2007-05-20 Thread Jeff Chimene
Hi, I'm trying to figure out why my sessions are expiring in script/xxx_cgi.pl but not script/xxx_server.pl The desired cycle is to login then redirect to another controller. When I run the standalone server, the session state is recovered, and control resumes with the next controller. When I

Re: [Catalyst] Session unexpectedly expiring

2007-05-20 Thread Jeff Chimene
Matt S Trout wrote: On Sun, May 20, 2007 at 06:20:23PM -0700, Jeff Chimene wrote: Thanks for your support! This isn't support, this is heckling with the occasional suggestion. Support is what your management pays us for if the heckling gets too much :) /me tries to avoid athletic supporter

Re: [Catalyst] Session unexpectedly expiring

2007-05-20 Thread Jeff Chimene
Thomas L. Shinnick wrote: At 08:20 PM 5/20/2007, Jeff Chimene wrote: Hi, I'm trying to figure out why my sessions are expiring in script/xxx_cgi.pl but not script/xxx_server.pl [snip] I'm using the Session, Session::Store::FastMmap, Session::State::Cookie plugins. I've not used it, I'm

Re: [Catalyst] Session unexpectedly expiring

2007-05-21 Thread Jeff Chimene
Jeff Chimene wrote: Hi, I'm trying to figure out why my sessions are expiring in script/xxx_cgi.pl but not script/xxx_server.pl The desired cycle is to login then redirect to another controller. When I run the standalone server, the session state is recovered, and control resumes

Re: [Catalyst] Session unexpectedly expiring

2007-05-21 Thread Jeff Chimene
[EMAIL PROTECTED] wrote: Jeff Chimene [EMAIL PROTECTED] wrote on 05/20/2007 10:13:33 PM: Thomas L. Shinnick wrote: At 08:20 PM 5/20/2007, Jeff Chimene wrote: Hi, I'm trying to figure out why my sessions are expiring in script/xxx_cgi.pl but not script/xxx_server.pl

Re: [Catalyst] Session unexpectedly expiring

2007-05-21 Thread Jeff Chimene
@lists.rawmode.org/msg05457.html Cheers, jec On Mon, May 21, 2007 at 08:52:16AM -0700, Jeff Chimene wrote: Jeff Chimene wrote: Hi, I'm trying to figure out why my sessions are expiring in script/xxx_cgi.pl but not script/xxx_server.pl The desired cycle is to login then redirect to another

Re: [Catalyst] Session unexpectedly expiring

2007-05-23 Thread Jeff Chimene
Jeff Chimene wrote: Hi, I'm trying to figure out why my sessions are expiring in script/xxx_cgi.pl but not script/xxx_server.pl The desired cycle is to login then redirect to another controller. When I run the standalone server, the session state is recovered, and control resumes

Re: [Catalyst] Session unexpectedly expiring

2007-05-23 Thread Jeff Chimene
Jeff Chimene wrote: Hi, I'm trying to figure out why my sessions are expiring in script/xxx_cgi.pl but not script/xxx_server.pl The desired cycle is to login then redirect to another controller. When I run the standalone server, the session state is recovered, and control resumes

Re: [Catalyst] Link to file

2007-05-24 Thread Jeff Chimene
Will Smith wrote: Hi, I tried to add a link to a wav file on server. The file location is in var/www/html/myfolder/myfile.wav. And my app is in var/www/myapp. Hope that you could help me out here. Do I need Static Plugin to add this hyper link? What was the error or result? Are you using

[Catalyst] Requirement for Makfile.PL or Build.PL in home?

2007-05-28 Thread Jeff Chimene
In Catalyst::Utils::home is the following requirement documented anywhere? # only return the dir if it has a Makefile.PL or Build.PL if (-f $home-file(Makefile.PL) or -f $home-file(Build.PL)) Cheers, jec ___ List: Catalyst@lists.rawmode.org Listinfo:

Re: [Catalyst] Requirement for Makfile.PL or Build.PL in home?

2007-05-28 Thread Jeff Chimene
Matt S Trout wrote: On Mon, May 28, 2007 at 12:11:54PM -0700, Jeff Chimene wrote: In Catalyst::Utils::home is the following requirement documented anywhere? # only return the dir if it has a Makefile.PL or Build.PL if (-f $home-file(Makefile.PL) or -f $home-file(Build.PL)) It's

Re: [Catalyst] Requirement for Makfile.PL or Build.PL in home?

2007-05-28 Thread Jeff Chimene
Matt S Trout wrote: On Mon, May 28, 2007 at 05:20:04PM -0700, Jeff Chimene wrote: Matt S Trout wrote: On Mon, May 28, 2007 at 02:00:13PM -0700, Jeff Chimene wrote: P.S. I originally sent this app to the server via Makefile.PL constructing a tarball. The disadvantage

Re: [Catalyst] Requirement for Makfile.PL or Build.PL in home?

2007-05-29 Thread Jeff Chimene
Matt S Trout wrote: On Mon, May 28, 2007 at 08:11:19PM -0700, Jeff Chimene wrote: Great. How does one move the root/ directory? It gets into the .tar file, but isn't deployed on the production server. Assuming Catalyst::Devel is installed on the server you did the make dist