On Thu, Dec 4, 2014, at 12:41 PM, Trevor Leffler wrote:
This is a typical use:
link href=[% c.uri_for('/static/css/my_style.css') | html %]
rel=stylesheet
Assuming you're using Template Toolkit, you should use the url filter,
not the html filter:
link href=[%
Hi -
On Sun, Mar 3, 2013, at 08:44 PM, linuxsupport wrote:
I tried Catalyst::Plugin::RunAfterRequest, when I send request to the app,
it returns fine but it does not accept any other request after that until that
sub routine finishes.
By default the test server runs a single process, so that
Hi Bill -
On Fri, Oct 19, 2012, at 11:37 AM, Bill Moseley wrote:
Use of uninitialized value in delete
with a line number pointing to this line:
delete $c-stash-{foo};
I didn't think that delete() issued a warning,
Are both $c and $c-stash defined at that point?
Larry
Hi -
We're looking to hire another full-time web developer to join a great
team, telecommute or local (central MN).
- Telecommute with occasional face time trips to MN
- Must have strong Perl skills
- Should have all the usual web dev skills (HTML, JS, CSS, AJAX, DHTML)
- Bonus points for skills
Hi Tobias -
Therefore I need to force all generated URIs to be https.
If generated URIs means those coming from $c-uri_for() and friends, you
should be able the modify the URI scheme in $c-request-base, which
gets used by uri_for().
Not tested but try something like the following.
HTH,
Larry
Hi t0m -
On 4 Aug 2011, at 16:57, Larry Leszczynski wrote:
Side question: Is namespace::autoclean needed any more?
define 'needed'?
It's never 'needed' as long as you never want a 'has' method, and
you're happy with none of your imports being cleaned up, so all your
classes
Hi Matthew -
On Fri, 29 Jul 2011 12:25 +0100, matthew couchman (JIC)
matthew.couch...@jic.ac.uk wrote:
Thanks for your reply. Perhaps it was too sweeping a statement but I can
only say that for my setup mod_perl works fine through Apache alone as
does php but when I combine them it crashes
Hi -
We're looking to hire another full-time web developer to join a great
team, telecommute or local (central MN).
- Telecommute with occasional face time trips to MN
- Must have strong Perl skills
- Should have all the usual web dev skills (HTML, JS, CSS, AJAX, DHTML)
- Bonus points for skills
Hi all -
Just wondering if anybody else is planning to go to the O'Reilly
Velocity conference in Santa Clara next week - email me off-list and we
can make plans to meet up.
Thanks!
Larry
___
List: Catalyst@lists.scsys.co.uk
Listinfo:
Hi Jeff -
The problem seems to be a bottleneck in Catalyst, because as soon as
the long poll completes all of the waiting status requests complete
instantly as well. I had imagined that the threading on Catalyst would
support the functionality I'm looking for.
Just a guess... By any chance
Hi Jeff -
I have created a directory called media in the path
/root/static/media and put some audio files in there (happen to be
ogg-vorbis). I am using the HTML5 tag audio in the Firefox 4 browser
to play the file in an app. It mostly works but there is a problem in
that the browser cannot
Using the fragment is probably a bad idea. It's not supported by all
servers so it can end up lost on the backend depending on your setup.
I have see fragments cause problems in server-side code that is naive
about URL handling, like splitting the string on ? and assuming all
the stuff after
Hi -
As previously posted, we're looking to hire a full-time web developer,
either in-house or telecommute. The job is mostly Catalyst
development for our web apps with a fair amount of work on the client
side using ExtJS, jQuery, Prototype, etc. The official job posting is
available at:
Hi -
We're looking to hire a full-time web developer at $work. Contact me
OFF LIST (please) and I can send more details. The basics:
- Local (central MN) or telecommute
- All the usual web dev skills (HTML, JS, CSS, AJAX, DHTML)
- Bonus points for skills in:
Catalyst
Moose
Template
Hi -
On Wed, 08 Dec 2010 13:31 +, Tomas Doran bobtf...@bobtfish.net
wrote:
On 7 Dec 2010, at 16:11, Ben van Staveren wrote:
You want to $c-detach('end') -- unless that's the default these
days.
The end action will _always_ be run, there is no need to detach to the
end action.
Hi Woosely Xu -
On Mon, 15 Nov 2010 10:32 +0800, woosley. xu. redic...@gmail.com
wrote:
I am still wondering why forward dose not working in my way, and I
just find detach('login') works good.
Because forward() returns to the action from which it was called, and
detach() does not:
Hi Dorian -
OK, but the part that confuses me is why /foo doesn't resolve to
MyApp::Foo::index with -go or -visit.
Maybe this will help (I think in this case index works like
default):
http://wiki.catalystframework.org/wiki/wikicookbook/safedispatchusingpath
HTH,
Larry
Hi Charlie -
once the problem starts the test server won't respond to any further
requests; requires a restart. Canceling the current request results in
following error:
Caught exception in engine Wrong Content-Length value: 52
May be totally related but I have seen those symptoms when the
Hi Duncan -
On Tue, 21 Sep 2010 17:52 +0100, Duncan Garland
duncan.garl...@motortrak.com wrote:
How do you make the money macro available in all templates?
[% USE money=format('%.2f') -%]
Presumably something goes in here:
__PACKAGE__-config(
TEMPLATE_EXTENSION = '.tt',
Hi Dave -
After searching google, and reading through all of the relevant
documentation, and a considerable portion of the code, we have been
unable to locate the correct place to set or override the Content-Type
header to append a charset=utf-8 string, required by our caching proxy
to
Have you read http://wiki.catalystframework.org/wiki/contrib ?
To whom it may concern: This URL is currently (Jun. 21, 15:22:18 UTC)
returning a 500 server error.
Larry
___
List: Catalyst@lists.scsys.co.uk
Listinfo:
On Wed, 21 Apr 2010 20:30 +0400, Oleg Pronin syber@gmail.com
wrote:
1) Getting all params 3x faster than only one
2) Getting $req-{parameters}{lang} 150x faster than $req-param('lang')
What a surprise: accessing the hash directly is faster than calling a
function that accesses the hash.
Hi Julien -
On Fri, 01 Jan 2010 14:26 -0800, Julien Sobrier jul...@sobrier.net
wrote:
Hello, I'm try to do a forward to a path rather than a controller. For
example, if I get the url /foo/my/path, I want to redirect it to
/my/path which belongs to a different controller.
In general you
Hi Octavian -
On Tue, 27 Oct 2009 23:16 +0200, Octavian Râsnita orasn...@gmail.com
wrote:
From: Larry Leszczynski lar...@emailplus.org
Hi Octavian -
Is there a Catalyst Request method for getting the path and the
query_string? (Everything's after the base).
I want to use it in a TT
http://dev.catalyst.perl.org/wiki/wikicookbook/urlpathprefixing
Thank you Larry. It seems to be what I need.
I've seen some uses of $self which were not defined in that example.
Shouldn't be __PACKAGE__ instead?
Sorry, copy/paste error - $self should not be in there. I've tweaked
FYI, the company I work for is looking for a full-time Catalyst
developer:
http://jobs.perl.org/job/11108
I'm just passing along the info - if you're interested, please reply via
the email address in the posting, not to me (or the list) directly.
Thanks!
Larry
Hi (again) Octavian -
Is there a recommendation for storing the language ID in the URL in order
to
be as easy to get it from there?
I want to have unique links for each URL, so I can't just put it in the
cookies. Using ?lang=EN seems to be the easiest way, although it doesn't
look
Hi Gunnar -
Thanks to all who answered my post regarding pass-through login! It put
me on the right track and it works like a charm now.
In my solution I have an action, Catalyst::Action::Restricted, which I
put on the subroutines which require a logged-in user
Hi Ian -
I have always written Cat Apps so they start at the '/' URI but now I
have been asked to 'offset' one so that:-
/becomes /foo
/userbecomes /foo/user
/admin/1 becames /foo/admin/1
One approach is to modify $c-prepare_path, similar to:
Hi Ton -
However, if the translated value contains quotations (such as: s'il
vous plait), then it could break the HTML:
select value='[% c.loc(Please select one) %]'
or the javascript:
alert('[% c.loc(Please select one) %]');
We create some custom scalar ops in a subclass of
We create some custom scalar ops in a subclass of Catalyst::View::TT
(code below) that let you do:
select value=[% c.loc(Please select one).escape_dq %]
Actually, escape_dq won't work here:
select value=[% c.loc(Please select one).escape_dq %]
but it will work if for some reason you
Hi Jozef -
[debug] $c-languages from auto-detect: [en-us, en, i-default]
(this looks right based on my browser settings)
[debug] $c-language: i_default
(why does it pick i-default instead of en-us or en?)
[debug] Setting language to en...
[debug]
Does it make sense to add a clear() method to Catalyst::Plugin::Cache,
in addition to the existing get(), set() and remove()? It seems like a
common action for cache manipulation.
Any of the various Cache::Cache-based backend flavors should be able to
support it out of the box. For specific
On Fri, 06 Mar 2009 20:11 -0500, Jason Kohles em...@jasonkohles.com
wrote:
On Mar 6, 2009, at 7:42 PM, Larry Leszczynski wrote:
Does it make sense to add a clear() method to Catalyst::Plugin::Cache,
in addition to the existing get(), set() and remove()? It seems
like a
common action
- Original Message -
From: Larry Leszczynski lar...@emailplus.org
To: Bill Moseley mose...@hank.org; Catalyst Framework
catalyst@lists.scsys.co.uk
Sent: Tuesday, February 24, 2009 3:44 AM
Subject: Re: [Catalyst] stripping path parts and then redispatch?
Just wanted to pass along
Hi Lars -
I have an existing site, and want to add the page language to the URLs
so that caching will work correctly, e.g. /foo/bar would now look like
/en/foo/bar or /fr/foo/bar.
Apart from the missing true return value from auto, this works:
Hi Jason -
I have an existing site, and want to add the page language to the URLs
so that caching will work correctly, e.g. /foo/bar would now look like
/en/foo/bar or /fr/foo/bar.
Apart from the missing true return value from auto, this works:
Just wanted to pass along some solutions...
To recap briefly:
URLs are prefixed with the page language, e.g /en/foo/bar. The
language needs to be stripped off and stashed, and the remainder of the
request processed as if the language part had not been there, e.g.
/foo/bar.
I was trying to use
Hi Tomas -
I'm using Catalyst 5.8.5 so I can make use of any of forward, detach,
visit, go, etc.
Not helpful to your main email, but there is no such version as 5.8.5?
I assume you mean 5.8000_05, which is a developer release?
Yes, that's what I meant, sorry.
Larry
Hi Marcus -
Now that you're all done upgrading to 5.7100, it's time to help us out by
testing the next developer release of 5.8000, 5.8000_05, which was
uploaded to CPAN today.
When I perl Makefile.PL, it tells me:
This version of Catalyst conflicts with the version of
Hi all -
I have two problems that I think are related, I think I may just be
missing something simple...
First, I'm having trouble getting Catalyst::Plugin::I18N to use a
specific language (grabbed from user preferences). Inside
MyApp::Controller::Root::auto() I am doing this:
Is there any straightforward way to create a subclass of
Catalyst::View::TT so that $self-{template} is an instance of
Template::Foo instead of Template?
In e.g. Catalyst::View::TT::Foo I could call $self-SUPER::new() and
then overwrite the resulting $self-{template} object, but at that point
I
I've run into what appears to be a query keyword bug using Catalyst
5.701[02]:
% catalyst.pl MyApp
% cd MyApp
% perl script/myapp_server.pl
Request:
http://localhost:3000/ - works
http://localhost:3000/?a=123 - works
http://localhost:3000/?123 - fails
The error
On Mon, 12 Nov 2007, Larry Leszczynski wrote:
FOREACH options IN options;
lv_id = options.lv_id;
... do stuff with lv_id ...
END
Sorry, that should be:
FOREACH option IN options;
lv_id = option.lv_id;
... do stuff with lv_id ...
END
44 matches
Mail list logo