[Catalyst] [Commercial] any one from Delhi / Noida / Gurgaon - India

2009-01-27 Thread abhishek jain
Hi,I am looking for the services of a catalyst developer in Delhi / Noida /
Gurgaon in India.
Pl. let me know your contact details etc. offline if interested.

-- 
Thanks and kind Regards,
Abhishek jain
___
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] Re: [RHTMLO] RFC: Catalyst::Controller::RHTMLO

2009-01-27 Thread Jason Gottshall

Jason Gottshall wrote:

John Siracusa wrote:
On Mon, Jan 26, 2009 at 1:43 PM, Jason Gottshall 
jgottsh...@capwiz.com wrote:
Caching sounds wise. The only kink I see is that my controller allows 
for

multiple instances of the same form.


The same form meaning what?  If you store forms keyed by an
arbitrary name string, you can have as many forms as you want so long
as the names are unique.


My implementation is designed to instantiate subclasses of 
Rose::HTML::Form based on the class name, which would likely also be the 
cache key, hence the difficulty in having multiple instances of the same 
form.


Honestly, the only use case I can actually envision for having the same 
form on a page more than once is maybe displaying a simple search form 
both above and below a set of results, and even then you wouldn't 
actually need two instances of the class, you'd just need to render the 
same object twice. Unless anyone can see a use case I'm missing, I think 
the point is moot, and I will just remove that whole same form twice 
concept from the module and be done with it.


I've been thinking some more about the caching issue, and I'm concerned 
about the fact that rose form objects are mutable beyond just setting 
values for the fields. Any code that works with a form object can 
add/delete fields and subforms, monkey with validation routines, etc. 
Unless I can reset a form object to it's new()-like state before I 
reuse it, it seems like I really need a whole new instance to work with 
on each request. I haven't benchmarked yet; is there really that much 
overhead in constructing these form objects?


--
Jason Gottshall
jgottsh...@capwiz.com


___
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] Re: Detach won't detach?

2009-01-27 Thread Jonathan Rockway
* On Mon, Jan 26 2009, Aristotle Pagaltzis wrote:
 sub auto :Private {
   my ( $self, $c ) = @_;

   return 1 if user_logged_in;

   $c-redirect( $c-req-base );
   return 0;
 }

If we are playing golf, I submit:

sub auto :Private {
my $c = pop;
return user_logged_in || $c-redirect( ... ) || 0;
}

Now I have that much more disk space free for pr0n!

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] Re: Detach won't detach?

2009-01-27 Thread pie3142


Why not 



sub auto :Private { 
        my $c = pop; 
        return user_logged_in || $c-redirect( ... ); 
    } 


Cheers. 

   --m 


- Original Message - 
From: Jonathan Rockway j...@jrock.us 
To: The elegant MVC web framework catalyst@lists.scsys.co.uk 
Sent: Tuesday, January 27, 2009 2:44:55 PM GMT -06:00 US/Canada Central 
Subject: Re: [Catalyst] Re: Detach won't detach? 

* On Mon, Jan 26 2009, Aristotle Pagaltzis wrote: 
     sub auto :Private { 
       my ( $self, $c ) = @_; 
 
       return 1 if user_logged_in; 
 
       $c-redirect( $c-req-base ); 
       return 0; 
     } 

If we are playing golf, I submit: 

    sub auto :Private { 
        my $c = pop; 
        return user_logged_in || $c-redirect( ... ) || 0; 
    } 

Now I have that much more disk space free for pr0n! 

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] Re: Detach won't detach?

2009-01-27 Thread Jonathan Rockway
* On Tue, Jan 27 2009, pie3...@comcast.net wrote:
 Why not

 sub auto :Private {
 my $c = pop;
 return user_logged_in || $c-res-redirect( ... );
 }

Because now the correctness of your application depends on undocumented
behavior (the return value of $c-res-redirect).

--
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] Re: Detach won't detach?

2009-01-27 Thread Andrew Rodland
On Tuesday 27 January 2009 05:33:46 pm Jonathan Rockway wrote:
 * On Tue, Jan 27 2009, pie3...@comcast.net wrote:
  Why not
 
  sub auto :Private {
  my $c = pop;
  return user_logged_in || $c-res-redirect( ... );
  }

 Because now the correctness of your application depends on undocumented
 behavior (the return value of $c-res-redirect).

|| 0 doesn't fix that any. Did you want  0? :)

Andrew

___
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: Detach won't detach?

2009-01-27 Thread Aristotle Pagaltzis
* Jonathan Rockway j...@jrock.us [2009-01-27 21:50]:
 If we are playing golf, I submit:

No, it was my way of saying that if I wanted to see Pascal,
I know where to find it.

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] Using Selenium to test Catalyst app

2009-01-27 Thread Daniel Austin
Hi

Is anyone successfully using Test::WWW::Selenium::Catalyst?

I can't get the module to install on Fedora. Looking at reports
JROCKWAY/Test-WWW-Selenium-Catalyst-0.02.tar.gz in cpan suggests that most
people can't. Have had a look at the doco and checked firefox-bin is in my
path and LD_LIBRARY_PATH is set but no joy.

The actual error message I'm getting is

Can't start selenium: Error requesting
http://localhost:/selenium-server/driver/:

If I go to that URL in a browser Selenium responds but with a 403 error
Forbidden for proxy.

Have used Selenium successfully for both Rails and Java projects but I
confess that I find its internals opaque.

Any ideas? Am running Perl 5.10.0.

Thanks

Dan
___
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] Using Selenium to test Catalyst app

2009-01-27 Thread Scott McWhirter
You need to be running the Selenium-RC server yourself.

You can get that from http://www.openqa.org/


-- 
-Scott McWhirter- | -konobi-

On Tue, Jan 27, 2009 at 19:15, Daniel Austin daniel.aus...@gmail.comwrote:

 Hi

 Is anyone successfully using Test::WWW::Selenium::Catalyst?

 I can't get the module to install on Fedora. Looking at reports
 JROCKWAY/Test-WWW-Selenium-Catalyst-0.02.tar.gz in cpan suggests that most
 people can't. Have had a look at the doco and checked firefox-bin is in my
 path and LD_LIBRARY_PATH is set but no joy.

 The actual error message I'm getting is

 Can't start selenium: Error requesting
 http://localhost:/selenium-server/driver/:

 If I go to that URL in a browser Selenium responds but with a 403 error
 Forbidden for proxy.

 Have used Selenium successfully for both Rails and Java projects but I
 confess that I find its internals opaque.

 Any ideas? Am running Perl 5.10.0.

 Thanks

 Dan


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