示例#1
0
def update_associations(topo_map, update_types, user_id):
    """Update the links between this mapq and documents when the geometry
    has changed.
    """
    if update_types:
        # update cache key for currently associated docs
        update_cache_version_for_map(topo_map)

    if UpdateType.GEOM in update_types:
        update_map(topo_map, reset=True)
示例#2
0
def insert_associations(topo_map, user_id):
    """Create links between this new map and documents.
    """
    update_map(topo_map, reset=False)