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
2
votes
1 answer

perl eval block throwing execptions without error

I'm trying to put some DBIX transactions under an eval block to either make all transactions or none if something goes wrong in the middle. I've got several transactions being done like this and none of them is giving me problems. None but one: The…
Leitouran
  • 578
  • 3
  • 16
2
votes
2 answers

Are single element lists allowed in perl?

I'm trying to dynamically create a list of values from an AJAX request (using Catalyst), like this: my @listofvalues = @{$params->{parameter_with_many_values}}; Then I loop through the list to make database insertions (one for each value).…
Leitouran
  • 578
  • 3
  • 16
2
votes
1 answer

Moose accessors in Catalyst ("Can't use string as HASH ref" error)

Very simple question: package MyApp::Model::Foo; use Moose; use namespace::autoclean; extends 'Catalyst::Model'; has 'firstname' => ( is => 'ro', isa => 'Str' ); # to be populated in config file # ... sub check_name { my $self = shift; my…
user1235777
  • 609
  • 7
  • 24
2
votes
1 answer

Catalyst Model cache dbix calls

I'm writing a Catalyst application and I have a Model that represents a small settings table whose values won't change. Rather than querying the database for this every time, I would like to cache the responses. Within the model I am using…
srchulo
  • 5,143
  • 4
  • 43
  • 72
2
votes
2 answers

Why do I get many Moose warnings when I start Catalyst?

I am having an issue (Catalyst related) apparently with Moose/Class::MOP. Starting my server I get the following output... (shown below in all its glory) The alias and excludes options for role application have been renamed -alias and -excludes at…
2
votes
0 answers

Text::Xslate returning incorrect value for function call

I'm using Text::Xslate with HTML::FormHandler (HTML::FormHandler is actually used behind the scenes by CatalystX::SimpleLogin, in case that helps). I'm using Text::Xslate's TTerse syntax and trying to show the errors in my template like so: [% FOR…
srchulo
  • 5,143
  • 4
  • 43
  • 72
2
votes
1 answer

Why does DBIx::Class with multiple inheritance fail on update?

I have a DBIC schema, where all the classes use a common base class, and definition class. The base class loads common components, and overrides the update method in order to record changesets in an audit table. The definition class is a static…
Jeffrey Fuller
  • 300
  • 1
  • 2
  • 8
2
votes
0 answers

Internal Server Error should be more elaborate with Catalyst

I've made a Catalyst application MainSite with Bravo::MainSite::Controller::Root controller. To test it I added package Bravo::MainSite::Controller::Test; which basically only consists of: sub catalyst_test :Global { my ( $self, $c ) = @_; …
porton
  • 5,214
  • 11
  • 47
  • 95
2
votes
2 answers

Perl Test::More and setting up test requirements

With Test::More I often want to have a module that runs tests and has the ability to abort the callers test_plan. I have a series of tests that set up a plugin list for Catalyst::Test. I don't want to have to make my test check to see if they exist;…
Evan Carroll
  • 78,363
  • 46
  • 261
  • 468
2
votes
1 answer

Does Catalyst make $c globally available?

Is there anyway to get access to $c without passing it around? I've got a third party library that runs through CGI::Application that I bootstrap with Catalyst::Controller::WrapCGI. What's the best way to get $c into the code being called so I can…
Evan Carroll
  • 78,363
  • 46
  • 261
  • 468
2
votes
1 answer

How to reload the configuration in catalyst

How to reload the configuration when ever the configuration changed in catalyst web framework and need to reload the configuration with out restarting the catalyst server.
Tree
  • 9,532
  • 24
  • 64
  • 83
2
votes
1 answer

How do I hand off a Catalyst request to CGI::Application?

I have a CGI::Application loop like while (my $q = new CGI::Fast){ S::W::Dispatch->dispatch(args_to_new => { QUERY => $q }); my $webapp = S::W::instance(); undef…
Evan Carroll
  • 78,363
  • 46
  • 261
  • 468
2
votes
1 answer

How come with Catalyst::Controller::REST I get an error about content-type

How come with Catalyst::Controller::REST I keep getting this in dialog [info] Could not find a serializer for an empty content-type And, this to the browser Cannot find a Content-Type supported by your client. I have this line in my…
Evan Carroll
  • 78,363
  • 46
  • 261
  • 468
2
votes
1 answer

Move Working Perl Catalyst web app to New server

I have a working copy of Perl catalyst web app and I need to move all the files to a new server. The web app is developed in Catlayst 5.7 and the new server has the catalyst 5.9 in it. Firstly I created a new catalyst app in the new server and after…
Jitesh
  • 345
  • 1
  • 5
  • 16
2
votes
2 answers

How to cancel a file upload based on file size in Catalyst

I'm writing a file upload handler Catalyst. I'm trying to restrict the maximum file size. To do this I've made a Plugin (based on the answer here). Here is the code where I check for the file size: before 'prepare_body' => sub { my $c = shift; …
Sam Lee
  • 9,913
  • 15
  • 48
  • 56