## -*- coding: utf_8 -*- <% from fcp import connection from fcp import fcpdefs from fcutils import util from fcp import mlitem from fcp import fcputil from fcws.fcweb import webutil languageFileHandle = client.Localized.rezFile; stripNone = webutil.stripNone parseEnumerations = webutil.parseEnumerations valueForFieldWithKey = webutil.valueForFieldWithKey expiry = parseEnumerations("Nie=0; =-1") charsetList = parseEnumerations("Legacy=0;Windows Latin=1252;Macintosh Roman=10000;Windows Cyrillic=1251;Macintosh Cyrillic=10007;Windows Central European=1250;Macintosh East European=10029;Windows Japanese (Shift-JIS)=932;Macintosh Japanese (Shift-JIS)=10001;Windows Chinese (GB 2312 8-bit)=936;Macintosh Chinese (GB 2312 8-bit)=10025;Windows Chinese (Big 5)=950;Macintosh Chinese (Big 5)=10002;Windows Korean (KS C 5601 8-bit)=949;Macintosh Korean (KS C 5601 8-bit)=10003;UTF8=-535") bIsUrlDoc = False url = None bIsEditable = True if fcp.rights & fcpdefs.acWrite else False selectEnableStr = '' if bIsEditable else 'disabled="disabled"' myMLItem = fcp.MyMLItem thisWebID = myMLItem.WebID() jsonStr = '{"MYMLITEM":'+myMLItem.AsJSONArrayItem(mlitem.sendAll,(client.serverTZ,client.clientTZ))+',"RIGHTS":'+str(fcp.rights)+',"FORMID":111}' context.write('
') fType,iconID = fcp.GetEscapedFormField(1304) if not iconID: iconID = 1 fType,formID = fcp.GetEscapedFormField(1401) if not formID: formID = 0 fType,parentType = fcp.GetEscapedFormField(1400) if not parentType: parentType = 0 if fcp.getObjectDataIndex is not -1: parent = client.FindServerObjectByWebID(myMLItem.ParentWebID()) if parent: getInfoMLItem = parent.GetMLItemByIndex(fcp.getObjectDataIndex) if getInfoMLItem and (getInfoMLItem.Status() & fcpdefs.URLDoc): bIsUrlDoc = True url = getInfoMLItem.GetField(8012) if url is None: url = "" %>