~jasonodoom/dmedia/docs

« back to all changes in this revision

Viewing changes to dmedia/schema.py

  • Committer: Jason Gerard DeRose
  • Date: 2011-06-07 18:42:39 UTC
  • Revision ID: jderose@novacut.com-20110607184239-s16qdrw2wovwhd00
Quick hacks to upload all the uds-o video

Show diffs side-by-side

added added

removed removed

Lines of Context:
1325
1325
    }
1326
1326
 
1327
1327
 
 
1328
def create_s3_store(bucket, copies=2, use_ext=True):
 
1329
    """
 
1330
    Create a 'dmedia/store' document.
 
1331
    """
 
1332
    return {
 
1333
        '_id': random_id(),
 
1334
        'ver': 0,
 
1335
        'type': 'dmedia/store',
 
1336
        'time': time.time(),
 
1337
        'plugin': 's3',
 
1338
        'bucket': bucket,
 
1339
        'copies': copies,
 
1340
        'use_ext': use_ext,
 
1341
    }
 
1342
 
 
1343
 
1328
1344
def create_batch(machine_id=None):
1329
1345
    """
1330
1346
    Create initial 'dmedia/batch' accounting document.