Am 18.08.2008 um 23:22 schrieb Oliver Gorwits:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi folks,
I'd like to announce a new Cat application which is now on the CPAN.
The ListFramework Builder (LFB) takes your DBIx::Class Schema
definition and produces an AJAX CRUD web interface, on
Hello,
I was looking to move connection info from my application's model DBIC
class to the YAML configuration, but could not find anything in the pod for
Catalyst::Model::DBIC::Schema. The only code was:
__PACKAGE__-config(
schema_class = 'MyApp::Schema::FilmDB',
connect_info = [
Looks great , Awesome
:)
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/
Hi,
I am looking for a method to send a file in response to a request. My
effort is below and all this does is print the file's path on the
page. I can't set the content-disposition or see find an obvious
method in C::Response or C::Request.
Am I looking in the wrong place? Can someone point me
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi Dermot,
Dermot wrote:
| I am looking for a method to send a file in response to a
| request.
Have you considered Catalyst::Plugin::Static::Simple ?
~ http://search.cpan.org/perldoc?Catalyst::Plugin::Static::Simple
Or, use a suitably
Hi,
When specifying a 'id_field' in the config file as stated in the
documentation it is not used instead of 'username' when looking up
the user.
This means that the select that looks up the user returns a random
user from the database as it has no where clause.
This patch fixed that issue.
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' =
attachment;filename=$name} );
2008/8/19 Dermot [EMAIL PROTECTED]:
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-({
On Tuesday 19 August 2008 16:41:40 Carl Franks wrote:
You'll still need the body($fh) bit to send the data, too.
Or, if you use Catalyst::Plugin::Static::Simple, you can use:
$c-serve_static_file($file_path);
some code snippets from that method:
$c-res-headers-content_type( $type );
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'
2008/8/19 Bogdan Lucaciu [EMAIL PROTECTED]:
On Tuesday 19 August 2008 16:41:40 Carl Franks wrote:
You'll still need the body($fh) bit to send the data, too.
Or, if you use Catalyst::Plugin::Static::Simple, you can use:
$c-serve_static_file($file_path);
some code snippets from that method:
--- On Mon, 8/18/08, Oliver Gorwits [EMAIL PROTECTED] wrote:
From: Oliver Gorwits [EMAIL PROTECTED]
Subject: [Catalyst] Announce: Instant AJAX web front-end for DBIx::Class
To: The elegant MVC web framework catalyst@lists.scsys.co.uk
Date: Monday, August 18, 2008, 5:22 PM
-BEGIN PGP
DBIC is switching to Moose?
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/
Ali M. wrote:
DBIC is switching to Moose?
Isn't everything? :-)
signature.asc
Description: OpenPGP digital signature
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive:
On Tue, Aug 19, 2008 at 9:54 AM, Christopher H. Laco
[EMAIL PROTECTED] wrote:
Ali M. wrote:
DBIC is switching to Moose?
Isn't everything? :-)
Only good things.
___
List: Catalyst@lists.scsys.co.uk
Listinfo:
* On Tue, Aug 19 2008, Dermot wrote:
This method will work well for binary files. I have opted
$c-response-header() method for now.
You haven't described what that method is.
There are two things you need to do to send a file for download.
1) Set up the HTTP headers (Content-disposition) so
Jonathan Rockway [EMAIL PROTECTED] wrote on 08/19/2008 01:20:53 PM:
* On Tue, Aug 19 2008, Dermot wrote:
This method will work well for binary files. I have opted
$c-response-header() method for now.
You haven't described what that method is.
There are two things you need to do to send
2008/8/19 Jonathan Rockway [EMAIL PROTECTED]:
* On Tue, Aug 19 2008, Dermot wrote:
$c-res-headers-content_type( $type );
$c-res-headers-content_length( $stat-size );
$c-res-headers-last_modified( $stat-mtime );
..
my $fh = IO::File-new( $full_path, 'r' );
..
* [EMAIL PROTECTED] [EMAIL PROTECTED] [2008-08-19 21:55]:
$c-response-headers-header('Content-disposition:' = attachment;
filename=$filename );
You forgot
$filename =~ s!!\\!g;
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
___
Hello,
There is a PostgreSQL Community Conference happening in Portland,
Oregon in a couple of months. It would be great if we could get a
Catalyst developer who preferred PostgreSQL to give a talk... Here is
the announcement of the call for talks:
The second annual PostgreSQL Conference: West
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Oliver Gorwits wrote:
| The ListFramework Builder (LFB) takes your DBIx::Class Schema
| definition and produces an AJAX CRUD web interface, on the fly.
|
| Feedback and early adopters are welcome! Drop me a line if you
| have any questions or
On Tue, Aug 19, 2008 at 3:41 PM, Joshua Drake [EMAIL PROTECTED] wrote:
Hello,
There is a PostgreSQL Community Conference happening in Portland,
Oregon in a couple of months. It would be great if we could get a
Catalyst developer who preferred PostgreSQL to give a talk... Here is
the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi Moritz,
Moritz Onken wrote:
| Great goob! A few comments:
|
| * Is it possible to add this as a plugin to an existing catalyst
| application (as an admin panel)?
I've just released a new version of LFB (0.25) to the CPAN, which
has much better
Hi, there,
Thank you Dermot for your response.
I am not sure i see how introducing a class element for the element
would help.
For example, if we hand coded the form, we would have something like:
form method=post action=...
...
h3Accessories/h3
table border=0
tr
If anyone has seen another tutorial (aside the one in the Catalyst manual),
please post the link here. Would help a lot :)
Thank you
K.akimoto
Quoting Dermot [EMAIL PROTECTED]:
2008/8/18 [EMAIL PROTECTED]:
hello there
I love using HTML::FormFu in these two aspects:
1) Validation -
On Tue, 19 Aug 2008 16:14:43 -0700
J. Shirley [EMAIL PROTECTED] wrote:
I'm local, and definitely prefer Pg even though I find myself stuck
with MySQL rather too frequently. I don't know if I can commit to a
talk right now, but I can help out getting you a speaker if I can't do
it myself.
26 matches
Mail list logo