[Catalyst] REST Controller + ajax(jquery) with file upload

2010-05-18 Thread David Schmidt
Hello everybody, I am experimenting with Catalyst::Controller::REST and jquery. The goal is to create a Controller that handles media resources (= upload a file + text input). Catalyst::Controller::Resources pretty much does what I want. Problem: Since I cannot seem to upload a file with a XMLHt

Re: [Catalyst] A point of confusion/frustration on chained actions

2010-05-20 Thread David Schmidt
the mailing list here. > > Thanks, > -Jay > ___ > 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.c

Re: [Catalyst] Log::Log4perl::Catalyst or Catalyst::Log::Log4perl ?

2010-06-13 Thread David Schmidt
gt; Dev site: http://dev.catalyst.perl.org/ > Check whichever Plugin for log4perl Jay Shirley is recommending in this talk and go with it. http://www.presentingperl.org/opw2010/zen-maintenance/ greetings david -- David Schmidt | http://www.fm5.at ___ L

Re: [Catalyst] unrecognized characters

2010-06-13 Thread David Schmidt
Read the pod, the author suggests not to use it anymore http://search.cpan.org/dist/Catalyst-Plugin-Unicode/lib/Catalyst/Plugin/Unicode.pm -- David Schmidt | http://www.fm5.at ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.

Re: [Catalyst] Repeatedly creating sessions

2010-06-24 Thread David Schmidt
mailman/listinfo/catalyst >> Searchable archive: >> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ >> Dev site: http://dev.catalyst.perl.org/ > > > ___ > List: Catalyst@lists.scsys.co.uk > Listinfo: http://lists.scsys.co.

[Catalyst] Dealing with file uploads

2010-07-01 Thread David Schmidt
Hello list, I updated my wiki cookbook entry today and think the outcome is pretty neat. While it still can be improved here and there I think it's partially advanced stuff for a newbie like me. It contains what I learned about catalyst in the past weeks and I hope it's okay to get a bit more publ

Re: [Catalyst] Handling expired sessions gracefully

2010-07-08 Thread David Schmidt
On Fri, Jul 9, 2010 at 4:55 AM, Toby Corkindale wrote: > On 09/07/10 00:53, Steve wrote: >> >> I've looked in the archives and tutorials but can't seem to find >> examples of handling expired sessions gracefully. I'm admittedly weak in >> the area of error checking, but I'm working on it :) Here a

Re: [Catalyst] Catalyst-Plugin-Params-Nested rt 59604

2010-07-27 Thread David Schmidt
On Wed, Jul 28, 2010 at 1:40 AM, Evan Carroll wrote: > Is C:P:P:N still maintained? I filed a bug on CPAN, next day I heard a > request for a patch. I provided a patch, and I haven't heard anything > back. If any one is maintaining it? Can I get co-maint to apply my > patch. > > Find more informat

Re: [Catalyst] User management with Catalyst (with email and URLs)

2010-08-26 Thread David Schmidt
On Thu, Aug 26, 2010 at 10:46 AM, wrote: > Dear list members, > > I guess what I am trying to do is a pretty common task for web developers. > So I am very astonished that a couple of hours spent searching the Internet > didn’t provide me with a good starting point for my efforts. > > Here’s what

Re: [Catalyst] User management with Catalyst (with email and URLs)

2010-08-26 Thread David Schmidt
n interesting starting > point there. Thanks for your answers so far. > > Anyone got any more useful pointers for the email/URL-confirmation process? > > Cheers, > Daniel. > > > -Ursprüngliche Nachricht- > Von: David Schmidt [mailto:davew...@gmx.at] > Gese

Re: [Catalyst] User management with Catalyst (with email and URLs)

2010-08-26 Thread David Schmidt
On Thu, Aug 26, 2010 at 4:34 PM, Bill Moseley wrote: > > > On Thu, Aug 26, 2010 at 4:10 AM, David Schmidt wrote: >> >> 1) user enters mailaddress and hits submit >> 2) you generate a digest >> 3) store digest + mailaddress in model > > I currently collec

Re: [Catalyst] Reuse of controllers

2010-09-19 Thread David Schmidt
On Mon, Sep 20, 2010 at 4:33 AM, John Romkey wrote: > On Sep 19, 2010, at 10:02 PM, Pavel A. Karoukin wrote: >> I started to play more often with Catalyst framework and found that I often >> need to re-use some controllers logic. What the best DRY way to deal, for >> example, with Login/Register

[Catalyst] Error handling in Template render

2010-09-29 Thread David Schmidt
If an exception is thrown it's usually put into the $c->error array. When this error happens during rendering this doesn't seem to be the case and I am trying to find out what Catalyst is doing. In my example forward('render') causes the body to be filled with an error array. This is the body a

[Catalyst] Re: Error handling in Template render

2010-09-30 Thread David Schmidt
On Thu, Sep 30, 2010 at 8:27 AM, David Schmidt wrote: > If an exception is thrown it's usually put into the $c->error array. > When this error happens during rendering this doesn't seem to be the > case and I am trying to find out what Catalyst is doing. > > >

Re: [Catalyst] Has anyone read the book "Catalyst 5.8 : The Perl MVCFramework" yet?

2010-10-26 Thread David Schmidt
On Tue, Oct 26, 2010 at 8:03 AM, Octavian Rasnita wrote: > IMHO the dispatching is a very important chapter for a web framework, > especially for Catalyst that has so many things to offer in this field. > > And another important thing is to show how Catalyst works alone, without an > ORM, without

Re: [Catalyst] myapp_test.pl - running code from the command line

2010-11-02 Thread David Schmidt
On Wed, Nov 3, 2010 at 5:08 AM, Jonathon Soong wrote: > Hi guys > > I am new to Catalyst and have a question :) > > I'd like the ability to run some of the code of my website from the > command line ( a cron job ). > > Usually this would be achieved by a person logging into the website and > click

Re: [Catalyst] myapp_test.pl - running code from the command line

2010-11-03 Thread David Schmidt
On Wed, Nov 3, 2010 at 7:40 AM, Jonathon Soong wrote: > Hi > >> What kind of code do you actually want to run? >> Perhaps it would be smarter to put that code into the model and then >> run a perl script from cron that makes use of that model thus >> bypassing the HTML authentication (which might

[Catalyst] error handling (Chain where ajax and non-ajax actions chain off)

2010-11-09 Thread David Schmidt
Hello list Both ajax and non-ajax actions chain off the same action (base_with_id). If an error occurs (like the resource doesn't exist) I detach to '/error404' in my Root Controller. I just introduced the ajax stuff and before that 'error404' simply rendered an error template. Now I'd like to che

Re: [Catalyst] error handling (Chain where ajax and non-ajax actions chain off)

2010-11-09 Thread David Schmidt
On Tue, Nov 9, 2010 at 11:38 AM, Eden Cardim wrote: >>>>>> "David" == David Schmidt writes: > >    David> Hello list Both ajax and non-ajax actions chain off the same >    David> action (base_with_id). If an error occurs (like the resource >    David

Re: [Catalyst] Trouble using Catalyst::Controller::FormBuilder

2010-11-10 Thread David Schmidt
On Wed, Nov 10, 2010 at 2:37 PM, Eric Berg wrote: > I'm trying to get Catalyst::Controller::FormBuilder to work, but am running > into some problems.  Per the docs, the config should be like this: > > use base 'Catalyst::Controller::FormBuilder'; > > But my class is from a brand-new Catalyst insta

Re: [Catalyst] Multiple chain sources?

2010-11-22 Thread David Schmidt
On Mon, Nov 22, 2010 at 6:15 AM, Matthew Braid wrote: > Hi all, > > Just wondering - is it possible for an action to have multiple chain paths? > > I'd like my site to have a path like /user/N/profile (/user/N being a > chain path, /profile being an end node off that path), but also have a > path

Re: [Catalyst] Multiple chain sources?

2010-11-22 Thread David Schmidt
On Mon, Nov 22, 2010 at 9:24 AM, David Schmidt wrote: > On Mon, Nov 22, 2010 at 6:15 AM, Matthew Braid wrote: >> Hi all, >> >> Just wondering - is it possible for an action to have multiple chain paths? >> >> I'd like my site to have a path like /user/N/

Re: [Catalyst] Which Form Validation Libs?

2010-11-30 Thread David Schmidt
another great module which from my perception is used the most lately is HTML::FormHandler http://search.cpan.org/~gshank/HTML-FormHandler-0.32005/ greetings david On Tue, Nov 30, 2010 at 9:24 AM, Mike Raynham wrote: > On 30/11/10 03:34, Eric Berg wrote: >> >> I see that there are a number of f

Re: [Catalyst] One controller from other

2010-12-04 Thread David Schmidt
On Sat, Dec 4, 2010 at 4:00 PM, linuxsupport wrote: > Hi, > > How can I access one controller from other? > > I have 2 controllers called Myapp::Controller::User and > Myapp::Controller::Admin > > In Myapp::Controller::User I have following method. > > sub user_list :Path Args:(0) { >    some func

Re: [Catalyst] Custom 404 Error Page

2010-12-04 Thread David Schmidt
On Sat, Dec 4, 2010 at 5:30 PM, linuxsupport wrote: > Hi, > > I want to implement custom error page for 404. > > I want to show a particular page when user sends a request to non-existence > page instead of displaying "Page not found" (default). > > Many thanks > >

Re: [Catalyst] One controller from other

2010-12-04 Thread David Schmidt
t; Aniruddh > > On Sun, Dec 5, 2010 at 1:25 AM, David Schmidt wrote: >> >> On Sat, Dec 4, 2010 at 4:00 PM, linuxsupport >> wrote: >> > Hi, >> > >> > How can I access one controller from other? >> > >> > I have 2 controllers

Re: [Catalyst] Transferring control via root/auto

2010-12-07 Thread David Schmidt
On Tue, Dec 7, 2010 at 4:53 PM, Thompson wrote: > Here is my problem, > > If a user logs in for the 1st time I want to force them to change their > password.  I have a specific action in my Users controller to handle > that.  What I'm having a problem with is (redirecting or forwarding or > detach

Re: [Catalyst] Retrieve all users belong to a category and all its sub categories

2010-12-09 Thread David Schmidt
On Thu, Dec 9, 2010 at 9:37 AM, linuxsupport wrote: > I have 3 tables, users, user_cat, and cat, table structure and relationship > are setup as follows. > > User.pm > > __PACKAGE__->add_columns( >   "id", >   { data_type => "integer", is_nullable => 0 }, >   "username", >   { data_type => "text",

Re: [Catalyst] In HTML::FormHandler search form (no DB schema) -- how to populate a SELECT field via DBIx::Class?

2011-01-20 Thread David Schmidt
On Thu, Jan 20, 2011 at 11:20 AM, Alexander Hartmaier wrote: > Why not solve it the exact same way? > Defined a schema attribute an pass your schema when constructing the > form object. > Maybe you only want to pass the country rs instead, whatever fits your > needs best. > > Also note that HFH wi

Re: [Catalyst] Weird problem with Catalyst::Authentication, and redirects

2011-01-26 Thread David Schmidt
On Wed, Jan 26, 2011 at 12:18 PM, Ben van Staveren wrote: > Hi Denny & list, > >> Have you tried turning it off and then on again?  ;) >> > Repeatedly :) > >> More seriously, I have found on multiple occasions that the Catalyst >> Auth stuff can seem to get itself into an inconsistent state, such

Re: [Catalyst] Formhandler and Auth

2011-03-04 Thread David Schmidt
On Fri, Mar 4, 2011 at 2:23 PM, Eric Berg wrote: > I'm trying to do some progressive engagement by allowing one of my forms to > be filled out before a user is required to log in, but once the form is > filled, I need them to log in so that I can get the user ID, which is part > of the record for

Re: [Catalyst] Formhandler and Auth

2011-03-07 Thread David Schmidt
On Mon, Mar 7, 2011 at 1:03 AM, Eric Berg wrote: > On 3/4/11 11:03 AM, Gerda Shank wrote: >> >> On 3/4/11 8:23 AM, Eric Berg wrote: >>> >>> I'm trying to do some progressive engagement by allowing one of my forms >>> to be filled out before a user is required to log in, but once the form is >>> fi

Re: [Catalyst] Setting Model Class Variable from Catalyst Config

2011-03-28 Thread David Schmidt
On Mon, Mar 28, 2011 at 6:49 PM, Derek Wueppelmann wrote: > I want to be able to setup a configuration variable in my Catalyst config > that will then be set as the value for one of my model's class variables. > I have a model that will want to use a base path to store some files, However > the Mo

Re: [Catalyst] Help System - Can a controller's index capture the remainder of the path as a series of arguments?

2011-03-31 Thread David Schmidt
On Thu, Mar 31, 2011 at 6:22 PM, Bill Crawford wrote: > On 31 March 2011 17:21, Bill Crawford wrote: >> sub help : Chained('/') Args { >>    my ( $self, $c, @path ) = @_; >> >>    my $path = join('/', @path); >>    ... >> } > > Uh, : Chained('/') PathPart('help') Args { ... > > __

Re: [Catalyst] noob tutorial help

2011-05-12 Thread David Schmidt
On Thu, May 12, 2011 at 9:03 AM, Brian Wolf wrote: > hi, i am trying out the latest catalyst (installed runtime,and devel) , i > am working through the tutorial , but example at the beginning to add the > hello to root.pm, the catalyst page is fine on and http://localhost:3000/ > works, but wh

Re: [Catalyst] noob tutorial help

2011-05-12 Thread David Schmidt
0.000350s | >> '+---' >> >> [info] *** Request 14 (0.002/s) [] [Wed May 11 22:59:11 2011] *** >> [debug] "GET" request for "/" from "127.0.0.1" >> [debug] Path is "/"

[Catalyst] YA CRUD module

2011-10-31 Thread David Schmidt
It's about time I publish my first CPAN module and it happens to be yet another CRUD module. Feedback greatly appreciated. https://github.com/davewood/CatalystX-TraitFor-Controller-Resource One thing I have yet to do is writing tests. :) david ps: there is http://search.cpan.org/~abraxxa/Cata

Re: [Catalyst] Catalyst and XMLRPC

2011-11-05 Thread David Schmidt
I believe this is the way to go ... http://search.cpan.org/~bphillips/Catalyst-Action-REST-0.93/lib/Catalyst/Controller/REST.pm On 4 November 2011 14:30, Jose Luis Martinez wrote: > El 04/11/2011 13:59, Dmitry L. escribió: >> >> Catalyst::Cookbook and found advice to use Catalyst::Plugin::XMLRPC,

Re: [Catalyst] YA CRUD module

2011-12-04 Thread David Schmidt
7 use Moose; 8 use namespace::autoclean; 9 10 __PACKAGE__->config( 11 name => 'TestApp', 12 'Controller::Root' => { 13 resultset_key => 'cds_rs', 14 resources_key => 'cds', 15 resource_key=> &

Re: [Catalyst] YA CRUD module

2011-12-04 Thread David Schmidt
applied all at once Guess I'll try to inject a controller and add the traits then. like CatalystX::SimpleLogin does it. On 4 December 2011 14:37, David Schmidt wrote: > Hi t0m > > I am currently stuck at configuring/applying roles via TestApp::config > > I want to apply

Re: [Catalyst] YA CRUD module

2011-12-04 Thread David Schmidt
onent::Traits) way actually worked. Now I have to figure out how to inject more then just one Controller. good night On 4 December 2011 17:24, David Schmidt wrote: > davewood: I have a problem with CatalystX::Component::Traits. When i > apply 2 traits and one requires some methods provided by t

Re: [Catalyst] YA CRUD module

2011-12-05 Thread David Schmidt
se::Meta::Class=HASH(0x9ce8170)', 'MyRole') called at /usr/local/lib/perl/5.10.1/Moose/Exporter.pm line 356 Moose::with('MyRole') called at ./test.pl line 18 On 5 December 2011 11:58, Tomas Doran wrote: > > On 4 Dec 2011, at 23:46, David Schmidt wrote: &

Re: [Catalyst] YA CRUD module

2011-12-05 Thread David Schmidt
alystX::Resource::Controller::Resource', 32 as => 'Controller::Resource::' . $controller, 33 ); 34 } 35 }; I wonder if it works. will test it when i have the time. On 5 December 2011 12:51, David Schmidt wrote: > Here is a simple testcase of what I did. O

Re: [Catalyst] YA CRUD module

2011-12-06 Thread David Schmidt
1/Test/More.pm line 885 # Test::More::_eval('package main;\x{a}use TestApp @{$args[0]};\x{a}1;\x{a}', 'ARRAY(0xa01a5a0)') called at /usr/local/share/perl/5.10.1/Test/More.pm line 860 # Test::More::use_ok('TestApp') called at t/01_basic.t line 9 # main::

Re: [Catalyst] YA CRUD module

2011-12-10 Thread David Schmidt
wallclock secs ( 0.02 usr 0.21 sys + 10.34 cusr 6.65 csys = 17.22 CPU) Result: PASS time for a devel release :) https://github.com/davewood/CatalystX-TraitFor-Controller-Resource documentation needs some cleaning up though On 6 December 2011 22:41, David Schmidt wrote: > I added quite some tests

[Catalyst] Catalyst::TraitFor::Controller::Sendfile

2011-12-11 Thread David Schmidt
https://github.com/davewood/catalyst-traitfor-controller-sendfile/blob/master/lib/Catalyst/TraitFor/Controller/Sendfile.pm I want to continue working on it and have a few questions. - Is it still needed? - What should be changed? - any input regarding missing tests? _

Re: [Catalyst] Reasonable way to get $c->config into Result class?

2011-12-12 Thread David Schmidt
http://wiki.catalystframework.org/wiki/wikicookbook/configpass2schema I hope that solves your problem. I am in a bit of a hurry and didn't read your mail very carefully david On 13 December 2011 01:49, will trillich wrote: > We have a Catalyst app where incidents can have attachments, and the >

Re: [Catalyst] YA CRUD module

2011-12-22 Thread David Schmidt
I came across another issue. CatalystX::Resource injects a controller into the app. the controller extends Catalyst::Controller. If I want to use Catalyst::ActionRole::ACL to deal with Authorization on my resources the controller needs to extend C::C::ActionRole. Should I extend from C::C::Actio

Re: [Catalyst] YA CRUD module

2011-12-22 Thread David Schmidt
(02:28:32 PM) phenny: davewood: 21 Dec 16:54Z tell davewood there isn't really a smarter way yet, I'd just always extend that base class I am going to use ActionRole::MatchRequestMethod so C::C::ActionRole is a requirement anyways now. thanks. On 22 December 2011 14:21, David Schm

Re: [Catalyst] Catalyst::TraitFor::Controller::Sendfile

2012-01-09 Thread David Schmidt
::Request like http://cpansearch.perl.org/src/MAROS/CatalystX-I18N-1.09/lib/CatalystX/I18N/TraitFor/Response.pm But will that cause overhead for each request instance creation? On 11 December 2011 13:57, Tomas Doran wrote: > > On 11 Dec 2011, at 12:27, David Schmidt wrote: > >> &

Re: [Catalyst] Listing all actions in app

2012-02-16 Thread David Schmidt
If you start your app in debug mode you get a list of all actions. or ... # catalyst.pl Foo # cd Foo # vim list_actions.pl 1 #!/usr/bin/env perl 2 use strict; 3 use warnings; 4 use v5.10.1; 5 use FindBin qw/$Bin/; 6 use lib "$Bin/lib"; 7 use Data::Dumper; 8 use Foo; 9 10 my $ap

Re: [Catalyst] Setting flash for tests

2012-02-18 Thread David Schmidt
Do you know about CatalystX::SimpleLogin it does exactly what you described and probably is thoroughly tested. as far as the testing is concerned i'd simply test the entire procedure as it would take place in a real workflow. 1) GET /site_that_needs_login 2) check result is a redirect to loginfor

Re: [Catalyst] Resources to learn catalyst

2012-03-02 Thread David Schmidt
http://perl-tutorial.org/ After reading "Learning Perl" you could start "Intermediate Perl". I really like the "modern perl" book.http://www.onyxneon.com/books/modern_perl/index.html You can even get it for free, there is a PDF download link. The best book for Catalyst is probably "The definitiv

Re: [Catalyst] $C -> uri_for containing current path in catalyst 5.90010

2012-03-08 Thread David Schmidt
I tested your code sub exampleRedirect :Path(/oldPath) Args(0) { my ( $self, $c ) = @_; my %data = %{ $c->req->params }; my $url = $c->uri_for( $self->action_for('newSub'), \%data ); $c->response->redirect( $url , 301 ); $c->log->debug(': ' . $url); } sub newSub :Path

Re: [Catalyst] $C -> uri_for containing current path in catalyst 5.90010

2012-03-08 Thread David Schmidt
forgot to include my catalyst version [info] Foo powered by Catalyst 5.90010 On 8 March 2012 20:49, David Schmidt wrote: > I tested your code > > sub exampleRedirect :Path(/oldPath) Args(0) { >    my ( $self, $c ) = @_; >    my %data = %{ $c->req->params }; >    my $u

Re: [Catalyst] Remove Catalyst and start over?

2012-03-23 Thread David Schmidt
run moose-outdated. "moose-outdated is a tool that ships with Moose to help you spot dependency problems" On 23 March 2012 18:06, Robyn Jonahs wrote: > Hi, > > I am new to perl and Catalyst. I am working with an Os X 10.6 system with > perl perl 5, version 12, subversion 3 (v5.12.3). I used CPAN

Re: [Catalyst] DBIx::Class::ResultSet::all(): DBI Exception: DBD::DB2::db prepare_cached failed: [IBM][CLI Driver][DB2/AIX64] SQL0204N "DBUSERNAME.ACCOUNT_VIEW" is an undefined name.

2012-04-26 Thread David Schmidt
$rs->all returns an array so you should call it in list context like this. $c->stash( accounts => [ $c->model('ORANGES::AccountView')->all ] ); no idea if that changesyour error msg but it is a start. david On 26 April 2012 21:05, Kenneth S Mclane wrote: > I do not understand this error at

Re: [Catalyst] Can't get value from model

2012-06-13 Thread David Schmidt
Hi Kenneth, that's a DBIC question anyways, what is the output of ... if ( $dept ) { warn "REF: " . ref $dept . " DEPT_ID: " . $dept->department_id; } else { warn "No dept found"; } ... after your query? On 13 June 2012 22:54, Kenneth S Mclane wrote: > I am trying to get the value from

Re: [Catalyst] Can't get value from model

2012-06-13 Thread David Schmidt
On 13 June 2012 23:34, Kenneth S Mclane wrote: > David Schmidt wrote on 06/13/2012 04:15:57 PM: > >> From: >> >> David Schmidt >> >> To: >> >> The elegant MVC web framework >> >> Date: >> >> 06/13/2012 04:16 PM >>

Re: [Catalyst] How to update data of already logged-in user?

2012-07-11 Thread David Schmidt
The object returned by $c->user is not what you are looking for. I assume you are using DBIC. Get the "real" user object with $c->user->get_object() http://search.cpan.org/~bobtfish/Catalyst-Plugin-Authentication-0.10021/lib/Catalyst/Authentication/User.pm#get_object(_) cheers david On 11 Ju

Re: [Catalyst] Canot get application working on IIS7 via FastCGI

2012-10-17 Thread David Schmidt
> Sorry again for not providing enough information, I will try to give you what > you need but I > will need a little help doing that also, can you advise where the logs for > the app when > running over IIS7-> FastCGI are? Is there a file somewhere that gets written > to each time > the fastcgi

Re: [Catalyst] Canot get application working on IIS7 via FastCGI

2012-10-17 Thread David Schmidt
> Though while we are on the subject of Catalyst plug-ins, I do get this > message in the devel server output when it's started. > > [warn] Deprecated 'static' config key used, please use the key > 'Plugin::Static::Simple' instead > > I've looked at the main application MyApp.pm in the lib folde

Re: [Catalyst] Canot get application working on IIS7 via FastCGI

2012-10-18 Thread David Schmidt
> As for the Data::Dumper information you requested, you will need to give me > more guidance because I can't get it to output anything? > > Firstly I cannot find the context variable '$c' , there is a '$ctx' , I > assume this is what was meant? > > I added > > dump($env); > dump($ctx->request->u

Re: [Catalyst] Global 'helper' methods

2012-10-30 Thread David Schmidt
Perhaps it is feasible for you to bypass object inflation. 1) "DBIx::Class is not built for speed, it's built for convenience and ease of use, but sometimes you just need to get the data, and skip the fancy objects." http://search.cpan.org/~frew/DBIx-Class-0.08200/lib/DBIx/Class/Manual/Cookbook.p

Re: [Catalyst] I'm loosing the plot here? - Controller behaviour that makes no sense

2012-10-30 Thread David Schmidt
Can you show us the startup output of your development server (start it in debug mode) david On 30 October 2012 18:39, Craig Chant wrote: > Please advise why the following URL > > > > ‘mydomain:port/login’ > > > > Produces “Matched Members::Controller::Login in Login.” > > > > When the Login c

Re: [Catalyst] Can't get view / template to work ?

2012-10-30 Thread David Schmidt
On 31 October 2012 00:00, Tomas Doran wrote: > > On 30 Oct 2012, at 16:52, Craig Chant wrote: > >> I seem stuck with implementing my first view / template. >> >> I have a controller Login.pm >> >> I ran the view helper script ‘create view HTML HTML::template’ >> > > This can't possibly have worked

Re: [Catalyst] I'm loosing the plot here? - Controller behaviour that makes no sense

2012-10-31 Thread David Schmidt
Tomas asked for the debug output of the failing response. You pasted only the server startup debug output. On 31 October 2012 10:46, Craig Chant wrote: > Sorry IRC? > > I did post the debug and output , has this email not been received? > > -Original Message- > From: Tomas Doran [mailto:b

Re: [Catalyst] Adding CaptureArgs for the whole controller?

2013-04-02 Thread David Schmidt
By using one action that captures args and all other actions chain from. something like this: https://github.com/davewood/catalystx-resource/blob/master/lib/CatalystX/Resource/Controller/Resource.pm On 2 April 2013 22:07, Alex Povolotsky wrote: > Hello! > > I'm implementing some sort of simple

Re: [Catalyst] Catalyst starter template

2013-09-02 Thread David Schmidt
Quite late but when I read your email again i had to think of this other module which does a similiar thing and thought I'd mention it here. https://github.com/marcelgruenauer/CatalystX-Crudite CatalystX-Crudite is a framework for writing Catalyst-based CMS web applications. It includes out-of-th

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

2013-11-27 Thread David Schmidt
You should tell us what you want to achieve. "I want to pass an action to detach()" is not a proper problem description. The documentation is pretty clear on what is expected. https://metacpan.org/pod/Catalyst#c-detach-action-arguments $c->detach( $action [, \@arguments ] ) $c->detach( $class,

Re: [Catalyst] Catalyst Unicode

2014-01-31 Thread David Schmidt
https://metacpan.org/pod/release/JJNAPIORK/Catalyst-Runtime-5.90053/lib/Catalyst/Upgrading.pod#Catalyst::Plugin::Unicode::Encoding-is-now-core and in your test script, im pretty sure if you are using unicode chars in your perl code you have to "use utf8" in it. also, "use warnings" instead of "p

Re: [Catalyst] Help on Catalyst::Plugin::RunAfterRequest

2014-10-06 Thread David Schmidt
If you run a long-running process inside of your webserver process the process will not be available to handle new web requests anymore. you probably want a job-queue of some sort. http://stackoverflow.com/questions/25277158/run-asynchronous-methods-in-catalyst-perl http://blogs.perl.org/users/da

Re: [Catalyst] Catalyst Advent Calendar 2014

2014-12-05 Thread David Schmidt
6 articles have been committed so far http://dev.catalystframework.org/repos/Catalyst/trunk/examples/CatalystAdvent/root/2014/ On 5 December 2014 at 10:16, Duncan Garland wrote: > John N published an appeal for help a few days ago. > > http://blogs.perl.org/users/john_napiorkowski/2014/12/cataly

Re: [Catalyst] Catalyst 5.90080 on CPAN!

2015-01-19 Thread David Schmidt
you could install new versions of CPAN modules into a local::lib directory and run your testsuite afterwards to see if the upgrade works for you. if it doesnt work simply delete the local::lib directory and you all updates are undone. https://metacpan.org/pod/local::lib another option that I like

Re: [Catalyst] How to get default()-like behavior outside of the Root controller

2015-02-09 Thread David Schmidt
On 9 February 2015 at 10:59, Dmitry L. wrote: > I'd rather split one application into several (admin app, survey app, > etc) and "join" its via middleware. I wrote a blog article a few months ago: http://blogs.perl.org/users/davewood/2014/08/splitting-a-catalyst-app-and-recombining-it-with-plackb

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

2015-02-16 Thread David Schmidt
the catalyst configloader can load more then just one file. by default it loads "myapp.conf" if a file named "myapp_local.conf" exists it is loaded aswell. docs: https://metacpan.org/pod/distribution/Catalyst-Plugin-ConfigLoader/lib/Catalyst/Plugin/ConfigLoader/Manual.pod#Using-a-local-configur

Re: [Catalyst] Catalyst authentication w/ CAS

2015-09-09 Thread David Schmidt
Have you looked at the test application of the CAS module? https://metacpan.org/source/KKANE/Catalyst-Authentication-Credential-CAS-0.05/t/lib/MyApp/lib/MyApp.pm On 9 September 2015 at 05:40, Baron Fujimoto wrote: > Hello, > > ObWarning: Total Catalyst noob here. I'm fairly familiar with Perl, b

Re: [Catalyst] Simple question about "use Catalyst"

2015-10-19 Thread David Schmidt
My guess, it makes sure you run at least v5.80 possibly because older versions are not supported anymore. I am sure someone will correct me if I am wrong. http://perldoc.perl.org/functions/use.html "If the VERSION argument is present between Module and LIST, then the use will call the VERSION met

[Catalyst] edit has_many relation with FormFu

2008-10-24 Thread David Schmidt
n root/forms/projects/formfu_create.yml: >- type: Repeatable > nested_name: picture_projects > elements: >- type: Hidden > name: project_id >- type: Hidden > name: picture_id >- type: Text > label: Position > name: position with frie

Re: [Catalyst] edit has_many relation with FormFu

2008-10-27 Thread David Schmidt
ures ( >>>id INTEGER PRIMARY KEY, >>>titleTEXT, >>>info TEXT, >>>filename TEXT, >>>created datetime >>>); >>> >>>CREATE TABLE picture_projects ( >>>picture_

Re: [Catalyst] edit has_many relation with FormFu

2008-10-27 Thread David Schmidt
e JOIN pictures picture ON ( picture.id = me.picture_id ) WHERE ( me.id = ? )" ? david On Mon, Oct 27, 2008 at 10:23 AM, David Schmidt <[EMAIL PROTECTED]> wrote: > Hello and thanks for your reply. > I tried adding model_config before but it didn't change anything. &

[Catalyst] Beginner Question: Controller Layout

2008-12-09 Thread David Schmidt
Hello list, I am at the point of starting a new project and have yet to choose a controller layout. my application is a site where: music bands can - register - fill out (and later edit) a profile - upload pictures and songs - schedule events which will be displayed on a calendar visito

[Catalyst] many_to_many relationship always deletes then inserts

2009-01-02 Thread David Schmidt
since I just redid the entire application and ran into the same problem again. thanks in advance david -- David Schmidt | http://www.fm5.at ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalys

Re: [Catalyst] Re: OT: Better TT pager?

2009-01-22 Thread David Schmidt
#x27;)->search( $where, $attr ); my $pager = $rs->pager(); $c->stash->{pager} = $pager; $c->stash->{pictures} = [$rs->all]; $c->stash->{template} = 'pictures/list.tt2'; } in my template.tt2: [% IF pager.current_page() != pager.first_page() -%]

Re: [Catalyst] command in Catalyst tute part 4 for generating schema files (static creation) using DBIx::Class::TimeStamp needs to be updated

2009-03-15 Thread David Schmidt
> ). >> >> >> >> I would suggest for the command in the tutorial to be updated. >> >> >> thanks >> >> K. akimoto >> >> ___ >> List: Catalyst@lists.scsys.co.uk >> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/lis

[Catalyst] Catalyst::Controller::DBIC::Transaction Integration

2009-03-16 Thread David Schmidt
ib/Nolabel2/Controller/Accounts.pm line 41. at /usr/local/share/perl/5.8.8/DBIx/Class/Schema.pm line 954 Any help is greatly appreciated david -- David Schmidt | http://www.fm5.at ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.

Re: [Catalyst] Catalyst::Controller::DBIC::Transaction Integration

2009-03-16 Thread David Schmidt
ps: I read and implemented your approach to formfu validation through a custom validator rather then a callback yesterday, thanks for that. :) On Mon, Mar 16, 2009 at 11:45 AM, Carl Franks wrote: > 2009/3/16 David Schmidt : >> Hello list, >> >> I need to put all DBIC Operation

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

2009-03-28 Thread David Schmidt
Hello everyone I've just upgraded Catalyst from 5.7015 to 5.71001. If I start my project development server it loads but upon requesting any page I get the error: Caught exception in MyApp::View::myEmail->process "Can't send email without a valid email structure at /usr/local/share/perl/5.10.0/Ca

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

2009-03-29 Thread David Schmidt
On Sat, Mar 28, 2009 at 12:59 PM, David Schmidt wrote: > Hello everyone > > I've just upgraded Catalyst from 5.7015 to 5.71001. > If I start my project development server it loads but upon requesting > any page I get the error: > > Caught exception in MyApp::View::my

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

2009-03-29 Thread David Schmidt
On Sun, Mar 29, 2009 at 3:00 PM, Jason Galea wrote: > 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 > >

Re: [Catalyst] does detach cancel forward

2009-11-07 Thread David Schmidt
lfoundation.org/perl6 > > > > _______ > 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://de

[Catalyst] Deploying with apache/fastcgi

2009-12-19 Thread David Schmidt
Hello list I followed the deployment instructions in the cat book to run my app on apache2 with fastcgi. I do get a 500 internal error msg and the appache error log says: [Sat Dec 19 10:25:47 2009] [error] [client 78.142.165.159] FastCGI: incomplete headers (0 bytes) received from server "/var/ww

[Catalyst] Re: Deploying with apache/fastcgi

2009-12-19 Thread David Schmidt
On Sat, Dec 19, 2009 at 11:38 AM, David Schmidt wrote: > Hello list > > I followed the deployment instructions in the cat book to run my app > on apache2 with fastcgi. I do get a 500 internal error msg and the > appache error log says: > > [Sat Dec 19 10:25:47 2009] [error] [

[Catalyst] C::P::Authentication, force user authentication

2009-12-28 Thread David Schmidt
Hello When a user lost his password I send a digest by email. If he enters this digest I want to automatically authenticate the user so he can edit his password. I only found this method but it says in the docs you shouldn't use it in your code as it is an internal function only. $c->set_authenti

Re: [Catalyst] C::P::Authentication, force user authentication

2009-12-28 Thread David Schmidt
On Mon, Dec 28, 2009 at 4:53 PM, J. Shirley wrote: > On Mon, Dec 28, 2009 at 7:13 AM, Tomas Doran wrote: >> >> On 28 Dec 2009, at 09:16, Ben van Staveren wrote: >>> >>> Warning: I use this myself, it seems to work, but it's a hack. YMMV. >>> Standard disclaimer applies. >> >> I.e. It is very much

Re: [Catalyst] C::P::Authentication, force user authentication

2009-12-29 Thread David Schmidt
s.co.uk/ > Dev site: http://dev.catalyst.perl.org/ > But if I had to choose between your hack and using $c->set_authenticated( $user, $realmname ) (given that it works, never tested it) Id go with the latter for at least its documented. -- David Schmidt | http://www.fm5.at _

Re: [Catalyst] Login as another user ...

2010-01-18 Thread David Schmidt
On Mon, Jan 18, 2010 at 11:34 AM, Kiffin Gish wrote: > As system administrator who has root access to everything, I want to be > able to login as another user from my dashboard page. > > What's the best way to achieve this? I tried $c->authenticate without a > password, but this doesn't seem to wo

Re: [Catalyst] Enabling debug mode with fastcgi..

2010-01-18 Thread David Schmidt
archive.com/catalyst@lists.scsys.co.uk/ >> Dev site: http://dev.catalyst.perl.org/ > > ___ > List: Catalyst@lists.scsys.co.uk > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/cataly

Re: [Catalyst] HTML editor plugin

2010-02-03 Thread David Schmidt
On Wed, Feb 3, 2010 at 2:32 PM, Denny <2...@denny.me> wrote: > On Wed, 2010-02-03 at 07:02 -0600, Paul Falbe wrote: >> I'm looking to create a little app to edit/create HTML strings to >> store in a mysql table.  These strings are going to be displayed on >> a web page for annoucements for a youth