## -*- coding: utf_8 -*- <% from datetime import datetime from fcp import fcpdefs from fcutils import util from fcp import mlitem from fcws.fcweb import webutil myMLItem = fcp.MyMLItem thisWebID = myMLItem.WebID() creatorCID = myMLItem.GetField(fcpdefs.lCreatorCID) userCID = CID jsonStr = '{"MYMLITEM":'+myMLItem.AsJSONArrayItem(mlitem.sendAll,(client.serverTZ,client.clientTZ))+',"RIGHTS":'+str(fcp.rights)+',"FORMID":'+str(fcp.formID)+',"USERCID":'+str(userCID)+'}' keepOpen = "" if userCID == str(client.sessionCID): timeParam = '&ts=' + str(datetime.now().microsecond) else: timeParam = '' windowTitle ="Profilo " protected = myMLItem.Status() & fcpdefs.Protected readwrite = fcp.rights & 0x0020 is 0x20 theInfo = "" if (not readwrite) or protected: company = webutil.stripNone(fcp,3004) jobtitle = webutil.stripNone(fcp,3001) if len(company) > 0 and len(jobtitle) > 0: theInfo = "