Re: [Catalyst] HTTP authentication with DBIx::Class

2016-05-17 Thread Dermot
Realm"); $c->response->content_type('text/plain'); $c->response->status(401); $c->detach(); } HTH, Dermot On 13 May 2016 at 16:32, Gerhard Jungwirth <gjungwi...@sipwise.com> wrote: > Hi, > > I am using Catalyst::Authentication::Store::DBIx::Class and > Ca

Re: [Catalyst] From Development to Production.

2016-03-09 Thread Dermot
of unnecessary aggravation (testing and version control) have come about because it's no fun fixing problems after the event. You could also look at Dancer2 [3] as that be good fit too. Good luck, Dermot. 1) https://metacpan.org/pod/Catalyst::Model::File 2) http://www.catalystframework.org/calendar/ 3

Re: [Catalyst] Suggestions for Catalyst training providers?

2011-12-01 Thread Dermot
. There are plenty of free-lancers (and companies with free-lancers) that can offer that. It could be amiss of me to suggest one on-list. HTH, Dermot ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

Re: [Catalyst] Cat App on dotcloud

2011-11-02 Thread Dermot
On 1 November 2011 14:54, Lindolfo Lorn Rodrigues l...@lornlab.org wrote: Hi Dermot, I got the same issue and open a ticket in dotcloud and they answered:   Jérôme Petazzoni, Sep-05 21:46 (PDT):   Hi,   I remember that had a very similar issue when I tried to run Catalyst on DotCloud

[Catalyst] Cat App on dotcloud

2011-10-31 Thread Dermot
with wsgi so could really use some advice with that. The 2nd error is confusing because I put requires Moose in my Makefile and so it should have been built. If anyone can give me some tips on where to begin, it would be much appreciated. Thanks, Dermot

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

2011-10-27 Thread Dermot
that directory and the class. Have a look here: http://search.cpan.org/~hkclark/Catalyst-Manual-5.9002/lib/Catalyst/Manual/Tutorial/04_BasicCRUD.pod#Create_a_ResultSet_Class Hth, Dermot ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

[Catalyst] How best not to use the system perl

2011-09-30 Thread Dermot
appreciate hearing them. Thanks, Dermot. ___ 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] error while starting my dev enviroment

2011-07-10 Thread Dermot
On 10 July 2011 16:54, Andrew Rodland and...@cleverdomain.org wrote: On Sunday, July 10, 2011 01:36:55 AM Charlie Gonzalez wrote: Hello, I am receiving the following error message while starting my dev server enviroment: cgonzalez@cgonzalez-laptop:~/Addressit/script$ perl

Re: [Catalyst] error while starting my dev enviroment

2011-07-10 Thread Dermot
On 10 July 2011 19:14, Charlie Gonzalez itchar...@gmail.com wrote: Does this mean that when making a decision on an OS for Catalyst apps the best choice of a linux OS is  CentOs or Redhat? Perhaps I didn't make myself clear, I only have this problem on Redhat/CentOS. My Debian/Ubuntu machines

Re: [Catalyst] Alternatives to Catalyst ?

2010-04-27 Thread Dermot
On 27 April 2010 12:09, Carl Johnstone catal...@fadetoblack.me.uk wrote: Dermot wrote: Why wouldn't you, as you write, use the the fastest access methods available? Surely you'd want to develop habits that will a) provide better performance and b) as mentioned below avoid the thorny side

Re: [Catalyst] Alternatives to Catalyst ?

2010-04-26 Thread Dermot
On 21 April 2010 18:01, J. Shirley jshir...@gmail.com wrote: __END__ Benchmark: running all, low, sep for at least 1 CPU seconds...       all:  1 wallclock secs ( 1.11 usr +  0.00 sys =  1.11 CPU) @ 2917341.44/s (n=3238249)       low:  0 wallclock secs ( 1.27 usr +  0.04 sys =  1.31 CPU) @

Re: [Catalyst] Alternatives to Catalyst ?

