Re: [Catalyst] Re: plat_forms contest started -- user feedback requested

2007-01-25 Thread Daniel McBrearty

well, it's easy to id the cat team :-)

http://team1.plat-forms.org/

theirs is up and looks already partly functional.

On 1/25/07, Daniel McBrearty <[EMAIL PROTECTED]> wrote:

after about 20 you get this weird sense of actually being really
really alert ... and never wrong ...


On 1/25/07, A. Pagaltzis <[EMAIL PROTECTED]> wrote:
> * Matt S Trout <[EMAIL PROTECTED]> [2007-01-25 18:20]:
> > On 25 Jan 2007, at 16:50, Boris Ćeranić wrote:
> > >It would be interesting to see how are they going to survive
> > >30 hours of work... Are they going to catch some sleep at all,
> > >etc...
> >
> > 30hrs isn't really that much for a dev burn - I've pulled
> > shifts that  long pretty often during heavy hacking without a
> > problem. It's when  you get to around the 3 day mark without
> > having had more than a  couple hours sleep that it starts to
> > get painful.
>
> The really bad thing is not a single 30-hour day, it's when
> you're doing a long string of 12- to 18-hour days.
>
> Sleep deprivation when well rested is actually documented to
> have a bunch of psychotropic effects including mild euphoria.
> Anyone who has stayed up long enough to get a weird sense of
> humour knows this first hand.
>
> Regards,
> --
> Aristotle Pagaltzis // 
>
> ___
> List: Catalyst@lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>


--
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131




--
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Re: plat_forms contest started -- user feedback requested

2007-01-25 Thread Daniel McBrearty

after about 20 you get this weird sense of actually being really
really alert ... and never wrong ...


On 1/25/07, A. Pagaltzis <[EMAIL PROTECTED]> wrote:

* Matt S Trout <[EMAIL PROTECTED]> [2007-01-25 18:20]:
> On 25 Jan 2007, at 16:50, Boris Ćeranić wrote:
> >It would be interesting to see how are they going to survive
> >30 hours of work... Are they going to catch some sleep at all,
> >etc...
>
> 30hrs isn't really that much for a dev burn - I've pulled
> shifts that  long pretty often during heavy hacking without a
> problem. It's when  you get to around the 3 day mark without
> having had more than a  couple hours sleep that it starts to
> get painful.

The really bad thing is not a single 30-hour day, it's when
you're doing a long string of 12- to 18-hour days.

Sleep deprivation when well rested is actually documented to
have a bunch of psychotropic effects including mild euphoria.
Anyone who has stayed up long enough to get a weird sense of
humour knows this first hand.

Regards,
--
Aristotle Pagaltzis // 

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/




--
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] plat_forms contest started -- user feedback requested

2007-01-25 Thread Boris Ćeranić

On 25/01/07, Matt S Trout <[EMAIL PROTECTED]> wrote:


On 25 Jan 2007, at 16:50, Boris Ćeranić wrote:

> It would be interesting to see how are they going to survive 30 hours
> of work... Are they going to catch some sleep at all, etc...

30hrs isn't really that much for a dev burn - I've pulled shifts that
long pretty often during heavy hacking without a problem. It's when
you get to around the 3 day mark without having had more than a
couple hours sleep that it starts to get painful.


It's not  impossible, I know it myself as well, but things change a
lot when you stabilise yourself (getting up in the morning, and
sleeping during the night)... It takes some time to be able to pull 2
day shifts.

Another questions is concentration as well as productivity rate during
shifts longer than 16 hours.



--
Matt S Trout, Technical Director, Shadowcat Systems Ltd.
Offering custom development, consultancy and support contracts for
Catalyst,
DBIx::Class and BAST. Contact mst (at) shadowcatsystems.co.uk for
details.
+ Help us build a better perl ORM: http://dbix-
class.shadowcatsystems.co.uk/ +



___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] Re: plat_forms contest started -- user feedback requested

2007-01-25 Thread A. Pagaltzis
* Matt S Trout <[EMAIL PROTECTED]> [2007-01-25 18:20]:
> On 25 Jan 2007, at 16:50, Boris Ćeranić wrote:
> >It would be interesting to see how are they going to survive
> >30 hours of work... Are they going to catch some sleep at all,
> >etc...
> 
> 30hrs isn't really that much for a dev burn - I've pulled
> shifts that  long pretty often during heavy hacking without a
> problem. It's when  you get to around the 3 day mark without
> having had more than a  couple hours sleep that it starts to
> get painful.

The really bad thing is not a single 30-hour day, it’s when
you’re doing a long string of 12- to 18-hour days.

Sleep deprivation when well rested is actually documented to
have a bunch of psychotropic effects including mild euphoria.
Anyone who has stayed up long enough to get a weird sense of
humour knows this first hand.

Regards,
-- 
Aristotle Pagaltzis // 

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] plat_forms contest started -- user feedback requested

2007-01-25 Thread Matt S Trout


On 25 Jan 2007, at 16:50, Boris Ćeranić wrote:


It would be interesting to see how are they going to survive 30 hours
of work... Are they going to catch some sleep at all, etc...


30hrs isn't really that much for a dev burn - I've pulled shifts that  
long pretty often during heavy hacking without a problem. It's when  
you get to around the 3 day mark without having had more than a  
couple hours sleep that it starts to get painful.


--
Matt S Trout, Technical Director, Shadowcat Systems Ltd.
Offering custom development, consultancy and support contracts for  
Catalyst,
DBIx::Class and BAST. Contact mst (at) shadowcatsystems.co.uk for  
details.
+ Help us build a better perl ORM: http://dbix- 
class.shadowcatsystems.co.uk/ +




___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] plat_forms contest started -- user feedback requested

2007-01-25 Thread Boris Ćeranić

It would be interesting to see how are they going to survive 30 hours
of work... Are they going to catch some sleep at all, etc...

On 25/01/07, Daniel McBrearty <[EMAIL PROTECTED]> wrote:

heh. well, I gues that it is "feedback" ... of a sort ...

which team is using cat?

kind of dumb to make the stuff public too soon. I thought the best
response to the "when will you go public question" was "not before
Friday morning" ...

On 1/25/07, Nilson Santos Figueiredo Junior <[EMAIL PROTECTED]> wrote:
> On 1/25/07, Alvar Freude <[EMAIL PROTECTED]> wrote:
> > All teams got their task two hours ago and now have 28 hours left ;-)
> >
> > You can support the teams by user feedback. The teams will post the URLs of
> > their work on the plat_forms blog:
> >
> >   
>
> Apparently, Team 6 (a PHP one) was the first one to have a working prototype.
>
> Unfortunately, I was just trying registering and it seems someone
> already hacked it.
> Here's what the screen looked like after trying registering:
>
>   http://www.nilson.org/images/team6hacked.jpg
>
> I hope the Perl/Catalyst teams are not as ill-fated as this one.
>
> -Nilson Santos F. Jr.
>
> ___
> List: Catalyst@lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>


--
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/



___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Reaction Authentication

2007-01-25 Thread Matt S Trout


On 25 Jan 2007, at 16:24, Jonas Alves wrote:




On 25/01/07, Guillermo Roditi <[EMAIL PROTECTED]> wrote: what i  
meant is that you get new_password and confirm_new password,

but you still need the original password field

see code for  
Reaction::InterfaceModel::Action::DBIC::User::Role::SetPassword;


Hmm, I wonder if all my implementations send out a confirm link and  
take the password as an update on account confirmation.


I'll hopefully be putting together a full basic registration+etc.  
workflow shortly, perhaps you're better sticking to your own code for  
the mo and then submitting patches to that once it's ready - or  
making a start, I'm quite happy to take "this is roughly right" code  
at this stage and we can refactor it once it's there.


--
Matt S Trout, Technical Director, Shadowcat Systems Ltd.
Offering custom development, consultancy and support contracts for  
Catalyst,
DBIx::Class and BAST. Contact mst (at) shadowcatsystems.co.uk for  
details.
+ Help us build a better perl ORM: http://dbix- 
class.shadowcatsystems.co.uk/ +




___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Reaction Authentication

2007-01-25 Thread Jonas Alves

On 25/01/07, Guillermo Roditi <[EMAIL PROTECTED]> wrote:


what i meant is that you get new_password and confirm_new password,
but you still need the original password field

see code for
Reaction::InterfaceModel::Action::DBIC::User::Role::SetPassword;



Yes, but i have the password field in the model passed to "target_model".
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] plat_forms contest started -- user feedback requested

2007-01-25 Thread Daniel McBrearty

heh. well, I gues that it is "feedback" ... of a sort ...

which team is using cat?

kind of dumb to make the stuff public too soon. I thought the best
response to the "when will you go public question" was "not before
Friday morning" ...

On 1/25/07, Nilson Santos Figueiredo Junior <[EMAIL PROTECTED]> wrote:

