Re: [Catalyst] Single-domain multi-shop, multi-gateway; linked to the one shopping-cart

2011-12-06 Thread Tomas Doran
On 6 Dec 2011, at 08:07, Alec Taylor wrote: Currently we are looking for a good starting base, with a lot of the development already done for us; then we'll build up from that foundation. Research includes: Ruby on Rails (spree), DJango (satchmo) and Catalyst. Use whatever the development t

Re: [Catalyst] Single-domain multi-shop, multi-gateway; linked to the one shopping-cart

2011-12-06 Thread Tomas Doran
On 6 Dec 2011, at 11:06, Alec Taylor wrote: On Tue, Dec 6, 2011 at 9:21 PM, Kieren Diment wrote: On 06/12/2011, at 9:06 PM, Tomas Doran wrote: If you're making the technology choice, and you haven't got production experience building and maintaining large scale web apps on

Re: [Catalyst] chunked response and Catalyst ??

2011-12-07 Thread Tomas Doran
On 7 Dec 2011, at 07:32, Denis Spichkin wrote: chunked response and Catalyst ?? Totally possible. Is there any way of generating chunked response inside Catalyst and any its Views. The default way that the views / RenderView extension works is to render an entire page and give that to t

Re: [Catalyst] ”Non-root configuration” of lighttpd::FastCGI doesn't work with Catalyst-Runtime-5.90002

2011-12-08 Thread Tomas Doran
On 7 Dec 2011, at 23:53, Charlie Garrison wrote: I've got the opposite problem from that solved in v5.90007. I'm running lighttpd/1.4.26 (on centos) so the LighttpdScriptNameFix middleware should not be needed. But when I updated staging server, our app broke, and applying LighttpdScriptNa

Re: [Catalyst] Questions with Authentication/Authorization

2011-12-08 Thread Tomas Doran
On 24 Nov 2011, at 12:40, Johannes Kilian wrote: Questions: * Isn't $c->user a persistent value within $c? When I try to access to c.user later (after "successfull" login) $c->user is undefined. What is neccessary to make it persistent? The Session plugin. * When I try to check the user ro

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

2011-12-11 Thread Tomas Doran
On 11 Dec 2011, at 12:27, David Schmidt wrote: 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? Yes. - What should be changed? https

Re: [Catalyst] Overriding content-type for View::JSON

2011-12-19 Thread Tomas Doran
On 19 Dec 2011, at 15:40, will trillich wrote: What's required in MyApp::View::JSON to handle this properly? after process => sub { my ($self, $c) = @_; $c->res->header(); }; Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://l

Re: [Catalyst] Catalyst generating emails -- how to buffer large attachments?

2011-12-21 Thread Tomas Doran
On 20 Dec 2011, at 21:20, will trillich wrote: Is there a (straightforward, hopefully :) way to buffer large attachments when generating emails via a Catalyst View? Yes, in the view code :_) But you don't mean this, you mean 'in Catalyst::View::Email' If we could use a combination of Templa

Re: [Catalyst] Method name conflict with current versions

2011-12-28 Thread Tomas Doran
On 28 Dec 2011, at 02:08, Louis Erickson wrote: Any ideas what the problem might be? The error is: wwonko@holly:~/projects/MyApp/script $ perl myapp_server.pl Couldn't load class (MyApp) because: Due to a method name conflict in roles 'CatalystX::Component::Traits' and 'MooseX::Traits::Plu

Re: [Catalyst] Dynamic model and controller creation

2012-01-02 Thread Tomas Doran
On 1 Jan 2012, at 04:58, Bill Moseley wrote: Then I have Controller classes inheriting from this class that are simply config setting the "model_class" attribute: package MyApp::Controller::Service::Bolt; use base 'MyApp::ControllerBase::Inventory; __PACKAGE__->config( model_class => 'Invent

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

2012-01-02 Thread Tomas Doran
On 2 Jan 2012, at 01:41, Bill Moseley wrote: So, I'm wondering how best to do that if I provide a separate model layer that includes data validation. For example, say I have a model for user management which includes a method for creating new users. If I have a model method $users->add

Re: [Catalyst] Dynamic model and controller creation

2012-01-02 Thread Tomas Doran
On 2 Jan 2012, at 16:30, Bill Moseley wrote: On Mon, Jan 2, 2012 at 6:42 PM, Tomas Doran wrote: Why are you messing around with ACCEPT_CONTEXT to do this? Why not just use COMPONENT to return the service class once? Oh, I'm glad you brought that up. Where Model::Foo doe

Re: [Catalyst] Moose attributes not initializing when including FormHandler form

2012-01-04 Thread Tomas Doran
On 3 Jan 2012, at 23:56, Rippl, Steve wrote: I don't know if this is a Moose, FormHandler or Catalyst problem, so I'm starting here, hope that's OK! No worries :) So _temp_details has a default which is first called upon in _build_details. All this works fine if I comment out the use W

Re: [Catalyst] Moose attributes not initializing when including FormHandler form

2012-01-04 Thread Tomas Doran
On 4 Jan 2012, at 17:17, Rippl, Steve wrote: Thanks for the offer of help! Here's the error message and Stack Trace (excuse the html mail, but I'm thinking it makes it easier to read?)... Ah, right! has details => ( is => 'rw', isa => 'HashRef', builder => '_build_det

Re: [Catalyst] Moose attributes not initializing when including FormHandler form

2012-01-04 Thread Tomas Doran
On 4 Jan 2012, at 19:16, Rippl, Steve wrote: That fixed it! Thanks so much! No worries! I'll set about re-factoring to try and stop passing the context object about so freely! I have to say this was my first app using catalyst that started a few years ago and has grown in a fairly ha

Re: [Catalyst] uri_for method is returning relative URLs

2012-01-17 Thread Tomas Doran
On 17 Jan 2012, at 17:43, Robert Rothenberg wrote: I have a Catalyst app that I have been working on with another developer. In this application, the links in the templates use the uri_for method, e.g. Login This works fine on two machines that we have been developing on. I've recen

Re: [Catalyst] Very basic chained question

2012-01-18 Thread Tomas Doran
On 18 Jan 2012, at 05:20, will trillich wrote: (Also read up on 'begin' and 'end' and 'auto' methods at http://search.cpan.org/~hkclark/Catalyst-Manual-5.9002/lib/Catalyst/Manual/Intro.pod#Built-in_special_actions.) You shouldn't need begin or auto if you're using chained dispatch - given:

Re: [Catalyst] uri_for method is returning relative URLs

2012-01-18 Thread Tomas Doran
On 18 Jan 2012, at 09:58, Robert Rothenberg wrote: So is there something about FastCGI that is doing this? You're getting the config wrong. Every single case I've seen of anything like this in the last 12+ months (since I fixed it) has been where the user isn't correctly setting up the f

Re: [Catalyst] uri_for method is returning relative URLs

2012-01-18 Thread Tomas Doran
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. Oh no it doesn't! Do I need to manually move them into the configuration for that virtual host? Nope. But the default config

Re: [Catalyst] $c->stash for complex/cascaded relationship bridges

2012-01-19 Thread Tomas Doran
On 19 Jan 2012, at 16:39, Roland Philibert wrote: Hello all. I have the following situation in my database where table3 and table5 are acting as relationship bridges between a common table2: table1-><-table3-><-table2-><-table5-><-table4> For a given primary key in table1, how does one ret

Re: [Catalyst] Makefile.PL seems to be ignoring INSTALL_BASE

2012-01-21 Thread Tomas Doran
On 21 Jan 2012, at 15:16, Robert Rothenberg wrote: Is there a better way to tell the installer to install additional modules in the base? Yes! See what local::lib does, and/or use that having told it about the paths you want. Problem solved. Cheers t0m __

Re: [Catalyst] Running Catalyst apps with start_server

2012-01-22 Thread Tomas Doran
On 21 Jan 2012, at 22:16, Octavian Rasnita wrote: But of course, it doesn't go in the background... I can put it to run in the background if I add a " &" after the command line start_server ... and I've seen that if I do that it works and I can also add or remove workers with kill -TTIN|TTOU

Re: [Catalyst] uri_for method is returning relative URLs

2012-01-22 Thread Tomas Doran
On 21 Jan 2012, at 21:49, Jason Galea wrote: > Ok, it's working now. Apparently including the default fastcgi_params, even > when they are edited to have the exact same values, does not seem to work. For history's sake, can you just confirm what DID work for you? I can re-iterated that t

Re: [Catalyst] Setting the COMPILE_DIR for TT templates in the configuration file

2012-01-22 Thread Tomas Doran
On 22 Jan 2012, at 18:54, Robert Rothenberg wrote: COMPILE_DIR /var/opt/myapp/template_cache where MyApp::View::TT is the name of the view module. None of them work. How do I do this? This should work. http://localhost:3000/?dump_info=1 will dump the config that the app has actually rea

Re: [Catalyst] Running Catalyst apps with start_server

2012-01-24 Thread Tomas Doran
On 23 Jan 2012, at 21:34, Octavian Rasnita wrote: So something's obviously wrong if so much memory is occupied even after 1 hour of inactivity. To start with, you're testing entirely wrong. Testing the free RAM on the machine is bullshit - as the kernel is going to cache data for you, so

Re: [Catalyst] Running Catalyst apps with start_server

2012-01-25 Thread Tomas Doran
On 25 Jan 2012, at 13:41, Octavian Rasnita wrote: Is closing and starting starman now and then the only solution? No, and I didn't suggest that at any point. You ask starman to restart child processes after N requests. This is entirely different to restarting the entire Starman (as there i

Re: [Catalyst] What are the best practices for using phrasebooks inCatalyst applications?

2012-01-31 Thread Tomas Doran
On 31 Jan 2012, at 19:03, Robert Rothenberg wrote: Thanks. This works well. One question: how do I configure Catalyst to watch the locales directory and restart when they are changed (at least while in debugging mode)? There is a --restart_regex option to the server script which you may

Re: [Catalyst] fcgid configuration for catalyst

2012-02-02 Thread Tomas Doran
On 2 Feb 2012, at 03:37, Riju Royson wrote: Hi, My team owns a dedicated catalyst application which is working on mod_perl and apache. The application is for generating several reports and is used by a huge number of employees in our organization. Now we need to move out of mod_perl because ou

Re: [Catalyst] fcgid configuration for catalyst

2012-02-02 Thread Tomas Doran
On 2 Feb 2012, at 08:45, Riju Royson wrote: Hi, $c->request message contains, _body is 0 _context is APP=HASH(0xcb03754) action is default address is arguments is ARRAY(0xcc14eec) base is http:/// body_parameters is HASH(0xc982a6c) captures is ARRAY(0xcb03a0c) cookies is HASH(0xcb03bec) header

Re: [Catalyst] fcgid configuration for catalyst

2012-02-02 Thread Tomas Doran
On 2 Feb 2012, at 11:39, Riju Royson wrote: Hi, Thanks for your reply. I tried using Data::Dump, the values are as follows, stash => { PERL_ENV => { AUTHENTICATE_CN => "rkur

Re: [Catalyst] fcgid configuration for catalyst

2012-02-02 Thread Tomas Doran
On 3 Feb 2012, at 05:20, Riju Royson wrote: Hi, Thanks for all your help. I was just trying to dump PERL_ENV values to take a look on them. I have removed that line from code now. So nowhere else PERL_ENV is specified. Dumping catalyst request gives the following data now, So, same problem,

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

2012-02-05 Thread Tomas Doran
On 5 Feb 2012, at 11:43, Rob Brown wrote: Shouldn't I have classes in lib/Model/ for each of my tables/ models? Is this what the Schema/ classes should be doing? No, the schema is for database wide stuff. I'm used to creating set classes for each model in my apps, so just having the DBIx

[Catalyst] ANNOUNCE TRIAL Catalyst release - PLEASE TEST!

2012-02-06 Thread Tomas Doran
Hi The latest Catalyst TRIAL release (5.90008) has a significant amount of cleanup and refactoring to enable asynchronous applications. It shouldn't break anything, and works for me - but I need people to try this out with their real apps and the plugins you're using - please have a quick

Re: [Catalyst] --background clobbers log

2012-02-08 Thread Tomas Doran
On 7 Feb 2012, at 23:55, Seth Daniel wrote: Anybody else seen this or have any idea what's going on? I'm currently working on a small program that demonstrates this but it may be a day before I can really get to that. Thanks for any assistance. I've seen something similar reported on ir

Re: [Catalyst] Catalyst::Controller: find_meta not found

2012-02-15 Thread Tomas Doran
On 15 Feb 2012, at 15:55, Gavin Henry wrote: >> With a very simple catalyst app this happens: >> >> Array found where operator expected at >> /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst/Controller.pm line 215, at end >> of line >> (Missing operator before ?) >> Undefined subroutine &Catalyst

Re: [Catalyst] Connect DBIx::Class model on startup?

2012-02-25 Thread Tomas Doran
> Op 21-02-12 19:30, Daniel J. Luke schreef: >> Is there a canonical (or recommended) way to have my new fastcgi processes' >> model(s) connect to their databases on startup (instead of during the first >> request?) >> >> I'd like to be able to avoid the extra delay on the first request each >

Re: [Catalyst] Anyone logging with RabbitMQ?

2012-02-25 Thread Tomas Doran
On 25 Feb 2012, at 00:04, Bill Moseley wrote: > Anyone have experience with this? What tool are you using to aggregate (and > monitor, or generate stats with)? Any tips? I was doing this for a while. However it gives you a single point of failure / slowness. The module you mention is entire

Re: [Catalyst] Anyone logging with RabbitMQ?

2012-02-25 Thread Tomas Doran
On 25 Feb 2012, at 00:12, Devin Austin wrote: > Logging with RabbitMQ? Seems like a weird thing to do but I could be > wrong. I use Munin to keep track of stats. Logging != stats, logging is a superset And you have N application servers, and you want to aggregate logs for them… Pushing your

Re: [Catalyst] charset not needed for Catalyst::Action::REST?

2012-02-25 Thread Tomas Doran
On 24 Feb 2012, at 15:50, Bill Moseley wrote: > When using Catalyst::Action::REST the content-type response never includes a > charset. JSON seems to be handled correctly in code -- JSON strings are > always UTF-8. Does that mean there is no need to specify a charset on > responses? Theore

Re: [Catalyst] (no subject)

2012-02-28 Thread Tomas Doran
On 28 Feb 2012, at 13:03, Johannes Kilian wrote: > Hi, > > I've got following question concerning views: I want to provide an XML-View > which provides "standard" XML-Files using XML::Simple in almost any case. > Just in some cases I want to provide specialized XML-Files. Erm, why are you not

Re: [Catalyst] Catalyst 5.90010 server must be in CWD to run?

2012-03-02 Thread Tomas Doran
On 22 Feb 2012, at 09:50, Matthias Dietrich wrote: > I stumbled over this issue some days ago and asked about it in IRC. t0m > wanted to add a fix for this but either he couldn't make it yet or the fix > isn't yet on CPAN. Hi, sorry about this. The current release fixes this mostly. What's

Re: [Catalyst] Passing REMOTE_USER to development server

2012-03-02 Thread Tomas Doran
On 2 Mar 2012, at 09:08, Stephen Shorrock wrote: > Dear list, > > I realise that this is a very basic question. > > Using an older version of Catalyst (5.80007) I used to start the > development server with: > > REMOTE_USER=userid myapp_server.pl > > and have available in the application use

Re: [Catalyst] New edition of The Definitive Guide to Catalyst?

2012-03-02 Thread Tomas Doran
On 1 Mar 2012, at 09:54, Willi Schiegel wrote: > Hello, > > does anybody know whether there will be a new edition of this book with all > the new things 5.9 has? Since I am new to all this Perl web framework stuff > and especially PSGI it would be very helpful to have one source to start > le

Re: [Catalyst] Passing REMOTE_USER to development server

2012-03-02 Thread Tomas Doran
On 2 Mar 2012, at 19:57, Tomas Doran wrote: > > I'd love to see a doc patch from someone making this clear in Catalyst::PSGI > and/or Catalyst::Upgrading? Duh, I should read an entire thread before replying, especially when I'm late. Especially when I ask someone to do som

Re: [Catalyst] Log::Dispatch plugin is not working when run in the background

2012-03-02 Thread Tomas Doran
On 2 Mar 2012, at 10:38, Robert Rothenberg wrote: > This appears to be fixed by adding the > > close_after_write true > > option. I'm not sure that I understand *why* not using this option causes it > to exit or just not write anything, but that seems to be what happens. > > I'm not sure if t

Re: [Catalyst] Log::Dispatch plugin is not working when run in the background

2012-03-04 Thread Tomas Doran
On 3 Mar 2012, at 22:01, Robert Rothenberg wrote: > On 02/03/12 20:29 Tomas Doran wrote: >> >> It's a Catalyst issue. > > A fix on the plugin, or Catalyst? It's a fix in Catalyst itself :) Cheers t0m ___ List: Cata

Re: [Catalyst] Connect DBIx::Class model on startup?

2012-03-04 Thread Tomas Doran
On 2 Mar 2012, at 20:44, Daniel J. Luke wrote: > On Feb 25, 2012, at 10:00 AM, Daniel J. Luke wrote: >> On Feb 25, 2012, at 3:39 AM, Tomas Doran wrote: >>>>> Or maybe there's a reason why there's not an obvious hook and someone can >>>>> point

Re: [Catalyst] Connect DBIx::Class model on startup?

2012-03-05 Thread Tomas Doran
On 5 Mar 2012, at 02:30, Daniel J. Luke wrote: > On Mar 4, 2012, at 9:56 AM, Tomas Doran wrote: >> On 2 Mar 2012, at 20:44, Daniel J. Luke wrote: >>> On Feb 25, 2012, at 10:00 AM, Daniel J. Luke wrote: >>>> On Feb 25, 2012, at 3:39 AM, Tomas Doran wrote: >>

Re: [Catalyst] Connect DBIx::Class model on startup?

2012-03-11 Thread Tomas Doran
On 5 Mar 2012, at 15:01, Daniel J. Luke wrote: > yes: > FastCGI: manager (pid 18350): server (pid 19242) started > Can't use string ("MyApp") as a HASH ref while "strict refs" in use at > /path/to/lib/vendor_perl/5.12.2/Class/Accessor/Fast.pm line 10. > Can we get an actual backtrace here? -MDe

Re: [Catalyst] apache, mod_fcgi & local::lib

2012-03-14 Thread Tomas Doran
On 13 Mar 2012, at 16:22, cylontoaster wrote: > Hello, > I got stuck in deploying my first Catalyst-application on a SuSE-platform:-( > I've mod_fcgi (not fast_cgi), FCGI.pm and I also use local::lib. >Order allow,deny >Allow from all >AddHandler fcgid-script .pl If y

[Catalyst] Re: [Dbix-class] class mapping

2012-03-14 Thread Tomas Doran
> On 13 March 2012 16:33, Sung Gong wrote: >> Hi >> >> I have a simple User table (mysql back-end) which is mapped into a >> resultsource class User.pm. statically generated by the helper. >> >> Just wondering any difference between >> "MyApp::Schema::DB::Result::User" and "MyApp::Model::DB::Us

Re: [Catalyst] New catalystframework.org

2012-03-14 Thread Tomas Doran
On 13 Mar 2012, at 18:33, Oleg Kostyuk wrote: > Bwt, guys - would you like to switch to GitHub? > If nobody have time for this - I can do repo conversion. To git, sure. Things are being slowly converted as people care - if you care please push a conversion up to github (we've got a fairly compr

Re: [Catalyst] apache, mod_fcgi & local::lib

2012-03-15 Thread Tomas Doran
On 14 Mar 2012, at 11:19, cylontoaster wrote: > sorry for not using IRC ... not really used to it :-( > > I followed your advices but it doesn't work yet. For the benefit of the list, we caught up on irc, and after resolving inconsistent paths and permission issues, all worked as suggested. C

Re: [Catalyst] New catalystframework.org

2012-03-15 Thread Tomas Doran
On 14 Mar 2012, at 13:20, Oleg Kostyuk wrote: > 14 марта 2012 г. 12:19 пользователь Tomas Doran > написал: >> >> On 13 Mar 2012, at 18:33, Oleg Kostyuk wrote: >> >>> Bwt, guys - would you like to switch to GitHub? >>> If nobody have time for this

Re: [Catalyst] Noob hoping for help encoding mysql datetime fields for JSON

2012-03-16 Thread Tomas Doran
On 15 Mar 2012, at 21:38, Steve Seremeth wrote: > > If I simply add the column to the API controller here: > > > $data{rows} = [ > map { +{ > id => $_->id, > cell => [ > $_->id, > $_->title, > $_->rating, >

Re: [Catalyst] read_length removed from Catalyst::Engine

2012-03-19 Thread Tomas Doran
On 19 Mar 2012, at 12:47, Bill Moseley wrote: > I had some code using $c->engine->read_length attribute which seems to have > been removed after 5.90007. > > IIRC, that attribute just held the value of the content-length header. Is > there any reason I can't use $c->request->header('Content-L

Re: [Catalyst] DB2 Connection string problem

2012-03-28 Thread Tomas Doran
On 28 Mar 2012, at 16:33, Kenneth S Mclane wrote: > Update, I was successful in creating a connection. For future reference if > anyone else is trying to accomplish this: Can we fix some docs here, rather than leaving something in a vague mailing list thread? > http://www-01.ibm.com/support/d

Re: [Catalyst] All actions marked as Private and are being ignored

2012-04-02 Thread Tomas Doran
On 2 Apr 2012, at 07:24, Kieren Diment wrote: >> Also if i execute the code, then it will execute the auto and end functions >> and bypasses the called action. The return value of the auto action is significant! It's a specific feature of auto that if you return false, then normal dispatch will

Re: [Catalyst] Accepting connections at http://0:3000/

2012-04-09 Thread Tomas Doran
On 7 Apr 2012, at 13:02, Chankey Pathak wrote: > Hi guys, > > Hope you all are doing good. I have a question. > > My catalyst application suddenly started running on: http://0:3000/ instead > of http://localhost:3000/ > > What is the reason behind this? What gives you that impression? Or,

Re: [Catalyst] Using external URLs?

2012-04-11 Thread Tomas Doran
On 11 Apr 2012, at 09:38, Johannes Kilian wrote: > Who modifies my URL - Catalyst or Template::Toolkit? Neither! Unless you asked them to… > (I think it's catalyst - since within my template I do only have plain text > in the eyes of Template::Toolkit ...) It could well be - but it's code you

Re: [Catalyst] POST data for base64

2012-04-13 Thread Tomas Doran
On 13 Apr 2012, at 09:00, Сергей Дмитриев wrote: > Hello All, > > Recently we've developed small web application which, for some cases, > receives data in base64 format, as value of one fields of POST > request. > I've noticed that probably there's something wrong with decoding of > such data. E

Re: [Catalyst] Application Testing, Mocking Apache Headers/Environment

2012-04-16 Thread Tomas Doran
On 16 Apr 2012, at 07:11, brainbuz wrote: > In my auto action I have something like: > > $c->{ USERNAME } = $c->engine->env->{ HTTP_COOKIE } ;#Authenticated via > apache 2.4 mod_auth_form > > $c->{ USERRIGHTS } = $c->model( ‘method returning a ref to a list of the > rights for $c->{ USERNAME

Re: [Catalyst] Problems with relation in DBIx::Class::Schema::Loader

2012-04-16 Thread Tomas Doran
On 16 Apr 2012, at 15:24, cylontoaster wrote: > Hello, > when I wanted to move my code to a production-machine I got a new warning, > which I don't really understand & a new realtionship-name . Your database schema classes are nothing to do with Catalyst. You'd be much better asking the DBIC l

Re: [Catalyst] How to access $c->apache in 5.9?

2012-04-20 Thread Tomas Doran
On 20 Apr 2012, at 12:56, Eden Cardim wrote: >> "Hailin" == Hailin Hu writes: >Hailin> Finally, something like below works for me. > >Hailin> my $apache = $c->engine->env->{'psgi.input'}; # >Hailin> Apache2::RequestRec $apache->user( $username ); > >Hailin> I supposed that

Re: [Catalyst] change in Engine prepare_body_parameters

2012-04-23 Thread Tomas Doran
On 21 Apr 2012, at 13:30, Bill Moseley wrote: > The code above looks like it was trying to fix some flow problems (populating > the attribute directly as a hash, for example), so the real fix is probably > something else. Perhaps a builder on body_parameters so that it isn't > populated every

Re: [Catalyst] Schema::Result file question

2012-04-30 Thread Tomas Doran
On 30 Apr 2012, at 21:10, Kenneth S Mclane wrote: > > Can I re-define the table below the "Do Not edit" line? Yes, you can and that should work fine as a hack. > Or would it be better to add something more global in nature? You'd be much better asking the DBIC folks (on the DBIC list) about t

Re: [Catalyst] Problems upgrading .psgi file (Warning "You are running Catalyst::Engine::PSGI, which is considered a legacy engine for, this version of Catalyst." -> Error "response must be an array r

2012-05-03 Thread Tomas Doran
On 3 May 2012, at 07:52, Erik Wasser wrote: > [error] response must be an array reference > > This error message comes from the source of mod_psgi. > > The content after the restart with the modified .psgi file is a "500 > Internal Server Error" error page from every request. > > I'm using Cata

Re: [Catalyst] upstart script for Starman-based app?

2012-05-03 Thread Tomas Doran
On 3 May 2012, at 08:24, Octavian Rasnita wrote: > Hi all, > > Does anyone have an upstart script that can be used for automaticly starting > a Cat app using Starman? > > I use Perlbrew and local::lib and I start the app in my own account and not > as root and I don't know how to make upstart

Re: [Catalyst] Query not working

2012-05-10 Thread Tomas Doran
On 10 May 2012, at 15:17, Kenneth S Mclane wrote: > I am trying to port this query to Catalyst: You mean DBIx::Class - Catalyst is totally database agnositc (no database is even required) Whilst a lot of people here also use DBIC (and DBIC questions often get asked/answered here), you're gen

Re: [Catalyst] How to "sudo" using the Authentication plugin

2012-05-11 Thread Tomas Doran
On 11 May 2012, at 17:45, Robert Rothenberg wrote: > We're working on an application with a lot of users, and where the passwords > are encrypted (and future versions may also allow OpenID logins). > > Developers would like the ability for the "root" user to be able to become > another user, for

Re: [Catalyst] OpenID authentication just redirects back to the login page

2012-05-14 Thread Tomas Doran
On 14 May 2012, at 16:37, Robert Rothenberg wrote: > > Any idea's what's happening? No, as we have no idea what code is executing, or how that code has been configured. Need debug logs from the app and details about your auth config to even start guessing, sorry! Cheers t0m ___

[Catalyst] [ANNOUNCE] Catalyst-Runtime 5.90012

2012-05-19 Thread Tomas Doran
Hi I'm pleased to announce the latest maintenance release of Catalyst::Runtime, 5.90012. This release fixes issues with the upcoming perl 5.16.0, and has various other small fixes and documentation improvements. Full change log is below as always. Cheers t0m 5.90012 - 2012-05-16 09:59:00 D

Re: [Catalyst] LDAP question

2012-05-21 Thread Tomas Doran
On 21 May 2012, at 15:20, Kenneth S Mclane wrote: > I am continuing on my journey to duplicate a web app for administering a db. > I have all my pages up and running, as well as search functionality. I > decided to attack authentication next. I am using a php pages from a > different web app

Re: [Catalyst] LDAP question

2012-05-21 Thread Tomas Doran
On 21 May 2012, at 16:42, Robert Wohlfarth wrote: > On Mon, May 21, 2012 at 9:20 AM, Kenneth S Mclane wrote: > They are apparently doing the initial bind with the credentials submitted by > the user, I am getting invalid credentials the way I have it above, if I > change it to anonymous I get

Re: [Catalyst] LDAP question

2012-05-21 Thread Tomas Doran
Your quoting and HTML mail settings are really broken! You are not quoting anyone else's email, but just changing it's font - which means that anyone using a text mail client without fonts can't see the quoting.. On 21 May 2012, at 16:18, Kenneth S Mclane wrote: > You can turn on LDAP debugging

Re: [Catalyst] LDAP question

2012-05-22 Thread Tomas Doran
On 21 May 2012, at 17:12, Kenneth S Mclane wrote: > I'm going to post this up here to avoid those quoting issues. I'm x'ing out > my password for obvious reasons. > You missed out the app boot, and the initial bind / search… Which are the bits I think are going wrong. Also, I think my bad -

Re: [Catalyst] LDAP question

2012-05-22 Thread Tomas Doran
On 21 May 2012, at 22:24, Kenneth S Mclane wrote: > So I should leave it as "self_check"? No. You set it as plain / don't set it at all, as the password needs to be passed through Catalyst un-mangled - as the auth is done by logging in _as the user_ (and therefore with their password) in LDAP

Re: [Catalyst] Role problems, Still

2012-05-23 Thread Tomas Doran
On 23 May 2012, at 16:37, Kenneth S Mclane wrote: > I am having difficulty in getting my user to authenticate against the second > realm. After successfully authenticating against the ldap server, I want to > authenticate against the dbic realm as well as that is where the roles are > stored.

Re: [Catalyst] Module::Install::Catalyst and Test::Prereqs conflict?

2012-05-23 Thread Tomas Doran
On 23 May 2012, at 11:26, Robert Rothenberg wrote: > I think that there is a problem using the Makefile.PL with Test::Prereqs and > similar modules. > > When I run prereqs_ok(), I get the following error: > > _get_prereqs: Error loading Makefile.PL: Can't call method > "load_all_extensions" on

Re: [Catalyst] Module::Install::Catalyst and Test::Prereqs conflict?

2012-05-23 Thread Tomas Doran
On 23 May 2012, at 17:15, Robert Rothenberg wrote: > On 23/05/12 17:06 Tomas Doran wrote: >> >> On 23 May 2012, at 11:26, Robert Rothenberg wrote: >> >>> I think that there is a problem using the Makefile.PL with Test::Prereqs and >>> similar modules.

Re: [Catalyst] Role problems, Still

2012-05-24 Thread Tomas Doran
On 24 May 2012, at 13:45, Kenneth S Mclane wrote: > Well since the passwords are maintained by a company wide system and can be > authenticated via LDAP, I don't think I want to reinvent the authorization, > since it is working. > I think I will just reinvent the role checking, which should be

Re: [Catalyst] $c->user and session questions

2012-05-31 Thread Tomas Doran
On 31 May 2012, at 14:00, Kenneth S Mclane wrote: > I have an LDAP server authenticating my users. The look up returns a ton of > fields in a hash. My questions are as follows: > > 1. What happens to this data/information? Is it stored in the $c->user > object? Yes > 2. If it is, how do I

Re: [Catalyst] CatalystX::JobServer (anyone use it?)

2012-06-05 Thread Tomas Doran
On 4 Jun 2012, at 23:25, Seth Daniel wrote: > I found CatalystX::JobServer mentioned in a thread from about a year > ago. > > It seems to still only be on github. Does anyone use this? Can anyone > recommend it? > > https://github.com/bobtfish/CatalystX-JobServer > > > I am looking at using

Re: [Catalyst] Additional scripts accessing the Model and Config?

2012-06-08 Thread Tomas Doran
On 7 Jun 2012, at 23:17, Luis Muñoz wrote: > The part that's stumping me is how to go within Dump.pm about obtaining a $c > that allows me to get to the configuration (taken from the same place where > the web application takes it) and the model. You don't. $c implies a web request context,

Re: [Catalyst] Additional scripts accessing the Model and Config?

2012-06-08 Thread Tomas Doran
On 8 Jun 2012, at 19:05, Luis Muñoz wrote: > he configuration data (for instance, how to setup the database/ldap/whatever > Model, etc). Does that happen as well when using the class method? Sorry - I'm confused - how does calling into the app to get stuff as $self->application_name->model('Fo

Re: [Catalyst] using perldoc on VM

2012-06-12 Thread Tomas Doran
On 11 Jun 2012, at 17:02, André Walker wrote: > Anyway, it wouldn't hurt to have it installed by default. Shouldn't we update > the VM? Who has permission to do so? Yes! Please hassle kd and/or hkclarke until it gets sorted out - (and / or just report a bug in the Tutorial - they do get looked

Re: [Catalyst] Using Progressive realms when username and password fields are all different

2012-06-30 Thread Tomas Doran
On 29 Jun 2012, at 10:59, Will Crawford wrote: > On 28 June 2012 23:12, Gavin Henry wrote: > ... >> Thanks Tim. Yes, I know that but then the other two realms will fail >> and that's the point of progressive. I want to call one ->authenticate >> which tries all the realms I've defined in progres

Re: [Catalyst] Using Progressive realms when username and password fields are all different

2012-06-30 Thread Tomas Doran
On 29 Jun 2012, at 21:18, Gavin Henry wrote: > The main problem is that and the fact that username_field is missing. > > I'd like to do ->authenticate( { username => $blah, password => $blah2 }) > > if username_field and/or password_field is in the config, map those to > above values, if not > j

[Catalyst] ANNOUNCE Catalyst-Runtime 5.90015

2012-06-30 Thread Tomas Doran
Hi I'm pleased to release the latest maintenance of Catalyst - 5.90015. This release fixes regressions and incompatibilities resulting from he refactoring in 5.90013, and is a highly recommended upgrade for anyone using versions 5.90013 or 5.90014. Full change log below as always. Cheers t0m

Re: [Catalyst] Wiki is Temporarily Unavailable

2012-07-02 Thread Tomas Doran
On 2 Jul 2012, at 23:46, Darren Duncan wrote: > > So is this the leap-second bug or the power outage or something else? -- > Darren Duncan (1) or (3), not (2). VM had hard locked, no console output etc :( Cheers t0m ___ List: Catalyst@lists.scsys.

Re: [Catalyst] Wiki is Temporarily Unavailable

2012-07-03 Thread Tomas Doran
On 3 Jul 2012, at 09:14, Alexander Hartmaier wrote: > It was (1) if ntpd in the vm wasn't running according to what I've read. Wasn't running? eh? The bug in question was only triggered when ntpd _WAS_ running, and had signalled the kernel to take the leap second. Your statement is, I guess,

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

2012-07-12 Thread Tomas Doran
On 12 Jul 2012, at 07:18, Sergey Dmitriev wrote: > Thank you Lu. BTW, set_authenticated is marked as internal method in > documentation, so it could be changed some day. > Well volunteered? Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo:

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

2012-07-13 Thread Tomas Doran
On 13 Jul 2012, at 11:51, Sergey Dmitriev wrote: > Ok, if so, no problem, i just need hint like 'how to do it right way'. :) Clone the git repository, make a patch, mail it to the list :) Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: htt

Re: [Catalyst] Plack::Middleware based session for Catalyst apps?

2012-07-15 Thread Tomas Doran
On 15 Jul 2012, at 10:29, Octavian Rasnita wrote: > Hi, > > Is it possible to use Plack::Middleware sessions in Catalyst apps? sub session { shift->request->env->{session} } ? Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.s

Re: [Catalyst] prepare_body_chunk in Catalyst 5.9

2012-07-16 Thread Tomas Doran
On 12 Jul 2012, at 21:42, Eric Wright wrote: > Looking into this further - in the the source for Catalyst I see that the > prepare_body statement has been moved to the Request object removing the > ability to hook into this event via the Plugin architecture. I was using this > hook to monitor

Re: [Catalyst] catalyst install fails on View::Component::SubInclude

2012-07-18 Thread Tomas Doran
On 18 Jul 2012, at 10:21, Andrew Baxter wrote: > Hi, > > I'm trying to set up 'Gitalist' on a server; it uses Catalyst as a framework, > and the install is failing when it tries to install > Catalyst::View::Component::SubInclude. > Can anyone help with this? Sorry about this - it's known b

Re: [Catalyst] X-Forwarded-Port works no more?

2012-07-23 Thread Tomas Doran
On 23 Jul 2012, at 08:48, Alex Povolotsky wrote: > Hello, > > I'm setting up MojoMojo, https-protected. > > However, it keeps making http: urls. > > Setting X-Forwarded-Port did not help a bit, and trying to grep > X-Forwarded-Port to 443 did not help as well. > > I've set fastcgi_param HTTP

Re: [Catalyst] Managing module regressions.

2012-07-24 Thread Tomas Doran
On 24 Jul 2012, at 19:17, Fred Moyer wrote: > Also, these experiences are that of a large team developing large apps > to hundreds of servers. The experience of one developer deploying to a > small environment will certainly be different. I wonder how life would be different if you just deployed

Re: [Catalyst] Why does the installer include the 'xt' directory

2012-07-24 Thread Tomas Doran
On 24 Jul 2012, at 19:14, Robert Rothenberg wrote: > On 24/07/12 18:34 Bill Moseley wrote: >> >> >> On Tue, Jul 24, 2012 at 9:35 AM, Robert Rothenberg > > wrote: >> >> >>> Try this: >>> >>> >> >> http://search.cpan.org/~bobtfish/Catalyst-Devel-1.37/lib/Module/In

Re: [Catalyst] po files directory for I18n and compilation

2012-07-25 Thread Tomas Doran
On 24 Jul 2012, at 23:57, Jeremy Trench wrote: > Hi, I have just started to use I18n for localization. It works fine, but I am > surprised because it seems that .po translations are only active after > restarts. > This way I can´t give customers the freedom to localize/customize their app. > I

<    1   2   3   4   5   6   7   8   9   10   >