You can also consider using a Plack middleware:
https://metacpan.org/pod/Plack::Middleware::CrossOrigin
Cheers,
-- Dimi
On Fri, Jun 15, 2018 at 3:07 PM, David Dorward wrote:
> cOn 15 Jun 2018, at 13:54, Theo Bot wrote:
>
>> Can anybody tell me to to add an "Access-Control-Allow-Origin" in the
>
Hello Rajesh,
I usually have my own: MyApp::REST which extends
package MyApp::REST;
use Moose;
use Try::Tiny;
use DBIx::Class::ResultSet::RecursiveUpdate;
use Scalar::Util qw( reftype );
BEGIN { extends 'Catalyst::Controller::DBIC::API::REST' }
with 'Iris::Web::TraitFor::Controller::Datatables'
It's just a package and I have in make_schema_at.pl to apply the components
that I want to use:
make_schema_at(
"My::Schema::${class_name}",
{
exclude => qr/_\d+$/,
dump_directory=> "$Bin/../lib",
components=> [ '+My::TraitFor::Result::ForceNULL',
Not sure if that's the best way to do it or if it's a good approach, but I
have a trait which is applied to all result classes.
TraitFor::Result::ForceNULL;
use strict;
use warnings;
my $null = undef;
sub insert
{
my $self = shift;
for my $col ($self->columns) {
next unless defined $sel
Hello Rajesh,
C::C::DBIC::API supports that under the hood, so not sure what are you
going after.
You can either use: search=JSON.stringify(object) or construct the search
passing params like: search.holder.-ilike=%mis%. Both should work out of
the box.
Regards
On Wed, Mar 1, 2017 at 10:24 AM,
There are a couple of ways around that.
1. Search for that record id, for example:
http://10.100.102.38:3000/api/rest/general/members?limit=3&list_returns=holder1&list_returns=member_id&search.member_id=368
2. If it's a primary key or a unique key, you can easily fetch it:
http://10.100.102.38:30
Why don't you create a symlink verXXX to images at your server?
Cheers
> Hi , I was able to do so in Controller/Root.pm sub end : Private { my ($self,
> $c) = @_; $c->forward('render') unless $c->res->output ;
> $c->fillform($c->stash->{fillindata}) ; my $body =
> $c->response->{body}; >>
As documented you could probably use set_authenticated.
Fetch a particular users details, matching the provided user info, from the
realm specified in $realm.
$user = $c->find_user({ id => $id });
$c->set_authenticated($user); # logs the user in and calls persist_user
On Sat, Jun 27, 2015 at 2:
Are you asking for shared hosting? I just love linode and will recommend
those guys
On Tue, Feb 24, 2015 at 1:00 PM, Luca Ferrari wrote:
> Hi,
> having a catalyst application, which hosting provider would you
> suggest to use for it?
> I mean, without starting a flame on advertising, is there an
Did you delete your .db (sqlite db file) by accident?
What happens if you try manually:
$ sqlite3 myapp.db
$ select * from books;
Best,
Dimitar
On Tue, Apr 29, 2014 at 11:39 AM, mi ja wrote:
> While learning from catalysts tutorial I got this massage in
> Chapter03(code from tutorial not min
The problem should be fixed now and the only available articles should be
displayed into the feed.
Cheers
On Tue, Dec 3, 2013 at 11:01 AM, Dimitar Petrov wrote:
> That seems like the feed takes always the last 5 articles, so those
> articles are the one planned for 18,19,20 Dec.
&g
That seems like the feed takes always the last 5 articles, so those
articles are the one planned for 18,19,20 Dec.
I have pushed a fix to display only the published entries and it should
take effect soon.
On Tue, Dec 3, 2013 at 10:06 AM, Carl Franks wrote:
> BTW, the XML feed seems to have a li
:
> Dimitar,
>
> Thanks I was pressed for time a bit last night. Was this a pod change or
> something else?
>
> Johnn
>
>
> On Monday, December 2, 2013 2:22 AM, Dimitar Petrov
> wrote:
> I fixed the article names, thanks for spotting that.
> Should be just fine
I fixed the article names, thanks for spotting that.
Should be just fine now.
Cheers
On Mon, Dec 2, 2013 at 5:53 AM, Dmitry L. wrote:
> Cool!
> Just small thing: on the "Articles List" page all articles have title
> "Title" lol:
>
> Articles
> Day 01: Title
> Day 02: Title
>
>
>
> On 2 Decembe
It's cool indeed. Great work dude, great work!
On Tue, Jul 23, 2013 at 10:51 AM, Chankey Pathak wrote:
> It's cool! I liked it :)
>
> Good job!
>
>
> On Tue, Jul 23, 2013 at 2:18 PM, Mark Keating
> wrote:
>
>> The nice chaps at Evozon have recently been making design mocks for a
>> bunch of Per
>> a Win32 platform - preferrably with Strawberry Perl. Right now I am
>> making more progress with IIS than Apache. Once I get something working
>> well I will create a post on blogs.perl.org.
>>
>>
>>
>> Thank you Dimitar.
>>
>>
>&
It would be nice if you can either adjust that wiki article or post a small
summary on blogs.perl.org in case someone else has the same issue.
Cheers
On 22 May 2013 06:24, "Ross Attrill" wrote:
> Please ignore this - I found what I was looking for at the fastcgi site:
> http://www.fastcgi.com/di
Aristotle,
Yep, I fully agree with you that more meaningful config key is better :)
On Tue, May 14, 2013 at 2:24 PM, Aristotle Pagaltzis wrote:
> * Dimitar Petrov [2013-05-14 14:05]:
> > It was a reply to the whole thread.
>
> Ah.
>
> > Yeah, we could probably add a
It was a reply to the whole thread. Yeah, we could probably add a warning.
I left it dispatch_on_die because it's concise with the action role, but I
guess abort_dispatch_in_chains_on_exception is more meaningful. Any other
thoughts?
If you already have your fork ready or differs from mine either
That's the proposition based on Bill's answer:
https://github.com/dpetrov/catalyst-runtime/commit/391a98ed4e386af9ef11a3d4ea979f1e6a3c51f4
Any thoughts?
On Tue, May 14, 2013 at 6:35 AM, Aristotle Pagaltzis wrote:
> * Tomas Doran [2013-05-10 19:55]:
> > We should make it a config variable that d
The Catalyst team is proud to announce that the latest version of Catalyst
(5.90030) is released on CPAN.
As always you can find full change log bellow.
5.90030 - 2013-04-12
! POSSIBLE BREAKING CHANGE: Removed Regexp dispatch type from core, and
put
it in an external package. If you need R
Just curiosity, does moose-outdated shows any outdated packages or there is
no output?
On Sat, Mar 30, 2013 at 6:50 PM, will trillich
wrote:
> Still digging deeper -- here's the "T"race for right before it tries to
> hit the anonymous closure sub inside make_accessor: Comparing this against
> "S
Hey Anthony,
reading the changelog of the latest version which is available on CPAN, it
seems like it's fixed. Here is the Changelog:
https://metacpan.org/source/DHOSS/Catalyst-View-Email-0.33/Changes
Cheers,
Dimitar
On Tue, Mar 5, 2013 at 4:06 PM, Anthony Gladdish <
anthony.gladd...@newcastle.
It should be pretty straightforward.
Take a look for example:
https://github.com/dpetrov/formhandler-example/blob/master/lib/MyApp/View/TT.pm
which
defines a vmethod and here is example usage:
https://github.com/dpetrov/formhandler-example/blob/master/root/bookdb/book/list.tt
.
I think there wewe
I would also recommend to take a look at CatalystX::Resource. It's
fantastic module which will save you writing a lot of code. Also you can
check http://formhandler-perl.dotcloud.com/ for some examples.
Cheers,
Dimitar
On Wed, Jan 16, 2013 at 12:24 PM, Jacinta wrote:
> On 16/01/13 21:58, Lukas
Hello Thag,
I think plugin is the wrong approach here. Plugins seemed to be good idea
in the past, but now they are recommended only if you mess with the
internals.
I think the recommended think to send emails within Catalyst application is
either:
a) https://metacpan.org/module/Catalyst::View::E
Hello Peter,
There is a trait (
https://metacpan.org/module/Catalyst::TraitFor::Controller::reCAPTCHA) for
reCAPTCHA (http://www.google.com/recaptcha) already. I would probably start
from there.
On Fri, Dec 14, 2012 at 10:33 AM, peterp...@bk.ru wrote:
> Hi!
> Needed the captcha for project. Ma
Hey Craig,
we've missed the first few articles, however we are going to make till the
end fo the month. Each day will reveal the next one :)
On Thu, Dec 6, 2012 at 6:27 PM, Len Jaffe wrote:
>
>
> On Thu, Dec 6, 2012 at 12:23 PM, Craig Chant <
> cr...@homeloanpartnership.com> wrote:
>
>> I’m a
The was ;) But the Advent Calendar is fun and reallyreally useful! :) So
YES, Please!
On Fri, Nov 16, 2012 at 5:50 PM, John SJ Anderson wrote:
>
> On Nov 16, 2012, at 8:39 AM, John Napiorkowski wrote:
>
> > Lets here your thoughts on the matter!
>
>
> Wasn't the final entry in last year's Cat A
Hello Anthony,
I think the catalyst object is not called Catalyst but c, this you need [%
c.uri_for(...) %] or you can use [% c.uri_for_action(...) %] to point to
particular action.
You could change that setting the CATALYST_VAR into your view configuration
(as shown here https://metacpan.org/modu
Crag,
would you mind stopping in #catalyst onto irc.perl.org it would probably be
easier. For instant chat you can follow this link
http://chat.mibbit.com/#catal...@irc.perl.org
Cheers
On Wed, Oct 31, 2012 at 10:51 AM, Craig Chant wrote:
> SQL injection by whom and how?
>
> I can't get the te
Just to add that version 5.90018 has been released which I guess fix that
issue.
Cheers,
Dimitar
On Tue, Oct 23, 2012 at 10:26 PM, Tomas Doran wrote:
>
> On 22 Oct 2012, at 07:48, Siddhartha wrote:
>
> > Hi
> >
> >
> > I have problem to install Catalyst-Runtime 5.90017 on OpenSUSE 12.1
> > Any
Hey Bill,
I think t0m fixed that a week ago in trunk and it should be working. You
might want to check the trunk of the Catalyst and the Plugin and to see if
it works for you and probably ask t0m to upload new version on CPAN.
Here are the changes:
http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=c
Or you could ptobably generate them on the fly without reloading the page?
On Sep 24, 2012 9:17 PM, "Rob Brown" wrote:
> Hi Gordon,
>
> Not quite the best place to be asking, but you want something like...
>
>
>
> HTML::FormHandler allows you to set javascript actions in the field
> definitions.
oader version and date are going to be different.
You are not suppose to editi anything above so I guess you made some change
above the line and there is mismatch with the md5sum?
Cheers,
Dimitar
On Thu, Aug 30, 2012 at 1:26 PM, Octavian Rasnita wrote:
> **
> *From:* Dimitar Petrov
>
>
>
Hello,
you can pass a use_moose => 1 option to the make_schema_at as it's
described in the documentation here
https://metacpan.org/module/DBIx::Class::Schema::Loader#make_schema_at
However if you have already created the schema on your dev machine and you
checkout the code on another machine, it'
I think that the method is used by many people and it was discussed that
the set_authenticated shouldn't be documented as internal... so I guess
what Tom means is "well volunteered" for fixing the documentation :)
On Fri, Jul 13, 2012 at 10:36 AM, Sergey Dmitriev <
sergey.program...@gmail.com> wro
It should be back in a while.
Cheers,
Dimitar
On Mon, Jul 2, 2012 at 10:11 AM, wrote:
> Just in case nobody has noticed the Catalyst WiKi is down and has been for
> at least a day.
>
>
> ___
> List: Catalyst@lists.scsys.co.uk
> Listinfo: http://lists.
Hello Kenneth,
actually many_to_many helpers are not considered as relationships. It's
just a helper.
What are you trying to achieve? Get all roles for given user? Does
$c->model('authdb::User')->find({username => $username})->roles do the
trick?
Cheers,
Dimitar
On Thu, May 31, 2012 at 10:38 PM,
There was an article about Starman and Apache into the last year Advent
Calendar. Here is the link:
http://www.catalystframework.org/calendar/2011/16
Cheers
On Tue, May 15, 2012 at 3:20 PM, Bill Moseley wrote:
>
>
> On Thu, May 3, 2012 at 2:24 AM, Octavian Rasnita wrote:
>
>> Hi all,
>>
>> Does
You can do that also into your template file: [% SET pager = rs.pager %]
Cheers
On Fri, Apr 27, 2012 at 10:30 PM, Kenneth S Mclane wrote:
> That was the clue I needed. There are a few pieces to this that I could
> not find all in one place. Here is working code for the next poor person
> trying
It probably would be easier if you join #catalyst at irc.perl.org
Cheers,
Dimitar
On Thu, Mar 8, 2012 at 9:17 PM, Martin Gillmaier wrote:
> **
>
> hi again!
>
> nobody has an idea or had the same bahavior?
>
> regards,
> maddin
>
> > Thanks for your reply.
> >
> > I couldn't imagine all the brow
I could probably help, also we can add a new theme for MojoMojo
Dimitar
On Thu, Mar 8, 2012 at 9:50 AM, Tobias Kremer wrote:
> > It's all live deploy, so try not to break anything :-)
>
> Cheers, Devin! I'll see what I can do. ;-)
>
> --Toby
>
> ___
>
nd joining #catalyst at irc.perl.org and discuss that over
there? :)
PS: Both designs are great... +1 vote for version 1 :)
Cheers,
Dimitar
On Wed, Mar 7, 2012 at 11:35 AM, Tobias Kremer wrote:
> On Wed, Mar 7, 2012 at 8:51 AM, Dimitar Petrov wrote:
> > I've asked yesterday at #cat
I've asked yesterday at #catalyst and it seems to be unmodified mojomojo
installation. The reason it's 503ing sometimes is probably memory leak. You
can ask there to get more information.
Dimi
On Tue, Mar 6, 2012 at 8:07 PM, Tobias Kremer wrote:
> If you point me to a repo of the site...
>
> --T
> Padraig.
>
>
> On Mon, Mar 5, 2012 at 6:00 PM, Dimitar Petrov wrote:
>
>> Hi Padraig,
>>
>> that should be fixed in the latest release (5.90011). You can grab the
>> source code from the repo and test it if you wish. Here is the
>> repository: git://git.s
Hi Padraig,
that should be fixed in the latest release (5.90011). You can grab the
source code from the repo and test it if you wish. Here is the
repository: git://git.shadowcat.co.uk/catagits/Catalyst-Runtime
Cheers,
Dimi
On Tue, Feb 21, 2012 at 2:09 PM, Padraig <2padr...@gmail.com> wrote:
> H
I think the latest commit actually fixes that issue (thanks to t0m). You
can check out here:
https://github.com/rafl/catalyst-runtime/commit/a8946dc8b4ba4c46b4db564b8f9692d48cc7a62f
Cheers
On Thu, Mar 1, 2012 at 9:09 AM, Felix Ostmann wrote:
> Plz dont change to $FindBin::RealBin/.. ! That will
eb 17, 2012 at 12:03 PM, Dimitar Petrov wrote:
> As far as I know that feature is broken..
> you can check the bug here:
> https://rt.cpan.org/Public/Bug/Display.html?id=59595
>
> What I usually do is after the login is successful I add:
> $c->session->{remember} =
As far as I know that feature is broken..
you can check the bug here:
https://rt.cpan.org/Public/Bug/Display.html?id=59595
What I usually do is after the login is successful I add:
$c->session->{remember} = 1 if $c->req->param('remember');
and then in MyApp.pm I override calculate_extended_sessio
You might want to check this blog post also:
http://www.modernperlbooks.com/mt/2011/11/parallelism-and-test-suites.html
Cheers
On Sun, Dec 4, 2011 at 10:49 AM, Jason Galea wrote:
> On Sun, Dec 4, 2011 at 7:10 PM, Tomas Doran wrote:
>>
>>>
>>> On 4 Dec 2011, at 04:13, Jason Galea wrote:
>>>
>>>
Hello all,
as you probably know today is 1st of December and traditionally starts the
Catalyst Advent Calendar.
(the calendar is available here:
http://www.catalystframework.org/calendar/2011)
Unfortunately, we're a little bit late rigth now and we need some help
making the first few articles.
Yo
Hello all,
as you probably know today is 1st of December and traditionally starts the
Catalyst Advent Calendar.
(the calendar is available here:
http://www.catalystframework.org/calendar/2011)
Unfortunately, we're a little bit late rigth now and we need some help
making the first few articles.
Yo
Since Catalyst 5.9x supports psgi natively you can check these docs
here also:
https://metacpan.org/module/Catalyst::Upgrading#Upgrading-the-PSGI-Engine
You want to skip the step (Then you’ll want to set-up support for PSGI. To
do that, you can simply:) from the blog post and just write your ow
Hello Fragzal,
a Result basicly represents a single row, while ResultSet is an object which
represents a database query.
Your should put your confirmAndGetUser method into
MyApp::Schema::ResultSet::User, like:
package MyApp::Schema::Result::User;
use Moose;
BEGIN { extends 'DBIx::Class::ResultSet
I've just tested both with Catalyst 5.90002 and 5.80032 seems to be just
fine?
Here is the output and the Login.pm controller.
# Login controller
package testapp::Controller::Login;
use Moose;
use namespace::autoclean;
BEGIN { extends 'Catalyst::Controller' }
sub get_sess :Chained('/') :PathPart
56 matches
Mail list logo