From version < 18.1 >
edited by Alexandru Colesnicov
on 2018/11/06 16:36
To version < 15.12 >
edited by Alexandru Colesnicov
on 2018/11/05 18:52
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -3,8 +3,7 @@
3 3   #set($class="Duncan1.Code.GDataClass")
4 4   #set($template="Duncan1.Code.GDataTemplate")
5 5   #set($xwlquery="from doc.object($class) as obj where doc.fullName <> '$template' order by doc.date desc")
6 - ### "$xwlquery"
7 - #set($list=$services.query.xwql($xwlquery).execute())
6 + ###set($list=$services.query.xwql($xwlquery).execute())
8 8  
9 9  {{/velocity}}
10 10  
... ... @@ -14,11 +14,9 @@
14 14  print "Python version is ", sys.version
15 15  print
16 16  
17 -className = "Duncan1.Code.GDataClass"
18 -template = "Duncan1.Code.GDataTemplate"
19 -xwlquery = "from doc.object(" + className + ") as obj where doc.fullName <> \'" + template + "\' order by doc.date desc"
20 -# print "\"%s\"" % xwlquery
21 -# import xwiki
16 +# className = "Duncan1.Code.GDataClass"
17 +# template = "Duncan1.Code.GDataTemplate"
18 +# xwlquery = "from doc.object(\'" + className + "\') as obj where doc.fullName <> \'" + template + "\' order by doc.date desc"
22 22  list = services.query.xwql(xwlquery).execute()
23 23  
24 24  totalF=0

Need help?

If you need help with XWiki you can contact: