Re: [Catalyst] Re: uri_for() not working under lighttpd fastcgi

2007-09-14 Thread Jim Spath
Carl Franks wrote: I discovered that if instead of hitting: http://my-domain/amazon I hit: http://my-domain/amazon/ ... then uri_for() started working as expected. I added a rewrite rule to my lighttpd config: url.rewrite = ( ^/amazon$ = /amazon/ ) and everything is now working

[Catalyst] UTF16 issue

2007-07-30 Thread Jim Spath
I'm getting the following warning in our Catalyst application: UTF-16 surrogate 0xdecb at /usr/lib/perl/5.8/IO/Handle.pm line 199. Does anyone know anything about this type of error? It doesn't happen when I run the script via the command line. - Jim

Re: [Catalyst] Session trouble

2007-07-23 Thread Jim Spath
Bill Moseley wrote: On Mon, Jul 16, 2007 at 07:20:36PM +0300, Yuval Kogman wrote: Hi, no update yet, been terribly busy (the client is not being very nice to us). If you need comaint to release yourself let me know. You should have commit access, right? I can take another stab at it -- I

[Catalyst] Authentication Store: DBC vs DBIx::Class

2007-07-17 Thread Jim Spath
, but am wondering if there are any other advantages one module has over the other. Thanks! -- Jim Spath ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com

[Catalyst] calling detach within begin

2007-07-16 Thread Jim Spath
0? -- Jim Spath ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/

Re: [Catalyst] calling detach within begin

2007-07-16 Thread Jim Spath
Jim Spath wrote: I can't seem to get a detach call within my application's Root begin to work. While it does seem to stop processing with the begin method, Catalyst continues processing whatever action was specified by the request. I've looked through the docs and it seems like I might need

[Catalyst] size limit on file uploads

2007-07-10 Thread Jim Spath
I would like to place a maximum file size limit on uploads, but am not quite sure how to go about this in Catalyst. I've done this in CGI scripts by reading in chunks of the file until I hit some size limit, but couldn't find anything in the Catalyst docs. Thanks! - Jim

Re: [Catalyst] size limit on file uploads

2007-07-10 Thread Jim Spath
J. Shirley wrote: On 7/10/07, Jim Spath [EMAIL PROTECTED] wrote: I would like to place a maximum file size limit on uploads, but am not quite sure how to go about this in Catalyst. I've done this in CGI scripts by reading in chunks of the file until I hit some size limit, but couldn't find

Re: [Catalyst] redirecting

2007-06-13 Thread Jim Spath
$c-res-redirect($c-uri_for('/fr/thread', {thread = $id_thread})); Octavian Rasnita wrote: Hi, I have tried to make the following redirection: $c-res-redirect($c-uri_for(/fr/thread?thread=$id_thread)); But it replaces ? with %3F and the request is: http://www.anrcluj.ro/fr/thread%3Fthread=1

[Catalyst] Returning values from forward()

2007-06-08 Thread Jim Spath
What is the consensus on returning values from a call to forward? I've seen a mailing list post stating that one should not rely on return values from forward(): http://www.mail-archive.com/catalyst@lists.rawmode.org/msg03519.html But the Catalyst docs seem to indicate that returning values

Re: [Catalyst] Catalyst::Plugin::Session, Facebook, and Custom Session ids

2007-06-05 Thread Jim Spath
Matt S Trout wrote: On Mon, Jun 04, 2007 at 11:44:50AM -0400, Jim Spath wrote: Is there any way to disable the validation of session ids? Seems like it would be a somewhat useful option for those cases (like interfacing with Facebook), where the session ids are pre-created. sub

Re: [Catalyst] Catalyst::Plugin::Session, Facebook, and Custom Session ids

2007-06-04 Thread Jim Spath
= 0.01; sub get_session_id { my $c = shift; my $session_id = $c-request-params-{token}; if ( $session_id ) { $c-log-debug(qq/Found sessionid $session_id in request parameter/) if $c-debug; return $session_id; } $c-NEXT::get_session_id(@_); } 1; On 5/30/07, Jim Spath

[Catalyst] Plugin conflict?

