From version < 4.13 >
edited by Alexandru Colesnicov
on 2019/10/02 13:36
To version < 4.4 >
edited by Alexandru Colesnicov
on 2019/10/02 13:11
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -8,15 +8,10 @@
8 8  
9 9   // y=XWikiAttachment(xwiki.getDocument(doc.parent), "aFileVerified").getAttachment_content().storageFile;
10 10   //y=xwiki.getDocument(doc.parent).XWikiAttachment.getAttachment_content().storageFile;
11 -
12 - att = doc.getAttachment("TestingData.xls")
13 - println (att.getClass().getSimpleName() + " (" + att.getClass().getName() + ")")
14 -
15 - xwa = att.getAttachment()
16 - println (xwa.getClass().getSimpleName() + " (" + xwa.getClass().getName() + ")")
17 -
18 - //aco = att.getAttachment_content()
19 -
11 +
12 + att = doc.XWikiAttachment(doc, "TestingData.xls")
13 + //aci = doc.XWikiAttachment.getAttachment_content()
14 +
20 20  // for (XWikiAttachment attach in doc.getAttachmentList()) {
21 21  // println "** " + attach.filename;
22 22  // }