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] complex search using Catalyst::Controller::DBIC::API::REST

2017-03-23 Thread Hartmaier Alexander
Hi, please include your controller config and the http call. Best regards, Alex On 2017-03-19 04:49, Rajesh Kumar Mallah wrote: Hi , Including member_balance(member_id) in 'search_exposes' config param did help to proceed to some extent , but the function is being prefixed by the table alias

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: https://metacpan.org/pod/Catalyst::Controller::DBIC::API#count_arg,-page_arg,-select_arg,-search_arg,-grouped_by_arg,-ordered_by_arg,-prefetch_arg,-as_arg,-tota

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 20

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 c

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 m

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, Raje

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' => s

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 th

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 p

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::

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 stri

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 >

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.   $c->detach(‘my_c

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] [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 Nachricht-

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

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 cat

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 mo

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 r

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 confidenti

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 confidenti

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 downgradin

RE: [Catalyst] OT: YUI v Ext JS

2008-02-05 Thread Hartmaier Alexander
I've asked myself the same questions some weeks ago and took the time to read, ask and compare those two. I ended up with ExtJS because of the fabulous grid component which my app uses heavily. I've redone only the status (it’s a network monitoring tool) page which now fetches json data, which i

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 T

RE: [Catalyst] Multiple Views in Catalyst (FW: Catalyst-dev Digest, Vol 29, Issue 14)

2007-11-30 Thread Hartmaier Alexander
Hi David! Can you point me to a doc how to setup irc with Net::Proxy? At the moment I have a firewall rule for irc.perl.org, but the ips change from time to time which is annoying. Thanks, Alex -Original Message- From: David Morel [mailto:[EMAIL PROTECTED] Sent: Thursday, November 29,

[Catalyst] Catalyst::View::Email 0.10

2007-11-22 Thread Hartmaier Alexander
Catalyst::View::Email 0.10 has finally been released and hit CPAN just some minutes ago. -Alex From: Hartmaier Alexander [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 30, 2007 8:18 PM To: The elegant MVC web framework Subject: [Catalyst] Catalyst::View::Email 0.0_02 I got my

RE: [Catalyst] Fancy graphing -> like Google Finance, anybody done it?

2007-11-16 Thread Hartmaier Alexander
I do network monitoring graphs, great links guys! Thanks! -Alex -Original Message- From: Mesdaq, Ali [mailto:[EMAIL PROTECTED] Sent: Friday, November 16, 2007 8:19 PM To: The elegant MVC web framework; The elegant MVC web framework Subject: RE: [Catalyst] Fancy graphing -> like Google Fi

[Catalyst] Catalyst::View::Email 0.09999_02

2007-10-30 Thread Hartmaier Alexander
I got my pause account and uploaded 0.0_02 today. Please test and give us feedback! -Alex From: Hartmaier Alexander [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 7:05 PM To: The elegant MVC web framework Subject: [Catalyst] Catalyst::View::Email 0.0_01 Hi! I’ve

[Catalyst] Catalyst::View::Email 0.09999_01

2007-10-22 Thread Hartmaier Alexander
Hi! I’ve refactored C::V::Email with the help of J. Shirley (thanks!). The API has been cleaned up so minimal changes to your code might be needed (especially if you use C::V::Email::Template where most of the changes were made). The pod has been enhanced too to clarify the needed minimum c

RE: [Catalyst] New auth stuff and LDAP store...

2007-10-22 Thread Hartmaier Alexander
e... On 10/22/2007 09:02 AM, Hartmaier Alexander wrote: > It works for me without changing anything. > What has been changed to work with the new auth api? > The 0.05 (old) release worked with the new api, but used a deprecated method and had out-of-date documentation. The basic chan

RE: [Catalyst] New auth stuff and LDAP store...

2007-10-22 Thread Hartmaier Alexander
store... On 10/19/2007 03:42 AM, Hartmaier Alexander wrote: > I will test it now. > > BTW the Changes file has a wrong date for 0.0600. > Thanks. I'll change in svn do it is correct for the next release. -- Peter Karman . [EMAIL PROTECTED] .

RE: [Catalyst] New auth stuff and LDAP store...

2007-10-19 Thread Hartmaier Alexander
I will test it now. BTW the Changes file has a wrong date for 0.0600. -Alex -Original Message- From: Peter Karman [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18, 2007 10:49 PM To: The elegant MVC web framework Subject: Re: [Catalyst] New auth stuff and LDAP store... Thanks to Ada

RE: [Catalyst] TT and UNICODE: Garbled special characters

2007-10-16 Thread Hartmaier Alexander
Great, thanks Carl! I was at the conference but didn't take a note of the urls. -Alex -Original Message- From: Carl Franks [mailto:[EMAIL PROTECTED] Sent: Thursday, September 06, 2007 10:55 AM To: The elegant MVC web framework Subject: Re: [Catalyst] TT and UNICODE: Garbled special char