2007-05-31 Thread Jim Spath
Compress::Deflate and Static::Simple seem to conflict with each other. The result of this is that CSS files don't get served properly. Catalyst sees the request, and knows to serve the correct CSS file through Static Simple, but only a blank page is returned. If I disable the

Re: [Catalyst] Plugin conflict?

2007-05-31 Thread Jim Spath
Christopher H. Laco wrote: Jim Spath wrote: Compress::Deflate and Static::Simple seem to conflict with each other. The result of this is that CSS files don't get served properly. Catalyst sees the request, and knows to serve the correct CSS file through Static Simple, but only a blank page

Re: [Catalyst] Plugin conflict?

2007-05-31 Thread Jim Spath
Matt S Trout wrote: On Thu, May 31, 2007 at 12:14:58PM -0400, Jim Spath wrote: Compress::Deflate and Static::Simple seem to conflict with each other. The result of this is that CSS files don't get served properly. Compress::* are deprecated; let your webserver do that. We tried... but had

Re: [Catalyst] Plugin conflict?

2007-05-31 Thread Jim Spath
Matt S Trout wrote: PS - On a side note, is it possible to change which plugins are loaded depending on whether Catalyst is launched from myapp_server.pl or myapp_fastcgi.pl? This would be helpful... in MyApp.pm sub setup_plugins { my ($class, $plugins_arrayref) = @_; do something based

[Catalyst] Catalyst::Plugin::Session, Facebook, and Custom Session ids

2007-05-30 Thread Jim Spath
I'm currently using the following plugins for session management in my Catalyst app: Session Session::Store::Memcached Session::State::Cookie Session::DynamicExpiry Along with the following authentication plugins: Authentication Authentication::Store::DBIC

[Catalyst] Catalyst Job Opportunity in Watertown, MA

2007-05-01 Thread Jim Spath
at the following URL: http://www.pangeamedia.com/jobs/tech/apply.cgi -- Jim Spath Lead Developer Pangea Media ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail

Re: [Catalyst] little syntax

2007-04-12 Thread Jim Spath
-{name}, }; } $c-stash-{recs} = @records; . What is the syntax on the tt2 to access the id and name? Or please point me to somewhere that I could do some reading on the question. Thank you -- Jim Spath Lead Developer Pangea Media Em: [EMAIL PROTECTED] Ph: 617.314.6687 Fx: 617.390.7824

Re: [Catalyst] Custom finalize_error

2007-04-02 Thread Jim Spath
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-archive.com/catalyst@lists.rawmode.org/msg04542.html It looks like: sub

Re: [Catalyst] Custom finalize_error

2007-04-02 Thread Jim Spath
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-archive.com/catalyst@lists.rawmode.org/msg04542.html

[Catalyst] Swish-e

2007-03-22 Thread Jim Spath
://www.perlfect.com/freescripts/search/) and chose Swish-e because it seemed like a better product and should work well for us for the short/medium term. Anyone else? -- Jim Spath Lead Developer Pangea Media Em: [EMAIL PROTECTED] Ph: 617.314.6687 Fx: 617.390.7824 IM: panJimS (AIM

Re: [Catalyst] Swish-e

2007-03-22 Thread Jim Spath
What about Xapian? I noticed that it has some Catalyst support in the form of Catalyst::Model::Xapian. Xapian also seems like a possible long term solution as it can handle more documents that Swish-e or KinoSeach. Perrin Harkins wrote: On 3/22/07, Jim Spath [EMAIL PROTECTED] wrote: I

Re: [Catalyst] Performance

2007-03-09 Thread Jim Spath
Perrin Harkins wrote: On 3/9/07, Bill Moseley [EMAIL PROTECTED] wrote: I just checked and on some pages I'm calling uri_for a few hundred times. If that's a bottle neck then optimization would be most welcome. I'm sure it depends on your usage, but for Jim Spath it was only about 4% of his

Re: [Catalyst] Chained, slashes, and escaping

2007-03-06 Thread Jim Spath
Hi Matt, I had considered that. I just wanted to check with the list before I went that route. Thanks! - Jim Matt Lawrence wrote: Jim Spath wrote: I'm implementing tagging under Catalyst and want to be as unrestrictive as possible on the tag text. As such, I allow slashes in the tag text

