## -*- coding: utf_8 -*- <% from fcp import connection from fcp import fcpdefs from fcutils import util from fcws.fcweb import webutil from fcp import mlitem import os.path import urllib %> <%namespace name="fcnames" file="fcnames.html" import="renderFCNames"/> <% 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,subject = fcp.GetEscapedFormField(fcpdefs.dSubject) if subject is None: subject = "" fType,objName = fcp.GetEscapedFormField(fcpdefs.dObjName) if objName is None: objName = "" if subject is not "": windowTitle = subject elif objName is not "": windowTitle = objName else: windowTitle ="Nuovo Documento" 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 "" fromseparator ="" msgStatus = fcp.MyMLItem.Status() fType,keywords = fcp.GetEscapedFormField(8022) if keywords is None: keywords = "" fType,category = fcp.GetEscapedFormField(8021) if category is None: category = "" attachClasses = 'fc-form-row multiline' if fcp.GetNthMLItem(0) is None and not isEditable: attachClasses += ' fc-mouse-only' subjectID = 'fcfid-'+str(fcpdefs.dSubject) objNameID = 'fcfid-'+str(fcpdefs.dObjName) authorID = 'fcfid-'+str(fcpdefs.dFromName) keywordsID = 'fcfid-8022' categoryID = 'fcfid-8021' %>
%if isEditable:
%elif canEdit: %endif
${webutil.stripNone(fcp, 2000, None, 'Nome:')}
Abilitata
${webutil.stripNone(fcp, 2005, None, 'Procedere Comunque?')}
${webutil.stripNone(fcp, 2002, None, ' Quando:')} ${webutil.stripNone(fcp, 2004, None, 'Attenzione: Cambiare il tipo di regola fare perdere tutte le azioni correnti impostate.')}
Condizioni
${webutil.stripNone(fcp, 2100, None, ' Se:')} ${webutil.stripNone(fcp, 2006, None, 'dei seguenti criteri combacia.')}
${webutil.stripNone(fcp, 13812, 0, '')} ${webutil.stripNone(fcp, 13822, 0, '')} ${webutil.stripNone(fcp, 13827, 0, '')}
Azioni
${webutil.stripNone(fcp, 2110, None, ' Allora:')}
${webutil.stripNone(fcp, 13832, 0, '')} ${webutil.stripNone(fcp, 13837, 0, '')}
Allegati
${webutil.stripNone(fcp, 2130, None, 'Gli oggetti allegati a questa regola appariranno nella lista dei possibili messaggi per azioni che creano messaggi o risposte. Questi allegati possono così essere usati per fornire un testo più ricco per le mail generate al posto di quello predefinito (testo semplice).')}
%if fcp.GetNthMLItem(0) or isEditable:
%if isEditable:
%else:
%endif
%endif
Comandi
Aggiungi alla barra degli strumenti
${webutil.stripNone(fcp, 2141, None, 'Icona comando:')}
${webutil.stripNone(fcp, 2142, None, 'Nome comando:')}
Visualizza nomi
${webutil.stripNone(fcp, 2143, None, 'Testo etichetta:')}
${webutil.stripNone(fcp, 2144, None, 'Comando abilitato:')}
%if isEditable: %else:
%endif