Andreas Hartmann wrote:
> Jörn Nettingsmeier schrieb:
>
> [...]
>
>> here's my take:
>>
>>
lenya-document://uuid?lang=de&area=live&pub=default&
amp;revision=...
>>
>> wdyt?
>
> +1
>
> Maybe revision could be abbreviated to rev, since the
others
> are abbreviated too (lang, pub)?
good idea.
>> should we introduce a new source factory of the
same name that follows
>> the same semantics? that way, we can slowly
deprecate the old
>> lenyadoc:// stuff that's hard to read and easy to
get wrong because of
>> the positional parameters.
>
> Hmmm, I'm a little slow on the uptake this morning,
what do you mean
> with "a new source factory of the same name that
follows the same
> semantics"?
well, the original topic was just a syntax to store internal
links in
documents. these are rewritten by a link rewriter on
delivery, and never
really touch an actual source factory.
but when i realized that those named parameters are a nice
way to avoid
the hard-to-read and error-prone positional parameters that
we currently
have to use with the lenyadoc:// source factory, i thought
we might
create an actual lenya-document:// source factory that uses
the named
paramater semantics as well.
it would allow to specify arbitrarily precise links (i.e.
everything
that's not specified, such as area or pub, is taken from the
page
envelope context). that way, you could say
lenya-document:?lang=fr and
just change the language, or lenya-document:?rev=3 and just
show another
revision.
this could slowly replace the current lenyadoc: mechanism
(which would
be declared deprecated).
wdyt?
(btw, great to hear from you again - hope your vacation was
nice. it's
the old pro vs. amateur coder thing again - when i'm all in
deep hack
mode, i.e. on weekends or over the holidays, everyone else
just
disappears... another point for a quick release to get some
new people
on board
--
jörn nettingsmeier
home://germany/45128 essen/lortzingstr. 11/
http://spunk.dnsalias.org
a>
phone://+49/201/491621
if you are a free (as in "free speech") software
developer
and you happen to be travelling near my home, drop me a line
and come round for a free (as in "free beer")
beer. :-D
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe lenya.apache.org
For additional commands, e-mail: dev-help lenya.apache.org
|