Re: [Catalyst] Announce: Instant AJAX web front-end for DBIx::Class

2008-08-19 Thread Moritz Onken


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 the fly. The
specific goals are minimal configuration and very quick deployment.

LFB doesn't use scaffolding - the interface is dynamically generated
from files in the distribution. Table relationships are well
supported (belongs_to, has_one, might_have, and has_many), as are
auto incrementing primary keys, and many data types.

It's early days, and I'm working mostly on the ExtJS frontend at the
moment, with a new release every couple of days or so. You can see a
live demo of the current release of LFB, here[1]:

~  http://dragonstaff.co.uk/oliverg/album

Feedback and early adopters are welcome! Drop me a line if you have
any questions or comments. Here it is, on CPAN:




Hi,

Great goob! A few comments:

* Is it possible to add this as a plugin to an existing catalyst  
application

(as an admin panel)?
* Why do you not use the filter abilities of extjs for the grid? they  
are much more convenient
* Had you have a look at ExtJS 2.2? It has much better support for  
ExtJS 2.2 and Checkboxgroups
* You created these comboboxes for has_many relationships. Did you  
think about prodiving a
different interface for selecting the items depending on the number of  
possible values?
What I'm saying: If you specify the color of a item (red, blue, and  
green) and would be great to
have a radiogroup to select it. If there are many (10) It would be  
great to have a select box.

If there are even more (1000) an autocomplete field would be great.

Nevertheless a great tool. Catalyst lacked such a feature.

moritz

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


[Catalyst] Documentation for Catalyst::Model::DBIC

2008-08-19 Thread Terence Monteiro
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 = [
DBI:...,
username,
password,
{AutoCommit = 1}
  ]
  );

I could not find any documentation about how to supply a model's
configuration parameters in the YAML in Catalyst::Model, since this is
generic to all models. I finally found documentation in
Catalyst::Model::Adaptor for this, and applied it:

Model::DBIC:
schema_class: 'MyApp::Schema::FileDB'
connect_info:
- 'dbi:Pg:dbname=myapp'
- 'postgres'
- ''
- AutoCommit: 1

Can I edit the pod for Catalyst::Model::DBIC::Schema with this example
and/or Catalyst::Model and send it to the author/documenter?

-- 
Thanks and Regards,
Terence Monteiro.

DeepRoot Linux,
Ph: +91 (80) 4112 4784 / 85.


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


Re: [Catalyst] Announce: Instant AJAX web front-end for DBIx::Class

2008-08-19 Thread Ali M.
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/


[Catalyst] Catalyst::Response - send a file

2008-08-19 Thread Dermot
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 in the right direction.
Tia,
Dp.



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} ); # CODE ref error

  $res-sendfile($filepath,0,$length); # Ok no such method but
hopefully you'll get what I mean.

}

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


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

2008-08-19 Thread Oliver Gorwits

-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 configured Apache for better performance in
production.

regards,
oliver.
- --
Oliver Gorwits, Network and Telecommunications Group,
Oxford University Computing Services
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIqrEk2NPq7pwWBt4RAkJ6AJ9IYC5ddBBemb2AECT0b2J6CtbnSwCeNOhM
9IXDMEt7GyvHvvIxea0JyM0=
=yK/e
-END PGP SIGNATURE-

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


[Catalyst] Patch for Catalyst::Authentication::Store::DBIx::Class::User

2008-08-19 Thread David Jack Wange Olrik

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.



User.pm.patch
Description: Binary data




--
Best regards,
David Jack Olrik [EMAIL PROTECTED] http://david.olrik.dk
GnuPG fingerprint C290 0A4A 0CCC CBA8 2B37 E18D 01D2 F6EF 2E61 9894
[The first rule of Perl club is  You do not talk about Perl club]

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


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

2008-08-19 Thread Dermot
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} ); # CODE ref error

  $res-sendfile($filepath,0,$length); # Ok no such method but
 hopefully you'll get what I mean.

 }

 open my $filehandle, '', $filepath
or die $!;

 $c-response-body( $filehandle );


Sorry. I mustn't be making myself clear.

I want the browser to offer the user a 'save as' dialogue box.  The
modperl equivalent would be the RequestIO::sendfile

The above sends the contents of filepath to the browser

Thanx,
Dp.

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


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

2008-08-19 Thread Carl Franks
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-({ 'Content-Disposition' =
 attachment;filename=$name} ); # CODE ref error

  $res-sendfile($filepath,0,$length); # Ok no such method but
 hopefully you'll get what I mean.

 }

 open my $filehandle, '', $filepath
or die $!;

 $c-response-body( $filehandle );


 Sorry. I mustn't be making myself clear.

 I want the browser to offer the user a 'save as' dialogue box.  The
 modperl equivalent would be the RequestIO::sendfile

 The above sends the contents of filepath to the browser

Ah, ok.
You should have used header().
headers() returns the HTTP::Headers object, which you were overwriting.

$c-response-header(
'Content-Disposition' = attachment;filename=$name
);

You'll still need the body($fh) bit to send the data, too.

Carl

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


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

2008-08-19 Thread Bogdan Lucaciu
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 );
$c-res-headers-content_length( $stat-size );
$c-res-headers-last_modified( $stat-mtime );
..
my $fh = IO::File-new( $full_path, 'r' );
..
binmode $fh;
$c-res-body( $fh );

-- 
Bogdan Lucaciu
http://www.wiz.ro

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


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' =
attachment;filename=$name} ); # CODE ref error


Where did you get this syntax idea from? Since when has headers been  
returning a coderef? Go read the docs again: http://search.cpan.org/~mramberg/Catalyst-Runtime-5.7014/lib/Catalyst/Response.pm#$res-%3Eheader


Fix the above headers you have, and use the snippet luke gave below



open my $filehandle, '', $filepath
  or die $!;

$c-response-body( $filehandle );






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


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

2008-08-19 Thread Dermot
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:

$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' );
 ..
binmode $fh;
$c-res-body( $fh );


Thanx Carl, Bogdan and Oliver for your responses. Sorry if I wasn't
clear to begin with.

This method will work well for binary files. I have opted
$c-response-header() method for now.

Much appreciated.
Dp.

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


Re: [Catalyst] Announce: Instant AJAX web front-end for DBIx::Class

2008-08-19 Thread John Napiorkowski



--- 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 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 the
 fly. The
 specific goals are minimal configuration and very quick
 deployment.
 
 LFB doesn't use scaffolding - the interface is
 dynamically generated
 from files in the distribution. Table relationships are
 well
 supported (belongs_to, has_one, might_have, and has_many),
 as are
 auto incrementing primary keys, and many data types.
 
 It's early days, and I'm working mostly on the
 ExtJS frontend at the
 moment, with a new release every couple of days or so. You
 can see a
 live demo of the current release of LFB, here[1]:
 
 ~  http://dragonstaff.co.uk/oliverg/album
 
 Feedback and early adopters are welcome! Drop me a line if
 you have
 any questions or comments. Here it is, on CPAN:
 
 ~ 
 http://search.cpan.org/perldoc?CatalystX::ListFramework::Builder
 
 regards,
 oliver.
 
 [1] Thanks to Peter Edwards / Dragonstaff, for the hosting.
 - --
 Oliver Gorwits, Network and Telecommunications Group,
 Oxford University Computing Services
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.7 (Darwin)
 Comment: Using GnuPG with Mozilla -
 http://enigmail.mozdev.org
 
 iD8DBQFIqegW2NPq7pwWBt4RAjGGAJ97+5tZrJnxePBJw4AcAPWlST/5BACgnV2U
 IHwWAMerhhZ/p5r43DSUswA=
 =OlSm
 -END PGP SIGNATURE-

Looks awesome, can't wait to see what can be done once we have DBIC on Moose 
and we can do even more introspection.

John Napiorkowski


  

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


Re: [Catalyst] Announce: Instant AJAX web front-end for DBIx::Class

2008-08-19 Thread Ali M.
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/


Re: [Catalyst] Announce: Instant AJAX web front-end for DBIx::Class

2008-08-19 Thread Christopher H. Laco
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: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Announce: Instant AJAX web front-end for DBIx::Class

2008-08-19 Thread J. Shirley
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: 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/


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

2008-08-19 Thread Jonathan Rockway
* 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 that the browser
   knows what to do.

2) Actually send the data.

In your original post, you hand-waved sending the data.  A number of
posters told you how to do it.  Now you're saying you've opted [for
the] header method.  That doesn't make any sense.

So what exactly are you doing?

Regards,
Jonathan Rockway

--
print just = another = perl = hacker = if $,=$

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


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

2008-08-19 Thread Wade . Stuart

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 a file for download.

 1) Set up the HTTP headers (Content-disposition) so that the browser
knows what to do.

For the save to disk force prompt -- code I that has served me well in the
past (for all tested browsers, ie mac, ie 5-7, moz, ff 1-2, safari,
opera, lynx, many proxy servers ...)

$c-res-headers-content_type('application/octet-stream');
$c-res-headers-content_length( $stat-size );
$c-res-headers-last_modified( $stat-mtime );
$c-response-headers-header('Content-disposition:' =
attachment; filename=$filename );
$c-res-headers-expires( time() );
$c-res-headers-header( 'Last-Modified' = HTTP::Date::time2str);
$c-res-headers-header( 'Pragma'= 'no-cache' );
$c-res-headers-header( 'Cache-Control' = 'no-cache' );


This forces the save promt and also makes sure no-cache is set so that a
failed download does not leave the user with a partial file.

-Wade



 2) Actually send the data.

 In your original post, you hand-waved sending the data.  A number of
 posters told you how to do it.  Now you're saying you've opted [for
 the] header method.  That doesn't make any sense.

 So what exactly are you doing?

 Regards,
 Jonathan Rockway

 --
 print just = another = perl = hacker = if $,=$

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


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


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

2008-08-19 Thread Dermot
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' );
 ..
binmode $fh;
$c-res-body( $fh );

 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.

Please don't quote me out of context. The This referred to Bogdan
Lucaciu reply which was directly above my comments which you have
snipped.

 There are two things you need to do to send a file for download.

 1) Set up the HTTP headers (Content-disposition) so that the browser
   knows what to do.

 2) Actually send the data.

 In your original post, you hand-waved sending the data.  A number of
 posters told you how to do it.  Now you're saying you've opted [for
 the] header method.  That doesn't make any sense.

 So what exactly are you doing?


As per Carl Franks 2nd reply

 $c-response-header(
'Content-Disposition' = attachment;filename=$name
 );

 You'll still need the body($fh) bit to send the data, too.

$c-response has headers and header.

http://search.cpan.org/~mramberg/Catalyst-Runtime-5.7014/lib/Catalyst/Response.pm#$res-%3Eheader

I opted for the header method as stated by Carl Franks.

Thanx,
Dp.

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


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

2008-08-19 Thread Aristotle Pagaltzis
* [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/

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


[Catalyst] PostgreSQL Conference: West

2008-08-19 Thread Joshua Drake
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 is being held on October
10th through October 12th 2008 in the The Native American Student 
Community Center at Portland State University. 

We are currently accepting papers and you can submit your talks here:

http://www.postgresqlconference.org/west08/talk_submission/

We have already seen submissions on Tsearch2 as well as pgTap. Do you
have something you would like to share about PostgreSQL? Now is the
time!

This year West will be providing its proceeds to the Postgresql.us.

Sincerely,

Joshua D. Drake


-- 
The PostgreSQL Company since 1997: http://www.commandprompt.com/ 
PostgreSQL Community Conference: http://www.postgresqlconference.org/
United States PostgreSQL Association: http://www.postgresql.us/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate



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


Re: [Catalyst] Announce: Instant AJAX web front-end for DBIx::Class

2008-08-19 Thread Oliver Gorwits

-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 comments. Here it is, on CPAN:

Many thanks for the positive feedback received :-)

