Changeset 4002
- Timestamp:
- 06/06/08 14:05:45 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
nappy/trunk/nappy/nc_interface/nc_to_na.py
r3991 r4002 185 185 # Use rule defined in config file in terms of where to put new comments 186 186 if comment_override_rule == "replace": 187 comments_list = new_item 187 comments_list = new_item[:] 188 188 elif comment_override_rule == "insert": 189 comments_list = new_item + this_na_dict.get(key, [])189 comments_list = new_item[:] + this_na_dict.get(key, []) 190 190 elif comment_override_rule == "extend": 191 comments_list = this_na_dict.get(key, []) + new_item 191 comments_list = this_na_dict.get(key, []) + new_item[:] 192 192 193 193 this_na_dict[key] = comments_list 194 194 this_na_dict["N%sL" % key] = len(comments_list) 195 print "Added to comments:", key 195 #print "COMMMENTS:", comments_list 196 #print "Added to comments:", key 196 197 197 198 elif not this_na_dict.has_key(key) or new_item != this_na_dict[key]:
Note: See TracChangeset
for help on using the changeset viewer.