Re: [Catalyst] Static::Simple plugin does not load

2017-04-22 Thread mallah
it did not serve anything, silently. After lots of research, I've found in root directory kdbe.yaml and kdbe.conf, the later is nginx config. Catalyst read it as well as .yaml and somehow it made Static::Simple disappointed so much that it did not serve anything... On 16.04.2017 9:03, Rajesh Kumar

Re: [Catalyst] Change of server

2017-03-03 Thread mallah
ac systemd[1]: Failed to start LSB: Apache2 web server. Mar  3 07:34:03 iac systemd[1]: apache2.service: Unit entered failed state. Mar  3 07:34:03 iac systemd[1]: apache2.service: Failed with result 'exit-code'. El Vie, 3 de Marzo de 2017, 6:33, mallah escribió: The real error message is s

Re: [Catalyst] Change of server

2017-03-02 Thread mallah
The real error message is somewhere try systemctl status apache2 To find the error messages or tail the error Logs.  RegdsMallah Sent from my Samsung Galaxy smartphone. Original message From: Andrés Chandía Date: 3/3/17 10:32 (GMT+05:30) To:

Re: [Catalyst] stash alternative for passing data

2017-05-13 Thread mallah
ou can configure Catalyst::View::JSON to NOT work on the entire stash. See 'expose_stash' in the config: https://metacpan.org/pod/Catalyst::View::JSON On 11/05/17 20:29, Rajesh Kumar Mallah wrote: > > Hi > > We need to pass value of variables from one stage of request > processing

Re: [Catalyst] catalyst authorization , self_check

