[Catalyst] Advent calendar 2009

2009-11-20 Thread Kieren Diment

Hi all

It's advent calendar time again.

Having dedicated a very large chunk of the first half of the year to  
writing a book about Catalyst, I don't have masses of time to run the  
editorial for the advent calendar this year, so I need some volunteers  
to ensure that we get one reasonably grammatical, reasonably well  
spelled entry per day, each day of December up until Christmas day.   
I'll be offline for some of the time at the end of the month too, so  
please if you think you can step up to help, grab me on irc (I'm KD  
there).


Meanwhile, I'd like volunteers to write an article.  Ideally we'd have  
25 people writing one article each.  I'd especially like articles  
about things that you use Catalyst for in-house that you might not  
think are terribly relevant to the outside world but in reality are  
probably really important.  Articles need to be between 500 and 2000  
words each.  If English is not your first language, don't worry, there  
are people (with professional editorial skills) who can fix things up  
for you.


I especially want a volunteer to write 500-1000 words on How to write  
your own Moose Role for Catalyst.


Please step up and volunteer now.  Don't reply to the list, reply to  
me at dim...@gmail.com (header set but your client may be retarded).


I'm grabing the CSS frameworks article, and if we run out of copy,  
another article plugging the new-ish book (http://xrl.us/bgcztu).




___
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] Strange warning...

2009-11-20 Thread Tomas Doran

Rippl, Steve wrote:

Hi,

Catalyst version 5.80011

This line...

$c-response-redirect($c-uri_for($c-controller('WsdSis::Controller::Section')-action_for('list')));

is giving me this warning...

[warn] Used regexp fallback for
$c-controller('WsdSis::Controller::Section'), which found
'WsdSis::Controller::Sections'. Relying on regexp fallback behavior for
component resolution is unreliable and unsafe. You probably meant
$c-controller('WsdSis::Controller::Sections') instead of
$c-controller({'WsdSis::Controller::Section'}), but if you really
wanted to search, pass in a regexp as the argument like so:
$c-controller(qr/WsdSis::Controller::Section/)
at /srv/WsdSis/script/../lib/WsdSis/Controller/Login.pm line 50

But I haven't got $c-controller({'WsdSis::Controller::Section'}) in my
code?

What am I missing?


You're either passing in the full class name (i.e. 
WsdSis::Controller::Section is wrong, you want to just pass Section), or 
you've got a singular vs plural issue?


Can you show us the code around line 50 which is fingered by the warning 
message?


I note that message isn't too helpful, and has been improved in the next 
release of Catalyst..


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/