Re: [Catalyst] App breaks after updating to Catalyst::Plugin::Session::State::URI v0.14

2010-08-19 Thread Ash Berlin
On 19 Aug 2010, at 13:07, Charlie Garrison wrote: Good evening, I updated heaps of modules on my dev server last night, and my app broke horribly. Various errors in the log, common one being: Caught exception in engine Wrong Content-Length value: I see this error occasionally

Re: [Catalyst] App breaks after updating to Catalyst::Plugin::Session::State::URI v0.14

2010-08-19 Thread Ash Berlin
On 19 Aug 2010, at 18:12, Charlie Garrison wrote: Good morning, On 19/08/10 at 9:12 AM -0700, Bryan Opfer b...@opfermail.com wrote: I have the same exact behavior in my app after upgrading to 0.14. So, I don't think it is just your app. Interestingly, if I remove param from my config

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

2010-05-19 Thread Ash Berlin
On 19 May 2010, at 23:16, Stephen Howard wrote: I am trying to sort out some interdependent chains and I'm having trouble figuring out why the urls I'm trying to build aren't working out. I have a site where the primary objects of interest are flash-based tutorials. Each tutorial can have

Re: [Catalyst] KiokuDB, MongoDB and the NoSQL thing

2010-03-04 Thread Ash Berlin
On 4 Mar 2010, at 23:38, Darren Duncan wrote: MongoDB specifically represent data with is JSON documents. Not quite true. They are BSON (B = binary) and have specific types for dates, regexps and binary data___ List: Catalyst@lists.scsys.co.uk

Re: [Catalyst] Possible error in DBIx::Class::TimeStamp

2009-07-31 Thread Ash Berlin
On 31 Jul 2009, at 17:39, Oleg Kostyuk wrote: Hello guys, I'm looking at this part of DBIx/Class/TimeStamp.pm : And you're posting this to the wrong list: NAME DBIx::Class - Extensible and flexible object - relational mapper. GETTING HELP/SUPPORT The community can be found via:

Re: [Catalyst] RFC: Makefile warning in catalyst apps

2009-07-28 Thread Ash Berlin
On 28 Jul 2009, at 09:27, Devin Austin wrote: okay, I got this right this time. What are everyone's thoughts on including a warning and forced confirmation when a user goes to make install an application, be it downloaded from cpan or elsewhere? Something like, you are running make

Re: [Catalyst] RFC: no make install on catalyst apps

2009-07-28 Thread Ash Berlin
On 28 Jul 2009, at 14:48, Jeremiah C. Foster wrote: O HAI! The debian-perl team has built packages for Catalyst to allow debian users easy installation and quality assurance. The addition of the proposed installation code in Catalyst would break current apps and would most likely be

Re: [Catalyst] Re: sql debugging hooks

2009-07-11 Thread Ash Berlin
On 11 Jul 2009, at 19:47, Minty wrote: But I want to inject my $debugger via the Model or schema, and enable/disable it globablly via a configuration file flag. What I meant to say was I want to inject my custom debugobj handler globally (at least in development), then simplify the code in

Re: [Catalyst] Changing path seperator?

2009-06-22 Thread Ash Berlin
On 22 Jun 2009, at 13:25, Neo [GC] wrote: Hi! Is it possible to change the path seperator or to define an optional new seperator and if yes, how? Example: Instead of /foo/bar/something?param=value for MyApp::Controller::Foo::Bar I'd like to use /foo.bar.something?param=value Thanks in

Re: [Catalyst] Test::WWW::Mechanize::Catalyst and Catalyst::Controller::HTML::FormFu

2009-06-22 Thread Ash Berlin
On 22 Jun 2009, at 19:50, Kiffin Gish wrote: I'm using Test::WWW::Mechanize::Catalyst to test my Catalyst App, more specifically the process for registering new user accounts. The application form is generated by Catalyst::Controller::HTML::FormFu with the expected fields: username,

Re: [Catalyst] Slow fastcgi: A debugging aid

2009-05-05 Thread Ash Berlin
On 5 May 2009, at 04:36, Jon Schutz wrote: Octavian Râsnita wrote on 5/4/09 5:43 PM: It would be nice to be able to limit the number of requests per fastcgi child process... On Mon, 2009-05-04 at 19:56 -0500, Peter Karman wrote: Catalyst::Plugin::AutoRestart Would I be correct in

Re: [Catalyst] unknown resource

2009-05-02 Thread Ash Berlin
On 2 May 2009, at 09:25, Octavian Râşniţă wrote: Hi, I've started to use fastcgi with Apache and after a little fight with it, I made it work, but I can't access /server-status anymore. I've checked and mod_status.so is loaded in httpd.conf: LoadModule status_module

Re: [Catalyst] Bad gateway error

2009-05-02 Thread Ash Berlin
On 2 May 2009, at 10:31, Octavian Râşniţă wrote: Hi, In Catalyst::Manual::Cookbook I read # 502 is a Bad Gateway error, and will occur if the backend server is down # This allows us to display a friendly static page that says down for # maintenance Alias /_errors

[Catalyst] Announce: Test::WWW::Mechanize::Catalyst 0.51

2009-03-16 Thread Ash Berlin
New version released that closes a few rt.cpan bugs and fixed a few issues I was having with CATALYST_SERVER. 0.51 Mon Mar 16 10:00 GMT 2009 - Doc updates from thejester - User agent fixes from ANDREMAR - Fix bug where redirect was followed on a 500 response - All remote

Re: [Catalyst] Re: OT: JS no longer sucks, (was Catalyst - any good AJAX tutes?)

2009-03-08 Thread Ash Berlin
On 8 Mar 2009, at 15:18, Aristotle Pagaltzis wrote: * Ashley a...@sedition.com [2009-03-07 22:20]: I used to feel the same about JS. The language itself has improved Objection: * http://fishbowl.pastiche.org/2009/02/20/the_dom_stigma/ When recommending jQuery to co-workers, friends,

Re: [Catalyst] RFC: New to Catalyst questions

2009-02-17 Thread Ash Berlin
On 17 Feb 2009, at 11:34, Bjørn-Helge Mevik wrote: Jay Kuri wrote: To that end I'm soliciting your thoughts on things that you found particularly hard to get a grip on when you started using catalyst. (or that you are currently having trouble with) My biggest problem was how to handle the

[Catalyst] Announce: Test:WWW::Mechanize::Catalyst 0.50

2009-02-17 Thread Ash Berlin
All, After a little time of CPAN somking the dev release and having no failures, and a few people saying it still works, its time for a proper release. Winging its way through the intertubes of PAUSE and your CPAN mirrors are the following changes: 0.50 Tue Feb 17 09:12 GMT 2009 -

[Catalyst] Announce: Testers wanted for Test::WWW::Mechanize::Catalyst

2009-02-06 Thread Ash Berlin
All, I've taken over maint of TWMC and fixed the bug that the lastest WWW::Mechanize/LWP introduced, and made a few changes: Revision history for Perl module Test::WWW::Mechanize::Catalyst: 0.50_1 Thur Feb 5 09:02 GMT 2008 - App classname no longer has to be passed to import: $m

Re: [Catalyst] create model

2009-01-30 Thread Ash Berlin
On 30 Jan 2009, at 21:40, gdewitt wrote: Hi, I am using Catalyst, DBIx and postrges. My tables have primary keys. When you create a primary key in postres a unique index is implicitly created as well. So the majority of my tables have a constraint that looks like this: CONSTRAINT

Re: [Catalyst] Detach won't detach?

2009-01-26 Thread Ash Berlin
On 26 Jan 2009, at 18:56, koniczynek wrote: Hello Everyone, I am trying to accomplish what seems to be impossible. There is a controller, and inside this controller there are 3 methods: - auto - do_something - end In auto I am testing if user is logged in, if so I am detaching to the

Re: [Catalyst] Large static files behind Authorisation

2009-01-04 Thread Ash Berlin
On 4 Jan 2009, at 13:50, Ash Berlin wrote: On 4 Jan 2009, at 08:48, Trevor Phillips wrote: I'm working on a Catalyst application, and one of the requirements is to deliver large-ish files to authorised users only. I'm a bit wary about passing through large files in a framework I don't

Re: [Catalyst] Large static files behind Authorisation

2009-01-04 Thread Ash Berlin
On 4 Jan 2009, at 08:48, Trevor Phillips wrote: I'm working on a Catalyst application, and one of the requirements is to deliver large-ish files to authorised users only. I'm a bit wary about passing through large files in a framework I don't know the intricacies of, since a mishandled

Re: [Catalyst] Best practice for database connections, where $c is not available?

2008-12-31 Thread Ash Berlin
On 31 Dec 2008, at 15:37, Oliver Charles wrote: Hi, This has hit me a few times, and I've just encountered it again, so I thought it would be good to ask those wiser than I :) There have been a few times where I could do with querying the database (which I'd normally do through $c-model),

Re: [Catalyst] need to patch Test::WWW::Mechanize::Catalyst

2008-11-19 Thread Ash Berlin
On 19 Nov 2008, at 20:21, Jason Gottshall wrote: My recent patch to 5.80 trunk (svn rev 8612) enables the setting of a default virtual hostname via import: use Catalyst::Test 'MyApp', { default_host = 'virtual.com' }; Based on my reading of the Test::WWW::Mech::Catalyst source, some minor

Re: Off Topic: Re: [Catalyst] [Announce] MojoMojo 0.999021 has been released to CPAN

2008-11-02 Thread Ash Berlin
On 2 Nov 2008, at 08:10, Ali M. wrote: There is another project by Sebastien Riedel, and its called Mojo, just one Mojo. I think the people working on MojoMojo, should contact Sebastien and work out the naming thing, because it sometimes gets confusing following the news about either. best

Re: [Catalyst] Re: PDF creation in Catalyst?

2008-10-22 Thread Ash Berlin
On 22 Oct 2008, at 20:50, Aristotle Pagaltzis wrote: * Kirby Krueger [EMAIL PROTECTED] [2008-10-22 20:20]: Can someone give me those few lines? :-) sub MyApp::Controller::Root::renderview : ActionClass('RenderView') {} sub MyApp::Controller::Root::end : Private { my $self =

Re: [Catalyst] [PATCH] [RFC] Override base URI

2008-10-10 Thread Ash Berlin
On 10 Oct 2008, at 19:21, Jason Kuri wrote: I'd also love a way to callback from uri_for - but that's another story and issue altogether. Jay Seen http://search.cpan.org/~rkitover/Catalyst-Plugin-SmartURI-0.029/lib/Catalyst/Plugin/SmartURI.pm ?

Re: [Catalyst] Catalyst::Plugin::UploadProgress

2008-10-01 Thread Ash Berlin
On 1 Oct 2008, at 08:41, Stephan Jennewein wrote: On Wednesday 01 October 2008 03:25:42 am Tomas Doran wrote: On 1 Oct 2008, at 01:44, Stephan Jennewein wrote: On Wednesday 01 October 2008 12:39:08 am Andy Grundman wrote: What Catalyst engine are you using? What you described sounds like

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

2008-08-19 Thread Ash Berlin
On 19 Aug 2008, at 14:27, Dermot wrote: 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'

Re: [Catalyst] Squatting::On::Catalyst

2008-07-30 Thread Ash Berlin
On 30 Jul 2008, at 02:27, John Beppu wrote: On Tue, Jul 29, 2008 at 5:21 AM, Daniel McBrearty [EMAIL PROTECTED] wrote: my 0.05 (possibly a bit OT) : Off-topic or not, I think these are interesting and valid questions. I looked previously at a few ways of adding forums etc to the site

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

2008-07-07 Thread Ash Berlin
On 7 Jul 2008, at 09:40, Dermot wrote: Hi, I have been following the tutorial and am stuck in a loop. In my Root controller I have the following sub auto : Private { my ($self,$c) = @_; if ($c-controller eq $c-controller('Login')) { return 1; } if (!$c-user_exists) {

Re: [Catalyst] Re: Private Chained Actions?

2008-06-22 Thread Ash Berlin
On 22 Jun 2008, at 18:56, Aristotle Pagaltzis wrote: * Jonathan Rockway [EMAIL PROTECTED] [2008-06-22 15:35]: * On Fri, Jun 20 2008, Aristotle Pagaltzis wrote: That’s even uglier. Imagine there isn’t just `hello` but half a dozen other methods all sharing the same setup. So the setup code is

Re: [Catalyst] script/myapp_fastcgi.pl -d vs. nohup script/myapp_fasctgi.pl

2008-06-06 Thread Ash Berlin
On 6 Jun 2008, at 14:50, Mitch Jackson wrote: On Fri, Jun 6, 2008 at 4:22 AM, Dan Dascalescu [EMAIL PROTECTED] wrote: Works as expected. Even after I log out (without running nohup), the app correctly logs requests to myapp.stderr. I'm writing a tutorial on Catalyst deployment with

Re: [Catalyst] untainting utf8 text for db

2008-06-05 Thread Ash Berlin
On 5 Jun 2008, at 19:05, Daniel McBrearty wrote: database contains text fields which can be in any language and contain any text and punctuation 1. I am getting params back via a web form to create new records. What do I do to validate input (apart from length check)? 2. I want to take a

Re: [Catalyst] C::P::UploadProgress

2008-05-14 Thread Ash Berlin
On 14 May 2008, at 15:32, Octavian Rasnita wrote: Hi, Can C::P::UploadProgress be made to work under Windows? I've seen that it requires C::P::Cache::FastMmap and this module can't be installed under Windows, even after installing Cache::FastMmap::WithWin32. Thank you. Octavian

Re: [Catalyst] $row-copy causing exit from controller(!)

2008-05-01 Thread Ash Berlin
On 1 May 2008, at 13:33, Ash Berlin wrote: On 1 May 2008, at 13:25, Jonathan Rockway wrote: * On Thu, May 01 2008, Paul Makepeace wrote: I'm seeing something exceedingly odd: copying data causing a premature return from the controller, like a detach(), foreach my $table

Re: [Catalyst] So, what do we want in the -next- book?

2008-04-04 Thread Ash Berlin
On 4 Apr 2008, at 13:17, Kieren Diment wrote: On 4 Apr 2008, at 23:01, Ian Sillitoe wrote: [...] Or like others have suggested, a cookbook with a large variety of useful examples showing best practices for different situations. That's exactly what I would like to see. I got the first

Re: [Catalyst] sqlite3

2008-03-19 Thread Ash Berlin
On 19 Mar 2008, at 12:39, gautam gupta wrote: Hi All, is it mandatory to use sqlite3 in catalyst ? -- Not by a long shot. Catalyst also doesn't talk to a database itself. And DBIx::Class to which I'm guessing you are talking about can use almost any database that perl can talk to.

Re: [Catalyst] bypassing password authentication

2008-03-11 Thread Ash Berlin
On 11 Mar 2008, at 18:33, Jim Spath wrote: I'm currently using password authentication in a Catalyst app, but would like to implement a way to log in as a particular user, without knowing the password. (Please don't respond with don't do this... I'm aware of the security ramifications of

Re: [Catalyst] CGI.pm and Catalyst?

2008-03-07 Thread Ash Berlin
On 7 Mar 2008, at 09:03, Alex Povolotsky wrote: Martin Ellison wrote: Is there anything attached to Catalyst similar to the CGI.pm module? That is, creating the HTML by a series of procedure calls rather than by instantiating a template? Or is there some way to link up the existing CGI

[Catalyst] Error from Session plugin

2008-03-04 Thread Ash Berlin
Right then. I've been seeing this error on and off for a while when under the dev server, often caused when I'm debugging (perl -d) and restart the server mid-request. Somehow the browser gets its knickers in a twist or something. Error is: Tried to set invalid session ID

Re: [Catalyst] Session Expiry

2008-03-02 Thread Ash Berlin
On 2 Mar 2008, at 03:50, Jonathan Rockway wrote: In the second case, it's just a bug in the Session::Store::Cache store that can be fixed with the addition of a backend_expires configuration key, probably set to never by default. Not quite true. It would look like it fixes it for most cases.

Re: [Catalyst] Testing Catalyst::Controller::REST based controllers

2008-02-26 Thread Ash Berlin
On 26 Feb 2008, at 21:43, Damon Snyder wrote: Hi Ash, Everyone, Thanks, that seemed to move me along further. I'm still unable to get the content part of the POST. I'm able to send the username and password through, but for some reason my controller gets empty content. Here is the

Re: [Catalyst] newbie - syntax error

2008-02-22 Thread Ash Berlin
On 22 Feb 2008, at 14:47, Dermot wrote: 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

Re: [Catalyst] Development environments and performance

2008-01-16 Thread Ash Berlin
On Jan 16, 2008, at 5:51 PM, [EMAIL PROTECTED] wrote: John Goulah [EMAIL PROTECTED] wrote on 01/16/2008 11:13:06 AM: Why wouldn't you just use the standalone server bundled with Catalyst? Fcgi is great for production, but the processes are fairly thick memory wise, so having instances

Re: [Catalyst] Re: utf8 / pg double encoding problem

2008-01-06 Thread Ash Berlin
Never trust dumper or printing to your terminal to tell if something is in UTF8 or not. Terminals try to be too smart. This is what Devel::Peek is for. Use it. Trust that. On Jan 6, 2008, at 1:08 PM, Aristotle Pagaltzis wrote: * Daniel McBrearty [EMAIL PROTECTED] [2008-01-06 13:30]: On Jan

Re: [Catalyst] utf8 / pg double encoding problem

2008-01-05 Thread Ash Berlin
On Jan 5, 2008, at 11:28 PM, Andrew Rodland wrote: On Saturday 05 January 2008 04:54:59 pm Daniel McBrearty wrote: well I'm damned, I thought I had this stuff working squeaky clean. But I was wrong. I actually had two bugs cancelling each other out - usually. [snip] --' [debug] abçöeü

Re: [Catalyst] Problem with Catalyst::Plugin::I18N using UTF-8

2007-12-21 Thread Ash Berlin
I looked at the Unicode plugin and I believe it most likely will break the integration against our LDAP backend, for example when searching for names containing characters like æøå. (OpenLDAP requires its input as UTF-8.) In addition, this is bad if your code (or templates) contains

Re: [Catalyst] DBIC ResultSet - what columns in it?

2007-12-19 Thread Ash Berlin
On 19 Dec 2007, at 05:09, Silvio Almeida wrote: I was looking for a way to get column names from a ResultSet. If I have a table with columns id, to, from, subject which is mapped into Email then if I do $c-model('Email')-{_source_handle}{schema}{source_registrations}

Re: [Catalyst] Input/Parameter Checks

2007-12-13 Thread Ash Berlin
On 13 Dec 2007, at 22:43, Jonathan Rockway wrote: On Thu, 2007-12-13 at 21:53 +, Ash Berlin wrote: 2) avoiding SQL injection This is simple. never interpolate *anything* from the user into SQL. Use placeholders. Or better yet use an ORM such as DBIx::Class. Be mindful of these cases

Re: [Catalyst] Save as...

2007-11-09 Thread Ash Berlin
Octavian Rasnita wrote: Hi, I try to print a file to the browser using: $c-res-content_type('Application/Octet-Stream'); $c-res-header(Content-Disposition = attachment;filename=\$file\); # $c-res-header('Content-Length' = length($content)); $c-res-body($content); If I try to save the file

Re: [Catalyst] Beginner question: View directory

2007-11-08 Thread Ash Berlin
Dave Rolsky wrote: On Thu, 8 Nov 2007, Kieren Diment wrote: Good call, my mistake. Goes to show that there's not usually much (or any) extra stuff that needs to be done in the View class. I was actually struggling to think of code related things (rather than config) which you might want

Re: [Catalyst] New Catalyst site

2007-10-30 Thread Ash Berlin
Carl Johnstone wrote: I would like to announce that www.manchestereveningnews.co.uk has just been relaunched using Catalyst and mod_perl. Further to my original email, we've now finished rolling out our Manchester newspaper sites onto Catalyst. a.. Accrington Observer

Re: [Catalyst] Catalyst::Plugin::Prototype

2007-10-12 Thread Ash Berlin
Stefan Kühn wrote: The documentation of Catalyst::Plugin::Prototype is a rather thin. Only one example of a method is given: [% c.prototype.observe_field( 'editor', uri, { 'update' = 'view' } ) %] Is it correct that Catalyst::Plugin::Prototype uses and that the methods can be determined

Re: [Catalyst] Re: Encoding problem - ?fastcgi?

2007-10-08 Thread Ash Berlin
I'm also sending generated PDFs from my FastCGI bassed app. The only difference between my setup and yours appears to be the use of C::P::Unicode. Works fine for me. Not very useful I'm affraid. -ash Richard Robinson wrote: On Mon, Oct 08, 2007 at 02:07:18PM +0200, A. Pagaltzis wrote: Hi

Re: [Catalyst] Re: Catalyst Unicode woes ctd.

2007-10-07 Thread Ash Berlin
Simon Wilcox wrote: A. Pagaltzis wrote: I know I’m not very constructive here… but have I mentioned that TT2 sucks? It would, perhaps, have been a little more constructive if you had recommended the alternative that you use that doesn't have these issues. Simon. From the TT mailing