Message type field of * means all 4 field types
authorKonstantin Stepanov <kstep@p-nut.info>
Sun, 17 Oct 2010 20:40:19 +0000 (23:40 +0300)
committerKonstantin Stepanov <kstep@p-nut.info>
Sun, 17 Oct 2010 20:40:19 +0000 (23:40 +0300)
dbuscron/parser.py

index 6dcd6cb..5f8f97b 100644 (file)
@@ -57,6 +57,9 @@ class CrontabParser(object):
 
                 rule = [(None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,)]
 
+                if parts[1] = '*':
+                    parts[1] = 'signal,method_call,method_return,error'
+
                 for p in range(1, 8):
                     if parts[p] != '*':
                         rule[p] = parts[p].split(',')