code: def atlasdb_format_query( query, values ):
      
      return "".join( ["%s %s" % (frag, "'%s'" % val if type(val) in [str, unicode] else val) for (frag, val) in zip(query.split("?"), values + ("",))] )
docs: Turn a query into a string for printing.
      Useful for debugging.