- Timestamp:
- 19/02/08 11:56:06 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI05-delivery/ows_framework/trunk/ows_server/ows_server/models/Utilities.py
r2755 r3456 171 171 172 172 173 def recreateListFromUnicode(string): 174 ''' Parse a list that has been passed as unicode over http and 175 recreate it in its list form 176 ''' 177 newList = [] 178 element = [] 179 for c in string: 180 if c == '[' or c == ' ' or c == ']' or c == '\'': 181 continue 182 elif c == ',': 183 if (len(element) > 0): 184 newList.append(''.join(element)) 185 element = [] 186 continue 187 element.append(c) 188 189 # don't forget the last element 190 if (len(element) > 0): 191 newList.append(''.join(element)) 192 193 return newList 173 194 174 195
Note: See TracChangeset
for help on using the changeset viewer.