On Sep 15, 2009, at 5:29 PM, Niels Mayer wrote: > On Mon, Sep 14, 2009 at 5:56 AM, Oana Tabaranu <[email protected] > > > wrote: >> >> http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial > > > 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?viewer=code&showlinenumbers=0 > > > > , > ClassSheet<http://www.xwiki.org/xwiki/bin/view/XWiki/ClassSheet?viewer=code&showlinenumbers=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,
It's been 2.0-based since 2.0M3. Thanks -Vincent > 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 _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
