Questions tagged [catalyst]

Catalyst is a Perl web application framework, similar to Ruby on Rails, Spring (Java), and Maypole.

Catalyst is an elegant web application framework written in the Perl programming language, extremely flexible yet extremely simple. It's similar to Ruby on Rails, Spring (Java), and Maypole, upon which it was originally based. Its most important design philosphy is to provide easy access to all the tools you need to develop web applications, with few restrictions on how you need to use these tools.

http://www.catalystframework.org/

Resources to learn Catalyst:

Useful Links:

524 questions
4
votes
1 answer

AnyEvent->timer not working with AnyEvent::Handle?

I'm trying to build a timeout scenario in my Catalyst, AnyEvent, Websocket app. For that I'm using AnyEvent->timer which should be called after let's say a few seconds of inactivity (no more WS frames coming in). The problem is, that my timer is…
RandomAndy
  • 324
  • 1
  • 9
4
votes
2 answers

How can I get Google OAuth on a catalyst app?

I've been trying to use Google's OAuth for authentication on a Catalyst app. I've tried using CatalystX::OAuth2 and Catalyst::Authentication::Credential::OAuth but it seems I get stuck on configuration. I'd like to get it working on Google and then…
simone
  • 4,667
  • 4
  • 25
  • 47
4
votes
1 answer

Pass parameter through URL in Perl catalyst

Is it possible to pass a parameter through URL in perl catalyst I have a link Yearly Can I pass a parameter with the link, like Yearly if so, how can I…
Jitesh
  • 345
  • 1
  • 5
  • 16
4
votes
2 answers

How should I do RPC in Perl with Catalyst?

I've been trying to find a good form of RPC to standardize on, but so far I've ran into a ton of walls and was wondering what the stackoverflow communities view was. My ideal RPC would provide the following: Somewhat wide support in other…
semi
  • 612
  • 5
  • 14
4
votes
3 answers

How can I select only specific columns when using prefetch in DBIx-Class?

I'm struggling with fairly fundamental DBIx-Class prefetch usage. I want to limit the columns that are returned from joined tables when prefetch is used. This: my $rs = $schema->resultset('CD')->search( {}, # No searching restrictions through…
Sparky
  • 63
  • 1
  • 3
4
votes
4 answers

Round or ceil function in Template Toolkit

I need a value to be rounded in the Perl's Template Toolkit. But I am not able to use ceil(). [%interestRate = ceil(mortgage.interest_rate / 100)%] The answer shows a null value.
Jitesh
  • 345
  • 1
  • 5
  • 16
4
votes
5 answers

How can I use Haml with Catalyst?

Is it possible to use Haml instead of a templating engine with the Catalyst web framework?
Matteo Riva
  • 24,728
  • 12
  • 72
  • 104
4
votes
1 answer

OO Design Patterns with Perl

I am currently planning the design for a new system I will need to code that interacts with a back-end API. I was contemplating object composition and inheritance and decided that the most correct procedure in my situation would be to go with…
4
votes
2 answers

Catalyst best way for url language prefix?

I have already done all the I18N and GetText things in multiple languages for an existing site. For selecting one language or another it seems that prefixing urls with path parts like www.domain.com/fr_FR/my_action or www.domain.com/de_DE/my_action…
Nacho B
  • 1,573
  • 1
  • 12
  • 16
4
votes
3 answers

catalyst can't forward to private action

In Catalyst I'm trying to forward to a private action to do some work. Here is the function definition: sub get_form :Private :Args(1) { my ($self, $c, $type_id) = @_; #do stuff } I try to forward to it like…
srchulo
  • 5,143
  • 4
  • 43
  • 72
4
votes
1 answer

Making Catalyst calls from the model?

I'm using Catalyst with Catalyst::Plugin::Authentication and Catalyst::Plugin::Authorization::Roles and am wondering if there is a better approach to adding an attribute to a model that I'm not seeing. Each user is permitted to access one or more…
derobert
  • 49,731
  • 15
  • 94
  • 124
4
votes
2 answers

Catalyst: Download Logfile securely

I have the following problem: my Catalyst Webservice uses Log4Perl to generate a logfile which logs all user activities. How can i provide this file as download only for admins? The root directory is no option, because everybody could download it. I…
4
votes
1 answer

How can I start a long-running jobs in Catalyst with progress bar?

How would I start a long-running job from within a Catalyst app? I want a page from which the user can upload a list of URLs, and the application would then go and download these URLs. I need to implement an AJAX progress indicator that would then…
A. Murka
  • 212
  • 1
  • 6
3
votes
1 answer

Running multiple Catalyst apps through Apache

I have a suse box that holds three Catalyst apps. Ultimately I need to run all three (which in itself is not a problem, each has a different port) through Apache with mod_perl and SSL. I have successfully gotten to the point of firing up one…
Jane Wilkie
  • 1,703
  • 3
  • 25
  • 49
3
votes
2 answers

How can I define constants in a Template Tookit template in a Catalyst app?

I want to use a constant in my TT template. In HTML::Mason (my previous templating engine of choice) I could do: <%once> use MyApp::Constants qw(CONSTANT); How can I do this in Template Toolkit? As mentioned in the title this is a Catalyst…
cubabit
  • 2,527
  • 3
  • 21
  • 34