2010-04-26 Thread Dermot
On 26 April 2010 11:22, Zbigniew Lukasiak zzb...@gmail.com wrote: On Mon, Apr 26, 2010 at 10:57 AM, Ævar Arnfjörð Bjarmason ava...@gmail.com wrote: On Mon, Apr 26, 2010 at 09:36, Dermot paik...@googlemail.com wrote: On 21 April 2010 18:01, J. Shirley jshir...@gmail.com wrote: __END__

Re: [Catalyst] Alternatives to Catalyst ?

2010-04-26 Thread Dermot
On 26 April 2010 12:02, Ovid publiustemp-catal...@yahoo.com wrote: - Original Message From: Dermot paik...@googlemail.com Why wouldn't you, as you write, use the the fastest access methods available? Surely you'd want to develop habits that will a) provide better performance and b

Re: [Catalyst] Making a hash available across the application

2010-03-30 Thread Dermot
On 17 March 2010 23:08, Tomas Doran bobtf...@bobtfish.net wrote: On 17 Mar 2010, at 18:48, Ram Dobson wrote: I'm kinda new to Catalyst too, but i believe this is what one might call a helper function. Anybody who knows more have an opinion on the relative merit of my change? Crapping

Re: [Catalyst] application broke once installed under other than the web root directory

2010-03-22 Thread Dermot
On 22 March 2010 17:04, Charles cshtr...@yahoo.com wrote: Could anyone point me to docs that say what needs to be changed to get the app to work when installed as an application in a pre-existing apache setup? my app is installed under http://myurl.com/myapp and can't run directly from / as

[Catalyst] Making a hash available across the application

2010-03-17 Thread Dermot
Hi, I'm sure there is a way but it's not jumping out at me. I have a list of countries and their associated database ID's that I need to stash in the header of (almost) every page on a site. I have no problems creating a controller that can do $c-model(DB::Countries)-search({foo=1}) and stick

[Catalyst] lib question

2010-01-15 Thread Dermot
Hi, I had a search on the archives but I can't see anything. I doubt that it's an oversight, so can someone tell me the reason why the tests that are created by Catalyst::Helper do not have use FindBin and set lib accordingly? Thanx. Dp. ___ List:

Re: [Catalyst] lib question

2010-01-15 Thread Dermot
2010/1/15 Florian Ragwitz r...@debian.org: On Fri, Jan 15, 2010 at 05:15:13PM +, Dermot wrote: I had a search on the archives but I can't see anything. I doubt that it's an oversight, so can someone tell me the reason why the tests that are created by Catalyst::Helper do not have use

[Catalyst] uri_with and ACCEPT_CONTEXT

2010-01-07 Thread Dermot
Hi, I have a page which lists lots of items. I need links on the page that will alter the number of items per page and to do page navigation. I want the code for the page navigation in my non-catalyst class. I'm using C::Model::Factory at the moment, but I might need to use PerRequest. The

[Catalyst] Access to DBIx schema from outside Catalyst

2009-12-07 Thread Dermot
Hi, I haven't finished reading the book yet so I hope this question won't be answered there. If I have a Class outside my Cat App, I can have access to that via C::Model::Adapator. Is there a method for giving that external Class access to Catalyst features, particularly the DBix schema and

Re: [Catalyst] FormFu vs. FormBuilder ...

2009-06-10 Thread Dermot
2009/6/10 Francesc Romà i Frigolé francesc.roma+catal...@gmail.com: HTML:FormFu? FormBuilder is popular because is an older and stable project. It doesn't seem very active anymore though. It's my understanding that the developer of FormBuilder does not work with Perl any more. FormBuilder is

Re: [Catalyst] Accessing a Controller from ~/script

2009-03-09 Thread Dermot
2009/2/19 Kieren Diment kie...@diment.org: On 19/02/2009, at 11:58 PM, Dermot wrote: Check the 2008 advent calendar for ACCEPT_CONTEXT usage: http://dev.catalystframework.org/wiki/adventcalendararticles Wow! that works but I am not sure where ACCEPT_CONTEXT comes into it. That'd

Re: [Catalyst] Accessing a Controller from ~/script

2009-03-09 Thread Dermot
2009/3/9 Andrew Rodland arodl...@comcast.net: On Monday 09 March 2009 12:54:34 pm Dermot wrote: 2009/2/19 Kieren Diment kie...@diment.org: On 19/02/2009, at 11:58 PM, Dermot wrote: Wow! that works but I am not sure where ACCEPT_CONTEXT comes into it. That'd be if you needed to pass stuff

