[Catalyst] Feature Request: Parameter Junctions

2008-10-22 Thread Ovid
There's an idea I've toyed with for Perl 6's CGI.pm and I think it might prove useful for Catalyst: allow junctions for request parameters. Consider the following: # ?sport=football my $params = $c-request-query_parameters; # { sport = 'football' } But if there are multiple paramters:

Re: [Catalyst] Feature Request: Parameter Junctions

2008-10-22 Thread J. Shirley
On Wed, Oct 22, 2008 at 2:34 AM, Ovid [EMAIL PROTECTED] wrote: There's an idea I've toyed with for Perl 6's CGI.pm and I think it might prove useful for Catalyst: allow junctions for request parameters. Consider the following: # ?sport=football my $params = $c-request-query_parameters;

[Catalyst] PDF creation in Catalyst?

2008-10-22 Thread Kirby Krueger
If you go to catalystframework.org, it says on the main page: And in case you want PNG or PDF output, you'll need just a few lines... Can someone give me those few lines? :-) Somewhat less snippishly, I've been trying to figure out the state of PDF generation from Catalyst. I don't

Re: [Catalyst] PDF creation in Catalyst?

2008-10-22 Thread Ashley
On Oct 22, 2008, at 11:08 AM, Kirby Krueger wrote: If you go to catalystframework.org, it says on the main page: And in case you want PNG or PDF output, you'll need just a few lines... Can someone give me those few lines? :-) I hope someone will have something more directly helpful with

Re: [Catalyst] PDF creation in Catalyst?

2008-10-22 Thread David Morel
Le 22 oct. 08 à 20:25, Cory G Watson a écrit : On Oct 22, 2008, at 1:08 PM, Kirby Krueger wrote: If you go to catalystframework.org, it says on the main page: And in case you want PNG or PDF output, you'll need just a few lines... Can someone give me those few lines? :-) This is

Re: [Catalyst] PDF creation in Catalyst?

2008-10-22 Thread Andrew Rodland
On Wednesday 22 October 2008 01:08:45 pm Kirby Krueger wrote: Somewhat less snippishly, I've been trying to figure out the state of PDF generation from Catalyst. I don't need to do anything super fancy - mostly get a report so it can print on paper that's perforated into thirds, without

Re: [Catalyst] PDF creation in Catalyst?

2008-10-22 Thread Oliver Gorwits
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kirby Krueger wrote: And in case you want PNG or PDF output, you'll need just a few lines... We have a system doing PDF on the fly from Template::Toolkit, but you have to go via LaTeX - it's not so bad, do not be put off!

[Catalyst] Re: PDF creation in Catalyst?

2008-10-22 Thread Aristotle Pagaltzis
* 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 = shift; my ( $c ) = @_; $c-forward(

[Catalyst] Re: Feature Request: Parameter Junctions

2008-10-22 Thread Aristotle Pagaltzis
* Ovid [EMAIL PROTECTED] [2008-10-22 11:40]: Because multiple parameters are supplied, the data structure changes! All an attacker needs to do is is tack on a duplicate parameter to a query string a see if the code crashes. And if it does then what? The problem is largely benign, actually,

Re: [Catalyst] PDF creation in Catalyst?

2008-10-22 Thread Cosimo Streppone
In data 22 ottobre 2008 alle ore 20:08:45, Kirby Krueger [EMAIL PROTECTED] ha scritto: PDF::ReportWriter. Some time ago I did an evaluation of all different PDF creation Perl modules, to build our own internal solution, and I chose this one. Then I worked with the original author to extend

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] PDF creation in Catalyst?

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

[Catalyst] Re: PDF creation in Catalyst?

2008-10-22 Thread Aristotle Pagaltzis
* Aristotle Pagaltzis [EMAIL PROTECTED] [2008-10-22 21:55]: control over line breaks and the like Err, I meant page breaks of course. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo:

Re: [Catalyst] PDF creation in Catalyst?

2008-10-22 Thread Nathaniel Green
On Wed, Oct 22, 2008 at 3:29 PM, Jesse Sheidlower [EMAIL PROTECTED] wrote: On Wed, Oct 22, 2008 at 08:46:25PM +0100, Oliver Gorwits wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kirby Krueger wrote: And in case you want PNG or PDF output, you'll need just a few lines... We have a

Re: [Catalyst] Feature Request: Parameter Junctions

2008-10-22 Thread Bill Moseley
On Wed, Oct 22, 2008 at 02:34:19AM -0700, Ovid wrote: Because multiple parameters are supplied, the data structure changes! All an attacker needs to do is is tack on a duplicate parameter to a query string a see if the code crashes. Isn't that what validating input is all about? Perhaps

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

2008-10-22 Thread Bill Moseley
On Wed, Oct 22, 2008 at 09:50:25PM +0200, Aristotle Pagaltzis wrote: Yes, PrinceXML http://www.princexml.com/ costs $$$, *however*, it renders HTML to PDF verbatim instead of requiring you to use completely different stuff like FOP or LaTeX – which is an especially big selling point if you’re