Exemplo n.º 1
0
 def resp():
   print request
   print "Request: %s\n" % request.query.config
   req = simplejson.loads(request.query.config)
   returnobj = misc.gen_model(req)
   print returnobj[1]
   return returnobj[1] 
Exemplo n.º 2
0
import os, string, sys, json
from synthicity.utils import misc

args = sys.argv[1:]

for arg in args:
  print "Generating %s" % arg
  d = misc.gen_model(arg)
  for mode, code in d.items():
    basename = os.path.splitext(os.path.basename(arg))[0]
    open(os.path.join(misc.models_dir(),basename+'_'+mode+'.py'),'w').write(code)
Exemplo n.º 3
0
import os, string, sys, json
from synthicity.utils import misc

args = sys.argv[1:]

for arg in args:
  print "Generating %s" % arg
  basename, d = misc.gen_model(arg)
  for mode, code in d.items():
    open(os.path.join(misc.models_dir(),basename+'_'+mode+'.py'),'w').write(code)