[Catalyst] CatalystX::ListFramework::Builder Error

2009-03-05 Thread Dermot
Hi, I'm getting this error with LFB 0.41 [error] Caught exception in SomeApp::View::LFB::JSON-process encountered object 'SomeApp::Model::DB::UsageTerms=HASH(0xdff80f0)', but neither allow_blessed nor convert_blessed settings are enabled at /usr/lib/perl5/site_perl/5.8.6/JSON/Any.pm line 423.

Re: [Catalyst] CatalystX

2009-03-04 Thread Dermot
2009/3/4 Peter Karman pe...@peknet.com: Dermot wrote on 3/3/09 4:36 PM: 2009/3/3 Oliver Gorwits oliver.gorw...@oucs.ox.ac.uk: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Zbigniew Lukasiak wrote: ListFramework is focused on the task of providing such an admin interface - so I guess out

[Catalyst] CatalystX::ListFramework::Builder warnings

2009-03-04 Thread Dermot
Hi, I am getting warnings from CX::L::Builder 0.41 on Catalyst 5.71. Calling $c-model() will return a random model unless you specify one of: * $c-config-{default_model} # the name of the default model to use * $c-stash-{current_model} # the name of the model to use for this request NB: in

[Catalyst] Can't locate method ??? via MyApp

2009-03-03 Thread Dermot
Hi, Running prove over my t directoty is giving me errors: Error: Can't locate object method config via package MyApp at lib/MyApp/Model/DB.pm line 7. package MyApp::Model::DB; use strict; use warnings; use base 'Catalyst::Model::DBIC::Schema'; __PACKAGE__-config( schema_class =

Re: [Catalyst] Can't locate method ??? via MyApp

2009-03-03 Thread Dermot
2009/3/3 Tomas Doran bobtf...@bobtfish.net: On 3 Mar 2009, at 09:40, Dermot wrote: Hi, Do I need to 'use MyApp'? Yes. I am not sure why it's not searching back up the tree to find these method from Catalyst. Loading a leaf node in your object graph does not imply loading all of its

Re: [Catalyst] CatalystX

2009-03-03 Thread Dermot
://dev.catalystframework.org/wiki/crud Agreed - it depends what you want from the application, whether you need it to be customized, etc. Zbigniew has described the situation very well, here. For CX::ListFramework::Builder, it sounds like Dermot could set it to run in an /admin path-part

[Catalyst] CatalystX

2009-02-27 Thread Dermot
Hi, I saw a demo of CatX::ListFramework-builder yesterday and I was very impressed. I'd like to be able to give admin users of a wee app access to something similar. The idea is just to give them and me a means of looking at the schema. There are a lot of CatX modules at cpan. Is

Re: [Catalyst] Templating languages (was RFC: The paradox of choice in web development)

2009-02-20 Thread Dermot
2009/2/19 Byron Young byron.yo...@riverbed.com: Jonathan Rockway wrote on 2009-02-19: * On Wed, Feb 18 2009, Dermot wrote: Yes there is, at first glance, a lot of choice but is there. I would say TT and Mason are the only realistic choices (for HTML). If by realistic you mean unmaintainable

Re: [Catalyst] Re: Templating languages (was RFC: The paradox of choice in web development)

2009-02-20 Thread Dermot
2009/2/20 Aristotle Pagaltzis pagalt...@gmx.de: * Dermot paik...@googlemail.com [2009-02-20 12:15]: TT is perl. It's not a different language. You're joking, right? narff. Perhaps written in Perl. It provides familiar methods* like keys, splice, exists and substr. By that argument

[Catalyst] Accessing a Controller from ~/script

2009-02-19 Thread Dermot
Hi, I have an import script, MyApp/script/import.pl. I have found myself replicating about 40% of it's code into a Controller. Is there some way I can unify things and access subroutines from my controller in my import.pl or the vice versa? Thanx, Dp.

Re: [Catalyst] Accessing a Controller from ~/script

