Re: [Catalyst] Getting the id from a resultset

2007-10-04 Thread Ash Berlin
Adeola Awoyemi wrote: > Hi all, > > I'm using DBIx::Class and trying to get the 'id' back from a create() > call but I get nothing. > > I have something like: > > # db table also has an 'id' column which > # is set to auto_increment. > my $m = $c->model('MyAppDB::Foo'); > my

Re: [Catalyst] serving static content from one controller?

2007-10-05 Thread Ash Berlin
Jonathan Rockway wrote: > Dustin Suchter wrote: >> I've looked into "Static::Simple", but I can't find a good >> manual/tutorial on it. I've tried to guess at how to use it but I >> pretty much didn't get anywhere. > > This is probably not the best idea. It would be better for your > Catalyst app

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 T

Re: [Catalyst] Re: setup_home bug (with fix): wrong detection of home directory

2007-10-08 Thread Ash Berlin
Oleg Pronin wrote: > hello? > > 2007/9/28, Oleg Pronin <[EMAIL PROTECTED] >: > > Hello. > > I put the service script into > APP_HOME/script/service/online_users.plx > > In the script: > > use FindBin; > use lib "$FindBin::Bin/../

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] uri_for and Chained actions

2007-10-11 Thread Ash Berlin
Oleg Pronin wrote: > If your project is heavy loaded then i think the best way is to write: > > or (easy to change): > > in Object: > sub update_url {'/myapp/'.shift->id.'/update} > > because Catalyst.uri_for() still takes to much CPU to call it a hundred > times per page. > > If you really t

Re: [Catalyst] Re: Serving a custom 404 page with Catalyst::Plugin::Static::Simple

2007-10-11 Thread Ash Berlin
Will Hawes wrote: > On 10/10/2007, *Will Hawes* <[EMAIL PROTECTED] > > wrote: > > With Catalyst::Plugin::Static::Simple loaded, when I request a path > like '/static/non-existent-file', the plugin does stuff like > $c->res->status(404) for me by default. Howev

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 deter

Re: [Catalyst] Web Services Integration with Catalyst

2007-10-15 Thread Ash Berlin
Bill Moseley wrote: > On Sun, Oct 14, 2007 at 08:38:52PM +0100, Matt S Trout wrote: >> Catalyst::Plugin::Server is what was going to be the community-designed new >> Plugin::XMLRPC until the namespace owner decided he didn't like the API, >> revoked the PAUSE bits for the ::Server authors and relea

Re: [Catalyst] Web Services Integration with Catalyst

2007-10-15 Thread Ash Berlin
Bill Moseley wrote: > On Mon, Oct 15, 2007 at 09:16:14AM +0100, Ash Berlin wrote: >>> I'm toying with using a ticket based authentication where the token >>> would be sent in the XMLRPC request body, but use the existing >>> (cookie-based) session setup that

Re: [Catalyst] Cache::FastMmap and Catalyst::Plugin::Cache::Store::FastMmap

2007-10-16 Thread Ash Berlin
Bill Moseley wrote: > Should Catalyst::Plugin::Cache::Store::FastMmap be un-deprecated? > > http://search.cpan.org/~nuffin/Catalyst-Plugin-Cache-Store-FastMmap-0.02/lib/Catalyst/Plugin/Cache/Store/FastMmap.pm > > This plugin is deprecated because Cache::FastMmap no longer needs > to be wr

Re: [Catalyst] How to setup production Lighttpd and Catalyst apps...

2007-10-17 Thread Ash Berlin
Jonathan Rockway wrote: > Dustin Suchter wrote: >> 2007-10-16 22:04:38: (mod_fastcgi.c.999) execve failed for: >> /srv/www/vhosts/myapponline.com/htdocs/script/myapp_fastcgi.pl >> Permission denied > > chmod a+x /srv/www/vhosts/myapponline.com/htdocs/script/myapp_fastcgi.pl ? > Also: having you

Re: [Catalyst] BUG: Catalyst dev server converts encoded '+' (%2B) into spaces in query string. (With fix and test)

2007-10-18 Thread Ash Berlin
Oleg Pronin wrote: > http://rt.cpan.org/Ticket/Display.html?id=30087 > > The bug had already been fixed in the SVN version. The test was appreciated and has been applied. Expect this to be fixed in 5.7011, which should be going to CPAN today. ___ Lis

Re: [Catalyst] Cascading action dispatching

2007-10-21 Thread Ash Berlin
Matthew Pitts wrote: > On Fri, 2007-10-19 at 17:16 -0400, Matthew Pitts wrote: >> I'm trying to figure out a way to have my Cat app dispatch in a way >> that >> would allow multiple actions in the same namespace and have them >> called >> in succession until one of them actually handles the request

Re: [Catalyst] Parley / http://dev.catalystframework.org/

2007-10-26 Thread Ash Berlin
Chisel Wright wrote: > I was just scanning through http://dev.catalystframework.org/ and > realised that (my project) Parley is listed under 'Examples'. > > I'm not sure how good an example the application is ... > > Would a kind soul with edit rights to this page please move Parley out > of exam

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 www.accr

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 t

Re: [Catalyst] [OT] Search Solution

2007-11-08 Thread Ash Berlin
Fayland Lam wrote: Sorry for a bit off topic. I just wonder how to build a search engine for a heavy traffic site? use KinoSearch or Plunce? or just get result from MySQL? how those big sites build their search engine? like facebook, hi5, digg? use SQL to get results instead of build a file in

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

[Catalyst] [ANNOUNCE] DBIx::Class 0.08008

2007-11-16 Thread Ash Berlin
Has jut hit CPAN. Expect it on your mirrors by tomorrow (if its not, then pick a mirror that doesn't suck.) Changes for this version duplicated below: 0.08008 2007-11-16 14:30:00 - Fixed join merging bug (test from Zby) - When adding relationships, it will throw an exception if yo

Re: [Catalyst] How to insert from form to MySQL with autoincrement primary key?

2007-12-09 Thread Ash Berlin
On 9 Dec 2007, at 18:03, Martin Ellison wrote: Yes, I had the DBIC trace going. Basically it did an INSERT (without the key field, correctly), but not a (select of the) LAST_INSERT_ID(), at least, not in the trace. So perhaps it had no way of knowing the new key. It wont do that - it wil

Re: [Catalyst] error handling

2007-12-10 Thread Ash Berlin
On 10 Dec 2007, at 14:44, Angel Kolev wrote: sub auto : Private { my ($self, $c) = @_; if (@{$c->error}) { $c->stash->{error} = " Critical ERROR!! Probably missing data in database."; $c->forward('/error'); $c->error(0); return 0; } } This dont work. @{$c->erro

Re: [Catalyst] Input/Parameter Checks

2007-12-13 Thread Ash Berlin
On 13 Dec 2007, at 21:21, Mesdaq, Ali wrote: Anyone have some suggestions or references to good modules or best practices in this regards? This is mainly in regards to using these inputs in sql queries or other areas where common attacks against web applications happen. I wonder in the catalyst

Re: [Catalyst] Input/Parameter Checks

2007-12-13 Thread Ash Berlin
On 13 Dec 2007, at 22:36, Mesdaq, Ali wrote: There is also input via url which is actually a little more worrisome than form input. I wonder if there is possible way the Catalyst dispatch internals can be exploited in this manner. Maybe thats an area thats already been reviewed but just ment

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] Input/Parameter Checks

2007-12-13 Thread Ash Berlin
On 13 Dec 2007, at 23:42, Jonathan Rockway wrote: On Thu, 2007-12-13 at 23:02 +, Ash Berlin wrote: # 2 my $user = $rs->create({ is_admin => 0, username => $c->req->param('username'), }); This comes under "never interpolate *anything* from the user

Re: [Catalyst] sending email with attachment

2007-12-17 Thread Ash Berlin
On 17 Dec 2007, at 15:25, Michael Higgins wrote: How are others out there doing this? My application serves a .pdf file directly, but I'd like to send as an email attachment to the account as well. Looking at Catalyst/View/Email/Template.pm in the 'TO DO' section, "There needs to be a metho

Re: [Catalyst] [RFC] Loading Plugins from lib/MyApp/Plugins

2007-12-18 Thread Ash Berlin
On 18 Dec 2007, at 02:39, Christopher Laco wrote: I know I've been down this thread before. When writing a framework that generates customized Catalyst apps, it would be a whole lot easier (well, more proper) to add plugins in lib/MyApp/Plugins, just like we do with controllers/models/view

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} {Reuniao}{_ordered_

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 sp

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ü [debug

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 Ja

Re: [Catalyst] hostname

2008-01-09 Thread Ash Berlin
On Jan 9, 2008, at 11:12 AM, Octavian Rasnita wrote: From: "Ashley" <[EMAIL PROTECTED]> Oh, I was too fast. Blush. You mean without the context object. :( Yes, that's what I want. Can't the context object be accessed in MyApp.pm? Thanks. Octavian Currently MyApp.pm *is* the context ob

Re: [Catalyst] hostname

2008-01-10 Thread Ash Berlin
On Jan 10, 2008, at 6:54 PM, Octavian Rasnita wrote: From: "Carl Johnstone" <[EMAIL PROTECTED]> Both the context object and the hostname should be available to code within MyApp.pm, but only if the code is running during a request. Ok, but how to get the hostname during a request in MyApp

Re: [Catalyst] newbie yaml question

2008-01-15 Thread Ash Berlin
On Jan 15, 2008, at 11:39 PM, Eric W. Bates wrote: I'm a little vague on the use of YAML for the all the config options; but I have my Template Toolkit options in there: # TT config options View::TT: CATALYST_VAR: c INCLUDE_PATH: - /usr/local/www/HG/root/src - /usr/local/www/HG/root/

Re: [Catalyst] PostgreSQL quoting issues

2008-01-16 Thread Ash Berlin
On Jan 16, 2008, at 3:15 PM, Marius Kjeldahl wrote: Joshua D. Drake wrote: Does anybody have an idea how I can pursuade Postgres into accepting this as just a simple string and that Postgres shouldn't try to interpret anything in it? Yeah, quote the string. You can't submit an unquoted stri

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] Catalyst test server response times.

2008-01-30 Thread Ash Berlin
On 30 Jan 2008, at 09:51, Andrew Payne wrote: On Jan 30, 2008 9:14 AM, Ian Docherty <[EMAIL PROTECTED]> wrote: It is frequently (but not always) taking 20 seconds or so to display a page in my browser The only times I've had this happen, it's been DNS issues -- in my case, dhcpd putting a

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 all

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

2008-02-26 Thread Ash Berlin
On 26 Feb 2008, at 20:20, Damon Snyder wrote: Hi Everyone, I'm developing a Catalyst::Controller::REST based controller in an app that I'm working on. I've created the _GET and _POST methods and now I'm trying to test them. They work fine if I test them using curl from the command line or

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 request

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

2008-02-26 Thread Ash Berlin
On 26 Feb 2008, at 22:20, Damon Snyder wrote: Hi Ash, Tried that, but no luck. I'm starting to wonder if Test::WWW::Mechanize::Catalyst or Test::WWW::Mechanize is clobbering the content portion of the request... What versions of Test::WWW::Mechanize::Catalyst and Test::WWW::Mechanize ar

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

[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 '5c5ad62b4e927

Re: [Catalyst] How can it be - wrong model returned?

2008-03-06 Thread Ash Berlin
On 6 Mar 2008, at 11:12, Alex Povolotsky wrote: Hello! I've made a simple many-to-many relationship for user/roles authentication, and suddenly found that my $model = $c->model('Pwuser')->search()->all(); my $roles = $c->model('Role')->search()->all(); my $ur = $c->model('UserRole')-

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 mod

Re: [Catalyst] Template Toolkit: Filter-PDF+Asian Characters(Japanese)

2008-03-11 Thread Ash Berlin
On 11 Mar 2008, at 11:18, <[EMAIL PROTECTED]> wrote: Hi, I have been looking for ways to display/download one of my pages (templates) as a PDF file and perhaps one of the easiest ways is by using the pdf filter function from Template Toolkit. [%- USE Latex(format='pdf') - %] [%- FILTER l

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 o

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. -ash_

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] $row->copy causing exit from controller(!)

2008-05-01 Thread Ash Berlin
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 (@chart_related_tables) { my $rs = $ds->results

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 $

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 Doesn'

Re: [Catalyst] UTF-16 surrogate message when writing binary data(image)

2008-05-19 Thread Ash Berlin
On 19 May 2008, at 12:34, Martin Ellison wrote: I've finally had the opportunity to test my code a bit more. The $pic_image is a string of some kind and not a file handle. Also I tried doing binmode STDOUT but this fails -- the binmode call returns false. There could be any binary data i

Re: [Catalyst] UTF-16 surrogate message when writing binary data(image)

2008-05-23 Thread Ash Berlin
mage/jpeg and the content disposition is set to inline. 2008/5/19 Ash Berlin <[EMAIL PROTECTED]>: On 19 May 2008, at 12:34, Martin Ellison wrote: I've finally had the opportunity to test my code a bit more. The $pic_image is a string of some kind and not a file handle. Also I tried

Re: [Catalyst] UTF-16 surrogate message when writing binary data(image)

2008-05-24 Thread Ash Berlin
eader( 'Content-Disposition', q{inline} ); $c->res->body($pic_image); $p is an ImageMagick picture object which is creating a byte sequence representing a JPEG image ($pic_image). I have set the output to Unicode using the Unicode plugin. This is going into an tag.

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 para

catalyst@lists.scsys.co.uk

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 lightt

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 i

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] Auth tutorial merry-go-round

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

Re: [Catalyst] Session collisions

2008-07-11 Thread Ash Berlin
On 11 Jul 2008, at 15:47, Jim Spath wrote: We've gotten some reports in one of our Catalyst applications that users are "swapping places". ie, they are suddenly logged in as another user, or someone has accessed their account. I've done some quick looking and don't see anything unusual.

Re: [Catalyst] Catalyst-Devel Patch

2008-07-21 Thread Ash Berlin
On 21 Jul 2008, at 14:37, Todd Rinaldo wrote: J, Thanks for the detailed reply. I hadn't thought about the base class nature of this class. Catalyst and DBIC are both MAJOR development projects. This means their documentation on CPAN gets spread broadly over many pages. I admit this is not a pr

Re: [Catalyst] Duplicate entries with C::P::Session::Store::DBIC and MySQL

2008-07-29 Thread Ash Berlin
On 29 Jul 2008, at 11:49, Tobias Kremer wrote: Quoting Tobias Kremer <[EMAIL PROTECTED]>: However, I'm unsure how to detect if the error really was a duplicate entry error or something else. die $@ if $@ && $@ !~ /duplicate/i; This doesn't work because different DBs throw different errors.

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 u

Re: [Catalyst] Patch for Catalyst-Action-REST-0.63 distro

2008-08-13 Thread Ash Berlin
On 13 Aug 2008, at 14:56, Oleg Kostyuk wrote: Hello! I just experienced problems with upgrading Catalyst::Action::REST to 0.63: ... *** Module::AutoInstall configuration finished. ERROR: perl: Version 5.008008 is installed, but we need version >= 5.8 at inc/Module/Install/Makefile.pm l

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-Dispo

Re: [Catalyst] IE has problems with catalyst

2008-09-10 Thread Ash Berlin
On 10 Sep 2008, at 14:19, James R. Leu wrote: Are you sure it not actually a DNS issue? Check the URLs being sent back by the cat app. Do they contain the FQDN you are expecting? Are you able to reproduce this issue on multiple IE machines? Have you tried running wireshark on the IE machi

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 th

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] 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: 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 r

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: [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), bu

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 framewo

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 lar

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 do_somet

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 tab

[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] 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 N

[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 -

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 [2009-03-07 22:20]: I used to feel the same about JS. The language itself has improved Objection: * When recommending jQuery to co-workers, friends, random passers-by and

[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 req

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 modules/mod_status.so

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 /_error

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 my

Re: [Catalyst] Notes on installing lighttpd and FastCGI for Catalyst

2009-06-06 Thread Ash Berlin
On 6 Jun 2009, at 11:32, kakim...@tpg.com.au wrote: Well, I'm facing an issue with setting up lighthttpd for production use of my catalyst app. I'm a developer so any setup task dealing with systems does cause problems. I observed another thread pretty similar to this but there's no rep

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

2009-06-06 Thread Ash Berlin
On 6 Jun 2009, at 14:34, Octavian Râsnita wrote: From: "John Romkey" I agree whole-heartedly. There are very few drawbacks to serving directly from the filesystem (only one I can think of, which has to do with access control to the content), Sometimes the static content shouldn't be ac

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 adv

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, passwor

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 th

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 i

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 remo

Re: [Catalyst] recommended/best practice way of serving static files after authentication?

2009-07-28 Thread Ash Berlin
On 28 Jul 2009, at 14:42, John SJ Anderson wrote: $WORK-mate is working on a Cat app that (among other things) allows authenticated users to download from a set of static files. He's wondering what the best way is to set things up so that the Cat app can handle the authentication/authoriza

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: Maili

Re: [Catalyst] Testing Web 2 cat apps

2009-09-14 Thread Ash Berlin
On Mon, 14 Sep 2009 13:50:51 +1000, Chris wrote: > On Sun, Sep 13, 2009 at 4:23 AM, David Stevenson wrote: >> I second the recommendation of Selenium.  Even with the IDE it can take > a >> while to get tests together, but it's well worth it IME. >> > > Well worth it, but running selenium tests

Re: [Catalyst] Deployment in practice

2009-10-11 Thread Ash Berlin
On 11 Oct 2009, at 11:59, Octavian Râsnita wrote: From: "dab" Thank you all for your answers. It was very helpful. What about the database? If starting from a certain revision you need to make some database changes (adding tables, adding/deleting some table fields) how can we automate this

Re: [Catalyst] Gitalist arrives on CPAN

2009-11-27 Thread Ash Berlin
On 27 Nov 2009, at 08:49, Tomas Doran wrote: On 27 Nov 2009, at 05:50, Jacob Helwig wrote: Is there anything that explains what the color bars under the SHA-1 hashes mean? Not as far as I know, please log a bug: http://github.com/broquaint/Gitalist/issues title='225f5690bfd8eda654a546

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 Listinf

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

  1   2   >