(cls, name, doc, obj, wrap_couch=None, wrap_sql=None, name_prefix=None)
return cls.diff_value(name, couch, sql, name_prefix)
Helper for diff_couch_and_sql
Helper for diff_couch_and_sql
Helper for diff_couch_and_sql
def diff_attr(cls, name, doc, obj, wrap_couch=None, wrap_sql=None, name_prefix=None):
        """
        Helper for diff_couch_and_sql
        """
        couch = doc.get(name, None)
        sql = getattr(obj, name, None)
        if wrap_couch:
            couch = wrap_couch(couch) if couch is not None else None
        if wrap_sql:
            sql = wrap_sql(sql) if sql is not None else None
        return cls.diff_value(name, couch, sql, name_prefix)
def diff_attr ( cls , name , doc , obj , wrap_couch = None , wrap_sql = None , name_prefix = None ) : couch = doc . get ( name , None ) sql = getattr ( obj , name , None ) if wrap_couch : couch = wrap_couch ( couch ) if couch is not None else None if wrap_sql : sql = wrap_sql ( sql ) if sql is not None else None return cls . diff_value ( name , couch , sql , name_prefix )