2009-02-19 Thread Dermot
2009/2/19 Kieren Diment dim...@gmail.com: On 19/02/2009, at 9:31 PM, Dermot wrote: Hi, I have an import script, MyApp/script/import.pl. I have found myself replicating about 40% of it's code into a Controller. Is there some way I can unify things and access subroutines from my controller

Re: [Catalyst] DBIC::Schema issue - out of ideas [ more info ]

2009-02-18 Thread Dermot
2009/2/18 kakim...@tpg.com.au: lib/myApp/myAppDB/ I beg to differ. The files are created within myApp/lib/myApp/Schema and myApp/lib/myApp/Schema.pm What not Schema/myAppDB? All of these question really belong on the DBIc mailing list which is here:

Re: [Catalyst] RFC: The paradox of choice in web development

2009-02-18 Thread Dermot
2009/2/19 * Template::Toolkit * Text::Template * Text::FastTemplate * Text::Templar * HTML::Template * HTML::KTemplate * HTML::Mason * HTML::Seamstress * dTemplate * Jemplate Yes there is, at first glance, a lot of choice but is there. I would say TT and

Re: [Catalyst] DBIC::Schema issue - out of ideas [ more info ]

2009-02-17 Thread Dermot
2009/2/17 on...@houseofdesign.de: On Tue, 17 Feb 2009 23:07:02 +1100, kakim...@tpg.com.au wrote: Hi, guys, Just about to shut the machine down when i realised I could give a little more info. This is the command I ran to generate the static ORM files. myApp_create.pl model myAppDB

Re: [Catalyst] DBIC::Schema issue - out of ideas [ more info ]

2009-02-17 Thread Dermot
2009/2/17 kakim...@tpg.com.au: hi Dermot and all, I tried running myApp_server.pl from the root dir (ie. perl scripts/myApp_server.pl or script/myApp_server.pl) and the same error message still comes up. Also, I did an upgrade of perl from 5.8.8 to 5.8.9 and when I first ran

Re: [Catalyst] RFC: The paradox of choice in web development

2009-02-15 Thread Dermot
2009/2/15 Dan Dascalescu ddascalescu+catal...@gmail.com: I think I can agree with that. What I'm saying is that there's simply too much useless choice. Random example: Data::Dumper vs. Data::Dump. I imagine there is some kudos in getting a module on CPAN hence there is a lot of overlap.

Re: [Catalyst] Re: New Catalyst Book?

2009-02-06 Thread Dermot
2009/2/6 Андрей П. Ковбович akovbov...@gmail.com: It would be nice if the book tells us how to work with heavy loaded projects. I recall a thread about what would you like in the new book. If it was still possible I'd like info on implementing a search engine into Catalyst to be included. :)

Re: [Catalyst] Re: New Catalyst Book?

2009-02-06 Thread Dermot
2009/2/6 Chisel Wright chi...@herlpacker.co.uk: On Fri, Feb 06, 2009 at 12:30:03PM -0500, Jesse Sheidlower wrote: Hmm. As someone who just incorporated an external search engine into two different Cat apps, I would have loved to have had such a chapter available Quick! Write down what

[Catalyst] Access config values

2009-01-29 Thread Dermot
Rats, Sorry I have read a thread on this in the past but I can't find it. I want to set the dsn vaules in my app conf (config general) alone. The values are MyApp::DB connect_info dbi:SQLite:/var/db/myapp/myapp.db connect_info dummy username /MyApp::DB How can I get these to

Re: [Catalyst] Access config values

2009-01-29 Thread Dermot
2009/1/29 Jason Kohles em...@jasonkohles.com: On Jan 29, 2009, at 7:18 AM, Dermot wrote: __PACKAGE__-config( schema_class = 'MyApp::Schema', connect_info = MyApp-config-{ 'MyApp::DB' }-{ 'connect_info' }, ); Thanx Jason. Dp. ___ List

Re: [Catalyst] London Perl tutorials - 25th 26th February 2009 - day 2 includes Cat+DBIC

2009-01-22 Thread Dermot
2009/1/21 Robert L Cochran cochr...@speakeasy.net: This is really tempting. I don't know if I can afford this one. Diito, If I'd heard before the 21-Jan I would have heard about it in time to qualify for the Early Bird rates (until Jan 21st) Non-members: £295 + VAT (£339.25) UKUUG members'

