|
@@ 1061-1086 (lines=26) @@
|
| 1058 |
|
if comment: |
| 1059 |
|
cmd.add_element('comment', comment) |
| 1060 |
|
|
| 1061 |
|
if first_time_minute or first_time_hour or first_time_day_of_month or \ |
| 1062 |
|
first_time_month or first_time_year: |
| 1063 |
|
|
| 1064 |
|
if not first_time_minute: |
| 1065 |
|
raise RequiredArgument( |
| 1066 |
|
'Setting first_time requires first_time_minute argument') |
| 1067 |
|
if not first_time_hour: |
| 1068 |
|
raise RequiredArgument( |
| 1069 |
|
'Setting first_time requires first_time_hour argument') |
| 1070 |
|
if not first_time_day_of_month: |
| 1071 |
|
raise RequiredArgument( |
| 1072 |
|
'Setting first_time requires first_time_day_of_month ' |
| 1073 |
|
'argument') |
| 1074 |
|
if not first_time_month: |
| 1075 |
|
raise RequiredArgument( |
| 1076 |
|
'Setting first_time requires first_time_month argument') |
| 1077 |
|
if not first_time_year: |
| 1078 |
|
raise RequiredArgument( |
| 1079 |
|
'Setting first_time requires first_time_year argument') |
| 1080 |
|
|
| 1081 |
|
_xmlftime = cmd.add_element('first_time') |
| 1082 |
|
_xmlftime.add_element('minute', str(first_time_minute)) |
| 1083 |
|
_xmlftime.add_element('hour', str(first_time_hour)) |
| 1084 |
|
_xmlftime.add_element('day_of_month', str(first_time_day_of_month)) |
| 1085 |
|
_xmlftime.add_element('month', str(first_time_month)) |
| 1086 |
|
_xmlftime.add_element('year', str(first_time_year)) |
| 1087 |
|
|
| 1088 |
|
if duration: |
| 1089 |
|
if not duration_unit: |
|
@@ 3745-3770 (lines=26) @@
|
| 3742 |
|
if name: |
| 3743 |
|
cmd.add_element('name', name) |
| 3744 |
|
|
| 3745 |
|
if first_time_minute or first_time_hour or first_time_day_of_month or \ |
| 3746 |
|
first_time_month or first_time_year: |
| 3747 |
|
|
| 3748 |
|
if not first_time_minute: |
| 3749 |
|
raise RequiredArgument( |
| 3750 |
|
'Setting first_time requires first_time_minute argument') |
| 3751 |
|
if not first_time_hour: |
| 3752 |
|
raise RequiredArgument( |
| 3753 |
|
'Setting first_time requires first_time_hour argument') |
| 3754 |
|
if not first_time_day_of_month: |
| 3755 |
|
raise RequiredArgument( |
| 3756 |
|
'Setting first_time requires first_time_day_of_month ' |
| 3757 |
|
'argument') |
| 3758 |
|
if not first_time_month: |
| 3759 |
|
raise RequiredArgument( |
| 3760 |
|
'Setting first_time requires first_time_month argument') |
| 3761 |
|
if not first_time_year: |
| 3762 |
|
raise RequiredArgument( |
| 3763 |
|
'Setting first_time requires first_time_year argument') |
| 3764 |
|
|
| 3765 |
|
_xmlftime = cmd.add_element('first_time') |
| 3766 |
|
_xmlftime.add_element('minute', str(first_time_minute)) |
| 3767 |
|
_xmlftime.add_element('hour', str(first_time_hour)) |
| 3768 |
|
_xmlftime.add_element('day_of_month', str(first_time_day_of_month)) |
| 3769 |
|
_xmlftime.add_element('month', str(first_time_month)) |
| 3770 |
|
_xmlftime.add_element('year', str(first_time_year)) |
| 3771 |
|
|
| 3772 |
|
if duration: |
| 3773 |
|
if not duration_unit: |