Re: [Catalyst] TT via AJAX

2012-04-27 Thread Jason Galea
t forward it, I don’t get anything back at the client..but if I do then > back to square one.. > > ** ** > > ** ** > > *From:* Jason Galea [mailto:li...@eightdegrees.com.au] > *Sent:* 27 April 2012 02:52 > > *To:* The elegant MVC web framework > *Subject:* Re:

Re: [Catalyst] TT via AJAX

2012-04-26 Thread Jason Galea
(and only) element being your html. > > > ** ** > > Thanks > > R. > > ** ** > > *From:* Jason Galea [mailto:li...@eightdegrees.com.au] > *Sent:* 26 April 2012 14:32 > > *To:* The elegant MVC web framework > *Subject:* Re: [Catalyst] TT via AJAX

Re: [Catalyst] TT via AJAX

2012-04-26 Thread Jason Galea
Hi Roland, On Wed, Apr 25, 2012 at 11:26 PM, Roland Philibert wrote: > Hello all, > > I’d like to render some HTML content being formatted from a TT view via > AJAX. > Can anybody recommend a way to do that please? > > ** ** > > The method I am using now for AJAX is REST controller and

Re: [Catalyst] Catalyst::ActionRole::RequireSSL under development server

2012-04-18 Thread Jason Galea
On Tue, Apr 17, 2012 at 4:11 AM, Rippl, Steve wrote: > We're just upgrading to Catalyst 5.9 from 5.8, and therefore switching > from the old Catalyst::Plugin::RequireSSL > to Catalyst::ActionRole::RequireSSL. The old module would detect when is > was running under the standalone server and so was

Re: [Catalyst] Using Test::WWW::Mechanize::Catalyst on a test database

2012-02-16 Thread Jason Galea
On Thu, Feb 16, 2012 at 1:25 AM, Robert Rothenberg wrote: > I would like to use Test::WWW::Mechanize::Catalyst with an alternative > database schema (since I want to test reading and writing on a database > with > the same schema but known data that is not the live database), but it's not > clear

Re: [Catalyst] nginx/FastCGI configuration issues

2012-02-15 Thread Jason Galea
On Thu, Feb 16, 2012 at 3:02 AM, Jesse Sheidlower wrote: > location /incomings { > include fastcgi_params; > fastcgi_param SCRIPT_NAME /incomings/; > fastcgi_param PATH_INFO $fastcgi_script_name; > fastcgi_pass unix:/tmp/incomings.socket; > }

Re: [Catalyst] Re: Using model layers between Catalyst and DBIC

2012-02-07 Thread Jason Galea
ners. >> LecstorApp returns a parameterized Bread::Board container >> Lecstor grabs the first two and shoves them into the third to make >> another Bread::Board container from which I get my app.. >> >> have I gone walkabout!? >> >> https://github.com/l

Re: [Catalyst] Basic Background Question, DBIx::Class

2012-02-05 Thread Jason Galea
Hi Rob, from the google cache for http://wiki.catalystframework.org/wiki/necessarybackgroundknowledge "Here is where the two schools diverge. The older school (popularized by the Smalltalk language) holds that the *business* *logic* should go in the Model. The younger school (popularized by recen

Re: [Catalyst] fcgid configuration for catalyst

2012-02-02 Thread Jason Galea
> > Can you grab the app for the phrase PERL_ENV, and show us the top level > application class, and whichever class contains PERL_ENV? t0m meant to say "Can you grep the app for the phrase PERL_ENV," ..just to avoid any confusion.. > > >> PATH_INFO

Re: [Catalyst] uri_for method is returning relative URLs

2012-01-28 Thread Jason Galea
On Fri, Jan 27, 2012 at 11:23 PM, Robert Rothenberg wrote: > On 21/01/12 21:49 Jason Galea wrote: > > > On Jan 22, 2012 1:35 AM, "Robert Rothenberg" > <mailto:rob...@gmail.com>> wrote: > >> : > >> : > >> Ok, it's working now. Appa

Re: [Catalyst] uri_for method is returning relative URLs

