Changeset 10
- Timestamp:
- 03/22/05 12:50:55 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/daemon/togad.py
r9 r10 213 213 source['name'] = line.split( '"' )[1] 214 214 215 if line.find( 'data_source' ) and line[0] != '#':215 if line.find( 'data_source' ) != -1 and line[0] != '#': 216 216 217 217 source_words = line.split( '"' )[2].split( ' ' ) 218 print line.split( '"' )219 print source_words220 218 221 219 for word in source_words: 222 220 223 print 'word %s' %word224 221 valid_interval = 1 225 222 226 223 for letter in word: 227 print 'letter %s' %letter228 224 if letter not in string.digits: 229 225 valid_interval = 0 230 226 231 if valid_interval :227 if valid_interval and len(word) > 0: 232 228 source['interval'] = word 233 229 if (DEBUG_LEVEL>8): print 'polling interval for %s = %s' %(source['name'], source['interval'] )
Note: See TracChangeset
for help on using the changeset viewer.