On 1/25/07, Alvar Freude <[EMAIL PROTECTED]> wrote:
> All teams got their task two hours ago and now have 28 hours left ;-)
>
> You can support the teams by user feedback. The teams will post the URLs of
> their work on the plat_forms blog:
>
>   

Apparently, Team 6 (a PHP one) was the first one to have a working prototype.

Unfortunately, I was just trying registering and it seems someone
already hacked it.
Here's what the screen looked like after trying registering:

  http://www.nilson.org/images/team6hacked.jpg

I hope the Perl/Catalyst teams are not as ill-fated as this one.

-Nilson Santos F. Jr.

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/




--
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Reaction Authentication

2007-01-25 Thread Guillermo Roditi

what i meant is that you get new_password and confirm_new password,
but you still need the original password field

see code for Reaction::InterfaceModel::Action::DBIC::User::Role::SetPassword;


On 1/25/07, Guillermo Roditi <[EMAIL PROTECTED]> wrote:

it's new_password and confirm_new_password

with new_ prepended. that's why it's failing

On 1/25/07, Jonas Alves <[EMAIL PROTECTED]> wrote:
>
>
> On 25/01/07, Jonas Alves <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > On 25/01/07, Matt S Trout < [EMAIL PROTECTED]> wrote:
> > >
> > > On 25 Jan 2007, at 12:55, Jonas Alves wrote:
> > >
> > > >
> > > >
> > > > On 23/01/07, Guillermo Roditi <[EMAIL PROTECTED] > wrote: Hey, any
> > > > chance you could post the working code now that you fixed it.
> > > >
> > > > There is no actual real working code for reaction out there, and
> > > > it'd be nice to look at some real code..
> > > >
> > > > in other words, can I see your finished action and controller
> > > > classes so i can steal ideas and learn something?
> > > >
> > > > I am working on a reaction app that I will post to public SVN as
> > > > soon as it actually runs and keep it public as i develop it so
> > > > other people can get an idea aswell
> > > >
> > > > Hi Guillermo,
> > > > The application that I'm developing is for a client so I can't make
> > > > it public. But here are the pertinent action classes and
> > > > controllers that i have for now:
> > >
> > > Any particular reason you aren't using the existing SetPassword roles
> > > etc. ?
> >
> >
> > Ups, I guess i missed that one. I will update my code to use it. Thanks :D
>
> Hum, I can't make it work.
> This is what i have:
>
> package OliveiraDaSerra::Model::Action::CreateUser;
> use Reaction::Class;
>
> extends qw(
>
> Reaction::InterfaceModel::Action::DBIC::ResultSet::Create
> Reaction::InterfaceModel::Action::User::SetPassword
> );
>
> does
> 'Reaction::InterfaceModel::Action::DBIC::User::Role::SetPassword';
>
> has 'email_address' => (isa => 'EmailAddress', is => 'rw',
> set_or_lazy_fail('email_address'));
> #has 'password'  => (isa => 'StrongPassword', is => 'rw');
> #has 'confirm_password' => (isa => 'StrongPassword', is => 'rw');
> has 'last_name' => (isa => 'NonEmptySimpleStr', is => 'rw', predicate =>
> 'has_last_name');
> has 'first_name'=> (isa => 'NonEmptySimpleStr', is => 'rw',
> set_or_lazy_fail('first_name'));
> has 'username'  => (isa => 'NonEmptySimpleStr', is => 'rw',
> set_or_lazy_fail('username'));
>
> #override parameter_hashref => sub {
> #my $hash = super();
> #$hash->{password} = delete $hash->{new_password};
> #delete $hash->{confirm_new_password};
> #return $hash;
> #};
>
> 1;
>
> But i get this error: Can't locate object method "password" via package
> "DBIx::Class::ResultSet" at
> 
/usr/local/share/perl/5.8.7/Reaction/InterfaceModel/Action/DBIC/User/Role/SetPassword.pm
> line 8.
>
> What am i doing wrong?
>
> --
> Jonas
>
>
>
>
> ___
> List: Catalyst@lists.rawmode.org
> Listinfo:
> http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>
>
>



___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Reaction Authentication

2007-01-25 Thread Guillermo Roditi

it's new_password and confirm_new_password

with new_ prepended. that's why it's failing

On 1/25/07, Jonas Alves <[EMAIL PROTECTED]> wrote:



