Changeset fcf0ef3 in OpenWorkouts-current


Ignore:
Timestamp:
Sep 30, 2019, 12:16:24 PM (5 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current
Children:
715671f
Parents:
dba0ae9
Message:

(#77) Bulk workouts upload:

  • Added a new Folder-like object under the root object to store compressed files
  • Added a new Blob-like object to store those compressed files into the database
  • Added the needed view/template code to handle adding/uploading compressed files that may contain workout tracking files + a page to see them per-user
Location:
ow
Files:
6 added
2 edited

Legend:

Unmodified
Added
Removed
  • ow/models/__init__.py

    rdba0ae9 rfcf0ef3  
    22
    33from ow.models.root import OpenWorkouts
     4from ow.models.bulk import BulkFiles
    45from ow.catalog import get_catalog
    56
     
    89    if 'app_root' not in zodb_root:
    910        app_root = OpenWorkouts()
     11        app_root['_bulk_files'] = BulkFiles()
    1012        zodb_root['app_root'] = app_root
    1113        transaction.commit()
  • ow/templates/base.pt

    rdba0ae9 rfcf0ef3  
    8585                  <li>
    8686                    <a href="" i18n:translate=""
     87                       tal:attributes="href request.resource_url(request.root, current_user, 'add-bulk-file')">
     88                      Bulk upload</a>
     89                  </li>
     90                  <li>
     91                    <a href="" i18n:translate=""
    8792                       tal:attributes="href request.resource_url(request.root, current_user, 'add-workout-manually')">
    8893                      Add manually</a>
Note: See TracChangeset for help on using the changeset viewer.