2017-11-13 Thread Rajesh Mallah
Thanks it did work! and Thanks again for replying so soon! Kind Regards Rajesh Mallah. lib/MyProj/Schema/Result/MyProjUser.pm sub myrolecol { my ($self) = @_; my $log = Log::Log4perl->get_logger(); $log -> debug ("myrolecol has been called!

[Catalyst] catalyst authorization , self_check

2017-11-13 Thread Rajesh Mallah
r.pm and it works well. What i need is similar flexibility to specify the roles of an existing user . I cannot use role_field , role_relation Regds Rajesh Kumar Mallah. Redgrape Technologies ( https://www.redgrape.tech ) Mobile: 09811255597,

Re: [Catalyst] Catalyst based Content Management/Blogging

2018-04-20 Thread Rajesh Mallah
Hi , Please have a look at WebGUI http://www.webgui.org/ I am not sure if it uses catalyst though Regds Rajesh Kumar Mallah. Redgrape Technologies ( https://www.redgrape.tech ) Mobile: 09811255597, Land: 011-49044122

Re: [Catalyst] Overwriting/restoring request data

2018-11-04 Thread Rajesh Mallah
Hi Carl , why not just use sessions which are available irrespective of user is logged in or not $c->session i mean. Regds Rajesh Kumar Mallah. Redgrape Technologies ( https://www.redgrape.tech ) Mobile: 09811255597, Land: 011-49044

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

2017-02-05 Thread Rajesh Kumar Mallah
global level . The controller modules for each database table are being (auto)generated by the helper Catalyst::Helper::Controller::DBIC::API::REST The dataset is being exposed via REST utilising Catalyst::Controller::DBIC::API Can anyone please guide where such a constraint can be put ? Regds Rajesh

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

2017-02-05 Thread Rajesh Kumar Mallah
he controller modules for each database table are > being (auto)generated by the helper > Catalyst::Helper::Controller::DBIC::API::REST The dataset is being exposed > via REST utilising > Catalyst::Controller::DBIC::API > > Can anyone please guide where such a constraint can be pu

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

2017-02-05 Thread Rajesh Kumar Mallah
society_id => $c->user->society_id() } ); } But is it ok to use "PROTECTED METHODS" ? Regds Mallah > > > Ok i do see some light! that I am exploring. > Sorry for the noise i shall post again if i find a > solution or otherwise even. > > > http://s

Re: [Catalyst] post processing filter in Catalyst apps

2017-02-22 Thread Rajesh Kumar Mallah
( disclaimer: I am doing my first catalyst project and was into Mason before). regds mallah. > 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=[% co

Re: [Catalyst] post processing filter in Catalyst apps

2017-02-19 Thread Rajesh Kumar Mallah
gt;> $body =~ s#/static/#/static/ver8291/#g ; >>>> $c->response->output($body); } Thanks. Regds mallah. > > Dear Catalyst Users , > > > What would be a good place to post process the HTML output from > View (TT in my case). > > I would want to replace

Re: [Catalyst] post processing filter in Catalyst apps

2017-02-20 Thread Rajesh Kumar Mallah
Dear Dimitar, the verXXX change everytime there is git commit. I was able to solve my problem completely for development environment. For production i would serve static from from apache or lighttpd with a rewrite rule that would strip off the version numbers. Embedding version number in urls

Re: [Catalyst] Asynch webservices with catalyst

2017-02-28 Thread Rajesh Kumar Mallah
Have you gone through , http://stackoverflow.com/questions/25277158/run-asynchronous-methods-in-catalyst-perl could you elaborate a bit on the real problem? Regds Mallah. > Hi all, > > I know that catalyst provides some basic support for sending asynch > response

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

2017-02-28 Thread Rajesh Kumar Mallah
arameter 'limit' as i configured count_arg as 'limit' I need a simple example on how to pass the search param eg i want to recordset to be restricted to member_id=> 368 could anyone kindly help. I have done my research before approaching this list. regds mallah. __

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

2017-02-28 Thread Rajesh Kumar Mallah
Firstly thanks for the quick reply, http://10.100.102.38:3000/api/rest/general/members/368 does respond with single record. { "data": { "group_id": null, "pan1": null, "mobile2": null, "pan2": null, "pa_city": null, "email": null, "membership_no": null,

Re: [Catalyst] Asynch webservices with catalyst

2017-03-01 Thread Rajesh Kumar Mallah
about usage of Twiggy in Day 12 (Part 3) regds mallah. > Hi all, > > I know that catalyst provides some basic support for sending asynch > responses to clients but the examples & documentation are a bit thin > on the ground. I was wondering if anybody has had much s

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

2017-02-28 Thread Rajesh Kumar Mallah
Now Looking into the test scripts that came with the distribution. Hope to find the solution. > > Firstly thanks for the quick reply, > > > http://10.100.102.38:3000/api/rest/general/members/368 > does respond with single record. > > { > "data": { > "group_id": null, > "pan1": null,

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

2017-02-28 Thread Rajesh Kumar Mallah
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 my primary concern is sorted out. Regds mallah. > There are a couple of ways around that. > > 1. Search for that

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

2017-02-28 Thread Rajesh Kumar Mallah
"holder1": "Smt. Punita Batra" }, { "holder1": "Sh.K C Sardana" }, { "holder1": "Smt. Sunita Mishra" }, { "holder1": "Sh. Vijay Kumar Khanna" }, { "

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

2017-03-01 Thread Rajesh Kumar Mallah
67%', 'search.holder1.-ilike' => '%mis%', 'search.flat_no' => 'A203' }; search.mobile1.-ilike=%25967%25=%25mis%25_no=A203 Regds Mallah. > > Hi , > > In continuation of previous query kindly guide how to do a > anchored or unanchored ilike search using

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

2017-03-01 Thread Rajesh Kumar Mallah
hat 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

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

2017-03-28 Thread Rajesh Kumar Mallah
: DBD::Pg::st execute failed: ERROR: schema "me" does not exist [for Statement "SELECT me.holder1 FROM general.members me WHERE ( ( me.member_balance(member_id) = ? AND me.society_id = ? ) ) ORDER BY member_id" with ParamValues: 1='21', 2='50'] Regds Mallah. > Hi,

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

2017-03-29 Thread Rajesh Kumar Mallah
Thanks , It does return *when* paging related params are passed. I have now used that result in my code. Kind Regds mallah. > Hi, > > it does return it in the totalcount property by default. > > The name can be configured with the 'total_entries_arg' config parameter: > ht

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

2017-03-19 Thread Rajesh Kumar Mallah
to be lazy :p ) regds Rajesh Kumar Mallah. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http

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

2017-03-16 Thread Rajesh Kumar Mallah
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 2017-03-09 11:05, Rajesh Kumar Mallah wrote: >> >> >> &

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

2017-03-17 Thread Rajesh Kumar Mallah
Thanks for clarifying . I shall try to see and explore. regds mallah. > 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 enha

Re: [Catalyst] Static::Simple plugin does not load

2017-04-16 Thread Rajesh Kumar Mallah
ic object (gif,css,js etc). regds mallah. > > Catalyst-Action-RenderView-0.16_1 > Catalyst-Devel-1.39 > Catalyst-Plugin-ConfigLoader-0.34_1 > Catalyst-Plugin-Static-Simple-0.33 > Catalyst-Runtime-5.90114 > > I'll try to debug it out, but maybe some

[Catalyst] Please Help: Aborting a Catalyst request in auto method

2017-04-16 Thread Rajesh Kumar Mallah
://grokbase.com/t/sc/catalyst/083ev978bd/again-die-in-an-action-chain-does-not-break-the-chain is there anything to halt the request after the appropriate HTTP Status and Headers and Body as been setup. Regds Rajesh Kumar Mallah. ___ List: C

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

2017-03-02 Thread Rajesh Kumar Mallah
; equals to ""? Or something else? > > gil > > On Thu, Mar 02, 2017 at 10:25:27AM -0500, Rajesh Kumar Mallah wrote: >> >> Hi , >> >> I want to transform request parameters in GET & POST requests >> so that any thing whic

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

2017-03-09 Thread Rajesh Kumar Mallah
$body = \$c->res->body; $$body = "$cb ($$body);"; $c->res->body($$body); } } regds mallah. > Hi , > > How to get JSON response body wrapped in a callback function > call (a.k.a JSONP) when using Catalyst::Controller::DBIC::API::REST >

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

