e ENCODING option for TT.
View::TT:
ENCODING: UTF-8
Catalyst::View::TT will set the headers if not already set:
unless ( $c->response->content_type ) {
$c->response->content_type('text/html; charset=utf-8');
}
--
Bill Moseley
[EMAIL PROTECTED]
_
E post with zero content length.
http://support.microsoft.com/default.aspx?kbid=831167
It's amazing that I still see this every so often.
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/
reated "D:\dev\eclipse\CatUtf\t\controller_TestController.t"
>
> Here, a Perl-File named "TestController.pm" has been created.
> And as Daniel pointed out, it will be ASCII encoded.
Is there anything in that file that is not seven bit ASCII?
--
Bill Moseley
[EMAIL
On Fri, Aug 17, 2007 at 09:48:33PM -0500, Jonathan Rockway wrote:
> Bill Moseley wrote:
> > What's the status of the Cache plugin(s) wrt. backends?
> >
> > I want to be able to swap between FastMmap and Memcached via a config
> > option
> As per the docs:
>
e could use either the login or password (or both
separately) as the key to the cache entry counting failed logins.
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalys
7;s are not great for accessibility.
Maybe better to ask a question in text:
"What is the airspeed velocity of an unladen swallow?"
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http
thing to
partition the cache. I want the sessions and failed login cache to be
separate. Is August and not seeing nothingmuch around related?
What's the status of the Cache plugin(s) wrt. backends?
I want to be able to swap between FastMmap and Memcached via a config
option.
--
Bill Moseley
out this an not
follow that redirect. Fun anyways, though. ;)
--
Bill Moseley
[EMAIL PROTECTED]
___
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/
ng something like this already? Suggestions? Caveats?
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lis
after* the headers have already been
sent.
I sent a failing test case to nothingmuch a few days ago just in case
it might be an obvious fix for someone familiar with the code -- but
that's about as far as I could get with the time I had. I'll attach
that test case.
-
upgrades to Module::Install only,
but I had a Makefile.PL that referenced the current versions on CPAN.
But might be less confusing to people if they installed.
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http:
7;t need Template::Provider::Encoding if you only have one
encoding in your templates.
Yes you need Unicode (or the older Unicode::Encoding) plugin so that
input params are decoded and output is encoded back to utf8.
--
Bill Moseley
[EMAIL PROTECTED]
___
will not return
> the correct paths to the front end on the https ports.
Not two backend servers, but a backend that listen on two ports.
Just need a way to tell the difference between http and https in the
backend, and using two ports is one way to accomplish that.
--
Bill Mosele
);
__PACKAGE__->setup;
sub default : Private {
my ( $self, $c ) = @_;
$c->res->body( 'setting session' );
$c->session->{bar} = time; # Trigger session write
}
sub calculate_session_cookie_expires {
my $c = shift;
warn "in calculate_session_cook
s an unique id to get at that request-specific
message?
If so, how do you manage orphans, say if the redirect never happens?
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinf
On Thu, Jul 26, 2007 at 10:20:59AM -0700, Bill Moseley wrote:
> Looking at an existing version I hacked I see I did something a bit more
> crude:
>
> my $body = $c->response->body;
> $body = join "\n", <$body> : $body if ref $body;
Except it com
$body;
Next time an author has a few minutes could that fix be uploaded to
CPAN, please?
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://
ing the
back button.
Comments?
--
Bill Moseley
[EMAIL PROTECTED]
___
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/
} && $ENV{MOD_PERL}) {
$DBI::connect_via = "Apache::DBI::connect";
DBI->trace_msg("DBI connect via $DBI::connect_via in
$INC{'Apache/DBI.pm'}\n");
}
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawm
by
constraints on the database) so it also makes sense the forms are
bundled with code.
I doubt there's any best approach. But, if the idea is thin
controllers then I like using one line of code. ;)
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catal
e to make sure the current user can
access it, but that can also happen in a chain or auto method. Or
that might be considered part of the validation and the form module
can validate that the user can access $id. But, I kind of consider
that more of a controller responsibility since an invalid $
e again: I think the behavior of dieing on invalid
session id format is not right. The id should just be ignored in that
case and a new cookie sent. If someone ends up with a bad cookie (or
the cookie format changes) could result in a lockout.
Thanks,
--
Bill Moseley
[EMAIL PROTEC
URL when the app starts and then have the cron job use that. But, the
infrastructure that Catalyst provides can make doing this in the
application tempting. It's up to you if you want to give up those
request cycles to other things than web requests.
--
Bill Moseley
[EMAIL PROTECTED]
__
ly stored it's using the latest session
id, but not the same one used for the cookie:
Store::store_session_data: setting
[session:4cc5a1526a6958df043edfcd77de025ece5e6334] [HASH(0x9d937e8)]
Store::store_session_data: setting
[expires:4cc5a1526a6958df043edfcd77de025ece5e6334] [1184906823]
--- Finalize
finalize_session {
my $c = shift;
$c->NEXT::finalize_session;
$c->_save_session_id;
$c->_save_session;
$c->_save_flash;
$c->_save_session_expires;
}
[1] The result was when I tried to access the session a new session
would then be create
label = 'Name',
sortby = 'name';
'';
PROCESS table_heading_link
label = 'Account',
sortby = 'account';
%]
But I think the macros help with readability.
In the p
at won't be
right. The plugin uses caller, so obviously calling $c->log->warn
will look different than calling warn (when is trapped and then calls
$c->log->warn as in the code I posted).
Print out %M and call both $c->log->warn and wa
st recent upstream IP (last in the list)
my ($ip) = $headers->{'X-Forwarded-For'} =~ /([^,\s]+)$/;
$c->request->address( $ip );
}
If your address isn't 127.0.0.1 then it's not going to check for a
proxy unless "using_frontend_proxy" is set.
--
Bi
ly
> >need to set $c->config->{using_frontend_proxy} per the docs.
> Yes, both Apache servers (:80 and :81) are on the same host. I've still
> no idea what is wrong here.
Throw in some warn statements in Catalyst::Engine::Apache.
--
Bill Moseley
[EMAIL PROTECTED]
log() method to always pass along $c.
How have others solved that problem?
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://w
On Sun, Jul 01, 2007 at 09:27:17PM +0200, A. Pagaltzis wrote:
> * Bill Moseley <[EMAIL PROTECTED]> [2007-07-01 19:25]:
> > Macro?
> >
> > [%
> > game_detail_link( Game, 'Click here' );
> > game_history_link( Game, 'View hi
);
game_history_link( Game, 'View history' );
%]
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.c
quest->header( 'X-Forwarded-Host' );
if ( $host =~ /^(.+):(\d+)$/ ) {
$host = $1;
$port = $2;
Which ends up setting the request base, which is used in uri_for.
Is your front end machine on the same host? If not you would likely need to
set $c->config->{usi
pointed to by $path.
Then you can do:[1]
warn "Hey, TT is looking for [$path]\n";
which might give you a lead.
[1]
$ cat ~/bin/mvim
#!/bin/sh
sudo vim `perldoc -l "$1"`
--
Bill Moseley
[EMAIL PROTECTED]
___
List: C
. I REALLY need to fix
> this one or I'm sunk!
What debugging did you do? Did you dump the INCLUDE_PATH?
Template::Provider also has some dubbing available. Did you enable
that? Have you tried making a local copy of Template::Provider in
your l
things a bit more. I have a plugin that alters temporary file
locations to include the uid in the path.
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Search
$self->{ DEFBLOCKS } is cleared
each time a parse() begins.
* Fixed bug in Template::Provider to immediately invalidate the cache entry
of any template that fails to compile.
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.
the report to support their claims of superiority. ;)
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode
te the template then always missing. I don't see it
mentioned in Changes but I suspect you need 2.19 if that's the problem
you are hitting.
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.
r setup to be run twice, don't call it setup.
;)
package MyApp;
use Catalyst;
__PACKAGE__->app_setup( @plugins );
sub app_setup {
my $self = shift;
$self->setup( @_ );
}
--
Bill Moseley
[EMAIL PROTECTED]
__
problem. If you care about CSRF,
> get it from CPAN, load it into your app, and stop worrying :)
Is this much different than Catalyst::Plugin::RequestToken?
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://
On Mon, Jun 18, 2007 at 02:42:13PM +, Zbigniew Lukasiak wrote:
> On 6/18/07, Bill Moseley <[EMAIL PROTECTED]> wrote:
> ...
> >Do you mean instead of $c->action->reverse like C::V::TT does now?
> >That is, so you always have to specify the template name?
>
&g
emplate_action stash what you are describing?
I'm wondering how generic setting the template name can be. Do
different templating tools use similar template names, or is this
mostly for TT?
I almost always tweak the template paths, too. Sometimes it's for
skinning/branding or it's
his, be sure to also patch the Apache engine. In fact,
> maybe you could refactor this so the proxy checking can be done in a
> single place in Catalyst::Engine, instead of duplicated in multiple
> engines (my fault).
That would be a nice refactoring.
--
Bill Moseley
[EMAIL PROTECT
template => 'foo' );
For me, I actually prefer directly modifying the stash as a hash since
it's very clear what is happening. Personal preference, I guess.
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
{
> > my ( $self, $c ) = @_
> > $c->stash->{template} = 'edit.tt';
> > ...
> > }
> >
> Yes. You can use both. Setting stash template always overrides the
> default Template() attribute for that current action via ||=
Mayb
ago. It's not the first time adding a weakened attribute has caught
me. ;)
Thanks,
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: h
ff and let View:TT create the template name
automatically from the action?
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.ma
; field, and that they are different from the old
password. How do you communicate that logic back to the controller or
whatever in the session?
It makes sense to have a separate form object to handle that work.
--
Bill Moseley
[EMAIL PROTECTED]
___
its own behavior.
So my controllers to update/create look like:
sub profile : Local {
my ( $self, $c, $user_id ) = @_;
$c->post_redirect( 'list', 'Profile Updated!')
if $c->update_from_form( $user_id );
}
--
Bill Moseley
[EMAI
> After logout ($c->logout) I get:
>
> undef error - Invalid locale name or id: , at
> /usr/lib/perl5/Cache/FastMmap.pm line 551
I just got caught by this. IIRC, upgrade DateTime::Locale.
--
Bill Moseley
[EMAIL PROTECTED]
___
hinking of.
>
> Out of luck then, I'm afraid.
That's what overriding is for. ;)
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
On Tue, Jun 05, 2007 at 09:18:50AM +0100, Matt S Trout wrote:
> On Mon, Jun 04, 2007 at 10:59:41PM -0700, Bill Moseley wrote:
> > In a template I was using:
> >
> > c.uri_for( 'path', arg1, arg2 );
> >
> > where arg1 and arg2 are sometimes not defi
In a template I was using:
c.uri_for( 'path', arg1, arg2 );
where arg1 and arg2 are sometimes not defined. In that case uri_for
generates a url with two trailing slashes.
Is there a reason to keep that behavior or should uri_for pop any
undefined items off @args?
--
Bill Mose
f the session management
process during the request. Even some comments in the code would be
helpful. I just have not had time to get back to it.
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.or
On Sat, May 26, 2007 at 04:08:48PM -0400, Perrin Harkins wrote:
> On 5/26/07, Bill Moseley <[EMAIL PROTECTED]> wrote:
> >Perhaps an easier way to show the problem with duplicate created
> >sessions would help.
>
> Do you mean duplicate or multiple? The session ID ge
lyst::Plugin::Session::Store::FastMmap 0.02
|
| Catalyst::Plugin::Static::Simple 0.14
$ perl -MCache::FastMmap -le 'print $Cache::FastMmap::VERSION'
1.16
--
Bill Moseley
[EMAIL PROTECTED]
___
List:
.dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 6
Failed 1/9 tests, 88.89% okay
t/7.ok
--
Bill Moseley
[EMAIL PROTECTED]
___
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/
-- but does
answer how not to use constants. ;)
Thanks,
--
Bill Moseley
[EMAIL PROTECTED]
___
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/
(name => 'Pending');
But if I did this everywhere instead:
my $status = Cart::Status->fetch(name => cart_pending_status );
I'd still be on the beach.
But the question was how do I represent constants best?
--
Bill Moseley
[EMAIL PROTECTED]
__
cart namespace
cart_status => $cart_class->pending_status
--
Bill Moseley
[EMAIL PROTECTED]
___
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/
xperience) I
think this is something that really belongs in the view.
[% c.local_date( user.last_updated_time ) | html %]
But, setting the locale and time_zone in the inflator would be handy
since it's all one place instead of every time I use a date in the
view.
On Fri, May 18, 2007 at 12:16:34PM -0700, mla wrote:
> Bill Moseley wrote:
> >Using md5s for images, as in your example, is fine. But if the images
> >really needed to be protected then that scheme is purely security by
> >obscurity. That's what we were talking ab
On Fri, May 18, 2007 at 07:55:35PM +0200, Matija Grabnar wrote:
> Bill Moseley wrote:
> >What you are proposing is if item 7 is instead encoded as
> >84bc3da1b3e33a18e8d5e1bdd7a18d7a then they are less likely to try
> >other numbers because of, ... why? Because it
y should your application
bother with using obfuscated ids?
As far as the user is concerned 3,5,7 are abstract ids, just like
84bc3da1b3e33a18e8d5e1bdd7a18d7a is.
Of course, what you want is a method that requires checking that the
user can access the item. Something like
Processor form similar
approaches.
--
Bill Moseley
[EMAIL PROTECTED]
___
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 s
under Catalyst:
sub edit : Local {
my ( $self, $c, $id ) = @_;
$c->update_from_form( $id );
}
Where $c->update_from_form requires the form module and does
everything else the first example does. I commonly do a redirect
if $c->update_from_form ret
xception
that is not expected and I log the message and send the user a 500 and
a message that they have been a very, very bad user.
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/lis
lidation tools to not be specific to
the web/HTML side of things. The HTML side of the forms are easy, anyway,
and often require hand-customizing. That way the same "forms" can be
used for more than just the web environment.
--
Bill Moseley
[EMAIL PROTECTED]
_
hod = sub { ... }
later:
$self->$private_method( $foo );
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/cat
for( $loc ) : $loc ),
> ( $is_old_proto ? 302 : 303 ),
> );
> }
I was going to say "Quick! Make a plugin on CPAN" but then realized
the above exceeds the line limit for Catalyst plugins. ;)
--
Bill Moseley
[EMAIL PROTECTED]
___
Li
be to pass a comment that gets stuffed into the
session (flash).
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive
ammers can do a lot of damage. I suspect you will be cursing it
later when you have to go back and find all the places to add "| html"
after the fact.
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://
tructure of the
resulting page.
No clue how that works in Seamstress.
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/ca
On Wed, Apr 18, 2007 at 09:14:40PM +1000, Kieren Diment wrote:
> I think jrockway's original complaint was that the svn/svk model makes
> merging quite difficult and slows down progress which means that new
> features are only released slowly.
Sounds like a feature.
--
Bill
guration settings. I'm using a view generated by the catalyst
> helper script.
[%
USE foo = Class( 'Whatever::View::TT' );
USE Dumper; Dumper.dump(foo.config ) | stderr;
%]
--
Bill Moseley
[EMAIL PROTECTED]
___
Lis
stderr %]
Maybe your View isn't stuffing $c into the stash, or is using a
different name (see C::View::TT).
--
Bill Moseley
[EMAIL PROTECTED]
___
List: [EMAIL PROTECTED]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable arch
% USE Dumper %] or other
variations can save a lot of time when dealing with the templates.
--
Bill Moseley
[EMAIL PROTECTED]
___
List: [EMAIL PROTECTED]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-arch
On Wed, Apr 11, 2007 at 08:36:52AM -0700, Bill Moseley wrote:
> On Wed, Apr 11, 2007 at 03:28:59PM +0100, Adeola Awoyemi wrote:
> > if ( $new_img->write( file => $new_filename ) ) {
> >
> > I tried using "$c->response->redirect( $new_filepath )" but
eb document root is not the root of the file system.
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.co
nd
STDOUT to /dev/null, and then call setsid().
It's interesting this is working for you with mod_perl if you are not
doing the above. But, again, it's been years since I did this.
Hopefully, someone with a bit more knowledge of FastCGI can respond.
--
Bill Moseley
[E
('Email', 'email',
'This is required so we can send you promotional spam' );
field('Contact Phone', 'phone',
'Required so we can follow up why you didn't
respond to the spam we s
a select list then the html/template editors can change that
to a radio select if they like without changing how the form is
defined.
As for javascript, I only do limited form validation -- required
fields, and so on. And I feel that's often done better unobtrusively,
as they say. That
On Thu, Mar 29, 2007 at 12:40:51PM -0500, Dave Rolsky wrote:
> On Thu, 29 Mar 2007, Bill Moseley wrote:
>
> >This always makes me wish for a 4xx code that could be returned to the
> >client but not force the browser to ask for authentication. After
> >all, the user is not
ivate actions.
>
> If the docs state that, they're wrong. It's perfectly possible to
> forward to public actions.
When you start up the server in debug mode you can see the private
names for the public paths. So, you forward to the action using it
the browser to ask for authentication. After
all, the user is not currently authorized to view the page. And the
idea being that the browser would not cache the 4xx response.
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listi
e screen and on e-mail. I
> like those complete scrolling screens
> when something bad happens ...
I would recommend you use a separate process to watch the error log
and send mail.
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.raw
ng DBD::Pg's pg_enable_utf8?
--
Bill Moseley
[EMAIL PROTECTED]
___
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/
e time. That seems to have, for the most part, reduced the
bot submissions.
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archi
e_vars {
my ( $self, $c ) = @_;
my $cvar = $self->config->{CATALYST_VAR};
defined $cvar
? ( $cvar => $c )
: (
c=> $c,
base => $c->req->base,
name => $c->config->{name}
)
}
--
Bill Moseley
[EMAIL PROTECTED]
_
gt; can't find the time zone.
> Is there anything I can do to install this Catalyst Plugin under Windows?
What does that plugin offer over the standard DateTime module?
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.
On Fri, Mar 09, 2007 at 11:34:14AM -0600, Dave Rolsky wrote:
> On Fri, 9 Mar 2007, Bill Moseley 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.
>
s a bottle neck then optimization would be most
welcome.
--
Bill Moseley
[EMAIL PROTECTED]
___
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/
ig ) {
$self->_config->{$key} = $val;
}
}
return $self->_config;
}
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable arc
ey};
if ( ref $value eq 'HASH' ) {
$config->{$key} ||= {};
$self->deep_merge( $config->{$key}, $value );
} else {
$config->{$key} = $value;
}
}
}
--
Bill Moseley
[EMAIL PROTECTED]
__
ngs.
Is the answer Hash::Merge? Or does Catalyst have anything to help
here?
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-a
On Thu, Mar 01, 2007 at 04:13:05PM -0800, Bill Moseley wrote:
> Seems that Catalyst first tries to match the full path, then tries to
> match a reduced path. Adding a bit of debugging to Regex.pm's match()
> method:
>
> Request = /training/webcasts/webcast_data/162/foo.ht
h()
method:
Request = /training/webcasts/webcast_data/162/foo.html
Checking [training/webcasts/webcast_data/162/foo.html]
Checking [training/webcasts/webcast_data/162]
*MATCHED*
So that's why it's matchine when I don't want it to match.
--
Bill Moseley
[EMAIL PROTECTED
: yes
Regex('^training/webcasts/webcast_data/(\d+)(/?index.html)?$')
matches:
../186/index.html : yes
../186/foo.html : yes
../186/ : yes
../186 : yes
--
Bill Moseley
e_body() throw an error if a content-length header is
found for GET requests?
--
Bill Moseley
[EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://w
1 - 100 of 164 matches
Mail list logo