Re: [Catalyst] Chained, slashes, and escaping

2007-03-06 Thread Jim Spath
Unfortunately I'm using lighttpd. Carl Johnstone wrote: When I access the following URI: /tag/sl%2Fashes $tag gets set to sl instead of sl/ashes. Apparently back in the early days of the web, a URL like that caused problems I ran into this a couple of weeks ago. As far as I could the

[Catalyst] Chained, slashes, and escaping

2007-03-05 Thread Jim Spath
I'm implementing tagging under Catalyst and want to be as unrestrictive as possible on the tag text. As such, I allow slashes in the tag text. To view information on a given tag, you hit the following path: /tag/URI_ESCAPED_TAG Which uses the following action in the Tag controller: sub view

[Catalyst] Catalyst::Engine::CGI::prepare_path port

2007-02-15 Thread Jim Spath
I was wondering why Catalyst::Engine::CGI::prepare_path() ignores the port in the Host header and instead uses $ENV{SERVER_PORT}. my $scheme = $c-request-secure ? 'https' : 'http'; my $host = $ENV{HTTP_HOST} || $ENV{SERVER_NAME}; my $port = $ENV{SERVER_PORT} || 80;

Re: [Catalyst] Catalyst::Engine::CGI::prepare_path port

2007-02-15 Thread Jim Spath
Jim Spath wrote: I was wondering why Catalyst::Engine::CGI::prepare_path() ignores the port in the Host header and instead uses $ENV{SERVER_PORT}. my $scheme = $c-request-secure ? 'https' : 'http'; my $host = $ENV{HTTP_HOST} || $ENV{SERVER_NAME}; my $port = $ENV

Re: [Catalyst] Catalyst::Engine::CGI::prepare_path port

2007-02-15 Thread Jim Spath
Jim Spath wrote: Jim Spath wrote: I was wondering why Catalyst::Engine::CGI::prepare_path() ignores the port in the Host header and instead uses $ENV{SERVER_PORT}. my $scheme = $c-request-secure ? 'https' : 'http'; my $host = $ENV{HTTP_HOST} || $ENV{SERVER_NAME}; my $port

[Catalyst] myapp_fastcgi.pl restarter?

2007-02-14 Thread Jim Spath
I'm running myapp_fastcgi.pl in static mode under lighttd using and was wondering if there was any sort of handy restarter functionality like myapp_server.pl has. I didn't see any, meaning that if I make a change to something in lib/ that I need to restart the webserver for the change to take

Re: [Catalyst] CGI::State style Plugin?

2007-02-09 Thread Jim Spath
Ash Berlin wrote: Jim Spath wrote: I was considering using the following module in my Catalyst app. http://search.cpan.org/~dkubb/CGI-State-0.02/State.pm Until I saw that it does a use CGI;, the only purpose of which is for the creation of a CGI object if you don't pass one in. So I went

Re: [Catalyst] Catalyst::Engine::HTTP::Restarter issue

2007-02-05 Thread Jim Spath
restarting the engine. Radek -- Jim Spath Lead Developer Pangea Media Em: [EMAIL PROTECTED] Ph: 617.314.6687 Fx: 617.390.7824 IM: panJimS (AIM) ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable

[Catalyst] Catalyst::Engine::HTTP::Restarter issue

2007-02-02 Thread Jim Spath
While developing my site, I've begun using the -restart option so I don't have to restart the webserver every time I am working on something. I've run into a problem where sometimes, when it tries to restart, it complains that it can't find one of my DBIx::Class model files: Can't locate

[Catalyst] Recommend methods for form handling

2007-01-17 Thread Jim Spath
I was wondering what the current consensus among Catalyst users is about what the best way to approach forms is? I started off writing the forms directly into the template, validating with FormValidator::Simple, and trying to fill values in with FillInForm. I really liked

[Catalyst] Catalyst::Manual::Tutorial::CatalystBasics Issues

2007-01-15 Thread Jim Spath
? The version I am using happens to be the most recent available from the Ubuntu package repository. Thanks! -- Jim Spath Lead Developer Pangea Media Em: [EMAIL PROTECTED] Ph: 617.314.6687 Fx: 617.390.7824 IM: panJimS (AIM) ___ List: Catalyst