I have added a page to the Catalyst wiki, in case people have notes,
comparisons, or other comments to make on the application. The page
is called 'LFB' and you'll find a link on the main CRUD page, here:

~   http://dev.catalyst.perl.org/wiki/crud

regards,
oliver.
- --
Oliver Gorwits, Network and Telecommunications Group,
Oxford University Computing Services
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIq03r2NPq7pwWBt4RAj2fAJ9RADnr3VBjHmTtAzcomhW/un1+DQCguUTM
jByIoW5b/Tn9KFuBVghhGZo=
=PGYn
-END PGP SIGNATURE-

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


Re: [Catalyst] PostgreSQL Conference: West

2008-08-19 Thread J. Shirley
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 announcement of the call for talks:

 The second annual PostgreSQL Conference: West is being held on October
 10th through October 12th 2008 in the The Native American Student 
 Community Center at Portland State University.

 We are currently accepting papers and you can submit your talks here:

 http://www.postgresqlconference.org/west08/talk_submission/

 We have already seen submissions on Tsearch2 as well as pgTap. Do you
 have something you would like to share about PostgreSQL? Now is the
 time!

 This year West will be providing its proceeds to the Postgresql.us.

 Sincerely,

 Joshua D. Drake


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.

However, one of the problems you may find from the Catalyst side of
things is that we tend to forget the particulars of various databases
because DBIx::Class, SQL::Abstract and SQL::Translator take a lot of
the pain from being cross-database compatible out of the mix.

Happy to give a talk on painless scaffolding using some various CRUD
and DBIx::Class stuff, that works very well with PostgreSQL (my
current fascination is REST-based stuff, and am quite fond of
Catalyst::Controller::DBIC::API)

Anybody else have any thoughts?

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


Re: [Catalyst] Announce: Instant AJAX web front-end for DBIx::Class

2008-08-19 Thread Oliver Gorwits

-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 support for relocation.

When it arrives on CPAN, read the documentation to see how to set a
path under which the LFB application will run. You can then use it
as a regular Catalyst Plugin to an application.

For now, you'll still have to set the DBIx::Class Model
configuration separately for LFB, which will mean some duplication
in your configuration. I'll look into fixing that later.

| * Why do you not use the filter
| abilities of extjs for the grid? they are much more convenient

The ExtJS filter works locally on data already retrieved by the
browser. What I am doing is sending search parameters to the web
server via AJAX, which is something different. Sorry if I've
misunderstood you.

| * Did you think about prodiving a
| different interface for selecting the items depending on the
| number of possible values?

I think there are a few different ideas, here, but essentially the
application doesn't know how many possible values there are when it
generates the user interface...

| What I'm saying: If you specify the
| color of a item (red, blue, and green) and would be great to have
| a radiogroup to select it.

LFB does not yet have support for enumerated types as you find in
some databases such as PostgreSQL - it's something I am considering
adding support for, though. That would address your red/green/blue
use case, I suppose.

| If there are many (10) It would be
| great to have a select box. If there are even more (1000) an
| autocomplete field would be great.

The combobox used for has_many relations will autosuggest if you
type in (I think) four characters, then wait a bit. In v0.25 I've
fixed this to be a case insensitive search. It's horribly
inefficient though, as it's filtering against all records in the
related table (specifically, their display_name or stringification).
But then LFB isn't designed for speed, but usefulness.


Many thanks indeed for the feedback :-)

