[Catalyst] website member urls

2009-04-29 Thread Charles
I'd like someone w/ better catalyst-fu to recommend how I could implement urls for members a la myspace and youtube ( ie http://websiteurl.com/membername ) . There's got to be a better way that creating a seperate controller for each user. perl 5.9 catalyst-runtime 5.71

Re: [Catalyst] website member urls

2009-04-29 Thread Charles
hans, This seems to work, although, i'd have to add logic to have this member controller ignore the following types of urls http://websiteurl.com/signup http://websiteurl.com/members/ = users see this as their url when logged in. -Charles From: Hans Dieter

Re: [Catalyst] website member urls

2009-04-29 Thread Charles
://website.com/is the user's profile which is publically viewable while http://website.com/member/ is the users url when they are logged in. Thanks so much for your input. Catalyst Rocks. -Charles Are you sure you want to layout your URLs that way, though? You'll *never* need other top level items

Re: [Catalyst] website member urls

2009-04-29 Thread Charles
correction: http://website.com/is the user's profile which is publically viewable ... From: Charles cshtr...@yahoo.com To: The elegant MVC web framework catalyst@lists.scsys.co.uk Sent: Wednesday, April 29, 2009 5:46:23 PM Subject: Re: [Catalyst] website member

[Catalyst] catalyst and wordpress

2010-02-25 Thread Charles
I don't want to implement code for a blog. What's the easiest way to incorporate wordpress on my site under my single catalyst instance . I'm going to download the wordpress code and not have it hosted elsewhere. I'd like to have the blog like mydomainname.com/blog . I've got a

[Catalyst] application broke once installed under other than the web root directory

2010-03-21 Thread Charles
I have finished development of my app using the built in server in the scripts dir. I have installed it and configured apache to let it run under http://myurl.com/myapp . The Root.pm index controller get's called and works ( fetches db table data and returns via TT ) when I visit

Re: [Catalyst] application broke once installed under other than the web root directory

2010-03-22 Thread Charles
. Thanks, C --- On Sun, 3/21/10, Charles cshtr...@yahoo.com wrote: From: Charles cshtr...@yahoo.com Subject: [Catalyst] application broke once installed under other than the web root directory To: Catalyst@lists.scsys.co.uk Date: Sunday, March 21, 2010, 1:18 PM I have finished development

Re: [Catalyst] [Announce] Catalyst-Runtime 5.7099_01 - Developer Release

2008-06-26 Thread Charles Bailey
about $target's structure. -- Regards, Charles Bailey Lists: bailey _dot_ charles _at_ gmail _dot_ com Other: bailey _at_ newman _dot_ upenn _dot_ edu ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

Re: [Catalyst] [Announce] Catalyst-Runtime 5.7099_01 - Developer Release

2008-07-21 Thread Charles Bailey
Agreed. I've had it on TODO for the past two weeks, but getting hammered at dayjob. Will try to do this week. Regards, Charlie On 7/19/08, Matt S Trout [EMAIL PROTECTED] wrote: On Thu, Jun 26, 2008 at 06:50:58PM -0400, Charles Bailey wrote: On Wed, Jun 25, 2008 at 4:57 PM, Marcus Ramberg

Re: [Catalyst] [Announce] Catalyst-Runtime 5.7099_01 - Developer Release

2008-08-12 Thread Charles Bailey
On Mon, Jul 21, 2008 at 5:32 PM, Matt S Trout [EMAIL PROTECTED] wrote: On Mon, Jul 21, 2008 at 07:13:37AM -0400, Charles Bailey wrote: Agreed. I've had it on TODO for the past two weeks, but getting hammered at dayjob. Will try to do this week. We're one more dev release short of shipping

Re: [Catalyst] [Announce] Catalyst-Runtime 5.7099_01 - Developer Release

2008-09-10 Thread Charles Bailey
. -- Regards, Charles Bailey Lists: bailey _dot_ charles _at_ gmail _dot_ com Other: bailey _at_ newman _dot_ upenn _dot_ edu ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http

[Catalyst] Advice on this controller pattern

2008-10-06 Thread Oliver Charles
Hi, Sorry for the shakey subject title, but that's the best way I can think of to sumarise. Anyway, in my project at the moment I often have forms where the user is moving something, and needs to first search for a destination. An example is changing the track artist: first the user searches for

Re: [Catalyst] [Announce][META] MojoMojo 0.999021 has been released to CPAN

2008-11-02 Thread Oliver Charles
I was considering Lucene as the basis of an text search engine. Lucence fans claim it's the industry standard. http://search.cpan.org/~tbusch/Lucene-0.18/lib/Lucene.pm Mmm, maybe - we've just moved from it to Xipian at $work - same results but significantly easier to deploy (no longer

Re: [Catalyst] formfu-JSON

2008-11-10 Thread Charles Bailey
) utility class that I've found helpful when dealing with simple hash-based classes. -- Regards, Charles Bailey Lists: bailey _dot_ charles _at_ gmail _dot_ com Other: bailey _at_ newman _dot_ upenn _dot_ edu #!/usr/local/bin/perl # use 5.010; package JSON::Able; use Moose::Role; use Carp qw(croak

Re: [Catalyst] Moosified Form::Processor

2008-11-24 Thread Oliver Charles
I'd be very interested in seeing this, as I use Form::Processor extensively at $work. On Mon, Nov 24, 2008 at 5:45 PM, Gerda Shank [EMAIL PROTECTED] wrote: I've Moosified Form::Processor and will eventually release it as a development release to CPAN, followed by an official release at some

[Catalyst] Best practice for database connections, where $c is not available?

2008-12-31 Thread Oliver Charles
Hi, This has hit me a few times, and I've just encountered it again, so I thought it would be good to ask those wiser than I :) There have been a few times where I could do with querying the database (which I'd normally do through $c-model), but this is not available. For example, I've added the

Re: [Catalyst] Re: OT: Better TT pager?

2009-01-22 Thread Oliver Charles
I might as well join in with this :) Here's what we use at work: [% IF pager %] ul class=paginator li class=counterPage [% pager.current_page %] of [% pager.last_page %]/li lia href=[% c.req.uri_with( page = pager.first_page ) %]laquo;/a/li [% IF pager.previous_page %]

Re: [Catalyst] Re: OT: Better TT pager?

2009-01-22 Thread Oliver Charles
Can you also provide the CSS classes used by this example? Sure, here it is - not particularly amazing though, but I'm no designer :) [1]: .paginator ul { margin: 0; } .paginator .counter { margin-right: 20pt; } .paginator li { display: inline; } .paginator li a { padding:

Re: [Catalyst] Re: OT: Better TT pager?

2009-01-23 Thread Oliver Charles
On 23 Jan 2009, at 15:00, Jesse Sheidlower wrote: I like this quite a bit, more than some of the other solutions which I tried, and think I'll use this. Glad you like it :) One question, from an arithmetically-challenged one: How would I modify this to allow the user to skip by, say, tens?

Re: [Catalyst] Re: OT: Better TT pager?

2009-01-24 Thread Oliver Charles
Data::Pageset or even Data::Pageset::Render Saddly won't work for me because they same to require knowing total_entries at the point of creation - I did look at them, but for reasons I couldn't use them. At least I'm pretty sure that's the problem I had. - Ollie

Re: [Catalyst] Detach won't detach?

2009-01-26 Thread Oliver Charles
). -- Oliver Charles / aCiD2 ___ 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] Using JSON

2009-04-14 Thread Oliver Charles
guess JSON::XS is your best option [2] - but there are a few JSON related modules on CPAN. -- Oliver Charles / aCiD2 [1]: http://search.cpan.org/~miyagawa/Catalyst-View-JSON [2]: http://search.cpan.org/~mlehmann/JSON-XS ___ List: Catalyst

Re: [Catalyst] Tutorial for cache?

2009-04-14 Thread Oliver Charles
://www.catalystframework.org/calendar/2008/14 -- Oliver Charles / aCiD2 ___ 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

Re: [Catalyst] Tutorial for cache?

2009-04-15 Thread Oliver Charles
make use of caching in your back end models (which are independent of Catalyst, right!?) with the Cache:: modules, and if you need some Catalyst integration, then you could use Catalyst::Plugin::Cache. -- Oliver Charles / aCiD2 ___ List: Catalyst

Re: [Catalyst] upon successful login, how do i get redirect users back to the page they wanted to access previously?

2009-04-18 Thread Oliver Charles
is presented. Then, when the login is successful, the URI is restored, and the user is redirect. However... after seeing Devin's approach, which is essentially the same but without the session, I may change to that. I believe the two approaches are essentially the same though. -- Oliver Charles

[Catalyst] Applying parameterized roles to Catalyst controllers

2010-01-08 Thread Oliver Charles
extra traits, like Moose::Role. That would give something like~ use MooseX::Role::Parameterized -traits = [ 'MooseX::MethodAttributes::Meta::Role' ] -- Oliver Charles / aCiD2 ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

[Catalyst] Re: Applying parameterized roles to Catalyst controllers

2010-01-08 Thread Oliver Charles
ERROR: RETARD AT COMPUTER. Turns out this is *exactly* possible at the moment: http://github.com/bobtfish/moosex-methodattributes/blob/master/t/param_role.t Sigh, I feel a little bit dumb now -- Oliver Charles / aCiD2 ___ List: Catalyst

Re: [Catalyst] [ANNOUNCE] Catalyst-Runtime 5.80020

2010-02-04 Thread Oliver Charles
rafl! -- Oliver Charles / aCiD2 ___ 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] Re: action_for with user_id removed ...

2010-02-06 Thread Oliver Charles
to points in urls for this: * /user/id/foo Public viewing of user stuff (public may mean only a restricted set of users can view it, but it's not private) * /account/action For doing stuff that only you can do to your own account (change password etc) -- Oliver Charles / aCiD2

Re: [Catalyst] how to reuse Catalyst Schema for non-web purposes?

2009-04-22 Thread oliver . g . charles
is not to move the logic into another part of MVC, it's to move it *out* of MVC completely. A well structured Catalyst application will have MVC for Catalyst that are all just glue to your applications backend - which should be totally independant of Catalyst. -- Oliver Charles / aCiD2

Re: [Catalyst] Can't seem to use forward or detach. Any special requirements?

2009-04-25 Thread oliver . g . charles
to cause a redirect to solve your problem, so the correct code would be: $c-res-redirect($c-uri_for_action('/controller/create') Where controller is the name of the controller that contains the action you provided in your email. Hope that helps -- Oliver Charles / aCiD2