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

Sharing authentication across Catalyst apps

I have a three applications that I would like to keep separate for manageability purposes. They run as a Plack server as suggested here, proxied behind nginx. I would like to have a separate application to manage logins, and have that login and its…
simone
  • 4,667
  • 4
  • 25
  • 47
2
votes
1 answer

Multiple vs. single Catalyst applications

I have multiple Catalyst applications running as FCGI. Is there a benefit in consolidating them into a single one with multiple constrollers? Thanks, Simone
simone
  • 4,667
  • 4
  • 25
  • 47
2
votes
1 answer

DBIx::Class base result class

I am trying to create a model for Catalyst by using DBIx::Class::Schema::Loader. I want the result classes to have a base class I can add methods to. So MyTable.pm inherits from Base.pm which inherits from DBIx::Class::core (default). Somehow I…
Rob Boerman
  • 2,148
  • 14
  • 21
2
votes
1 answer

How are Perl Catalyst actions implemented?

How is the following code implemented in Perl? sub add_item : Local { my ( $self, $c ) = @_; my $item_id = $c->req->param("item"); push @{ $c->session->{items} }, $item_id; } I am interested in the add_item : Local part, cause…
Geo
  • 93,257
  • 117
  • 344
  • 520
2
votes
1 answer

DBIx::Class virtual column?

I am building an app with a DBIx::Class (Loader) based ORM. Most of my database models have a 'name' column. One of my controllers searches all schema classes using primarily the 'name' column. A couple of schema classes however don't have a 'name'…
Rob Boerman
  • 2,148
  • 14
  • 21
2
votes
2 answers

Catalyst dispatcher for arbitrary tree-structure

Greetings, I'm new to Catalyst and I am attempting to implement some dispatch logic. My database has a table of items, each with a unique url_part field, and every item has a parent in the same table, making a tree structure. If baz is a child of…
friedo
  • 65,762
  • 16
  • 114
  • 184
2
votes
3 answers

problem with Makefile.PL in Catalyst

i am trying to deploy an Catalyst application. I have put all includes in the Makefile.PL file an thought that should be enough to install in on the target machine. However, when I try to build the Makefile I get the following: $ perl…
Rob Boerman
  • 2,148
  • 14
  • 21
2
votes
0 answers

Catalyst 'forward' function doesn't return any value

I have this code: my $variable = $c->forward(qw/Curate::Controller::Utils _get_timestamp/); $c->log->debug("variable is now $variable"); And the _get_timestamp looks like this: sub _get_timestamp :Private { my ( $self, $c, $arg ) = @_; my…
mnowotka
  • 16,430
  • 18
  • 88
  • 134
2
votes
1 answer

How do I cleanup at request end in Catalyst?

I'm trying to get some code called after each request completes using Catalyst. Basically, I want to run some code as part of finalize. Supposedly Catalyst::Plugin::Observe will do this, but it appears completely broken (just loading the plugin…
derobert
  • 49,731
  • 15
  • 94
  • 124
2
votes
1 answer

How to implement long-term statistics and short-time log?

We develop a larger database web application with Perl Catalyst and PostgreSQL under Linux. Users can login and upload and download data files (scientific measurements). I wonder how to implement a logging/statistics system. We need to view general…
Daniel Böhmer
  • 14,463
  • 5
  • 36
  • 46
2
votes
2 answers

what is the best way to hanlde optional url arguments in a Catalyst controller?

For example: I know how to match www.domain.com/foo/21 sub foo : Path('/foo') Args(1) { my ( $self, $c, $foo_id ) = @_; # do stuff with foo } But how can I match www.domain.com/foo/21 OR www.domain.com/foo/21/bar/56 ? sub foo : { my (…
nick
  • 1,369
  • 2
  • 13
  • 28
2
votes
1 answer

Spark: Catalyst add a strategy on Dataframe

I need to transform a join operation using Spark SQL to a custom join. (logical plan to a custom physical plan). I have written a strategy that transforms the spark join operation to a custom join object CustomStrategy extends Strategy { def…
syl
  • 419
  • 2
  • 5
  • 17
2
votes
1 answer

Perl 5.8.8 support with Catalyst

Facing below issue when execute catalyst server script. Couldn't load class (Catalyst::Script::Server) because: "ensure_class_loaded" is not exported by the Catalyst::Utils module Can't continue after import errors at…
Madhan
  • 1,291
  • 3
  • 21
  • 34
2
votes
1 answer

DBIC-AJAX: Why is my array "undef"?

I'm using ajax to retrieve some values in a form. The backend uses a catalyst app. A specific field is giving me a hard time retrieving the values and I have no idea why... Consider 4 fields containing several values each, sent via ajax.
Leitouran
  • 578
  • 3
  • 16
2
votes
1 answer

DBIC joins in Catalyst web app

I've been working with Catalyst and DBIC for a while now, but I never started a project by myself. Now I am creating a webapp database from the scratch and I started to wonder if I could make data fetching in fewer lines of code. I'll go right ahead…
Leitouran
  • 578
  • 3
  • 16