def apath(path='', r=None):

    opath = up(r.folder)
    while path[:3] == '../':
        (opath, path) = (up(opath), path[3:])
    return os.path.join(opath, path).replace('\\', '/')
Adds the activities to the notification feed and marks them as unread/unseen.
dataset/ETHPy150Open uwdata/termite-data-server/web2py/gluon/admin.py/apath--crossover with--dataset/ETHPy150Open tschellenbach/Stream-Framework/stream_framework/feeds/notification_feed/base.py/BaseNotificationFeed.add_many_aggregated