|
@@ 1198-1223 (lines=26) @@
|
| 1195 |
|
if comment: |
| 1196 |
|
cmd.add_element('comment', comment) |
| 1197 |
|
|
| 1198 |
|
if first_time_minute or first_time_hour or first_time_day_of_month or \ |
| 1199 |
|
first_time_month or first_time_year: |
| 1200 |
|
|
| 1201 |
|
if not first_time_minute: |
| 1202 |
|
raise RequiredArgument( |
| 1203 |
|
'Setting first_time requires first_time_minute argument') |
| 1204 |
|
if not first_time_hour: |
| 1205 |
|
raise RequiredArgument( |
| 1206 |
|
'Setting first_time requires first_time_hour argument') |
| 1207 |
|
if not first_time_day_of_month: |
| 1208 |
|
raise RequiredArgument( |
| 1209 |
|
'Setting first_time requires first_time_day_of_month ' |
| 1210 |
|
'argument') |
| 1211 |
|
if not first_time_month: |
| 1212 |
|
raise RequiredArgument( |
| 1213 |
|
'Setting first_time requires first_time_month argument') |
| 1214 |
|
if not first_time_year: |
| 1215 |
|
raise RequiredArgument( |
| 1216 |
|
'Setting first_time requires first_time_year argument') |
| 1217 |
|
|
| 1218 |
|
_xmlftime = cmd.add_element('first_time') |
| 1219 |
|
_xmlftime.add_element('minute', str(first_time_minute)) |
| 1220 |
|
_xmlftime.add_element('hour', str(first_time_hour)) |
| 1221 |
|
_xmlftime.add_element('day_of_month', str(first_time_day_of_month)) |
| 1222 |
|
_xmlftime.add_element('month', str(first_time_month)) |
| 1223 |
|
_xmlftime.add_element('year', str(first_time_year)) |
| 1224 |
|
|
| 1225 |
|
if duration: |
| 1226 |
|
if not duration_unit: |
|
@@ 4031-4056 (lines=26) @@
|
| 4028 |
|
if name: |
| 4029 |
|
cmd.add_element('name', name) |
| 4030 |
|
|
| 4031 |
|
if first_time_minute or first_time_hour or first_time_day_of_month or \ |
| 4032 |
|
first_time_month or first_time_year: |
| 4033 |
|
|
| 4034 |
|
if not first_time_minute: |
| 4035 |
|
raise RequiredArgument( |
| 4036 |
|
'Setting first_time requires first_time_minute argument') |
| 4037 |
|
if not first_time_hour: |
| 4038 |
|
raise RequiredArgument( |
| 4039 |
|
'Setting first_time requires first_time_hour argument') |
| 4040 |
|
if not first_time_day_of_month: |
| 4041 |
|
raise RequiredArgument( |
| 4042 |
|
'Setting first_time requires first_time_day_of_month ' |
| 4043 |
|
'argument') |
| 4044 |
|
if not first_time_month: |
| 4045 |
|
raise RequiredArgument( |
| 4046 |
|
'Setting first_time requires first_time_month argument') |
| 4047 |
|
if not first_time_year: |
| 4048 |
|
raise RequiredArgument( |
| 4049 |
|
'Setting first_time requires first_time_year argument') |
| 4050 |
|
|
| 4051 |
|
_xmlftime = cmd.add_element('first_time') |
| 4052 |
|
_xmlftime.add_element('minute', str(first_time_minute)) |
| 4053 |
|
_xmlftime.add_element('hour', str(first_time_hour)) |
| 4054 |
|
_xmlftime.add_element('day_of_month', str(first_time_day_of_month)) |
| 4055 |
|
_xmlftime.add_element('month', str(first_time_month)) |
| 4056 |
|
_xmlftime.add_element('year', str(first_time_year)) |
| 4057 |
|
|
| 4058 |
|
if duration: |
| 4059 |
|
if not duration_unit: |