server/sources/__init__.py
branchstable
changeset 7118 e094b3d4eb95
parent 7040 9b1f9bc74f5d
child 7237 9f619715665b
equal deleted inserted replaced
7117:44775b275d45 7118:e094b3d4eb95
    29 from yams.schema import role_name
    29 from yams.schema import role_name
    30 
    30 
    31 from cubicweb import ValidationError, set_log_methods, server
    31 from cubicweb import ValidationError, set_log_methods, server
    32 from cubicweb.schema import VIRTUAL_RTYPES
    32 from cubicweb.schema import VIRTUAL_RTYPES
    33 from cubicweb.server.sqlutils import SQL_PREFIX
    33 from cubicweb.server.sqlutils import SQL_PREFIX
    34 from cubicweb.server.ssplanner import EditedEntity
    34 from cubicweb.server.edition import EditedEntity
    35 
    35 
    36 
    36 
    37 def dbg_st_search(uri, union, varmap, args, cachekey=None, prefix='rql for'):
    37 def dbg_st_search(uri, union, varmap, args, cachekey=None, prefix='rql for'):
    38     if server.DEBUG & server.DBG_RQL:
    38     if server.DEBUG & server.DBG_RQL:
    39         print '  %s %s source: %s' % (prefix, uri, union.as_string())
    39         print '  %s %s source: %s' % (prefix, uri, union.as_string())