2012-01-21 Thread Jason Galea
sent by my android... On Jan 22, 2012 1:35 AM, "Robert Rothenberg" wrote: > > On 18/01/12 12:36 Tomas Doran wrote: > > > > On 18 Jan 2012, at 12:03, Robert Rothenberg wrote: > > > >> I'm relying on the default /etc/nginx/fastcgi.conf - which has the exact > >> same values that the document says. >

Re: [Catalyst] Re: Using model layers between Catalyst and DBIC

2012-01-09 Thread Jason Galea
get my app.. have I gone walkabout!? https://github.com/lecstor/Lecstor https://github.com/lecstor/Lecstor-Shop-Catalyst comments welcome. cheers, J On Tue, Jan 10, 2012 at 12:16 AM, Jason Galea wrote: > > > On Mon, Jan 9, 2012 at 3:14 PM, Bill Moseley wrote: > >> >>

Re: [Catalyst] Re: Using model layers between Catalyst and DBIC

2012-01-09 Thread Jason Galea
On Mon, Jan 9, 2012 at 3:14 PM, Bill Moseley wrote: > > > On Monday, January 2, 2012, Jason Galea wrote: > >> >> I think I've added another layer but I'm not sure where you draw the >> line.. I have a model layer over DBIC pulling together related resu

Re: [Catalyst] Using model layers between Catalyst and DBIC

2012-01-01 Thread Jason Galea
oh, I've also started playing with Bread::Board and its looking like my "model" layer consisting of the DBIC Schema and all my "Sets" will be pulled together into a single Bread::Board container. J On Mon, Jan 2, 2012 at 1:36 PM, Jason Galea wrote: > Hi Bill, > &g

Re: [Catalyst] Using model layers between Catalyst and DBIC

2012-01-01 Thread Jason Galea
Hi Bill, On Mon, Jan 2, 2012 at 11:41 AM, Bill Moseley wrote: > > So, I'm looking at adding a separate model layer(s) ("pattern #3" in link > above), as is commonly suggested. My plan is to have one "distribution" > that is our DBIC layer and then use that in a number of separate model > layers

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

2011-12-04 Thread Jason Galea
les=29, Tests=369, 19 wallclock secs ( 0.18 usr 0.04 sys + 34.14 cusr 4.98 csys = 39.34 CPU) cheers, J > 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

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

2011-12-04 Thread Jason Galea
> > On Sun, Dec 4, 2011 at 7:10 PM, Tomas Doran wrote: > >> >> On 4 Dec 2011, at 04:13, Jason Galea wrote: >> >> hmm.. actually.. can I hand Catalyst::Test the schema I can get from >>> Test::DBIx::Class? >>> >> >> I think you

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

2011-12-04 Thread Jason Galea
ok cool. thanks, t0m. On Sun, Dec 4, 2011 at 7:10 PM, Tomas Doran wrote: > > On 4 Dec 2011, at 04:13, Jason Galea wrote: > > hmm.. actually.. can I hand Catalyst::Test the schema I can get from >> Test::DBIx::Class? >> > > I think you can just force replace t

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

2011-12-03 Thread Jason Galea
hmm.. actually.. can I hand Catalyst::Test the schema I can get from Test::DBIx::Class? On Sun, Dec 4, 2011 at 1:56 PM, Jason Galea wrote: > Dear lazyweb.. > > not sure if this is staring me in the face.. > > If I'm using Catalyst::Test & Test::DBIx::Class, with the la

[Catalyst] Catalyst::Test & Test::DBIx::Class

2011-12-03 Thread Jason Galea
Dear lazyweb.. not sure if this is staring me in the face.. If I'm using Catalyst::Test & Test::DBIx::Class, with the latter starting up MySQL with a random socket location, how do I tell my Catalyst server how to connect to the MySQL instance? I'm also trying to get my tests running in parallel

Re: [Catalyst] Catalyst::Plugin::AutoCRUD & setup_components

2011-11-03 Thread Jason Galea
On Tue, Nov 1, 2011 at 10:00 PM, Jason Galea wrote: > > > On Tue, Nov 1, 2011 at 9:44 PM, Tomas Doran wrote: > >> >> On 1 Nov 2011, at 10:48, Jason Galea wrote: >> >> On Tue, Nov 1, 2011 at 7:38 PM, Tomas Doran >>> wrote: >>> >&

