Package gavo :: Package svcs
[frames] | no frames]

Source Code for Package gavo.svcs

 1  """ 
 2  Services, cores, and support. 
 3   
 4  A Service is something that receives some sort of structured data (typically, 
 5  a nevow context), processes it into input data using a grammar (default is 
 6  the ContextGrammar), pipes it through a core to receive a data set and 
 7  optionally tinkers with that data set. 
 8   
 9  A core receives a data set, processes it, and returns another data set. 
10   
11  Support code is in common.  Most importantly, this is QueryMeta, a data 
12  structure carrying lots of information on the query being processed. 
13  """ 
14   
15  #c Copyright 2008-2019, the GAVO project 
16  #c 
17  #c This program is free software, covered by the GNU GPL.  See the 
18  #c COPYING file in the source distribution. 
19   
20   
21  # Not checked by pyflakes: API file with gratuitous imports 
22   
23  from gavo.svcs.common import (Error, UnknownURI, ForbiddenURI, WebRedirect, 
24          RedirectBase, SeeOther, Authenticate, BadMethod, Found, 
25          QueryMeta, emptyQueryMeta, getTemplatePath, loadSystemTemplate) 
26   
27  from gavo.svcs.core import getCore, Core, CORE_REGISTRY 
28   
29  from gavo.svcs.customcore import CustomCore 
30   
31  from gavo.svcs.customwidgets import (DBOptions, FormalDict,  
32          SimpleSelectChoice,  
33          NumericExpressionField, DateExpressionField, StringExpressionField,  
34          ScalingTextArea) 
35   
36  from gavo.svcs.inputdef import ( 
37          CoreArgs, InputTD, InputKey, ContextGrammar) 
38   
39  from gavo.svcs.outputdef import OutputField, OutputTableDef 
40   
41  from gavo.svcs.renderers import RENDERER_REGISTRY, getRenderer 
42   
43  from gavo.svcs.runner import runWithData 
44   
45  from gavo.svcs.service import (Service, SvcResult, Publication, PreparsedInput) 
46   
47  from gavo.svcs.standardcores import (DBCore, CondDesc, 
48          mapDBErrors) 
49   
50  from gavo.svcs.computedcore import ComputedCore 
51   
52  from gavo.svcs.uploadcores import UploadCore 
53   
54  from gavo.svcs.vanity import getVanityMap 
55