On Wed, Dec 29, 2004 at 01:18:05PM -0800, Peter Speltz wrote:
> I'm pretty sure http://localhost/football player/addnew" isn't a valid
> url. If it is i can come up with another example.
Technically you're supposed to escape the space (%20), but URLs with
spaces in them are fairly common now that people actually build sites on
operating systems that encourage spaces in filenames.
> This is really only relevant if people use moniker to to make pretty display
> for humans (which i like the idea of doing).
Pretty display where? I think this is where I'm losing you.
> Example: big maypole app. you decide to change a moniker or two.
> You'd have to move templates for the classes to new directories and change link
> urls all throughout the app.
Why would you be changing them? Changing a moniker of a class in a
production environment would be a fairly nasty thing to do in lots
of circumstances. Objects are already passed into the templates
to be referred to by their moniker (this was the main thing
UNIVERSAL::moniker was originally written for). So changing the moniker
would mean editing any template that the object is passed to as well.
> > are you expecting this method to do by default Call $self->moniker? Or
> > something else?
> Gosh No. (I almost said yes :) ) That would have exactly same effect as just
> using moniker. It would have to return Universal::moniker($class) I believe or
> just cut and paste code from Universal moniker.
Cut'n'paste is bad.
Calling UNIVERSAL::moniker directly is fairly bad too.
But I think there's a use case that I'm just not seeing...
Tony
_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole
This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT