From version < 15.4 >
edited by Alexandru Colesnicov
on 2018/11/05 18:32
To version < 15.10 >
edited by Alexandru Colesnicov
on 2018/11/05 18:49
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,9 +1,9 @@
1 1  {{velocity}}
2 2  
3 - #set($class="Duncan1.Code.GDataClass")
4 - #set($template="Duncan1.Code.GDataTemplate")
5 - #set($xwlquery="from doc.object($class) as obj where doc.fullName <> '$template' order by doc.date desc")
6 - #set($list=$services.query.xwql($xwlquery).execute())
3 + ###set($class="Duncan1.Code.GDataClass")
4 + ###set($template="Duncan1.Code.GDataTemplate")
5 + ###set($xwlquery="from doc.object($class) as obj where doc.fullName <> '$template' order by doc.date desc")
6 + ###set($list=$services.query.xwql($xwlquery).execute())
7 7  
8 8  {{/velocity}}
9 9  
... ... @@ -13,6 +13,11 @@
13 13  print "Python version is ", sys.version
14 14  print
15 15  
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"
19 +list = services.query.xwql(xwlquery).execute()
20 +
16 16  totalF=0
17 17  totalM=0
18 18  nPos=list.size()

Need help?

If you need help with XWiki you can contact: