## -*- coding: utf_8 -*- <% from fcp import fcpdefs from fcp import mlitem from fcutils import util from fcws.fcweb import webutil from extension import clib import json sessionObject = client.FindServerObjectByObjID(fcpdefs.SESSIONDATAOBJID) myMLItem = fcp.MyMLItem thisWebID = myMLItem.WebID() fType,description = fcp.GetEscapedFormField(fcpdefs.dSubject) fType,mtgStartDate = fcp.GetEscapedFormField(fcpdefs.mtgStartDate) fType,mtgDuration = fcp.GetEscapedFormField(fcpdefs.mtgDuration) fType,mtgTimeZone = fcp.GetEscapedFormField(fcpdefs.mtgTimeZone) fType,mtgLocation = fcp.GetEscapedFormField(fcpdefs.mtgLocation) fType,mtgTask = fcp.GetEscapedFormField(fcpdefs.mtgTask) if (mtgTimeZone == 0 or mtgTimeZone is None): mtgTimeZone = client.serverTZ if (client.serverTZ != 0 and client.serverTZ is not None and client.serverTZ != mtgTimeZone): mtgStartDate = clib.ConvertTime(mtgStartDate, client.serverTZ, mtgTimeZone) mtgSnoozeTimeID = 'fcfid-' + str(fcpdefs.mtgSnoozeTime) if mtgDuration is None: mtgDurationInitVal = "None" else: mtgDurationInitVal = mtgDuration endif calInitForm = { "mtgStartDate":mtgStartDate, "mtgDuration":mtgDurationInitVal, "mtgSnoozeTimeID":mtgSnoozeTimeID } calInitFormJsonStr = json.dumps(calInitForm) jsonStr = '{"MYMLITEM":'+myMLItem.AsJSONArrayItem(mlitem.sendAll,(client.serverTZ,client.clientTZ))+',"RIGHTS":'+str(fcp.rights)+',"FORMID":'+str(fcp.formID)+',"WINDOW_WIDTH":'+str(580)+',"WINDOW_HEIGHT":'+str(294)+',"NAME":"'+description+'","FCCalInitForm":'+calInitFormJsonStr+'}' if mtgTimeZone is None or mtgTimeZone == 0: fType,serverTZ = sessionObject.GetEscapedFormField(fcpdefs.serverTimeZone) if serverTZ is not None and serverTZ != 0: mtgTimeZone = serverTZ %>
${description}
Ubicación:
${mtgLocation}
Empezar:
Duración:
Franja horaria:
Dormitar: