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
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
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
, 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
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/
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
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
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
$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
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
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
= 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
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
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
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
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
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
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
-{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
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
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
://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
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
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
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
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
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
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;
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
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
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
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
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
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
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
? 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
36 matches
Mail list logo