Re: [Catalyst] Path is /

2011-09-06 Thread Dimitar Petrov
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('/')

Re: [Catalyst] fetching a model instance from a model instance

2011-10-27 Thread Dimitar Petrov
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

Re: [Catalyst] Cat App on dotcloud

2011-11-01 Thread Dimitar Petrov
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

[Catalyst] Catalyst Advent Calendar - need HELP (again)

2011-12-01 Thread Dimitar Petrov
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.

[Catalyst] Catalyst Advent Calendar - need HELP (again)

2011-12-01 Thread Dimitar Petrov
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.

Re: [Catalyst] Re: Catalyst::Test Test::DBIx::Class

2011-12-04 Thread Dimitar Petrov
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 li...@eightdegrees.com.auwrote: On Sun, Dec 4, 2011 at 7:10 PM, Tomas Doran bobtf...@bobtfish.net wrote: On 4 Dec 2011,

Re: [Catalyst] Catalyst 5.90010 server must be in CWD to run?

2012-03-01 Thread Dimitar Petrov
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 ostm...@websuche.de wrote: Plz dont change to

Re: [Catalyst] Wiki down

2012-03-06 Thread Dimitar Petrov
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 tobias.kre...@gmail.comwrote: If you point me to a repo

Re: [Catalyst] Wiki down

2012-03-07 Thread Dimitar Petrov
#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 tobias.kre...@gmail.comwrote: On Wed, Mar 7, 2012 at 8:51 AM, Dimitar Petrov mita...@gmail.com wrote: I've asked

Re: [Catalyst] Wiki down

2012-03-08 Thread Dimitar Petrov
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 tobias.kre...@gmail.comwrote: It's all live deploy, so try not to break anything :-) Cheers, Devin! I'll see what I can do. ;-) --Toby

Re: [Catalyst] Requests get rendered twice.. TT-Template (View::HTML-process)

2012-03-08 Thread Dimitar Petrov
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 gillm...@googlemail.comwrote: ** hi again! nobody has an idea or had the same bahavior? regards, maddin Thanks for your reply. I couldn't imagine all

Re: [Catalyst] Paging problem

2012-04-27 Thread Dimitar Petrov
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 ksmcl...@us.ibm.comwrote: 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

Re: [Catalyst] upstart script for Starman-based app?

2012-05-16 Thread Dimitar Petrov
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 mose...@hank.org wrote: On Thu, May 3, 2012 at 2:24 AM, Octavian Rasnita

Re: [Catalyst] Deep Recusion error

2012-05-31 Thread Dimitar Petrov
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,

Re: [Catalyst] Wiki is Temporarily Unavailable

2012-07-02 Thread Dimitar Petrov
It should be back in a while. Cheers, Dimitar On Mon, Jul 2, 2012 at 10:11 AM, sc...@simpzoid.com 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:

Re: Re [Catalyst] How to update data of already logged-in user?

2012-07-13 Thread Dimitar Petrov
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 wrote:

Re: [Catalyst] (no subject)

2012-08-30 Thread 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,

Re: [Catalyst] (no subject)

2012-08-31 Thread Dimitar Petrov
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 orasn...@gmail.comwrote: ** *From:* Dimitar Petrov mita

Re: [Catalyst] HTML::FormHandler onchange event

2012-09-24 Thread Dimitar Petrov
Or you could ptobably generate them on the fly without reloading the page? On Sep 24, 2012 9:17 PM, Rob Brown r...@intelcompute.com wrote: Hi Gordon, Not quite the best place to be asking, but you want something like... select name=retailer onChange=parent.location='/**

Re: [Catalyst] Progress bar

2012-10-17 Thread Dimitar Petrov
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:

Re: [Catalyst] Catalyst-Runtime 5.90017 isntallation problem

2012-10-24 Thread Dimitar Petrov
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 bobtf...@bobtfish.net wrote: On 22 Oct 2012, at 07:48, Siddhartha wrote: Hi I have problem to install Catalyst-Runtime 5.90017 on OpenSUSE

Re: [Catalyst] Unable to output anything in Root.pm - 'auto'

2012-10-31 Thread Dimitar Petrov
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 cr...@homeloanpartnership.com wrote: SQL injection by whom

Re: [Catalyst] Access Catalyst context object from script

2012-10-31 Thread Dimitar Petrov
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

Re: [Catalyst] Its time for Advent again

2012-11-16 Thread Dimitar Petrov
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 geneh...@genehack.orgwrote: On Nov 16, 2012, at 8:39 AM, John Napiorkowski jjn1...@yahoo.com wrote: Lets here your thoughts on the matter! Wasn't the

Re: [Catalyst] Advent 2012 is launched!

