Ignore:
Timestamp:
01.06.2010 23:28:00 (2 years ago)
Author:
zmsdev
Message:

Revised str_json and str_item

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ZMS/trunk/ZMSGlobals.py

    r1039 r1043  
    10291029      elif type(i) is int or type(i) is float: 
    10301030        return str(i) 
    1031       else: 
     1031      elif i is not None: 
    10321032        return '\'%s\''%(str(i).replace('\'','\\\'').replace('\n','\\n').replace('\r','\\r')) 
    10331033      return '\'\'' 
     
    10481048      if i is not None: 
    10491049        return str(i) 
    1050       else: 
    1051         return '' 
     1050      return '' 
    10521051 
    10531052    # -------------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.