2017-03-14 Thread Rajesh Kumar Mallah
Hi , How to perform below search: select member_id,holder1 from general.members where member_balance(member_id , '2017-03-14') < 0 ; there is a function on LHS of the condition Regds Mallah. > Hello Rajesh, > > C::C::DBIC::API supports that under the hood, so not sure

Re: [Catalyst] Change of server

2017-03-03 Thread Rajesh Kumar Mallah
ariable ${APACHE_LOG_DIR} is not defined >> AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf: >> Invalid Mutex directory in argument file:${APACHE_LOCK_DIR} >> >> >> El Vie, 3 de Marzo de 2017, 11:15, mallah escribió: >> Have you tried starting apa

Re: [Catalyst] Change of server

2017-03-03 Thread Rajesh Kumar Mallah
to start using the command above. the above command executes in a subshell , first part populates env variable , -f is path to main config -e sets level to debug and -X prevents from detaching from terminal. regds mallah. > > > Active Internet connections (only servers) &g

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

2017-03-03 Thread Rajesh Kumar Mallah
Thanks, It helps. regds Mallah. > 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+$/, >

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

2017-03-03 Thread Rajesh Kumar Mallah
Thanks for that , it looks elegant . Could you please send some pointer to docs for Traits approach. regds mallah. > 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::Forc

Re: [Catalyst] Change of server

2017-03-03 Thread Rajesh Kumar Mallah
any idea why the error below ? -e: command not found ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev

Re: [Catalyst] Change of server

2017-03-03 Thread Rajesh Kumar Mallah
mctl try to start using the command above. the above command executes in a subshell , first part populates env variable , -f is path to main config -e sets level to debug and -X prevents from detaching from terminal. regds mallah. > > > Active Internet connections (only server

Re: [Catalyst] Change of server

2017-03-03 Thread Rajesh Kumar Mallah
I assume the command keeps running in that state and while it is doing so , can you check if apache2 listening on configured port (80) and if it is so does , is it serving the app in expected manner ? regds mallah. ___ List: Catalyst

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

2017-03-02 Thread Rajesh Kumar Mallah
lled with nothing. On submission the DB raises an exception that an empty string is being inserted to a integer field. Hence I feel like having a global filter that turns all blanks to undef. The question is where to put this global filter. Regds mallah. ___

Re: [Catalyst] Don't log certain actions?

2017-06-28 Thread Rajesh Kumar Mallah
"pattern" , where pattern is something specific you put in that section of application. please look at NDC (nested diagn.. context) of Log4Perl on how to push a specific prefix. you may consider using Log4Perl via Log::Log4perl::Catalyst Regds Rajesh Mallah. > I have a

[Catalyst] stash alternative for passing data

2017-05-11 Thread Rajesh Kumar Mallah
/variables. Hence my question is is there any mechanism to share data in Catalyst App other than the stash. Or should i create a simple perl package and use a global hash variable in it ? regds mallah. ___ List: Catalyst@lists.scsys.co.uk

Re: [Catalyst] new Catalyst::Authentication::Credential::JWT

2017-06-01 Thread Rajesh Kumar Mallah
Thanks , it shall be useful. I would test it sometime. > Hey, > > I just wrote a new module, to support JWT in Catalyst. I would be happy > about your opinions. Later, I would like to upload it to CPAN. > > http://prepan.org/module/nYdTCdrkEHM > > Best, Gerhard > > >

Re: [Catalyst] using catalyst controllers from script

2017-04-29 Thread Rajesh Kumar Mallah
I was able to use the controller methods that did not require $c . I just used the Module in the script and called the methods in it and it worked. Regds mallah. > > Hi , > > I have application logic in controllers which i want to > reuse from some non-http scripts. &