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
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
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
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
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
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:
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
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