Skip to content

Sample

Racine Index / App / Models / Sample

Auto-generated documentation for app.models.sample module.

Sample

Show source in sample.py:7

Attributes

  • iscollaborative - in collaborative samples, all sharing users can edit all actions: db.Column(db.Boolean)

  • children - NB: the cascade delete for shares and actions is no longer used because we delete samples by setting isdeleted to True: db.relationship('Sample', backref=db.backref('parent', remote_side=[id]))

Signature

class Sample(db.Model): ...

Sample().is_accessible_for

Show source in sample.py:55

Signature

def is_accessible_for(self, user): ...