Re: [Catalyst] Catalyst Chained talk at Orlando Perl Oasis - January 17th, 2009

2008-11-26 Thread Dermot
2008/11/26 J. Shirley [EMAIL PROTECTED]: On Wed, Nov 26, 2008 at 12:23 PM, Jason Gottshall [EMAIL PROTECTED] wrote: J. Shirley wrote: You can give information on the conference at http://perloasis.org/opw/ Correct conference URL is http://perloasis.org/opw2009/ Is there more reading

Re: [Catalyst] [META] Advent calendar

2008-11-17 Thread Dermot
2008/11/15 Matt S Trout [EMAIL PROTECTED]: On Tue, Nov 04, 2008 at 10:14:11PM +, Dermot wrote: Is there going to be an advent calendar for this year? What entry are you going to write? Top of my list was 1) How to ask irrelevant questions and annoy the maintainers

[Catalyst] [META] Advent calendar

2008-11-04 Thread Dermot
Is there going to be an advent calendar for this year? Dp. ___ 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:

[Catalyst] Change the default view

2008-11-03 Thread Dermot
Hi, I have a small subroutine/method that checks if a file exists. The method is being called by an Ajax function. Unlike the other functions in it's Class, this method doesn't need to render a tt template, it should simply return 1 or 0. .Catalyst is complaining that is can't render the template

Re: [Catalyst] PDF creation in Catalyst?

2008-10-22 Thread Dermot
2008/10/22 Kirby Krueger [EMAIL PROTECTED]: If you go to catalystframework.org, it says on the main page: And in case you want PNG or PDF output, you'll need just a few lines... Can someone give me those few lines? :-) Those few lines refer to choicing you view. PDF::Create is

[Catalyst] FASTCGI - configuring timeout

2008-10-02 Thread Dermot
Hi, I am stretching the boundaries of the topic here I know but I thought someone might know this off the top of their head. I am getting timeout's. I am 99% sure this is because the Cat App is copying a 500MB file on it filesystem. FastCGI: comm with server

Re: [Catalyst] FASTCGI - configuring timeout

2008-10-02 Thread Dermot
2008/10/2 Christian Lackas [EMAIL PROTECTED]: * Dermot [EMAIL PROTECTED] [081002 16:05]: Hi Dermot, FastCGI: comm with server /var/www/MyApp/script/myapp_fastcgi.pl aborted: idle timeout (30 sec) FastCGI: incomplete headers (0 bytes) received from server /var/www/MyApp/script

Re: [Catalyst] Catalyst, DBIx::Class and Moose training in the UK

2008-10-01 Thread Dermot
2008/9/30 Carlos Arenas [EMAIL PROTECTED]: i am very much interested. do you have pricing info available? and what is the profile for attendees of both types of sessions? ca. On Tue, Sep 30, 2008 at 10:39, Matt S Trout [EMAIL PROTECTED] wrote: Shadowcat are looking to start offering

Re: [Catalyst] FormBuilder not working

2008-09-25 Thread Dermot
2008/9/25 abhishek jain [EMAIL PROTECTED]: Someone pl. reply, Thank, abhi I can't answer your question but I would point out that FormBuilder is no longer being developed. HTML::FormFu and friends are the *preferred modules these days. It's active and the mailing list works. Dp.

Re: [Catalyst] A suitable method to redraw a page

2008-09-24 Thread Dermot
2008/9/24 J. Shirley [EMAIL PROTECTED]: On Tue, Sep 23, 2008 at 4:30 PM, Dermot [EMAIL PROTECTED] wrote: Plugin::XMLRPC is -not- a controller, as such, you probably do want to use it. Do you mean do or 'do not' want to use it. If you use Catalyst::Controller::REST handles serialization

Re: [Catalyst] A suitable method to redraw a page

2008-09-24 Thread Dermot
2008/9/24 Dermot [EMAIL PROTECTED]: 2008/9/24 J. Shirley [EMAIL PROTECTED]: On Tue, Sep 23, 2008 at 4:30 PM, Dermot [EMAIL PROTECTED] wrote: Plugin::XMLRPC is -not- a controller, as such, you probably do want to use it. Do you mean do or 'do not' want to use it. My remote LWP client

