Changeset 288 for ZMS/trunk/_objattrs.py


Ignore:
Timestamp:
12.11.2008 19:02:38 (4 years ago)
Author:
chris
Message:

zms-2.11.1-150

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ZMS/trunk/_objattrs.py

    r267 r288  
    902902          v = float(v) 
    903903       
    904       #-- Password-Fields 
    905       elif datatype == _globals.DT_PASSWORD: 
    906         pass 
    907         """ 
    908         if v is not None: 
    909           v = self.encrypt_password(v) 
    910         """ 
    911        
    912904      #-- String-Fields. 
    913905      elif datatype in _globals.DT_STRINGS: 
     
    979971          v = '{$__' + v[2:-1] + '__}' 
    980972       
     973      # Hook for custom formatting. 
     974      name = 'formatCustomObjAttrValue' 
     975      if hasattr(self,name): 
     976        v = getattr(self,name)( context=self, obj_attr=obj_attr, v=v) 
     977       
    981978      return v 
    982979 
Note: See TracChangeset for help on using the changeset viewer.