2012-12-06 Thread Dimitar Petrov
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 lenja...@jaffesystems.com wrote: On Thu, Dec 6, 2012 at 12:23 PM, Craig Chant

Re: [Catalyst] The optimal captcha

2012-12-14 Thread Dimitar Petrov
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 peterp...@bk.ru wrote: Hi! Needed the captcha

Re: [Catalyst] Catalyst::Plugin::Email, TT, html config problem

2012-12-18 Thread Dimitar Petrov
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)

Re: [Catalyst] HTML::FormHandler and the Catalyst stash

2013-01-16 Thread Dimitar Petrov
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 jar...@perltraining.com.auwrote:

Re: [Catalyst] View Helpers?

2013-02-14 Thread Dimitar Petrov
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

Re: [Catalyst] C::V::Email and Email::Sender 0.120002 - 1.300003

2013-03-05 Thread Dimitar Petrov
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

Re: [Catalyst] Re: Argh! Trying to upgrade Catalyst -- getting Can't use string as a HASH ref...

2013-03-30 Thread Dimitar Petrov
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 will.trill...@serensoft.comwrote: Still digging deeper -- here's the Trace for right before it tries to hit the anonymous closure sub inside make_accessor:

[Catalyst] [ANNOUNCE] Catalyst-Runtime 5.90030

2013-04-12 Thread Dimitar Petrov
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

Re: [Catalyst] Re: Chained and exceptions

2013-05-14 Thread Dimitar Petrov
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 pagalt...@gmx.dewrote: * Tomas Doran bobtf...@bobtfish.net [2013-05-10 19:55]: We

Re: [Catalyst] Re: Chained and exceptions

2013-05-14 Thread Dimitar Petrov
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

Re: [Catalyst] Re: mod_fastcgi binaries for Win32

2013-05-21 Thread Dimitar Petrov
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 ross.attr...@gmail.com wrote: Please ignore this - I found what I was looking for at the fastcgi site:

Re: [Catalyst] Re: mod_fastcgi binaries for Win32

2013-05-22 Thread Dimitar Petrov
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. On Wed, May 22, 2013 at 3:56 PM, Dimitar Petrov mita...@gmail.com wrote: It would be nice if you can either

Re: [Catalyst] New design

2013-07-23 Thread Dimitar Petrov
It's cool indeed. Great work dude, great work! On Tue, Jul 23, 2013 at 10:51 AM, Chankey Pathak chankey...@gmail.comwrote: It's cool! I liked it :) Good job! On Tue, Jul 23, 2013 at 2:18 PM, Mark Keating m.keat...@shadowcat.co.ukwrote: The nice chaps at Evozon have recently been

Re: [Catalyst] Advent 2013 launched !!!

2013-12-02 Thread Dimitar Petrov
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. dim0...@gmail.com 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

Re: [Catalyst] Advent 2013 launched !!!

2013-12-02 Thread Dimitar Petrov
...@yahoo.com wrote: 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 mita...@gmail.com wrote: I fixed the article names, thanks for spotting that. Should be just fine now. Cheers

Re: [Catalyst] Advent 2013 launched !!!

2013-12-03 Thread Dimitar Petrov
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 fireart...@gmail.com wrote: BTW, the XML

Re: [Catalyst] Advent 2013 launched !!!

2013-12-03 Thread Dimitar Petrov
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 mita...@gmail.com wrote: That seems like the feed takes always the last 5 articles, so those articles are the one planned for 18,19,20 Dec

Re: [Catalyst] no such table: book - catalyst tutorial Chapter03

2014-04-29 Thread Dimitar Petrov
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 moje_meno2...@yahoo.com wrote: While learning from catalysts tutorial I got this massage in Chapter03(code

Re: [Catalyst] [OT] catalyst hosting

2015-02-24 Thread Dimitar Petrov
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 fluca1...@infinito.it wrote: Hi, having a catalyst application, which hosting provider would you suggest to use for it? I mean, without starting a flame on

Re: [Catalyst] usage / example for Catalyst::Controller::DBIC::API::REST

2017-02-28 Thread Dimitar Petrov
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_returns=holder1_returns=member_id_id=368 2. If it's a primary key or a unique key, you can easily fetch it:

Re: [Catalyst] complex search using Catalyst::Controller::DBIC::API::REST

2017-03-01 Thread Dimitar Petrov
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,

Re: [Catalyst] transforming empty values in request to perl's undef

2017-03-03 Thread Dimitar Petrov
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

Re: [Catalyst] transforming empty values in request to perl's undef

2017-03-03 Thread Dimitar Petrov
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',

Re: [Catalyst] Access-Control-Allow-Origin

2018-06-15 Thread Dimitar Petrov
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