regards,
oliver.
- --
Oliver Gorwits, Network and Telecommunications Group,
Oxford University Computing Services
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIq1PW2NPq7pwWBt4RAiyyAKC8qnPfY04ZIemihFe9hgqxi+rlBACgpef2
DKwDa4ly6aVKJHCdLbB5AAM=
=r+sm
-END PGP SIGNATURE-

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


Re: [Catalyst] HTML::FormFu - how to manually control the rendering?

2008-08-19 Thread kakimoto
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
   
td
   input type=checkbox name=battery
value=batteryadditional battery
/td

td
   input type=checkbox name=charger
value=chargerspare charger
/td
   /tr
   tr

td
   input type=checkbox name=screen_cleaner
value=screen_cleanerscreen cleaner
/td

 td
   input type=checkbox name=laptop_bag
value=laptop_baglaptop carrybag
/td

 /tr

/table
 

input type=submit name=submit Value=Submit
/form



Question:   How do we have a form generated like the one above using
HTML::FormFu?

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 - oh ,yeah :)
  2) configuration (via yaml in my case)
 
 
  nevertheless, is there any way we can control the rendering (in
 TT2)?
   From what has been done in the catalyst tute for html::FormFu, i
  noticed that it just lists down form elements line by line...
  I am sure there are websites whereby the graphics designer would
 place
  form elements in different styles..
 
   This is a great tool. Please educate us more:)
 
 I agree it is a great tool - shame the mailing list is down.
 
 I think you have to set the attribute id/class for element (or
 fieldset) and use css to position those elements.
 
  - type: Checkbox
name: truefalse
label: True or False
attributes:
  title: Is this true or is this false
  class: leftCheckBoxes
 
 
 
 Good luck,
 Dp.
 
 ___
 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/
 
 
 



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


Re: [Catalyst] HTML::FormFu - how to manually control the rendering?

2008-08-19 Thread kakimoto
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 - oh ,yeah :)
  2) configuration (via yaml in my case)
 
 
  nevertheless, is there any way we can control the rendering (in
 TT2)?
   From what has been done in the catalyst tute for html::FormFu, i
  noticed that it just lists down form elements line by line...
  I am sure there are websites whereby the graphics designer would
 place
  form elements in different styles..
 
   This is a great tool. Please educate us more:)
 
 I agree it is a great tool - shame the mailing list is down.
 
 I think you have to set the attribute id/class for element (or
 fieldset) and use css to position those elements.
 
  - type: Checkbox
name: truefalse
label: True or False
attributes:
  title: Is this true or is this false
  class: leftCheckBoxes
 
 
 
 Good luck,
 Dp.
 
 ___
 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/
 
 
 



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


Re: [Catalyst] PostgreSQL Conference: West

2008-08-19 Thread Joshua Drake
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.

Thanks!

 
 However, one of the problems you may find from the Catalyst side of
 things is that we tend to forget the particulars of various databases
 because DBIx::Class, SQL::Abstract and SQL::Translator take a lot of
 the pain from being cross-database compatible out of the mix.

Right, that is the constant issue with all the toolkits. My mind is
something that provides an introduction to Catalyst (which is good for
Catalyst) but also, Why use Catalyst with PostgreSQL?. What kind of
cool features can Catalyst (and is associated libs) expose that
developers might be missing.

 
 Happy to give a talk on painless scaffolding using some various CRUD
 and DBIx::Class stuff, that works very well with PostgreSQL (my
 current fascination is REST-based stuff, and am quite fond of
 Catalyst::Controller::DBIC::API)

That would be very cool!

 
 Anybody else have any thoughts?
 

Sincerely,

Joshua D. Drake



-- 
The PostgreSQL Company since 1997: http://www.commandprompt.com/ 
PostgreSQL Community Conference: http://www.postgresqlconference.org/
United States PostgreSQL Association: http://www.postgresql.us/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate



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