On Mon, Sep 14, 2009 at 5:56 AM, Oana Tabaranu <oana.tabaranu(a)xwiki.com>
wrote:
FYI -- One thing that might "bite" the newbie Xwiki programmer that starts
out with Xwiki 2.0. Most of the documents mentioned in the tutorial that
help you create code are 1.0 based and expect to save documents in 1.0
format. In 2.0, the default document format changed to 2.0, but the various
scripts/documents implicitly assume 1.0 format.
To fix, re-save the documents automatically created by
XWikiClasses<http://www.xwiki.org/xwiki/bin/view/XWiki/XWikiClasses?view…
,
ClassSheet<http://www.xwiki.org/xwiki/bin/view/XWiki/ClassSheet?viewer=c…bers=0>,
etc
as 1.0 format. The fact that they're initially in 1.0 syntax and marked as
2.0 causes lots of errors.
Question: For 2.0 final, will these end up being 2.0-based, or will there be
a bugfix to ensure they write out 1.0 documents? Perhaps the 1.0 API for
saving documents should automatically create 1.0 documents, and a new API
call can be used to save 2.0-based docs which would automatically create
2.0's. That way old code stays working, and new code stays 2.0.
Niels
http://nielsmayer.com