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
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
://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
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
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
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
.
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
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
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
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
.
--
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
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
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
) 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
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
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
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 %]
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:
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?
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
).
--
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/
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
://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
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
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
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
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
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/
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
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
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
31 matches
Mail list logo