On 25/01/07, Jonas Alves <[EMAIL PROTECTED]> wrote:
>
>
>
> On 25/01/07, Matt S Trout < [EMAIL PROTECTED]> wrote:
> >
> > On 25 Jan 2007, at 12:55, Jonas Alves wrote:
> >
> > >
> > >
> > > On 23/01/07, Guillermo Roditi <[EMAIL PROTECTED] > wrote: Hey, any
> > > chance you could post the working code now that you fixed it.
> > >
> > > There is no actual real working code for reaction out there, and
> > > it'd be nice to look at some real code..
> > >
> > > in other words, can I see your finished action and controller
> > > classes so i can steal ideas and learn something?
> > >
> > > I am working on a reaction app that I will post to public SVN as
> > > soon as it actually runs and keep it public as i develop it so
> > > other people can get an idea aswell
> > >
> > > Hi Guillermo,
> > > The application that I'm developing is for a client so I can't make
> > > it public. But here are the pertinent action classes and
> > > controllers that i have for now:
> >
> > Any particular reason you aren't using the existing SetPassword roles
> > etc. ?
>
>
> Ups, I guess i missed that one. I will update my code to use it. Thanks :D

Hum, I can't make it work.
This is what i have:

package OliveiraDaSerra::Model::Action::CreateUser;
use Reaction::Class;

extends qw(

Reaction::InterfaceModel::Action::DBIC::ResultSet::Create
Reaction::InterfaceModel::Action::User::SetPassword
);

does
'Reaction::InterfaceModel::Action::DBIC::User::Role::SetPassword';

has 'email_address' => (isa => 'EmailAddress', is => 'rw',
set_or_lazy_fail('email_address'));
#has 'password'  => (isa => 'StrongPassword', is => 'rw');
#has 'confirm_password' => (isa => 'StrongPassword', is => 'rw');
has 'last_name' => (isa => 'NonEmptySimpleStr', is => 'rw', predicate =>
'has_last_name');
has 'first_name'=> (isa => 'NonEmptySimpleStr', is => 'rw',
set_or_lazy_fail('first_name'));
has 'username'  => (isa => 'NonEmptySimpleStr', is => 'rw',
set_or_lazy_fail('username'));

#override parameter_hashref => sub {
#my $hash = super();
#$hash->{password} = delete $hash->{new_password};
#delete $hash->{confirm_new_password};
#return $hash;
#};

1;

But i get this error: Can't locate object method "password" via package
"DBIx::Class::ResultSet" at
/usr/local/share/perl/5.8.7/Reaction/InterfaceModel/Action/DBIC/User/Role/SetPassword.pm
line 8.

What am i doing wrong?

--
Jonas




___
List: Catalyst@lists.rawmode.org
Listinfo:
http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive:
http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/





___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Reaction Authentication

2007-01-25 Thread Jonas Alves

On 25/01/07, Jonas Alves <[EMAIL PROTECTED]> wrote:




On 25/01/07, Matt S Trout <[EMAIL PROTECTED]> wrote:
>
>
> On 25 Jan 2007, at 12:55, Jonas Alves wrote:
>
> >
> >
> > On 23/01/07, Guillermo Roditi <[EMAIL PROTECTED]> wrote: Hey, any
> > chance you could post the working code now that you fixed it.
> >
> > There is no actual real working code for reaction out there, and
> > it'd be nice to look at some real code..
> >
> > in other words, can I see your finished action and controller
> > classes so i can steal ideas and learn something?
> >
> > I am working on a reaction app that I will post to public SVN as
> > soon as it actually runs and keep it public as i develop it so
> > other people can get an idea aswell
> >
> > Hi Guillermo,
> > The application that I'm developing is for a client so I can't make
> > it public. But here are the pertinent action classes and
> > controllers that i have for now:
>
> Any particular reason you aren't using the existing SetPassword roles
> etc. ?


Ups, I guess i missed that one. I will update my code to use it. Thanks :D



Hum, I can't make it work.
This is what i have:

package OliveiraDaSerra::Model::Action::CreateUser;
use Reaction::Class;

extends qw(
   Reaction::InterfaceModel::Action::DBIC::ResultSet::Create
   Reaction::InterfaceModel::Action::User::SetPassword
);

does 'Reaction::InterfaceModel::Action::DBIC::User::Role::SetPassword';

has 'email_address' => (isa => 'EmailAddress', is => 'rw',
set_or_lazy_fail('email_address'));
#has 'password'  => (isa => 'StrongPassword', is => 'rw');
#has 'confirm_password' => (isa => 'StrongPassword', is => 'rw');
has 'last_name' => (isa => 'NonEmptySimpleStr', is => 'rw', predicate =>
'has_last_name');
has 'first_name'=> (isa => 'NonEmptySimpleStr', is => 'rw',
set_or_lazy_fail('first_name'));
has 'username'  => (isa => 'NonEmptySimpleStr', is => 'rw',
set_or_lazy_fail('username'));

