Esempio n. 1
0
def submitMicalaMetadata(aw, IndicoID, contentType, LODBID, LOID, videoFormat,
                         languages):
    '''Generate a lecture.xml file for the given event, then web upload it to the micala server.'''

    #    Logger.get('RecMan').debug('in submitMicalaMetadata()')

    # Initialize success flag, and result string to which we will append any errors.
    flagSuccess = True
    result = ""

    # First update the micala database that we've started this task
    try:
        idMachine = MicalaCommunication.getIdMachine(
            CollaborationTools.getOptionValue("RecordingManager",
                                              "micalaDBMachineName"))
        idTask = MicalaCommunication.getIdTask(
            CollaborationTools.getOptionValue("RecordingManager",
                                              "micalaDBStatusExportMicala"))
        idLecture = LODBID
        #        Logger.get('RecMan').debug('submitMicalaMetadata calling reportStatus...')
        MicalaCommunication.reportStatus('START', '', idMachine, idTask,
                                         idLecture)
    except Exception, e:
        flagSuccess = False
        result += _(
            "Unknown error occured when updating MICALA START task information in micala database: %s\n."
        ) % e
Esempio n. 2
0
def submitMicalaMetadata(aw, IndicoID, contentType, LODBID, LOID, videoFormat, languages):
    '''Generate a lecture.xml file for the given event, then web upload it to the micala server.'''

#    Logger.get('RecMan').debug('in submitMicalaMetadata()')

    # Initialize success flag, and result string to which we will append any errors.
    flagSuccess = True
    result = ""

    # First update the micala database that we've started this task
    try:
        idMachine = MicalaCommunication.getIdMachine(CollaborationTools.getOptionValue("RecordingManager", "micalaDBMachineName"))
        idTask    = MicalaCommunication.getIdTask(CollaborationTools.getOptionValue("RecordingManager", "micalaDBStatusExportMicala"))
        idLecture = LODBID
#        Logger.get('RecMan').debug('submitMicalaMetadata calling reportStatus...')
        MicalaCommunication.reportStatus('START', '', idMachine, idTask, idLecture)
    except Exception, e:
        flagSuccess = False
        result += _("Unknown error occured when updating MICALA START task information in micala database: %s\n.") % e
Esempio n. 3
0
                idLecture = MicalaCommunication.getIdLecture(IndicoID)
                # If the current talk was not found in the micala DB, add a new record.
                if idLecture == '':
                    # It's not necessary to pass contentType since this only gets called once,
                    # for plain_videos, but maybe later we'll want to use it to create records for LOIDs
                    idLecture = MicalaCommunication.createNewMicalaLecture(IndicoID, contentType)
            elif contentType == 'web_lecture':
                # there's no question that there is a record for this lecture object,
                # because we just read the database to get the LODBID.
                idLecture = LODBID

            # update the current lecture record with the title and speaker name
            MicalaCommunication.updateLectureInfo(idLecture, lectureTitle, lectureSpeakers)

            # Inform the micala DB that the CDS record creation task has started.
            MicalaCommunication.reportStatus('START', '', idMachine, idTask, idLecture)
        except Exception, e:
            flagSuccess = False
            result += _("Unknown error occured when updating task information in micala database: %s\n") % e

    return {"success": flagSuccess, "result": result}

def submitMicalaMetadata(aw, IndicoID, contentType, LODBID, LOID, videoFormat, languages):
    '''Generate a lecture.xml file for the given event, then web upload it to the micala server.'''

#    Logger.get('RecMan').debug('in submitMicalaMetadata()')

    # Initialize success flag, and result string to which we will append any errors.
    flagSuccess = True
    result = ""
Esempio n. 4
0
                if idLecture == '':
                    # It's not necessary to pass contentType since this only gets called once,
                    # for plain_videos, but maybe later we'll want to use it to create records for LOIDs
                    idLecture = MicalaCommunication.createNewMicalaLecture(
                        IndicoID, contentType)
            elif contentType == 'web_lecture':
                # there's no question that there is a record for this lecture object,
                # because we just read the database to get the LODBID.
                idLecture = LODBID

            # update the current lecture record with the title and speaker name
            MicalaCommunication.updateLectureInfo(idLecture, lectureTitle,
                                                  lectureSpeakers)

            # Inform the micala DB that the CDS record creation task has started.
            MicalaCommunication.reportStatus('START', '', idMachine, idTask,
                                             idLecture)
        except Exception, e:
            flagSuccess = False
            result += _(
                "Unknown error occured when updating task information in micala database: %s\n"
            ) % e

    return {"success": flagSuccess, "result": result}


def submitMicalaMetadata(aw, IndicoID, contentType, LODBID, LOID, videoFormat,
                         languages):
    '''Generate a lecture.xml file for the given event, then web upload it to the micala server.'''

    #    Logger.get('RecMan').debug('in submitMicalaMetadata()')
Esempio n. 5
0
                idLecture = MicalaCommunication.getIdLecture(IndicoID)
                # If the current talk was not found in the micala DB, add a new record.
                if idLecture == "":
                    # It's not necessary to pass contentType since this only gets called once,
                    # for plain_videos, but maybe later we'll want to use it to create records for LOIDs
                    idLecture = MicalaCommunication.createNewMicalaLecture(IndicoID, contentType)
            elif contentType == "web_lecture":
                # there's no question that there is a record for this lecture object,
                # because we just read the database to get the LODBID.
                idLecture = LODBID

            # update the current lecture record with the title and speaker name
            MicalaCommunication.updateLectureInfo(idLecture, lectureTitle, lectureSpeakers)

            # Inform the micala DB that the CDS record creation task has started.
            MicalaCommunication.reportStatus("START", "", idMachine, idTask, idLecture)
        except Exception, e:
            flagSuccess = False
            result += _("Unknown error occured when updating task information in micala database: %s\n") % e

    return {"success": flagSuccess, "result": result}


def submitMicalaMetadata(aw, IndicoID, contentType, LODBID, LOID, videoFormat, languages):
    """Generate a lecture.xml file for the given event, then web upload it to the micala server."""

    #    Logger.get('RecMan').debug('in submitMicalaMetadata()')

    # Initialize success flag, and result string to which we will append any errors.
    flagSuccess = True
    result = ""