On Thu, Jul 3, 2008 at 1:56 AM, Artem Melentyev <amelentev(a)gmail.com> wrote:
Vincent Massol wrote:
In order to fix issue
http://jira.xwiki.org/jira/browse/XWIKI-1325
(Renaming a web page only updates backlinks in one language version)
we need to store the language in the XWikiLink object/table.
One solution then it modify XWikiHibernateStore from List
loadBacklinks() which just return doc names to List<XWikiLink>
loadBacklinks().
I have it almost done here but I wanted to ask you what you think.
+1
+1
Another solution (but might be too complex for
now) would be to
include the language in doc full name by inventing a new syntax.
For example: "wiki:Space.doc:language"
In this case there's no change required to XWikiLink object/DB, nor
for the loadBacklinks() method. The change is either in the code that
calls getBackLinks() or in XWiki.getDocument(documentName) so that
documentName supports language.
Looks like too complex and dangerous. (parsing in many places)
I think we should use new DocumentName later instead.
Agreed, we already have too many issues caused by documents fullname
parsing everywhere.
--
Artem Melentyev
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Thomas Mortagne