Example #1
0
def handle_multiform_modify(context, event):
    """Will add or replace catalog for a multiform"""
    if event and len(getattr(event, 'descriptions', [])):
        if 'items' not in getattr(event.descriptions[0], 'attributes', ()):
            return
    # repoze.catalog indexes for boolean query of records, we want to reset
    # in both cases of empty forms and forms with data:
    index_records(context)
    if len(context):
        # check for computed fields, if any, and computed, if necessary:
        records = context.values()
        schema = records[0].schema
        if has_computed_fields(schema):
            complete_computed_values(context, schema)
    # reload the data point cache for all points/measures for this form:
    DataPointCache().reload(IUUID(context))
def migrate_cachewarm(site):
    cache = DataPointCache(site)
    cache.warm()
Example #3
0
def warm_datapoints(site):
    cache = DataPointCache(site)
    cache.warm()
Example #4
0
def warm_datapoints(site):
    cache = DataPointCache(site)
    cache.warm()
def reload_dp_cache(site):
    cache = DataPointCache(site)
    cache.warm()
def reload_dp_cache(site):
    cache = DataPointCache(site)
    cache.warm()