#override parameter_hashref => sub {
#my $hash = super();
#$hash->{password} = delete $hash->{new_password};
#delete $hash->{confirm_new_password};
#return $hash;
#};

1;

But i get this error: Can't locate object method "password" via package
"DBIx::Class::ResultSet" at
/usr/local/share/perl/5.8.7/Reaction/InterfaceModel/Action/DBIC/User/Role/SetPassword.pm
line 8.

What am i doing wrong?

--
Jonas
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] plat_forms contest started -- user feedback requested

2007-01-25 Thread Nilson Santos Figueiredo Junior

On 1/25/07, Alvar Freude <[EMAIL PROTECTED]> wrote:

All teams got their task two hours ago and now have 28 hours left ;-)

You can support the teams by user feedback. The teams will post the URLs of
their work on the plat_forms blog:

  


Apparently, Team 6 (a PHP one) was the first one to have a working prototype.

Unfortunately, I was just trying registering and it seems someone
already hacked it.
Here's what the screen looked like after trying registering:

 http://www.nilson.org/images/team6hacked.jpg

I hope the Perl/Catalyst teams are not as ill-fated as this one.

-Nilson Santos F. Jr.

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] plat_forms contest started -- user feedback requested

2007-01-25 Thread Matt S Trout


On 25 Jan 2007, at 15:25, Daniel McBrearty wrote:


neat. any idea what if any teams are using cat?


Yes, along with DBIx::DataModel

The other two teams are using Gantry + DBIx::Class and Mason +  
DBIx::Class

--
Matt S Trout, Technical Director, Shadowcat Systems Ltd.
Offering custom development, consultancy and support contracts for  
Catalyst,
DBIx::Class and BAST. Contact mst (at) shadowcatsystems.co.uk for  
details.
+ Help us build a better perl ORM: http://dbix- 
class.shadowcatsystems.co.uk/ +




___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] plat_forms contest started -- user feedback requested

2007-01-25 Thread Daniel McBrearty

neat. any idea what if any teams are using cat?

On 1/25/07, Boris Ćeranić <[EMAIL PROTECTED]> wrote:

Hi,

Thank you for giving me a reminder :) I was certainly going to be
available for reviews today.

Best luck to "our" teams :)

Regards,
Boris

On 25/01/07, Alvar Freude <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> as mentioned some time ago, there is the plat_forms contest, see
> 
>
>
> All teams got their task two hours ago and now have 28 hours left ;-)
>
> You can support the teams by user feedback. The teams will post the URLs of
> their work on the plat_forms blog:
>
>   
>
>
> Perl teams are:
>
>   Team 1 (Etat de Genève/Optaros)
>   Team 2 (plusW)
>   Team 5 (Revolution Systems)
>
> 
>
> There are also three PHP and Java teams. No Ruby, Python and .NET teams,
> because there where not enough teams.
>
>
> >From the task description:
>
>   "PbT (People by Temperament) is a simple community portal
>where members can find others with whom they might like
>to get in contact: people register to become members,
>take a personality test, and then search for others based
>on criteria such as personality types, likes/dislikes etc.
>Members can then get in contect with one another if both
>choose to do so.
>The system has both an interactice user interface via
>HTML pagesand a WDL/SOAP-based programmatic interface."
>
>
> The intro slides with some information are here:
>
> 
>
>
> The community may help the teams by giving user feedback and usual
> community support. Helping coding is not allowed ;-)
>
>
>
> Ciao
>   Alvar
>
>
>
> --
> ** Alvar C.H. Freude, http://alvar.a-blast.org/
> ** http://www.wen-waehlen.de/
> ** http://odem.org/
> **http://www.assoziations-blaster.de/
>
>
>
> ___
> List: Catalyst@lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>
>
>
>

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/




--
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Re: Reaction Widgets questions

2007-01-25 Thread Jonas Alves

On 25/01/07, Matt S Trout <[EMAIL PROTECTED]> wrote:



On 25 Jan 2007, at 12:36, Jonas Alves wrote:

>
>
> On 17/01/07, Matt S Trout <[EMAIL PROTECTED]> wrote:
> On 16 Jan 2007, at 17:07, Jonas Alves wrote:
> > As for a controller that limits visible attributes, are you wanting
> > to do this for the listview or globally?
> >
> > Imagine that i have 2 forms for the same table. One with all the
> > fields and another with just some of them. What came to me was
> > define another schema class to the same table but just with some of
> > the attributes defined. But that doesn't seem the best aproach...
> > But creating new action classes that just differ in the attributtes
> > defined doesn't seem a better way. Maybe if I could pass the fields
> > to the class when I push it to the viewport. Something like:
>
> Assuming the action can be committed without the additional fields,
> just subclass the Action class and override parameter_attributes to
> only return the attributes you want visible, then pass a copy of that
> action to the ViewPort instead.
>
> It's not perfect, but it works pretty well for me so far so I'm
> punting on a better solution until we've got a better idea what we
> need out of it.
>
> Thanks Matt. I think i will stick with that.
> How about javascript and ajax form validation in Reaction. Is that
> on the pipeline?

Oh hell yes. Needs a couple bits of infrastructure to do it properly,
but it's definitely coming :)



Cool. Waiting anxious for it. :)
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Reaction Authentication

2007-01-25 Thread Jonas Alves

On 25/01/07, Matt S Trout <[EMAIL PROTECTED]> wrote:



On 25 Jan 2007, at 12:55, Jonas Alves wrote:

>
>
> On 23/01/07, Guillermo Roditi <[EMAIL PROTECTED]> wrote: Hey, any
> chance you could post the working code now that you fixed it.
>
> There is no actual real working code for reaction out there, and
> it'd be nice to look at some real code..
>
> in other words, can I see your finished action and controller
> classes so i can steal ideas and learn something?
>
> I am working on a reaction app that I will post to public SVN as
> soon as it actually runs and keep it public as i develop it so
> other people can get an idea aswell
>
> Hi Guillermo,
> The application that I'm developing is for a client so I can't make
> it public. But here are the pertinent action classes and
> controllers that i have for now:

Any particular reason you aren't using the existing SetPassword roles
etc. ?



Ups, I guess i missed that one. I will update my code to use it. Thanks :D

--
Jonas
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Reaction Authentication

2007-01-25 Thread Matt S Trout


On 25 Jan 2007, at 12:55, Jonas Alves wrote:




On 23/01/07, Guillermo Roditi <[EMAIL PROTECTED]> wrote: Hey, any  
chance you could post the working code now that you fixed it.


There is no actual real working code for reaction out there, and  
it'd be nice to look at some real code..


in other words, can I see your finished action and controller  
classes so i can steal ideas and learn something?


I am working on a reaction app that I will post to public SVN as  
soon as it actually runs and keep it public as i develop it so  
other people can get an idea aswell


Hi Guillermo,
The application that I'm developing is for a client so I can't make  
it public. But here are the pertinent action classes and  
controllers that i have for now:


Any particular reason you aren't using the existing SetPassword roles  
etc. ?

--
Matt S Trout, Technical Director, Shadowcat Systems Ltd.
Offering custom development, consultancy and support contracts for  
Catalyst,
DBIx::Class and BAST. Contact mst (at) shadowcatsystems.co.uk for  
details.
+ Help us build a better perl ORM: http://dbix- 
class.shadowcatsystems.co.uk/ +




___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Reaction Authentication

2007-01-25 Thread Jonas Alves

On 23/01/07, Guillermo Roditi <[EMAIL PROTECTED]> wrote:


Hey, any chance you could post the working code now that you fixed it.

There is no actual real working code for reaction out there, and it'd be
nice to look at some real code..

in other words, can I see your finished action and controller classes so i
can steal ideas and learn something?

I am working on a reaction app that I will post to public SVN as soon as
it actually runs and keep it public as i develop it so other people can get
an idea aswell



Hi Guillermo,
The application that I'm developing is for a client so I can't make it
public. But here are the pertinent action classes and controllers that i
have for now:

package MyApp::Model::Action::AuthUser;
use Reaction::Class;
use Reaction::Types::DBIC;
use Reaction::InterfaceModel::Action;

class AuthUser is 'Reaction::InterfaceModel::Action', which {
 has 'username' => (isa => 'NonEmptySimpleStr', is => 'rw',
set_or_lazy_fail('username'));
 has 'password' => (isa => 'Password',  is => 'rw',
set_or_lazy_fail('password'));

 after sync_all => sub {
   my $self = shift;
   my $c = $self->ctx;
   if ($c->login($self->username, $self->password)) {
   $c->response->redirect($c->uri_for(
 $c->request->params->{request_uri}
   ));
   }
   else {
   $self->error_message("Wrong Password");
   }
 };

 override error_for_attribute => sub {
   my ($self, $attr) = @_;
   if ($attr->name eq 'password' && $self->error_message) {
 return $self->error_message;
   }
   return super();
 };