Re: [Catalyst] A suitable method to redraw a page

2008-09-24 Thread Dermot
2008/9/24 J. Shirley [EMAIL PROTECTED]: If you use Catalyst::Controller::REST Wow. It's quite a nifty module. I really like it. Thanx, Dp. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

[Catalyst] A suitable method to redraw a page

2008-09-23 Thread Dermot
Hi, I have a controller who's job is to copy some files (4-6). These files can be quite big and the time it takes has been causing what looks like timeouts on the server. [Tue Sep 23 09:48:55 2008] [error] [client x.x.x.x] FastCGI: comm with server /var/www/MyApp/script/motion_fastcgi.pl

Re: [Catalyst] Troubleshooting FastCGI error

2008-08-28 Thread Dermot
2008/8/28 Marcus Ramberg [EMAIL PROTECTED]: On 13. aug.. 2008, at 13.40, Dermot wrote: Thanx Carl and Sorry Matthias, I didn't follow you exactly because su apache This account is currently not available and su -m apache bash: /root/.bashrc: Permission denied So I have chown

[Catalyst] Catalyst::Response - send a file

2008-08-19 Thread Dermot
Hi, I am looking for a method to send a file in response to a request. My effort is below and all this does is print the file's path on the page. I can't set the content-disposition or see find an obvious method in C::Response or C::Request. Am I looking in the wrong place? Can someone point me

Re: [Catalyst] Catalyst::Response - send a file

