## -*- coding: utf_8 -*- <% from fcp import connection from fcp import fcpdefs from fcutils import util from fcp import mlitem import os.path import urllib myMLItem = fcp.MyMLItem thisWebID = myMLItem.WebID() jsonStr = fcp.MeAsJSON((client.serverTZ,client.clientTZ)) canEdit = None editableVal = util.getValueFromDictionary('Editable', pageargs, None) eStatus = myMLItem.GetEStatus() if not (eStatus & fcpdefs.BackVersion) and editableVal=='0': parent = client.FindServerObjectByObjID(fcp.parentObjID) if parent: canEdit = True if parent.rights & fcpdefs.acWrite else False if canEdit is None: canEdit = True if fcp.rights & fcpdefs.acWrite else False isEditable = canEdit if isEditable and not editableVal=='1': isEditable = False editableClass = " editable" if isEditable else " readonly" fType,objName = fcp.GetEscapedFormField(fcpdefs.dObjName) if objName is None: objName = "" fType,envInfo = fcp.GetEscapedFormField(fcpdefs.dEnvInfo) dateSent,NTo,NCc = envInfo fromNames = fcp.GetMsgNameList(fcpdefs.dFromName) author = fromNames[0].EscapedName() if fromNames[0] is not None else "" msgStatus = fcp.MyMLItem.Status() fType,category = fcp.GetEscapedFormField(8021) if category is None: category = "" objNameID = 'fcfid-'+str(fcpdefs.dObjName) authorID = 'fcfid-'+str(fcpdefs.dFromName) categoryID = 'fcfid-8021' %>
%if isEditable: %elif canEdit: %endif
Bloggtitel:
%if isEditable: %else: ${objName} %endif
%if not isEditable:
Författare:
${author}
%endif
Taggar:
%if isEditable:
%else:
${category}
%endif
%if isEditable: %else:
%endif