dax/dax_tools_utils.py
def create_default_assessor(assessor_obj, proctype):
    """
    Create default assessor using the DEFAULT_DATATYPE from dax

    :param assessor_obj: pyxnat assessor Eobject
    :param proctype: proctype for the assessor
    :return: None
    """
    # Create the assessor and set attributes
    now = datetime.now()
    today = '%s-%s-%s-' % (str(now.year), str(now.month), str(now.day))

    assessor_obj.create(assessors=DEFAULT_DATATYPE)
    # Call mset to only make a single HTTP request
    assessor_obj.attrs.mset(
        {DEFAULT_DATATYPE + '/validation/status': JOB_PENDING,
         DEFAULT_DATATYPE + '/proctype': proctype,
         DEFAULT_DATATYPE + '/date': today})

    Create default assessor using the DEFAULT_DATATYPE from dax

    :param assessor_obj: pyxnat assessor Eobject
    :param proctype: proctype for the assessor
    :return: None
    
Create default assessor using the DEFAULT_DATATYPE from dax
Create default assessor using the DEFAULT_DATATYPE from dax
def create_default_assessor(assessor_obj, proctype):
    now = datetime.now()
    today = '%s-%s-%s-' % (str(now.year), str(now.month), str(now.day))
    assessor_obj.create(assessors=DEFAULT_DATATYPE)
    assessor_obj.attrs.mset(
        {DEFAULT_DATATYPE + '/validation/status': JOB_PENDING,
         DEFAULT_DATATYPE + '/proctype': proctype,
         DEFAULT_DATATYPE + '/date': today})
def create_default_assessor ( assessor_obj , proctype ) : now = datetime . now ( ) today = '%s-%s-%s-' % ( str ( now . year ) , str ( now . month ) , str ( now . day ) ) assessor_obj . create ( assessors = DEFAULT_DATATYPE ) assessor_obj . attrs . mset ( { DEFAULT_DATATYPE + '/validation/status' : JOB_PENDING , DEFAULT_DATATYPE + '/proctype' : proctype , DEFAULT_DATATYPE + '/date' : today } )
Create default assessor using the DEFAULT_DATATYPE from dax
Create default assessor using the DEFAULT_DATATYPE from dax
"""
    Create default assessor using the DEFAULT_DATATYPE from dax

    :param assessor_obj: pyxnat assessor Eobject
    :param proctype: proctype for the assessor
    :return: None
    """ # Create the assessor and set attributes # Call mset to only make a single HTTP request
None
assessor_obj
pyxnat assessor Eobject
pyxnat assessor Eobject
proctype
proctype for the assessor
proctype for the assessor