Re: [Catalyst] Catalyst::Plugin::AutoCRUD & setup_components

2011-11-01 Thread Jason Galea
On Tue, Nov 1, 2011 at 9:44 PM, Tomas Doran wrote: > > On 1 Nov 2011, at 10:48, Jason Galea wrote: > > On Tue, Nov 1, 2011 at 7:38 PM, Tomas Doran wrote: >> >> On 1 Nov 2011, at 03:24, Jason Galea wrote: >> >> any suggestions? >> >> Can you show

Re: [Catalyst] Catalyst::Plugin::AutoCRUD & setup_components

2011-11-01 Thread Jason Galea
On Tue, Nov 1, 2011 at 7:38 PM, Tomas Doran wrote: > > On 1 Nov 2011, at 03:24, Jason Galea wrote: > > >> any suggestions? >> > > Can you show us the code that doesn't work when it's in your app? > Hi t0m, thanks, I'll try to keep it relevant

[Catalyst] Catalyst::Plugin::AutoCRUD & setup_components

2011-10-31 Thread Jason Galea
Hi all, I'm trying to use Catalyst::Plugin::AutoCRUD but when correctly set up no actions are added to my app. After much hair pulling I found that my use of "after 'setup_components'" in my main Catalyst class was preventing setup_components in AutoCRUD from being called at all. After removing "

Re: [Catalyst] Integrating multi-levelled meta-shopping-cart using Catalyst

2011-10-30 Thread Jason Galea
Hi Alec, yes, this can be done with Catalyst. I'm currently developing similar functionality a couple of applications. The complexity will depend on the similarity of functionality between the individual stores. Pre-condition: > • More than 1 eCommerce store setup on this one Catalyst site > • E

Re: [Catalyst] Question on user role management

2011-05-17 Thread Jason Galea
H loop in my view correct? just stash the user and call roles on it as you did with the "current" user. > > Also yes I do have a many_to_many relationship in my user.pm for roles. > > On Tue, May 17, 2011 at 10:05 AM, Jason Galea > wrote: >> >> Hi Adam, &g

Re: [Catalyst] Question on user role management

2011-05-17 Thread Jason Galea
Hi Adam, have you tried using the roles method on the other users? my $user = $c->stash->{users_rs}->find({ uniqid => $uniqid }); die "No such user: $uniqid\n" if (!$user); my @roles = $user->roles; do you have a many_to_many defined in your user table class? eg __PACKAG

Re: [Catalyst] HTML::FormHandler IDs not playing with JQuery

2011-04-02 Thread Jason Galea
On Tue, Mar 29, 2011 at 8:43 PM, Victor Churchill wrote: > Trouble is I would like to use id="q1_select.0" as a JQuery selector > to control the show/hide of 'child' questions, and the selector does > not like the ".0". I determined with a couple of manual tests that I > can't select an item with

Re: [Catalyst] Best prcatice: same back-end, different UI

2011-03-08 Thread Jason Galea
t; 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://dev.catalyst.perl.org/ > -- Jason Galea Web Developer Ph 07 40556926 Mob 04 12345

Re: [Catalyst] redirect and ajax

2011-03-07 Thread Jason Galea
AFAIK you would need to return the uri to the browser, as your ajax response and redirect the browser using javascript. On Mon, Mar 7, 2011 at 10:24 PM, Cylon Toaster wrote: > Hello, > > I use an ExtJS-form, which sends an AJAX-request to the server. Depending on > the server-results the user sho

Re: [Catalyst] Making secure session cookies (or, how do we make Explorer stop complaining about nonsecure content on a secure page?)

2011-02-20 Thread Jason Galea
> 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://dev.catalyst.perl.org/ > > -- Jason Galea Web Developer Ph 07 40556926 Mob 04

Re: [Catalyst] Getting Error while running server script

2010-05-18 Thread Jason Galea
], ); or to your config file: Model::DB: schema_class: Your::DB::Schema::Class connect_info: - dbi:mysql:dbase_name - username - password -- Jason Galea Web Developer www.eightdegrees.com.au ___ List: Catalyst@lists.scsys.co.uk Listinfo: http:

Re: [Catalyst] Subclass $c->log->debug(...) to prepend "${\$c->action}: ..."

2010-01-18 Thread Jason Galea
gt;debug(message) so that it prints out: > > ''.$c->action.': '.'message' > > What's the easiest way to do this? > > -- > Kiffin Gish > Gouda, The Netherlands > > > > ___ > List: Catalyst@l

Re: [Catalyst] Re: generating and redirecting to pdfs

2009-10-26 Thread Jason Galea
On Sun, Oct 25, 2009 at 12:49 AM, Aristotle Pagaltzis wrote: > * Jason Galea [2009-10-21 01:50]: > > $c->res->header( 'Content-Disposition' => > 'attachment;filename='.$c->stash->{pdf_filename} ); > > This will break for filenames with sp

Re: [Catalyst] Catalyst::Test configuration questions

2009-10-26 Thread Jason Galea
local config file to be loaded. For example, if $ENV{ MYAPP_CONFIG_LOCAL_SUFFIX } is set to testing, ConfigLoader will try and load myapp_testing.conf instead of myapp_local.conf. cheers, J -- Jason Galea Web Developer Ph 07 40556926 Mob 04 12345 534 www.eightdegrees.com.au _

Re: [Catalyst] generating and redirecting to pdfs

2009-10-23 Thread Jason Galea
with > 'text/pdf' it was using a text editor). > > cool. ah, I did see/wonder about that. I've changed my code now. 'text/pdf' worked for me in my Lenny desktop but I had done any other testing.. thanks, J -- Jason Galea

Re: [Catalyst] generating and redirecting to pdfs

2009-10-20 Thread Jason Galea
need a different approach (similar to the > Catalyst::View::Email::Template example in the book?). > > Any pointers would be much appreciated... > > Thanks, > Steve > > > -- > Steve Rippl > Technology Director > Woodland Public Schools > 360 225 9451 x326 >

Re: [Catalyst] Re: Debian recommendation

2009-10-16 Thread Jason Galea
ily picks up the slack and as a last resort I can always use cpanp as root. I've been running like this for a year or so now and in that time I haven't had to spend more than 10 minutes ugrading or installing any module I've needed. ..just my 2c cheers, J -- Jason Galea Web D

Re: [Catalyst] What is correct way to re-check user password for authenticated user?

2009-08-25 Thread Jason Galea
Oleg Kostyuk wrote: Hello subscribers, On some pages I need to re-check user password (to be more concrete - each time when user change any settings on "user settings" page). I can't compare passwords directly (something like: $form->{password} eq $c->user->password()), because in DB I have onl

Re: [Catalyst] nginx configuration tute for catalyst

2009-07-15 Thread Jason Galea
Hi K, that'd be your nginx.conf. You should find it in /etc/nginx/ or maybe /usr/local/nginx all depending on how nginx was installed. cheers, J kakim...@tpg.com.au wrote: hi, all i am looking at http://dev.catalyst.perl.org/wiki/adventcalendararticles/2008/02-catalyst_and_nginx. Fir

Re: [Catalyst] Serving "static" content from DB

2009-06-06 Thread Jason Galea
The way I (and I assume many others) implement image thumbnails could be the way to go.. (unless you need the access control) The server handles things as per any normal static content with a 404 handler dealing with missing files. The handler creates and serves the file so any future requests

Re: [Catalyst] Catalyst::View::Email config error after Catalyst upgrade

2009-03-29 Thread Jason Galea
Hi David, setting default_view in my config appears to have fixed this for me.. (I have other, unrelated, issues now) default_view: MyApp::View::TT hope this helps.. cheers, J David Schmidt wrote: Hello everyone I've just upgraded Catalyst from 5.7015 to 5.71001. If I start my project de

Re: [Catalyst] testing catalyst app - need context

2009-03-01 Thread Jason Galea
Hi Kate, have a look at http://search.cpan.org/~jkutej/Catalyst-Plugin-CommandLine-0.05/lib/Catalyst/Plugin/CommandLine.pm I've only used it once or twice and I don't know if it's considered "best practice" or not but it worked for me.. (I wanted easy access to Catalyst app config) cheers,