Issue Details (XML | Word | Printable)

Key: XWIKI-645
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Sergiu Dumitriu
Reporter: Sergiu Dumitriu
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XWiki Core

api.XWiki.wrapDocs should be more flexible

Created: 31/Dec/06 03:49   Updated: 01/Jan/07 13:48
Component/s: APIs, Core
Affects Version/s: 1.0 B1
Fix Version/s: 1.0 B2

Resolution Date: 01/Jan/07 13:48


 Description  « Hide
wrapDocs assumes that the received list contains only XWikiDocuments-s. A better behavior would be:
  • an XWikiDocument is wrapped in an api.Document
  • an api.Document is returned as is
  • a valid document name is transformed into an wrapped document
  • all other types of elements are discarded


 All   Comments   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Sergiu Dumitriu added a comment - 01/Jan/07 13:48
Fixed in rev. 1831