|
@@ 3951-3976 (lines=26) @@
|
| 3948 |
|
if name: |
| 3949 |
|
cmd.add_element('name', name) |
| 3950 |
|
|
| 3951 |
|
if first_time_minute or first_time_hour or first_time_day_of_month or \ |
| 3952 |
|
first_time_month or first_time_year: |
| 3953 |
|
|
| 3954 |
|
if not first_time_minute: |
| 3955 |
|
raise RequiredArgument( |
| 3956 |
|
'Setting first_time requires first_time_minute argument') |
| 3957 |
|
if not first_time_hour: |
| 3958 |
|
raise RequiredArgument( |
| 3959 |
|
'Setting first_time requires first_time_hour argument') |
| 3960 |
|
if not first_time_day_of_month: |
| 3961 |
|
raise RequiredArgument( |
| 3962 |
|
'Setting first_time requires first_time_day_of_month ' |
| 3963 |
|
'argument') |
| 3964 |
|
if not first_time_month: |
| 3965 |
|
raise RequiredArgument( |
| 3966 |
|
'Setting first_time requires first_time_month argument') |
| 3967 |
|
if not first_time_year: |
| 3968 |
|
raise RequiredArgument( |
| 3969 |
|
'Setting first_time requires first_time_year argument') |
| 3970 |
|
|
| 3971 |
|
_xmlftime = cmd.add_element('first_time') |
| 3972 |
|
_xmlftime.add_element('minute', str(first_time_minute)) |
| 3973 |
|
_xmlftime.add_element('hour', str(first_time_hour)) |
| 3974 |
|
_xmlftime.add_element('day_of_month', str(first_time_day_of_month)) |
| 3975 |
|
_xmlftime.add_element('month', str(first_time_month)) |
| 3976 |
|
_xmlftime.add_element('year', str(first_time_year)) |
| 3977 |
|
|
| 3978 |
|
if duration: |
| 3979 |
|
if not duration_unit: |
|
@@ 1121-1146 (lines=26) @@
|
| 1118 |
|
if comment: |
| 1119 |
|
cmd.add_element('comment', comment) |
| 1120 |
|
|
| 1121 |
|
if first_time_minute or first_time_hour or first_time_day_of_month or \ |
| 1122 |
|
first_time_month or first_time_year: |
| 1123 |
|
|
| 1124 |
|
if not first_time_minute: |
| 1125 |
|
raise RequiredArgument( |
| 1126 |
|
'Setting first_time requires first_time_minute argument') |
| 1127 |
|
if not first_time_hour: |
| 1128 |
|
raise RequiredArgument( |
| 1129 |
|
'Setting first_time requires first_time_hour argument') |
| 1130 |
|
if not first_time_day_of_month: |
| 1131 |
|
raise RequiredArgument( |
| 1132 |
|
'Setting first_time requires first_time_day_of_month ' |
| 1133 |
|
'argument') |
| 1134 |
|
if not first_time_month: |
| 1135 |
|
raise RequiredArgument( |
| 1136 |
|
'Setting first_time requires first_time_month argument') |
| 1137 |
|
if not first_time_year: |
| 1138 |
|
raise RequiredArgument( |
| 1139 |
|
'Setting first_time requires first_time_year argument') |
| 1140 |
|
|
| 1141 |
|
_xmlftime = cmd.add_element('first_time') |
| 1142 |
|
_xmlftime.add_element('minute', str(first_time_minute)) |
| 1143 |
|
_xmlftime.add_element('hour', str(first_time_hour)) |
| 1144 |
|
_xmlftime.add_element('day_of_month', str(first_time_day_of_month)) |
| 1145 |
|
_xmlftime.add_element('month', str(first_time_month)) |
| 1146 |
|
_xmlftime.add_element('year', str(first_time_year)) |
| 1147 |
|
|
| 1148 |
|
if duration: |
| 1149 |
|
if not duration_unit: |