2008-08-19 Thread Dermot
2008/8/19 Carl Franks [EMAIL PROTECTED]: 2008/8/19 Dermot [EMAIL PROTECTED]: sub downloadFile { my ($name, $filepath) = @_; my $length = (stat($filepath))[7]; my $res = $c-response; $res-content_length($length); $res-headers-({ 'Content-Disposition' = attachment;filename=$name

Re: [Catalyst] Catalyst::Response - send a file

2008-08-19 Thread Dermot
2008/8/19 Bogdan Lucaciu [EMAIL PROTECTED]: On Tuesday 19 August 2008 16:41:40 Carl Franks wrote: You'll still need the body($fh) bit to send the data, too. Or, if you use Catalyst::Plugin::Static::Simple, you can use: $c-serve_static_file($file_path); some code snippets from that method:

Re: [Catalyst] Catalyst::Response - send a file

2008-08-19 Thread Dermot
2008/8/19 Jonathan Rockway [EMAIL PROTECTED]: * On Tue, Aug 19 2008, Dermot wrote: $c-res-headers-content_type( $type ); $c-res-headers-content_length( $stat-size ); $c-res-headers-last_modified( $stat-mtime ); .. my $fh = IO::File-new( $full_path, 'r

Re: [Catalyst] HTML::FormFu - how to manually control the rendering?

2008-08-18 Thread Dermot
2008/8/18 [EMAIL PROTECTED]: hello there I love using HTML::FormFu in these two aspects: 1) Validation - oh ,yeah :) 2) configuration (via yaml in my case) nevertheless, is there any way we can control the rendering (in TT2)? From what has been done in the catalyst tute for

Re: [Catalyst] list of perl-*.rpm files for a basic Cat install

2008-08-17 Thread Dermot
But right now, the only thing RHEL/CentOS perl builds are good for is making consultants like us billable hours fixing all the stupid problems and/or moving the client's platform to something else. Hardware manufacturer's only release drivers for distro like RHEL? I bet there isn't a mention

[Catalyst] Troubleshooting FastCGI error

2008-08-13 Thread Dermot
Hi, I have an odd problem with my tiny app. Under server script (MyApp/script/myapp_server -d) it runs without error. However under fascgi I am encountering a problem with one of my controllers that uses a FormFU. There an abridged version of the controller is pasted below. sub edit : Local

Re: [Catalyst] Troubleshooting FastCGI error

2008-08-13 Thread Dermot
DBIx::Class::Row::update_or_insert(): DBI Exception: DBD::SQLite::st execute failed: unable to open database file(14) at dbdimp.c line 403 [for Statement UPDATE clipData SET audio = ? WHERE ( id = ? )] at /usr/lib/perl5/site_perl/5.8.8/HTML/FormFu/Model/DBIC.pm line 324, Server

Re: [Catalyst] Troubleshooting FastCGI error

2008-08-13 Thread Dermot
2008/8/13 Matthias Zeichmann [EMAIL PROTECTED]: On Wed, Aug 13, 2008 at 12:35, Dermot [EMAIL PROTECTED] wrote: -rwxrwxrwx 1 someuser root 793600 Aug 12 13:30 mydata.db better change permissions to something like 664 and chgrp www-data (or whatever your webserver runs as) and make sure

Re: [Catalyst] Troubleshooting FastCGI error

2008-08-13 Thread Dermot
2008/8/13 Iain Hubbard [EMAIL PROTECTED]: On Wed, 2008-08-13 at 11:35 +0100, Dermot wrote: I am not sure but I would have expected a permission denied message if the permissions were incorrect. This reads more like file not found. A quick google turned up a similar problem http

Re: [Catalyst] Re: Weak references - perl error

2008-08-02 Thread Dermot
2008/8/2 Aristotle Pagaltzis [EMAIL PROTECTED]: * Dermot [EMAIL PROTECTED] [2008-08-02 01:40]: Does your advise conflict with Tomas's? I didn't seem Tomas giving you any specific advice, so I don't understand how to answer your question. My reading of Tomas's reply was that my perl

Re: [Catalyst] Debug with FCGI

2008-08-01 Thread Dermot
2008/8/1 Peter Karman [EMAIL PROTECTED]: On 08/01/2008 07:55 AM, Angel Kolev wrote: Doesn`t work too. All debug output goes to apache log. I tryed with -e option - same result. Isn't debug configurable? __PACKAGE__-setup(qw/ -Debug

[Catalyst] Weak references - perl error

2008-08-01 Thread Dermot
Getting sick of the sight of the DBIx::Class::StartupCheck error with my version of perl, I updated my version to: Name : perl Arch : i386 Epoch : 4 Version: 5.8.8 Release: 10.el5_2.3 Now I am getting the following error: Weak references are not implemented in the version of perl at

Re: [Catalyst] Re: Weak references - perl error

2008-08-01 Thread Dermot
2008/8/1 Aristotle Pagaltzis [EMAIL PROTECTED]: * Dermot [EMAIL PROTECTED] [2008-08-01 18:25]: Scalar::Util is up-to-date Yes, but only half installed. You need the XS component but you only have the pure-Perl version. Force-install it again. Regards, -- Aristotle Pagaltzis // http

[Catalyst] Help with paging

2008-07-16 Thread Dermot
Hi, I'm having issues with paging and could handle some help. I tried using the examples in the book but it does quite fit what I'm doing. I have a list method like this: sub list : Local { my ($self, $c) = @_; $c-stash-{items} = [$c-model('MyDB::Items')-all]; $c-stash-{template} =

Re: [Catalyst] Help with paging

2008-07-16 Thread Dermot
2008/7/16 Octavian Rasnita [EMAIL PROTECTED]: From: Dermot [EMAIL PROTECTED] # Arg where is pager? Try using: sub list : Local { my ($self, $c) = @_; my $items = $c-model('MyDB::Items')-search({},{ page = $page, rows = 20, }); Where does $page come from? Should I pick that up from

Re: [Catalyst] method to repeatedly submit form

2008-07-10 Thread Dermot
2008/7/9 Mesdaq, Ali [EMAIL PROTECTED]: Just to better understand what your trying to do. Are you saying you want to display records and only the records that are selected you want to be passed to the other db? Yes in part that correct. However up to that point there wouldn't have been any

[Catalyst] method to repeatedly submit form

2008-07-09 Thread Dermot
Hi All, I trying to build a small App with a few hundred records. They want the ability to add multiple records from myApp into another DB using CGI key/value pairs. I am looking for suggestions on the best way to do it. I am using FormFu. I am considering using a onload action to go with the

Re: [Catalyst] Debugging Auth code

2008-07-07 Thread Dermot
2008/7/5 Dr. Jennifer Nussbaum [EMAIL PROTECTED]: __PACKAGE__-config-{'Plugin::Authentication'} = { default_realm = 'dbic', realms = { dbic = { credential = { class = 'Password', password_field = 'password', password_type =

Re: [Catalyst] Auth tutorial merry-go-round

2008-07-07 Thread Dermot
2008/7/7 Ash Berlin [EMAIL PROTECTED]: On 7 Jul 2008, at 09:40, Dermot wrote: What session store and state modules are you using? I know this happens to me when I forget to load up memcached (which is the store module i'm using) -ash These are the plugins I am currently using

Re: [Catalyst] Auth tutorial merry-go-round

2008-07-07 Thread Dermot
2008/7/7 Ash Berlin [EMAIL PROTECTED]: On 7 Jul 2008, at 10:24, Dermot wrote: 2008/7/7 Ash Berlin [EMAIL PROTECTED]: On 7 Jul 2008, at 09:40, Dermot wrote: Yes. You most likely want Catalyst::Plugin::Session::State::Cookie so that the session ID will get stored in a cookie. That's done

Re: [Catalyst] configuring plugin's

2008-07-01 Thread Dermot
2008/6/30 Byron Young [EMAIL PROTECTED]: Dermot wrote on 2008-06-30: Hi, Looks like you have a typo somewhere. Should be 'assert_user_roles', maybe? byron Thanx Byron. I think I should been more thorough before i emailed. Dp. ___ List

[Catalyst] configuring plugin's

2008-06-30 Thread Dermot
Hi, I seem to be struggling with the configuring of plugins, in this case Authorization::Roles. I have the following in lib/MyApp.pm __PACKAGE__-setup(qw/-Debug ConfigLoader Static::Simple StackTrace

[Catalyst] use base or use parent?

2008-06-24 Thread Dermot
Hi, I have a controller with use parent 'Catalyst::Controller'; I can't find any info on 'parent' I want to use FormBuilder and tried to use it like so use parent 'Catalyst::Controller'; use base qw(Catalyst::Controller::FormBuilder); FormBuilder sends debug messages to the server but my

Re: [Catalyst] use base or use parent?

2008-06-24 Thread Dermot
2008/6/24 Jonathan Rockway [EMAIL PROTECTED]: Use $self-formbuilder, not $c-form. You might enjoy this page: http://dev.catalyst.perl.org/new-wiki/thebookerrata Ouch. You've discovered my source. Anyway, I'm not sure why you would think that use base 'Catalyst::Controller::FormBuilder' in

[Catalyst] Authentic/Session modules problem

2008-02-29 Thread Dermot
Hi, I am working with the tutorials, at the authentication part, and have hit a snag. I've add the following to my package Authentication Authentication::Store::DBIC Authentication::Credential::Password Session #Session::Store::FastMmap Session::FastMmap Session::State::Cookie I had to

Re: [Catalyst] FormBuilder - Can't locate object method form via package

2008-02-26 Thread Dermot
On 25/02/2008, Joshua McAdams [EMAIL PROTECTED] wrote: sub edit : Local Form { my ($self, $c) = @_; if ($c-form-submitted $c-form-validate) { $c-stash-{message} = 'Thanks for submitting the form'; } } Use $self-formbulder instead of $c-form. That chapter suffered from

[Catalyst] Book

2008-02-25 Thread Dermot
Hi, I am considering getting the Catalyst book and had a question or 2. Should it be bought from the Packt publishing site as opposed to anywhere else? Does buying it there help the catalyst project in some way more than buying it at another site that perhaps I am already registered on? I have

[Catalyst] FormBuilder - Can't locate object method form via package

2008-02-25 Thread Dermot
Hi, Error: Can't locate object method form via package I have been working my way through the sample chapter in the Catalyst book (very topical today) and have hit an error. Here's the code I have use strict; use warnings; use base qw(Catalyst::Controller::FormBuilder

[Catalyst] newbie - syntax error

2008-02-22 Thread Dermot
Hi, I hope my first question isn't too dumb. In the routine below I want to test if the method is being called with an additional parameters. So if the uri is ~/list/2 return only the files with user=id. If no parameter is called (~/list) return all files. The functions works as it is but