| 1 |
<resource schema="test" resdir="" readProfiles="trustedquery,untrustedquery"> |
| 2 |
<meta name="description">Helpers for tests for cores.</meta> |
| 3 |
<meta name="creationDate">2010-12-01T14:00:00</meta> |
| 4 |
<meta name="subject">testing</meta> |
| 5 |
<meta name="title">Test Fixtures</meta> |
| 6 |
<meta name="shortName">test ignore</meta> |
| 7 |
<meta name="doi">10.5072/test-fixture</meta> |
| 8 |
<FEED source="//procs#license-cc0" what="nothing in particular"/> |
| 9 |
<meta name="version">2.3.1pl2+git_deadbeef</meta> |
| 10 |
<meta name="creator">Gandalf, W.; Baggins, B.; Baggins, F.</meta> |
| 11 |
|
| 12 |
<meta name="schema-rank">20</meta> |
| 13 |
|
| 14 |
<meta name="isDerivedFrom" ivoId="ivo://x-testing/data/cores/abcd" |
| 15 |
>Some Table</meta> |
| 16 |
<meta name="isDerivedFrom" ivoId="ivo://x-testing/data/cores/basiccat" |
| 17 |
>Some Service</meta> |
| 18 |
<meta name="isIdenticalTo" ivoId="ivo://org.gavo.dc/cores/basiccat" |
| 19 |
>A mirror</meta> |
| 20 |
<meta name="_related" title="DataCite be damned" |
| 21 |
>http://just.any.old.url</meta> |
| 22 |
<meta name="_related" title="internallink" |
| 23 |
>\internallink{foo/bar/baz}</meta> |
| 24 |
|
| 25 |
<table id="abcd"> |
| 26 |
<column name="a" type="text" verbLevel="1"/> |
| 27 |
<column name="b" type="integer" verbLevel="5"> |
| 28 |
<values nullLiteral="-1"/> |
| 29 |
</column> |
| 30 |
<column name="c" type="integer" verbLevel="15"> |
| 31 |
<values nullLiteral="-1"/> |
| 32 |
</column> |
| 33 |
<column name="d" type="integer" verbLevel="20" unit="km"> |
| 34 |
<values nullLiteral="-1"/> |
| 35 |
</column> |
| 36 |
<column name="e" type="timestamp" verbLevel="25"/> |
| 37 |
</table> |
| 38 |
|
| 39 |
<data id="parse_text_table" auto="false"> |
| 40 |
<reGrammar recordSep=" " fieldSep="\s+"> |
| 41 |
<names>a,b,c,d,e</names> |
| 42 |
</reGrammar> |
| 43 |
<make table="abcd"> |
| 44 |
<rowmaker idmaps="a,b,c,d,e" id="parseProcessedRows"/> |
| 45 |
</make> |
| 46 |
</data> |
| 47 |
|
| 48 |
<pythonCore id="abccatcore"> |
| 49 |
<inputTable> |
| 50 |
<LOOP listItems="a b c d e"><events> |
| 51 |
<inputKey original="abcd.\item"/> |
| 52 |
</events></LOOP> |
| 53 |
</inputTable> |
| 54 |
<outputTable original="abcd"/> |
| 55 |
<coreProc> |
| 56 |
<setup> |
| 57 |
<code> |
| 58 |
import tempfile |
| 59 |
from gavo import rsc, formats |
| 60 |
</code> |
| 61 |
</setup> |
| 62 |
<code> |
| 63 |
sourceTable = rsc.TableForDef( |
| 64 |
inputTable.inputTD.rd.getById("abcd"), |
| 65 |
rows=[inputTable.args]) |
| 66 |
with tempfile.NamedTemporaryFile(mode="wb+") as f: |
| 67 |
formats.formatData("tsv", sourceTable, f) |
| 68 |
f.seek(0) |
| 69 |
return rsc.makeData( |
| 70 |
inputTable.inputTD.rd.getById("parse_text_table"), |
| 71 |
forceSource=f.name).getPrimaryTable() |
| 72 |
</code> |
| 73 |
</coreProc> |
| 74 |
</pythonCore> |
| 75 |
|
| 76 |
<service id="basiccat" core="abccatcore"> |
| 77 |
<meta> |
| 78 |
moreExamples: convcat |
| 79 |
moreExamples.title: More from conv |
| 80 |
moreExamples: data/ssatest#s |
| 81 |
# fall through to default title |
| 82 |
moreExamples:http://ivoa.net/doc/obscore/tap-examples.xhtml |
| 83 |
moreExamples.title:More external |
| 84 |
</meta> |
| 85 |
|
| 86 |
<outputTable namePath="abcd"> |
| 87 |
<outputField original="a"/> |
| 88 |
</outputTable> |
| 89 |
</service> |
| 90 |
|
| 91 |
<service id="convcat" core="abccatcore" allowed="form, static"> |
| 92 |
<outputTable namePath="abcd"> |
| 93 |
<column original="a" verbLevel="15"/> |
| 94 |
<column original="b" displayHint="sf=2"/> |
| 95 |
<column original="d" unit="m"/> |
| 96 |
</outputTable> |
| 97 |
</service> |
| 98 |
|
| 99 |
<service id="enums"> |
| 100 |
<dbCore queriedTable="abcd"> |
| 101 |
<condDesc> |
| 102 |
<inputKey original="a" required="False"> |
| 103 |
<values fromdb="tableName from dc.tablemeta" multiOk="True"/> |
| 104 |
</inputKey> |
| 105 |
</condDesc> |
| 106 |
<condDesc> |
| 107 |
<inputKey original="b"> |
| 108 |
<values><option>1</option><option>2</option></values> |
| 109 |
</inputKey> |
| 110 |
</condDesc> |
| 111 |
<condDesc required="True"> |
| 112 |
<inputKey original="c"> |
| 113 |
<values default="1"><option>1</option><option>2</option></values> |
| 114 |
</inputKey> |
| 115 |
</condDesc> |
| 116 |
</dbCore> |
| 117 |
</service> |
| 118 |
|
| 119 |
<service id="cstest" allowed="form, scs.xml"> |
| 120 |
<meta name="shortName">really ignore</meta> |
| 121 |
<dbCore id="cscore" queriedTable="data/test#csdata"> |
| 122 |
<FEED source="//scs#coreDescs"/> |
| 123 |
<condDesc buildFrom="mag"/> |
| 124 |
<condDesc> |
| 125 |
<inputKey original="rV" type="vexpr-float" |
| 126 |
>-100 .. 100<property name="cssClass">rvkey</property> |
| 127 |
</inputKey> |
| 128 |
</condDesc> |
| 129 |
</dbCore> |
| 130 |
<property name="customCSS"> |
| 131 |
.rvkey { background:red; } |
| 132 |
</property> |
| 133 |
<publish render="form" sets="local"/> |
| 134 |
</service> |
| 135 |
|
| 136 |
<service id="grouptest" allowed="form,static"> |
| 137 |
<dbCore queriedTable="data/test#adql"> |
| 138 |
<condDesc> |
| 139 |
<inputKey original="rV"/> |
| 140 |
</condDesc> |
| 141 |
<inputTable id="knok"> |
| 142 |
<group name="magic" |
| 143 |
description="Some magic parameters we took out of thin air."> |
| 144 |
<property name="cssClass">localstuff</property> |
| 145 |
<paramRef dest="mag"/> |
| 146 |
<paramRef dest="rV"/> |
| 147 |
</group> |
| 148 |
<inputKey original="rV"> |
| 149 |
<values default="-4"/> |
| 150 |
</inputKey> |
| 151 |
<inputKey original="mag"/> |
| 152 |
<inputKey original="alpha"/> |
| 153 |
<inputKey original="delta"/> |
| 154 |
</inputTable> |
| 155 |
</dbCore> |
| 156 |
</service> |
| 157 |
|
| 158 |
<service id="impgrouptest" defaultRenderer="form"> |
| 159 |
<dbCore queriedTable="data/test#adql"> |
| 160 |
<condDesc> |
| 161 |
<inputKey original="rV"> |
| 162 |
<property name="defaultForForm">-30</property> |
| 163 |
</inputKey> |
| 164 |
<inputKey original="mag"/> |
| 165 |
<group name="phys" description="Ah, you know. The group with |
| 166 |
the magic and the thin air"> |
| 167 |
<property name="label">Wonz</property> |
| 168 |
<property name="style">compact</property> |
| 169 |
</group> |
| 170 |
</condDesc> |
| 171 |
</dbCore> |
| 172 |
</service> |
| 173 |
|
| 174 |
<service id="dl" allowed="dlget,dlmeta,dlasync"> |
| 175 |
<meta name="title">Hollow Datalink</meta> |
| 176 |
<meta name="shortName">Hollow DL</meta> |
| 177 |
<publish render="dlmeta" sets="ivo_managed"/> |
| 178 |
<datalinkCore> |
| 179 |
<descriptorGenerator procDef="//soda#fits_genDesc"> |
| 180 |
<setup> |
| 181 |
<code> |
| 182 |
from gavo import svcs |
| 183 |
from gavo.protocols import soda |
| 184 |
</code> |
| 185 |
</setup> |
| 186 |
<code> |
| 187 |
if pubDID=="broken": |
| 188 |
ddt |
| 189 |
elif pubDID=="somewhereelse": |
| 190 |
raise svcs.WebRedirect("http://some.whereel.se/there") |
| 191 |
return getFITSDescriptor(pubDID) |
| 192 |
</code> |
| 193 |
</descriptorGenerator> |
| 194 |
<metaMaker procDef="//soda#fits_makeWCSParams" name="getWCSParams"> |
| 195 |
<bind key="axisMetaOverrides">{3: {}}</bind> |
| 196 |
</metaMaker> |
| 197 |
<dataFunction procDef="//soda#fits_makeHDUList" name="makeHDUList"/> |
| 198 |
<FEED source="//soda#fits_Geometries"/> |
| 199 |
<FEED source="//soda#fits_standardBANDCutout" spectralAxis="3" |
| 200 |
wavelengthOverride="Angstrom"/> |
| 201 |
<dataFunction procDef="//soda#fits_doWCSCutout" name="doWCSCutout"/> |
| 202 |
<FEED source="//soda#fits_genPixelPar"/> |
| 203 |
<FEED source="//soda#fits_genKindPar"/> |
| 204 |
<dataFormatter procDef="//soda#fits_formatHDUs" name="formatHDUs"/> |
| 205 |
</datalinkCore> |
| 206 |
|
| 207 |
<meta name="_example" title="Example 1"> |
| 208 |
This is an example for examples, describing |
| 209 |
:dl-id:`ivo://org.gavo.dc/~?bla/foo/qua` (which, incidentally, |
| 210 |
does not exist). |
| 211 |
</meta> |
| 212 |
|
| 213 |
<meta name="_example" title="Example 2"> |
| 214 |
This is another example for examples. |
| 215 |
</meta> |
| 216 |
</service> |
| 217 |
|
| 218 |
<dbCore id="typescore" queriedTable="data/test#typesTable"/> |
| 219 |
|
| 220 |
<table id="conecat" onDisk="True" mixin="//scs#q3cindex"> |
| 221 |
<stc> |
| 222 |
POSITION FK5 J1990 Epoch J1985.7 "ra" "dec" |
| 223 |
</stc> |
| 224 |
<column name="id" type="integer" ucd="meta.id;meta.main" required="True"/> |
| 225 |
<column name="ra" type="real" ucd="pos.eq.ra;meta.main"/> |
| 226 |
<column name="dec" type="double precision" ucd="pos.eq.dec;meta.main"/> |
| 227 |
</table> |
| 228 |
|
| 229 |
<data id="import_conecat"> |
| 230 |
<sources item="nix"/> |
| 231 |
<embeddedGrammar> |
| 232 |
<iterator> |
| 233 |
<code> |
| 234 |
for id, (ra, dec) in enumerate([(1.25, 2.5), (23, -92.5)]): |
| 235 |
yield locals() |
| 236 |
</code> |
| 237 |
</iterator> |
| 238 |
</embeddedGrammar> |
| 239 |
<make table="conecat"/> |
| 240 |
</data> |
| 241 |
|
| 242 |
<service id="scs" allowed="scs.xml, api, form" defaultRenderer="scs.xml"> |
| 243 |
<meta name="testQuery"> |
| 244 |
<meta name="ra">10</meta> |
| 245 |
<meta name="dec">20</meta> |
| 246 |
<meta name="sr">1</meta> |
| 247 |
</meta> |
| 248 |
<meta name="shortName">test ignore</meta> |
| 249 |
<scsCore queriedTable="conecat"> |
| 250 |
<FEED source="//scs#coreDescs"/> |
| 251 |
<condDesc buildFrom="id"/> |
| 252 |
</scsCore> |
| 253 |
<inputKey name="bogus" type="text" multiplicity="multiple"/> |
| 254 |
<publish sets="local"/> |
| 255 |
|
| 256 |
<FEED source="//pql#DALIPars"/> |
| 257 |
|
| 258 |
</service> |
| 259 |
|
| 260 |
<coverage> |
| 261 |
<spatial>1/10</spatial> |
| 262 |
<temporal>54444 55555</temporal> |
| 263 |
<temporal>56083 56087</temporal> |
| 264 |
<spectral>0.3e-19 1e-18</spectral> |
| 265 |
<spectral>1e-17 5e-17</spectral> |
| 266 |
</coverage> |
| 267 |
|
| 268 |
<service id="uploadtest" allowed="api,form,siap.xml"> |
| 269 |
<meta name="crash_this">This will crash availability for testing.</meta> |
| 270 |
<debugCore> |
| 271 |
<inputTable> |
| 272 |
<inputKey name="notarbitrary" type="file" |
| 273 |
description="An example upload containing nothing in particular" |
| 274 |
ucd="par.upload"> |
| 275 |
<property name="adaptToRenderer">True</property> |
| 276 |
</inputKey> |
| 277 |
</inputTable> |
| 278 |
</debugCore> |
| 279 |
<inputKey name="frobnicate" type="boolean" |
| 280 |
description="A service key"/> |
| 281 |
<FEED source="//pql#DALIPars"/> |
| 282 |
</service> |
| 283 |
|
| 284 |
<service id="rds" allowed="static"> |
| 285 |
<template key="fixed">defaultresponse.html</template> |
| 286 |
<nullCore/> |
| 287 |
<property name="staticData">data</property> |
| 288 |
</service> |
| 289 |
|
| 290 |
<service id="pc" allowed="api,form,uws.xml,async"> |
| 291 |
<meta name="title">PC datalink</meta> |
| 292 |
<meta name="shortName">PC datalink</meta> |
| 293 |
<publish sets="ivo_managed" render="api"/> |
| 294 |
<pythonCore> |
| 295 |
<inputTable> |
| 296 |
<inputKey name="opre" description="Operand, real part" |
| 297 |
required="True"/> |
| 298 |
<inputKey name="opim" description="Operand, imaginary part"> |
| 299 |
<values default="1.0"/> |
| 300 |
</inputKey> |
| 301 |
<inputKey name="powers" description="Powers to compute" |
| 302 |
type="integer[]" multiplicity="single"> |
| 303 |
<values default="1 2 3"/> |
| 304 |
</inputKey> |
| 305 |
<inputKey name="responseformat" description="Preferred |
| 306 |
output format" type="text"> |
| 307 |
<values default="application/x-votable+xml"/> |
| 308 |
</inputKey> |
| 309 |
<inputKey name="stuff" type="file" description="Stuff to upload"/> |
| 310 |
</inputTable> |
| 311 |
<outputTable> |
| 312 |
<outputField name="re" description="Result, real part"/> |
| 313 |
<outputField name="im" description="Result, imaginary part"/> |
| 314 |
<outputField name="log_value" |
| 315 |
description="real part of logarithm of result"/> |
| 316 |
</outputTable> |
| 317 |
|
| 318 |
<coreProc> |
| 319 |
<setup imports="cmath"/> |
| 320 |
<code> |
| 321 |
powers = inputTable.args["powers"] |
| 322 |
op = complex(inputTable.args["opre"], |
| 323 |
inputTable.args["opim"]) |
| 324 |
rows = [] |
| 325 |
for p in powers: |
| 326 |
val = op**p |
| 327 |
rows.append({ |
| 328 |
"re": val.real, |
| 329 |
"im": val.imag, |
| 330 |
"log_value": cmath.log(val).real}) |
| 331 |
|
| 332 |
if hasattr(inputTable, "job"): |
| 333 |
with inputTable.job.getWritable() as wjob: |
| 334 |
wjob.addResult("Hello World.\\n", "text/plain", "aux.txt") |
| 335 |
|
| 336 |
t = rsc.TableForDef(self.outputTable, rows=rows) |
| 337 |
t.addMeta("info", str(inputTable.args["opim"]), |
| 338 |
infoName="inpar", |
| 339 |
infoValue="opim") |
| 340 |
return t |
| 341 |
</code> |
| 342 |
</coreProc> |
| 343 |
</pythonCore> |
| 344 |
</service> |
| 345 |
|
| 346 |
<service id="cc" allowed="qp,static"> |
| 347 |
<meta name="title">custom core tester</meta> |
| 348 |
<property name="indexFile">does-not-exist.testing</property> |
| 349 |
<property key="queryField">x</property> |
| 350 |
<customCore module="data/testcore"/> |
| 351 |
</service> |
| 352 |
|
| 353 |
<service id="uc" allowed="uws.xml,async"> |
| 354 |
<pythonCore> |
| 355 |
<inputTable> |
| 356 |
<inputKey name="stuff" type="file" description="Stuff to upload"/> |
| 357 |
<inputKey name="other" type="file" |
| 358 |
description="More stuff to upload"/> |
| 359 |
</inputTable> |
| 360 |
<outputTable/> |
| 361 |
|
| 362 |
<coreProc> |
| 363 |
<code> |
| 364 |
return None |
| 365 |
</code> |
| 366 |
</coreProc> |
| 367 |
</pythonCore> |
| 368 |
</service> |
| 369 |
|
| 370 |
<table id="coltesttable"> |
| 371 |
<column name="a" verbLevel="1"/> |
| 372 |
<column name="b" verbLevel="10"/> |
| 373 |
<column name="c" verbLevel="20" displayHint="noxml=true"/> |
| 374 |
<column name="d" verbLevel="30"/> |
| 375 |
<column name="e" verbLevel="30"/> |
| 376 |
<column name="f" verbLevel="40"/> |
| 377 |
</table> |
| 378 |
|
| 379 |
<service id="coltest0" allowed="api,form"> |
| 380 |
<dbCore queriedTable="coltesttable"/> |
| 381 |
</service> |
| 382 |
|
| 383 |
<service id="coltest" original="coltest0" |
| 384 |
allowed="external,static, volatile,form"> |
| 385 |
<template key="fixed">defaultresponse.html</template> |
| 386 |
<outputTable> |
| 387 |
<column original="a" sets="kl,gr"/> |
| 388 |
<column original="b" sets="gr"/> |
| 389 |
<column original="c" sets="kl"/> |
| 390 |
<column original="d" sets="ALL"/> |
| 391 |
<column original="f"/> |
| 392 |
</outputTable> |
| 393 |
</service> |
| 394 |
|
| 395 |
<service id="coltestr" original="coltest"> |
| 396 |
<property name="votableRespectsOutputTable">True</property> |
| 397 |
</service> |
| 398 |
|
| 399 |
<service id="singlearg" allowed="api,qp,external"> |
| 400 |
<meta name="shortName">sing</meta> |
| 401 |
<property name="queryField">mainarg</property> |
| 402 |
<publish render="external"> |
| 403 |
<meta name="accessURL">http://supersmart.edu/singlearg</meta> |
| 404 |
</publish> |
| 405 |
|
| 406 |
<pythonCore> |
| 407 |
<inputTable> |
| 408 |
<inputKey name="mainarg" type="text"/> |
| 409 |
<inputKey name="otherarg" type="integer"> |
| 410 |
<values default="3" nullLiteral="-1"/> |
| 411 |
</inputKey> |
| 412 |
</inputTable> |
| 413 |
<outputTable> |
| 414 |
<column name="ct" type="integer" description="I'm count" |
| 415 |
required="True"/> |
| 416 |
<column name="val" type="text" description="I'm not value"/> |
| 417 |
</outputTable> |
| 418 |
<coreProc> |
| 419 |
<code> |
| 420 |
item = inputTable.args["mainarg"] |
| 421 |
if item=="fail hard": |
| 422 |
ddt |
| 423 |
queryMeta["Matched"] = inputTable.args["otherarg"] |
| 424 |
return rsc.TableForDef(self.outputTable, |
| 425 |
rows=[{"ct": rowInd+1, "val": item*(rowInd+1)} |
| 426 |
for rowInd in range(inputTable.args["otherarg"])]) |
| 427 |
</code> |
| 428 |
</coreProc> |
| 429 |
</pythonCore> |
| 430 |
</service> |
| 431 |
|
| 432 |
<service id="wfq" allowed="fixed"> |
| 433 |
<template key="fixed">fixtest.html</template> |
| 434 |
<fixedQueryCore query="SELECT 2 as num1, 3 as num2 from generate_series(1, 3)"> |
| 435 |
<outputTable> |
| 436 |
<outputField name="num1"/> |
| 437 |
<outputField name="num2"/> |
| 438 |
</outputTable> |
| 439 |
</fixedQueryCore> |
| 440 |
</service> |
| 441 |
|
| 442 |
<service id="maxrecdl" allowed="dlmeta"> |
| 443 |
<datalinkCore> |
| 444 |
<descriptorGenerator> |
| 445 |
<code> |
| 446 |
return ProductDescriptor(pubDID, pubDID, None, "vnd/x-bogus") |
| 447 |
</code> |
| 448 |
</descriptorGenerator> |
| 449 |
<metaMaker> |
| 450 |
<code> |
| 451 |
for i in range(10): |
| 452 |
yield descriptor.makeLink("http://%s.example.org/" |
| 453 |
+descriptor.pubDID) |
| 454 |
</code> |
| 455 |
</metaMaker> |
| 456 |
</datalinkCore> |
| 457 |
</service> |
| 458 |
|
| 459 |
<service id="keepout" limitTo="testing" original="coltest"/> |
| 460 |
|
| 461 |
<service id="zombie"> |
| 462 |
<meta name="superseded" format="rst"> |
| 463 |
Brains! Brains! Brains_! |
| 464 |
|
| 465 |
.. _Brains: https://en.wikipedia.org/wiki/George_A._Romero |
| 466 |
</meta> |
| 467 |
<nullCore/> |
| 468 |
</service> |
| 469 |
|
| 470 |
<procDef id="make-fits-desc" type="descriptorGenerator"> |
| 471 |
<doc> |
| 472 |
A descriptor generator producing some FITS header structure. |
| 473 |
|
| 474 |
This has a few built-in defaults; the id is a urlencoded extra |
| 475 |
header cards. |
| 476 |
</doc> |
| 477 |
<setup imports="gavo.protocols.datalink"> |
| 478 |
<code> |
| 479 |
def perhapsFloat(v): |
| 480 |
try: |
| 481 |
num = float(v) |
| 482 |
if num-int(num)==0: |
| 483 |
return int(num) |
| 484 |
else: |
| 485 |
return num |
| 486 |
except ValueError: |
| 487 |
return v |
| 488 |
|
| 489 |
class PD(datalink.DatalinkDescriptorMixin): |
| 490 |
def __init__(self, extraCards): |
| 491 |
self.pubDID = extraCards |
| 492 |
self.accref = f"testing {extraCards}" |
| 493 |
self.accessPath = f"Forget/it" |
| 494 |
self.mime = "application/fits" |
| 495 |
self.imageExtind = 0 |
| 496 |
self.hdr = { |
| 497 |
"CRVAL1": 0, "CRVAL2": 0, |
| 498 |
"CRPIX1": 50, "CRPIX2": 50, |
| 499 |
"CD1_1": 0.01, "CD1_2": 0, |
| 500 |
"CD2_1": 0, "CD2_2": 0.01, |
| 501 |
"NAXIS1": 100, "NAXIS2": 100, |
| 502 |
"CUNIT1": "deg", "CUNIT2": "deg", |
| 503 |
"CTYPE1": 'RA--TAN', "CTYPE2": 'DEC-TAN', |
| 504 |
"LONPOLE": 180., |
| 505 |
"NAXIS": 2, |
| 506 |
} |
| 507 |
self.hdr.update(dict((k, perhapsFloat(v[0])) for k, v in |
| 508 |
urllib.parse.parse_qs(extraCards).items())) |
| 509 |
self.slices = [] |
| 510 |
self.data = ["This is test instrumentation"] |
| 511 |
|
| 512 |
def changingAxis(self, axisIndex, parName): |
| 513 |
pass |
| 514 |
</code> |
| 515 |
</setup> |
| 516 |
<code> |
| 517 |
return PD(pubDID) |
| 518 |
</code> |
| 519 |
</procDef> |
| 520 |
|
| 521 |
<procDef id="debug-formatter" type="dataFormatter"> |
| 522 |
<code> |
| 523 |
return "text/plain", " ".join(str(v) for v in descriptor.slices) |
| 524 |
</code> |
| 525 |
</procDef> |
| 526 |
</resource> |