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

2017-04-04 Thread Hartmaier Alexander
Have you tried using the search parameter with JSON encoded parameters as suggested before? DBI::API doesn't guess if the search parameter you've provided is a column name or a db function. Best regards, Alex On 2017-03-28 18:58, Rajesh Kumar Mallah wrote: Hi , Thanks for the response.

Re: [Catalyst] Paging support in Catalyst::Controller::DBIC::API

2017-03-23 Thread Hartmaier Alexander
Hi, it does return it in the totalcount property by default. The name can be configured with the 'total_entries_arg' config parameter:

Re: [Catalyst] JSONP support Catalyst::Controller::DBIC::API

2017-03-17 Thread Hartmaier Alexander
If someone wants JSONP support, yes. Best regards, Alex On 2017-03-16 18:07, Rajesh Kumar Mallah wrote: Ok are you suggesting DBIC::API needs to be enhanced for JSONP support ? Regds Mallah. Looks like a code injection attack vector to me... Patch + Tests for DBIC::API welcome! On

Re: [Catalyst] JSONP support Catalyst::Controller::DBIC::API

2017-03-14 Thread Hartmaier Alexander
Looks like a code injection attack vector to me... Patch + Tests for DBIC::API welcome! On 2017-03-09 11:05, Rajesh Kumar Mallah wrote: For the time being i have modified and solved my issue as below: sub end : Private { my ( $self, $c ) = @_; ## # code for manipulating

Re: [Catalyst] Change of server

2017-03-06 Thread Hartmaier Alexander
Don't use mod_perl! Look at https://metacpan.org/pod/distribution/Catalyst-Manual/lib/Catalyst/Manual/Deployment/Apache/FastCGI.pod Best regards, Alex On 2017-03-03 06:02, "Andrés Chandía" wrote: Hi there, I had a Catalyst application working on a debian 7 perl 5.14 apache 2.4, but I had to

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

2017-03-06 Thread Hartmaier Alexander
Hi Mallah, doc patches welcome! I know they are lacking. Best regards, Alex On 2017-03-01 07:43, Rajesh Kumar Mallah wrote: Dear Dimitar/List , indeed the example 1 below was correct. The confusion resulted form multiple mistakes in my observations and actions. Sorry for the noise. Now

Re: [Catalyst] post processing filter in Catalyst apps

2017-02-22 Thread Hartmaier Alexander
Hi, if you want to do this for to use caching but still force the files to get downloaded on a new app version I'd suggest appending a query parameter, we use ?v=[% constants.version %] which is set in the view: __PACKAGE__->config( CONSTANTS => { version => $Our::App::VERSION },

Re: [Catalyst] Applying a global SQL filter on REST controller.

2017-02-06 Thread Hartmaier Alexander
Hi Mallah, typically with DBIx::Class you would have a Chained root action in your controller which puts an already filtered DBIx::Class resultset on the stash and have all other action chained off this one. DBIC::API provides generate_rs [1] to enable you to do this. On 2017-02-06 07:12,

Re: [Catalyst] soliciting feedback for alternative method attributes syntax

2016-01-11 Thread Hartmaier Alexander
Hi John, the first question that came to my mind was: Why is it called At, both the module as well as the method attribute? The 'Naming your Arguments' section is confusing because it populates a variable named '$id' but uses '$_{id}' for the response. I understand that you want to show that

Re: [Catalyst] HTML::FormHandler setting html attributes programatically in form class

2016-01-11 Thread Hartmaier Alexander
Hi, I've solved this by encapsulating the logic in the form class, this way it is testable completely decoupled from Catalyst. Just access the passed object or define additional attributes in your form class that are populated by the Catalyst app on instantiation. With a before 'set_active' =>

Re: [Catalyst] Keep Plack -r working when commandline closed...?

2015-10-29 Thread Hartmaier Alexander
I'm wondering why you not just use an init script or systemd service unit to start/stop/restart your app? Best regards, Alex On 2015-10-27 15:55, Len Jaffe wrote: If all you want is to start a process and leave, then huponexit and/or nohup+background are fine. If you want to start a process

Re: [Catalyst] A Catalyst::Plugin::Session Alternative: Web::Starch

2015-07-09 Thread Hartmaier Alexander
Hi Aran, did you look at Plack::Session if you want something decoupled from Catalyst? I haven't used it so far as I don't require sessions that are shared with non-Catalyst stuff but it might be a better base for a futureproof session module. On 2015-07-09 02:17, Aran Deltac wrote: Hey guys,

Re: [Catalyst] Where best to store database connection information?

2015-02-17 Thread Hartmaier Alexander
Note that Catalyst itself doesn't use any config loading, Catalyst::Plugin::ConfigLoader does. This then uses different config file format modules depending on the file extension. On 2015-02-16 18:10, Octavian Rasnita wrote: Catalyst uses Config::General to read .conf files. If Config::General

Re: [Catalyst] Overloading delete and update CRUD methods - but where?

2014-08-12 Thread Hartmaier Alexander
Hi Andy, I suggest to do the override in the model or business model layer, not dbic::api itself. This ensures that no other code deletes a row. Cheers, Alex On 2014-08-08 10:16, Andy Holyer wrote: I'm working on a Catalyst application which mainly uses Catalyst::Controller::DBIC:API::REST to

Re: [Catalyst] DBIx::Class::Core does not define $DBIx::Class::Core::VERSION--version check failed at /usr/local/lib/perl5/site_perl/5.16/Module/Runtime.pm line 386.

2014-02-17 Thread Hartmaier Alexander
Update Moose, I had the same problem when I updated some other modules but not Moose. On 2014-02-17 18:20, Alex Povolotsky wrote: Hello I've started an application with Catalyst, added some fairly simple and tested code, and got an error Couldn't instantiate component Monitor::Model::DB,

Re: [Catalyst] Changing format of date field

2014-01-08 Thread Hartmaier Alexander
On 2014-01-08 18:19, Adam Witney wrote: On 7. 1. 2014 9:55, neil.lunn wrote: 3. You *Are* going to get back a string in the raw params. So what you need to do is parse that format into a DateTime object again when submitting back to model or wherever else you want to use it as an object.

Re: [Catalyst] Changing format of date field

2014-01-08 Thread Hartmaier Alexander
On 2014-01-08 18:56, Adam Witney wrote: On 8. 1. 2014 17:31, Hartmaier Alexander wrote: On 2014-01-08 18:19, Adam Witney wrote: On 7. 1. 2014 9:55, neil.lunn wrote: 3. You *Are* going to get back a string in the raw params. So what you need to do is parse that format into a DateTime

Re: [Catalyst] Can't detach from root / create action object

2013-11-28 Thread Hartmaier Alexander
On 2013-11-28 10:43, Craig Chant wrote: Hi Charlie, So it is a URI for a method name in the controller class object you wish to execute. So rather than matching it as a Path URL, it matches it a as a 'ControllerClass/Method' So for the URL path in my case would be '/complianceupdates/' , but

Re: [Catalyst] Can't detach from root / create action object

2013-11-27 Thread Hartmaier Alexander
On 2013-11-27 13:00, Craig Chant wrote: I seem to be going round in circles unable to understand how I create an action object so I can pass it to detach as the IRC has told me to pass in an action and not what I thought which was controller_name, subroutine. E.G.

AW: [Catalyst] [Announce] Catalyst-Runtime-5.7015

2008-10-16 Thread Hartmaier Alexander
On startup of the test server I get the following message with 5.8000_02. Can't locate object method follow_symlinks via package Catalyst::Engine::HTTP::Restarter::Watcher at /usr/local/share/perl/5.8.8/Catalyst/Engine/HTTP/Restarter/Watcher.pm line 119. -Alex -Ursprüngliche

Re: [Catalyst] [Announce] Catalyst-Runtime-5.7015

2008-10-16 Thread Hartmaier Alexander
He mentioned 5.8000_02 was well -Alex -Ursprüngliche Nachricht- Von: J. Shirley [mailto:[EMAIL PROTECTED] Gesendet: Thursday, October 16, 2008 5:14 PM An: The elegant MVC web framework Betreff: Re: [Catalyst] [Announce] Catalyst-Runtime-5.7015 On Thu, Oct 16, 2008 at 7:58 AM, Hartmaier

AW: [Catalyst] Sending E-Mails

2008-10-02 Thread Hartmaier Alexander
Would be great if you had told us how you're sending the mails. Catalyst::View::Email? Regards, Alex -Ursprüngliche Nachricht- Von: goetz [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 02. Oktober 2008 12:32 An: The elegant MVC web framework Betreff: [Catalyst] Sending E-Mails Hallo

AW: AW: [Catalyst] Sending E-Mails

2008-10-02 Thread Hartmaier Alexander
Plugin::Email is deprecated, use View::Email instead. Regards, Alex -Ursprüngliche Nachricht- Von: goetz [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 02. Oktober 2008 14:26 An: The elegant MVC web framework Betreff: Re: AW: [Catalyst] Sending E-Mails Thanks for the hint. But nothing

RE: [Catalyst] Announce: Instant AJAX web front-end for DBIx::Class

2008-08-20 Thread Hartmaier Alexander
Hi Oliver! You're module is GREAT! I've done something similar years ago in Embperl which takes a table name and discovers its columns and datatypes and uses a helper table for storing the relationships. Last week I finally started porting it to Catalyst and though about doing something your

AW: [Catalyst] Announce: Catalyst::View::RRDGraph

2008-08-07 Thread Hartmaier Alexander
Hi Jose! Our network monitoring tool used rrd about seven years ago when I took over the development of it. Soon later I've started generation the graphs myself using GD::Graph. About two years ago I moved the graph generation code in a module. For my catalyst apps I parse the graph urls with a

RE: [Catalyst] Sending email from a Catalyst app

2008-07-21 Thread Hartmaier Alexander
*** T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien Handelsgericht Wien, FN 79340b *** Notice: This e-mail contains information that is confidential and may be privileged. If you are not the intended recipient, please

RE: [Catalyst] [Announce] Catalyst-Runtime 5.7099_01 - Developer Release

2008-06-27 Thread Hartmaier Alexander
*** T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien Handelsgericht Wien, FN 79340b *** Notice: This e-mail contains information that is confidential and may be privileged. If you are not the intended recipient, please

RE: [Catalyst] Catalyst::Authentication::Credential::LDAP

2008-06-25 Thread Hartmaier Alexander
Hi! Imho thats very useful! Some generic plugin or extending C::P::Auth to combine two auth stores, one for authentication and one as source for the roles etc. would be great! -Alex -Original Message- From: Johannes Plunien [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2008 6:46

RE: [Catalyst] Invalid session ids being generated

2008-05-09 Thread Hartmaier Alexander
Delete the session cache file! I had a similar problem. -Alex -Original Message- From: Ryan Pack [mailto:[EMAIL PROTECTED] Sent: Friday, May 09, 2008 1:03 AM To: The elegant MVC web framework Subject: RE: [Catalyst] Invalid session ids being generated I was able to fix it by

RE: [Catalyst] DBIC ResultSet - what columns in it?

2007-12-19 Thread Hartmaier Alexander
sleeping longer + coffee does the trick for me ;-) Also don’t ask after working for more than ten hours, that makes me blind as well (mst can tell you a thing or two about it...) -Alex -Original Message- From: Silvio Almeida [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 19, 2007

RE: [Catalyst] sending email with attachment

2007-12-17 Thread Hartmaier Alexander
It's a view, not a plugin! View::Email can send attachments, for View::Email::Template you need to create the MIME part with MIME::Creator yourself atm. Patches are welcome ;-) -Alex -Original Message- From: Ash Berlin [mailto:[EMAIL PROTECTED] Sent: Monday, December 17, 2007 4:48 PM