 override can_apply => sub {
   my ($self) = @_;
   return 0 if $self->error_message;
   return super();
 };

};

1;


package MyApp::Model::Action::CreateUser;
use Reaction::Class;
extends 'Reaction::InterfaceModel::Action::DBIC::ResultSet::Create';

has 'email_address' => (isa => 'EmailAddress', is => 'rw',
set_or_lazy_fail('email_address'));
has 'password'  => (isa => 'StrongPassword', is => 'rw');
has 'confirm_password' => (isa => 'StrongPassword', is => 'rw');
has 'last_name' => (isa => 'NonEmptySimpleStr', is => 'rw', predicate =>
'has_last_name');
has 'first_name'=> (isa => 'NonEmptySimpleStr', is => 'rw',
set_or_lazy_fail('first_name'));
has 'username'  => (isa => 'NonEmptySimpleStr', is => 'rw',
set_or_lazy_fail('username'));

override error_for_attribute => sub {
 my ($self, $attr) = @_;
 if ($attr->name eq 'confirm_password'
 && $self->confirm_password
 && $self->password
 && $self->confirm_password ne $self->password) {
   return "Passwords don't match";
 }
 return super();
};

override can_apply => sub {
 my ($self) = @_;
 return 0 if $self->confirm_password ne $self->password;
 return super();
};

1;

package MyApp::Controller::Login;
use strict;
use warnings;
use base 'Reaction::UI::Controller';
use Reaction::Class;
use aliased 'Reaction::UI::ViewPort::ActionForm';

sub base :Chained('/base') :PathPart('login') :CaptureArgs(0) {}

sub login :Chained('base') :PathPart('') :Args(0) {
   my ($self, $c) = @_;
   my $action = $c->model('Action::AuthUser')->new(ctx => $c);
   $self->push_viewport(
   ActionForm,
   action => $action,
   layout => 'login_form',
   column_order => [qw/username password/],
   );
}

1;


package MyApp::Controller::User;
use strict;
use warnings;
use base 'Reaction::UI::CRUDController';
use Reaction::Class;

__PACKAGE__->config(
 model_base => 'DBIC',
 model_name => 'User',
 action => { base => { Chained => '/base', PathPart => 'user' },
 list => { ViewPort => { layout => 'user_list' } },
 update => { ViewPort => { layout => 'user_form' } },
 create => { ViewPort => {
   layout => 'user_form',
   column_order => [qw/
   first_name
   last_name
   username
   password
   confirm_password
   email_address
   /],
 } } },
);

1;

Hope it helps. :)

Cheers,
--
Jonas
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Re: Reaction Widgets questions

2007-01-25 Thread Matt S Trout


On 25 Jan 2007, at 12:36, Jonas Alves wrote:




On 17/01/07, Matt S Trout <[EMAIL PROTECTED]> wrote:
On 16 Jan 2007, at 17:07, Jonas Alves wrote:
> As for a controller that limits visible attributes, are you wanting
> to do this for the listview or globally?
>
> Imagine that i have 2 forms for the same table. One with all the
> fields and another with just some of them. What came to me was
> define another schema class to the same table but just with some of
> the attributes defined. But that doesn't seem the best aproach...
> But creating new action classes that just differ in the attributtes
> defined doesn't seem a better way. Maybe if I could pass the fields
> to the class when I push it to the viewport. Something like:

Assuming the action can be committed without the additional fields,
just subclass the Action class and override parameter_attributes to
only return the attributes you want visible, then pass a copy of that
action to the ViewPort instead.

It's not perfect, but it works pretty well for me so far so I'm
punting on a better solution until we've got a better idea what we
need out of it.

Thanks Matt. I think i will stick with that.
How about javascript and ajax form validation in Reaction. Is that  
on the pipeline?


Oh hell yes. Needs a couple bits of infrastructure to do it properly,  
but it's definitely coming :)

--
Matt S Trout, Technical Director, Shadowcat Systems Ltd.
Offering custom development, consultancy and support contracts for  
Catalyst,
DBIx::Class and BAST. Contact mst (at) shadowcatsystems.co.uk for  
details.
+ Help us build a better perl ORM: http://dbix- 
class.shadowcatsystems.co.uk/ +




___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Re: Reaction Widgets questions

2007-01-25 Thread Jonas Alves

On 17/01/07, Matt S Trout <[EMAIL PROTECTED]> wrote:



