Re: [Catalyst] Inconsistent hierarchy during C3 merge

2009-05-30 Thread Alok Sharma
Hi, 

 
 I had the same issue and went through and alphabetized each of my
 module's dependencies. This will remove at least one source of
 circular/inconsistent hierarchies. In my case, that was all I needed
 to fix it.
 

This helped in cleaning the circular/inconsistent hierarchies in the starting 
and help to get to the bottom of the problem.


Regards Alok




___
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] Inconsistent hierarchy during C3 merge

2009-05-30 Thread Tomas Doran


On 30 May 2009, at 08:08, Alok Sharma wrote:
This helped in cleaning the circular/inconsistent hierarchies in  
the starting

and help to get to the bottom of the problem.


Doc patches to refine the strategies I suggest in the documentation I  
pointed too would be very welcome.


http://github.com/rafl/class-c3-adopt-next/tree/master

Cheers
t0m


___
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] auto-generate ResultSet classes?

2009-05-30 Thread Tomas Doran


On 29 May 2009, at 19:38, Jarom Smith wrote:




J. Shirley wrote:
Catalyst::Helper::Model::DBIC::Schema doesn't do that, but you  
could submit a patch :)


I know, I need to contribute as well as take away.

If I were to do this, I think I would probably just extend the  
current auto-generation mechanism that creates stuff in the Result  
directory to create analogous stub files in a ResultSet  
directory... but I need to become more familiar with this stuff  
first and make sure that such a change actually makes sense.  At  
this point I'm still getting my bearings.


That would be doable as suggested - you'd patch the  
DBIx::Class::Schema::Loader, then the Catalyst model to know about  
those options.



Cheers
t0m


___
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] ACL Error: deny_access_unless

2009-05-30 Thread Gordon Stewart
Tom

I have created a test app tar ball and put it online.  The link is:

http://www.gordonstewart.co.uk/MyApp.tar

I have taken the test app that is online and changed it to use mason and the
most up to date version of catalyst.  Is it using the test database, I also
allowed it to use Catalyst::Authentication::Store::Minimal.   It can be
configured in the yml file.

I am using the following plugin modules, which I believe to be the most up
to date:

Catalyst::Plugin::Authentication  0.10011  
Catalyst::Plugin::Authorization::ACL  0.11 
Catalyst::Plugin::Authorization::Roles  0.07   
Catalyst::Plugin::ConfigLoader  0.23   
Catalyst::Plugin::Session  0.22
Catalyst::Plugin::Session::State::Cookie  0.11 
Catalyst::Plugin::Session::Store::FastMmap  0.10   
Catalyst::Plugin::StackTrace  0.10 
Catalyst::Plugin::Static::Simple  0.21


Thank you for your help

Regards 

Gordon
 



-Original Message-
From: Tomas Doran [mailto:bobtf...@bobtfish.net] 
Sent: 28 May 2009 13:26
To: The elegant MVC web framework
Subject: Re: [Catalyst] ACL Error: deny_access_unless

Gordon Stewart wrote:
 I have created a test application to use
 
   Catalyst::Authentication::Store::Minimal
 
 But I am still having the same issue. 

Well, yes, I'd expect you would :)

The point of making a minimal test app was so you could show us, and we 
could download / play with something without having to setup a database 
etc to run your 'real' app, or wade through lots of code.

So, please show us? Either throw it on github, or stick a tarball online..

 How easy is it to downgrade catalyst 5.7012, which I know will work?

Just install it :)

Either download the tarball and perl Makefile.PL  make test  make 
install as usual, or you can ask the CPAN shell for 
AUTHORNAME/Package-X.YY.tgz and it'll install it.

Cheers
t0m


___
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] ACL Error: deny_access_unless

2009-05-30 Thread Tomas Doran


On 30 May 2009, at 16:32, Gordon Stewart wrote:

I am using the following plugin modules, which I believe to be the  
most up

to date:


Your Makefile.PL doesn't say this.

I tried to fix this, but something in the dependency stack of  
DBIx::Class::HTMLWidget fails to install for me.


Can you trim this down a bit more - for example I don't see why you  
need a view at all (the action you want to get to could just set $c- 
req-body('OK')), or a database - given you're already using the  
minimal auth store so users aren't being authenticated from the  
database..


I appreciate that there appear to be some fairly good tests in t/ 
live_app01.t, but I think you can cut these (and the app) down a lot  
to just demonstrating the issue you're having..


Cheers
t0m



___
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] ACL Error: deny_access_unless

2009-05-30 Thread Gordon Stewart
Tom

 I tried to fix this, but something in the dependency stack of  
 DBIx::Class::HTMLWidget fails to install for me.

I have removed this

 I appreciate that there appear to be some fairly good tests in t/ 
 live_app01.t, but I think you can cut these (and the app) down a lot  
 to just demonstrating the issue you're having..

I have removed the tests that do not show off the problem I am facing, the
tests shows it is falling around request 14/15 as user test01 has admin
rights.

The new tar ball is at http://www.gordonstewart.co.uk/MyApp_v2.tar
 
Regards 

Gordon



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