mò .á¸Ec@sdZdklZdklZdkZdklZdkl Z dk l Z dk l Z dk lZd klZlZd klZd klZd klZd klZdkZdklZdklZlZdeieifd„ƒYZ ee ƒdS(sNProperty management $Id: PropertyManager.py 68062 2006-05-09 11:24:22Z shh $ (sescape(sListTypeN(sInitializeClass(sClassSecurityInfo(saccess_contents_information(smanage_properties(saq_base(sDTMLFiles MessageDialog(s Persistent(s BadRequest(s implements(stype_converters(sIPropertyManager(sDefaultPropertySheetssvpstPropertyManagercBs¹tZdZeeƒeƒZeieƒei ed;ƒhdd<dd<dd<|i|ƒpd}t i |ƒot ||ƒ}q‹n|i ||ƒdS(NsThe property %s does not existR R( RR'R(RR R1RRR!tproptypettype_convertersthas_keyR,(RR R(R3((Rt_updatePropertyÉs cCsY|i|ƒptdt|ƒ‚n|i|ƒtt|d„|iƒƒ|_dS(NsThe property %s does not existcCs|d|jS(NR (titn(R7R8((RtÚs( RRR R&RR.R*tfilterR(RR ((Rt _delPropertyÖs  t propertyIdscCstd„|iƒS(s'Return a list of property ids. cCs|dS(NR (R7(R7((RR9ásN(tmapRR(R((RR<ÞstpropertyValuescCst|d„|iƒS(s2Return a list of actual property objects. cCst||dƒS(NR (RtsR7(R7R?((RR9çsN(R=RR(R((RR>äst propertyItemscCst|d„|iƒS(s/Return a list of (id,property) tuples. cCs|dt||dƒfS(NR (R7RR?(R7R?((RR9ísN(R=RR(R((RR@ês cCs|iS(sEReturn a tuple of mappings, giving meta-data for properties. N(RR(R((Rt _propertyMapïst propertyMapcCsttd„|iƒƒƒS(s‚Return a tuple of mappings, giving meta-data for properties. Return copies of the real definitions for security. cCs |iƒS(N(tdicttcopy(RC((RR9úsN(R*R=RRA(R((RRBõst propertyLabelcCs=x6|iD]+}|d|jo|id|ƒSq q W|S(s1Return a label for the given property id R RN(RRRR R#(RR R((RREýs  tpropdictcCs,h}x|iD]}|||d%s does not existR RRsCannot delete %ss+The property %s cannot be deleted.RN(RIR[RRR$R#t MessageDialogRFt_reserved_namestndR RRR1RR;R(RR[RIR_RFR ((RRU`s,     *  (RR(RsProperties.stx(/t__name__t __module__t__doc__t implementstIPropertyManagertClassSecurityInfotsecuritytdeclareObjectProtectedtaccess_contents_informationtsetPermissionDefaulttmanage_optionstdeclareProtectedtmanage_propertiestDTMLFiletglobalsRR R RR^t __propsets__tvpstDefaultPropertySheetstpropertysheetsRRR$RR!R'R,R.R2R6R;R<R>R@RARBRERFRGRJRPRTRU(((RR&sl >    $  $                    (!RbtcgiRttypesR)tExtensionClasstGlobalstInitializeClasst AccessControlRetAccessControl.PermissionsRhRlt AcquisitionRRmR]t Persistentt zExceptionsR1tzope.interfaceRctZPublisher.ConvertersR4tZDOMt interfacesRdtPropertySheetsRqRptBasetElementWithAttributesR(RcRuRpRR{ReRRwRmRdR4R1RRhR)RR]RlRq((Rt?s&              ÿV