On 16 Jan 2007, at 17:07, Jonas Alves wrote:
> As for a controller that limits visible attributes, are you wanting
> to do this for the listview or globally?
>
> Imagine that i have 2 forms for the same table. One with all the
> fields and another with just some of them. What came to me was
> define another schema class to the same table but just with some of
> the attributes defined. But that doesn't seem the best aproach...
> But creating new action classes that just differ in the attributtes
> defined doesn't seem a better way. Maybe if I could pass the fields
> to the class when I push it to the viewport. Something like:

Assuming the action can be committed without the additional fields,
just subclass the Action class and override parameter_attributes to
only return the attributes you want visible, then pass a copy of that
action to the ViewPort instead.

It's not perfect, but it works pretty well for me so far so I'm
punting on a better solution until we've got a better idea what we
need out of it.



Thanks Matt. I think i will stick with that.
How about javascript and ajax form validation in Reaction. Is that on the
pipeline?

--
Jonas
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] plat_forms contest started -- user feedback requested

2007-01-25 Thread Boris Ćeranić

Hi,

Thank you for giving me a reminder :) I was certainly going to be
available for reviews today.

Best luck to "our" teams :)

Regards,
Boris

On 25/01/07, Alvar Freude <[EMAIL PROTECTED]> wrote:

Hi all,

as mentioned some time ago, there is the plat_forms contest, see



All teams got their task two hours ago and now have 28 hours left ;-)

You can support the teams by user feedback. The teams will post the URLs of
their work on the plat_forms blog:

  


Perl teams are:

  Team 1 (Etat de Genève/Optaros)
  Team 2 (plusW)
  Team 5 (Revolution Systems)



There are also three PHP and Java teams. No Ruby, Python and .NET teams,
because there where not enough teams.


>From the task description:

  "PbT (People by Temperament) is a simple community portal
   where members can find others with whom they might like
   to get in contact: people register to become members,
   take a personality test, and then search for others based
   on criteria such as personality types, likes/dislikes etc.
   Members can then get in contect with one another if both
   choose to do so.
   The system has both an interactice user interface via
   HTML pagesand a WDL/SOAP-based programmatic interface."


The intro slides with some information are here:




The community may help the teams by giving user feedback and usual
community support. Helping coding is not allowed ;-)



Ciao
  Alvar



--
** Alvar C.H. Freude, http://alvar.a-blast.org/
** http://www.wen-waehlen.de/
** http://odem.org/
**http://www.assoziations-blaster.de/



___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/






___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] plat_forms contest started -- user feedback requested

2007-01-25 Thread Alvar Freude
Hi all,

as mentioned some time ago, there is the plat_forms contest, see 



All teams got their task two hours ago and now have 28 hours left ;-)

You can support the teams by user feedback. The teams will post the URLs of
their work on the plat_forms blog:

  


Perl teams are: 

  Team 1 (Etat de Genève/Optaros)
  Team 2 (plusW)
  Team 5 (Revolution Systems)



There are also three PHP and Java teams. No Ruby, Python and .NET teams,
because there where not enough teams.


>From the task description: 

  "PbT (People by Temperament) is a simple community portal 
   where members can find others with whom they might like 
   to get in contact: people register to become members, 
   take a personality test, and then search for others based 
   on criteria such as personality types, likes/dislikes etc. 
   Members can then get in contect with one another if both 
   choose to do so.
   The system has both an interactice user interface via 
   HTML pagesand a WDL/SOAP-based programmatic interface."


The intro slides with some information are here:




The community may help the teams by giving user feedback and usual
community support. Helping coding is not allowed ;-)



Ciao
  Alvar



-- 
** Alvar C.H. Freude, http://alvar.a-blast.org/
** http://www.wen-waehlen.de/
** http://odem.org/
** http://www.assoziations-blaster.de/



pgp10BzLlE84g.pgp
Description: PGP signature
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Changing Model attributes in ACCEPT_CONTEXT

2007-01-25 Thread Jonathan Rockway
On Wednesday 24 January 2007 16:30, James R. Leu wrote:
> This seems to work, but it feels wrong.  Is there a better way
> to go about changing the Model attributes on the fly per user.

Looks fine to me.  The main thing is that reconnecting to the database is 
pretty inefficient, so it's intentionally hard to do.  

You might be better off rethinking your approach.  Perhaps wrapping the tables 
with stored procs to enforce access control would work?  Then you'd only have 
to connect once, and it would probably be easy to get DBIC to silently pass 
@USERNAME=$c->user on every query.  I'm sure how well relations would work in 
that case, though.

Regards,
Jonathan Rockway

-- 
package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do {
$,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //,
";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup;


pgpXZxNz2E8sT.pgp
Description: PGP signature
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/