Joern Nettingsmeier wrote:
> Andreas Hartmann wrote:
>> Joern Nettingsmeier wrote:
>>> hi!
>>>
>>>
>>> when i create a new document in lenya 1.4 (menu tab "site"), i get a
>>> "parent ID" which is the currently highlighted document. then i can
>>> choose "sibling after" or "child".
>>>
>>> imho the concept of parent ID is a little weird here. when i create a
>>> new document as "sibling after" at the top level, shouldn't the parent
>>> ID become "/" or something like that?
>> That's just legacy behaviour. I'd suggest to replace the term
>> "parent ID" by something else, e.g. "current document" (I hope you
>> find a more appropriate label :) ).
> 
> ok, so there is no subtle semantic difference between a page "bar"
> created with parent id "/foo" as *child* and a page "bar" created with
> parent id "/foo/baz" and *sibling after* ?
> 
> if not, then i'll file a bug to rename this.

phew. this is scary. i thought i'd put together a trivial patch for a
trivial problem, but how very wrong.

[EMAIL PROTECTED]:/local/lenya-build/lenya_1_4_X-vanilla/build/lenya>
grep -r "Parent ID" *
webapp/lenya/pubs/default/lenya/usecases/site/create.jx:
  <i18n:text>Parent ID</i18n:text>:</td>
webapp/lenya/resources/i18n/cmsui_de.xml:  <message key="Parent
ID">Übergerodnete ID</message>
webapp/lenya/resources/i18n/cmsui_ru.xml:<message key="Parent
ID">Родительский идентификатор</message>

what a mess. the usecase is a part of the default publication, and the
i18n data is a site-wide thing.
is this due to some ongoing refactoring work (i hear java people do that
all the time ;) or just a historic screw-up that nobody has gotten
around to fixing yet?

why does the default publication define such standard usecases anyway?
isn't this a good candidate for site-wide code under webapp/lenya?

i've submitted minor patches to a number of open-source projects, but
lenya is by orders of magnitude the hardest to dig into. i'm really
willing to submit a patch, but hey, do i really have to shuffle some 10
files around just to change a string in the GUI?

i'd welcome directions.


-- 
"Án nýrra verka, án nútimans, hættir fortíðin að vekja áhuga."
"Without new works, without the present the past will cease to be of
interest."
        - Ásmundur Sveinsson (1893-1982)

--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: [EMAIL PROTECTED], Telefon: 0203/379-2736


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to