Re: [Catalyst] Perl code attributes in Moose roles

2009-12-22 Thread Bernhard Graf
Tomas Doran schrieb: On 19 Dec 2009, at 22:47, Bernhard Graf wrote: Where can I add the ACL attributes for edit_new? Add them via config. See: http://blogs.perl.org/users/guillermo_roditi1/2009/12/reaction-and-crud-implemented-in-roles.html

Re: [Catalyst] Perl code attributes in Moose roles

2009-12-22 Thread Bernhard Graf
Tomas Doran schrieb: You can me my hero too - work out where in the docs that _should be_ so people actually find it (It IS documented!), submit a patch :) Searching through the Cat manual I found, that this is already documented in Intro.pod. It is quite hard to find, perhaps because this is

Re: [Catalyst] Perl code attributes in Moose roles

2009-12-21 Thread Eden Cardim
Bernhard == Bernhard Graf cataly...@augensalat.de writes: Bernhard Now this becomes: Bernhard package MyApp::Base::User; with Bernhard 'MyApp::Role::Controller::Create'; Bernhard package MyApp::Base::Page; with Bernhard 'MyApp::Role::Controller::Create'; Bernhard

Re: [Catalyst] Perl code attributes in Moose roles

2009-12-21 Thread Bernhard Graf
Eden Cardim schrieb: Bernhard == Bernhard Graf cataly...@augensalat.de writes: Bernhard Now this becomes: Bernhard package MyApp::Base::User; with Bernhard 'MyApp::Role::Controller::Create'; Bernhard package MyApp::Base::Page; with Bernhard

Re: [Catalyst] Perl code attributes in Moose roles

2009-12-21 Thread Tomas Doran
On 19 Dec 2009, at 22:47, Bernhard Graf wrote: Where can I add the ACL attributes for edit_new? Add them via config. See: http://blogs.perl.org/users/guillermo_roditi1/2009/12/reaction-and-crud-implemented-in-roles.html http://www.catalystframework.org/calendar/2008/11 Cheers t0m

[Catalyst] Perl code attributes in Moose roles

2009-12-19 Thread Bernhard Graf
Hello, I am writing an admin application based on Cat. Much of it is the typical CRUD stuff, so I had the idea to put that into Roles. This doesn't work - I get Invalid CODE attributes: PathPart(edit) : Chained(root) : Args(0) ... The same problem has been discussed on this list 18 months ago:

Re: [Catalyst] Perl code attributes in Moose roles

2009-12-19 Thread Florian Ragwitz
On Sat, Dec 19, 2009 at 10:51:36PM +0100, Bernhard Graf wrote: I am writing an admin application based on Cat. Much of it is the typical CRUD stuff, so I had the idea to put that into Roles. Is there a solution for this problem yet? Yes, it's referred to from several places in the docs and

Re: [Catalyst] Perl code attributes in Moose roles

2009-12-19 Thread Bernhard Graf
Florian Ragwitz schrieb: Yes, it's referred to from several places in the docs and is called MooseX::MethodAttributes::Role. Ah, thank you! This brings mit directly to my next question. Assume I have this role: package MyApp::Role::Controller::Create; use Mose::Role; sub edit_new