def after_sample(analysis_request):
    """Method triggered after "sample" transition for the Analysis Request
    passed in is performed
    """
    analysis_request.setDateSampled(DateTime())
    idxs = ['getDateSampled']
    for analysis in analysis_request.getAnalyses(full_objects=True):
        analysis.reindexObject(idxs=idxs)
def after_sample ( analysis_request ) : analysis_request . setDateSampled ( DateTime ( ) ) idxs = [ 'getDateSampled' ] for analysis in analysis_request . getAnalyses ( full_objects = True ) : analysis . reindexObject ( idxs = idxs )
Method triggered after "sample" transition for the Analysis Request
    passed in is performed