|
@@ 4004-4029 (lines=26) @@
|
| 4001 |
|
if name: |
| 4002 |
|
cmd.add_element('name', name) |
| 4003 |
|
|
| 4004 |
|
if first_time_minute or first_time_hour or first_time_day_of_month or \ |
| 4005 |
|
first_time_month or first_time_year: |
| 4006 |
|
|
| 4007 |
|
if not first_time_minute: |
| 4008 |
|
raise RequiredArgument( |
| 4009 |
|
'Setting first_time requires first_time_minute argument') |
| 4010 |
|
if not first_time_hour: |
| 4011 |
|
raise RequiredArgument( |
| 4012 |
|
'Setting first_time requires first_time_hour argument') |
| 4013 |
|
if not first_time_day_of_month: |
| 4014 |
|
raise RequiredArgument( |
| 4015 |
|
'Setting first_time requires first_time_day_of_month ' |
| 4016 |
|
'argument') |
| 4017 |
|
if not first_time_month: |
| 4018 |
|
raise RequiredArgument( |
| 4019 |
|
'Setting first_time requires first_time_month argument') |
| 4020 |
|
if not first_time_year: |
| 4021 |
|
raise RequiredArgument( |
| 4022 |
|
'Setting first_time requires first_time_year argument') |
| 4023 |
|
|
| 4024 |
|
_xmlftime = cmd.add_element('first_time') |
| 4025 |
|
_xmlftime.add_element('minute', str(first_time_minute)) |
| 4026 |
|
_xmlftime.add_element('hour', str(first_time_hour)) |
| 4027 |
|
_xmlftime.add_element('day_of_month', str(first_time_day_of_month)) |
| 4028 |
|
_xmlftime.add_element('month', str(first_time_month)) |
| 4029 |
|
_xmlftime.add_element('year', str(first_time_year)) |
| 4030 |
|
|
| 4031 |
|
if duration: |
| 4032 |
|
if not duration_unit: |
|
@@ 1174-1199 (lines=26) @@
|
| 1171 |
|
if comment: |
| 1172 |
|
cmd.add_element('comment', comment) |
| 1173 |
|
|
| 1174 |
|
if first_time_minute or first_time_hour or first_time_day_of_month or \ |
| 1175 |
|
first_time_month or first_time_year: |
| 1176 |
|
|
| 1177 |
|
if not first_time_minute: |
| 1178 |
|
raise RequiredArgument( |
| 1179 |
|
'Setting first_time requires first_time_minute argument') |
| 1180 |
|
if not first_time_hour: |
| 1181 |
|
raise RequiredArgument( |
| 1182 |
|
'Setting first_time requires first_time_hour argument') |
| 1183 |
|
if not first_time_day_of_month: |
| 1184 |
|
raise RequiredArgument( |
| 1185 |
|
'Setting first_time requires first_time_day_of_month ' |
| 1186 |
|
'argument') |
| 1187 |
|
if not first_time_month: |
| 1188 |
|
raise RequiredArgument( |
| 1189 |
|
'Setting first_time requires first_time_month argument') |
| 1190 |
|
if not first_time_year: |
| 1191 |
|
raise RequiredArgument( |
| 1192 |
|
'Setting first_time requires first_time_year argument') |
| 1193 |
|
|
| 1194 |
|
_xmlftime = cmd.add_element('first_time') |
| 1195 |
|
_xmlftime.add_element('minute', str(first_time_minute)) |
| 1196 |
|
_xmlftime.add_element('hour', str(first_time_hour)) |
| 1197 |
|
_xmlftime.add_element('day_of_month', str(first_time_day_of_month)) |
| 1198 |
|
_xmlftime.add_element('month', str(first_time_month)) |
| 1199 |
|
_xmlftime.add_element('year', str(first_time_year)) |
| 1200 |
|
|
| 1201 |
|
if duration: |
| 1202 |
|
if not duration_unit: |