File: testcore.py

package info (click to toggle)
gavodachs 2.11%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,972 kB
  • sloc: python: 100,078; xml: 3,014; javascript: 2,360; ansic: 918; sh: 216; makefile: 31
file content (10 lines) | stat: -rw-r--r-- 285 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
from gavo import api

class Core(api.Core):
	inputTableXML = """
    <inputTable>
      <inputKey name="x" type="integer" multiplicity="single"
        tablehead="Num"/></inputTable>"""

	def run(self, service, inputTable, queryMeta):
		return ("text/plain", "x"*inputTable.args["x"])