tcms.xmlrpc.utils module

tcms.xmlrpc.utils.distinct_filter(cls, values)[source]
tcms.xmlrpc.utils.distinct_m2m_rows(cls, values, op_type)[source]

By django model field looking up syntax, loop values and check the condition if there is a multi-tables query.

@param cls: table model class @type cls: subclass of django.db.models.Model @param values: fields in where condition. @type values: dict @return: QuerySet @rtype: django.db.models.query.QuerySet

tcms.xmlrpc.utils.parse_bool_value(value)[source]
tcms.xmlrpc.utils.pre_check_product(values)[source]