def _key_from_query(query, qualifier=None):

    stmt = query.with_labels().statement
    compiled = stmt.compile()
    params = compiled.params

    # here we return the key as a long string.  our "key mangler"
    # set up with the region will boil it down to an md5.
    return " ".join(
                    [str(compiled)] +
                    [str(params[k]) for k in sorted(params)])
Get the maximum size for the layout.
dataset/ETHPy150Open zzzeek/sqlalchemy/examples/dogpile_caching/caching_query.py/_key_from_query--crossover with--dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/docking/q_dock_frame_layout.py/QDockFrameLayout.maximumSize