コード例 #1
0
 def insert_rule(cls, filename, id_, rule, rulev):
     standard = 'UTC' if rule['rule'] == 'occur_regularly_UTC' else 'local'
     values = cls._compute_values(standard, rulev)
     label = cls._make_label(
         values['reference_start'], values['end_relative_time'],
         values['alarm_relative_time'], values['end_type'],
         values['alarm_type'], values['end_relative_number'],
         values['end_relative_unit'], values['alarm_relative_number'],
         values['alarm_relative_unit'], values['time_standard'])
     wxscheduler_api.insert_rule(filename, id_, rule, label)
コード例 #2
0
ファイル: except_once.py プロジェクト: mikpim01/outspline
 def insert_rule(cls, filename, id_, rule, rulev):
     standard = 'UTC' if rule['rule'] == 'except_once_UTC' else 'local'
     values = cls._compute_values(standard, rulev)
     label = cls._make_label(values['start_unix_time'],
                             values['end_unix_time'], values['inclusive'],
                             values['end_type'],
                             values['end_relative_number'],
                             values['end_relative_unit'],
                             values['time_standard'])
     wxscheduler_api.insert_rule(filename, id_, rule, label)
コード例 #3
0
ファイル: except_once.py プロジェクト: xguse/outspline
 def insert_rule(cls, filename, id_, rule, rulev):
     standard = 'UTC' if rule['rule'] == 'except_once_UTC' else 'local'
     values = cls._compute_values(standard, rulev)
     label = cls._make_label(values['start_unix_time'],
                             values['end_unix_time'],
                             values['inclusive'],
                             values['end_type'],
                             values['end_relative_number'],
                             values['end_relative_unit'],
                             values['time_standard'])
     wxscheduler_api.insert_rule(filename, id_, rule, label)
コード例 #4
0
 def insert_rule(cls, filename, id_, rule, rulev):
     standard = 'UTC' if rule['rule'] == 'occur_monthly_number_direct_UTC' \
                                                             else 'local'
     values = cls._compute_values(standard, rulev)
     label = cls._make_label(
         values['selected_months'], values['start_day'],
         values['start_hour'], values['start_minute'], values['end_hour'],
         values['end_minute'], values['alarm_hour'], values['alarm_minute'],
         values['end_relative_number'], values['end_relative_unit'],
         values['alarm_relative_number'], values['alarm_relative_unit'],
         values['end_type'], values['alarm_type'], values['end_next_day'],
         values['alarm_previous_day'], values['time_standard'])
     wxscheduler_api.insert_rule(filename, id_, rule, label)
コード例 #5
0
 def insert_rule(cls, filename, id_, rule, rulev):
     standard = 'UTC' if rule['rule'] == 'occur_regularly_UTC' else 'local'
     values = cls._compute_values(standard, rulev)
     label = cls._make_label(values['reference_start'],
                             values['end_relative_time'],
                             values['alarm_relative_time'],
                             values['end_type'],
                             values['alarm_type'],
                             values['end_relative_number'],
                             values['end_relative_unit'],
                             values['alarm_relative_number'],
                             values['alarm_relative_unit'],
                             values['time_standard'])
     wxscheduler_api.insert_rule(filename, id_, rule, label)
コード例 #6
0
 def insert_rule(cls, filename, id_, rule, rulev):
     standard = "UTC" if rule["rule"] == "occur_regularly_UTC" else "local"
     values = cls._compute_values(standard, rulev)
     label = cls._make_label(
         values["reference_start"],
         values["end_relative_time"],
         values["alarm_relative_time"],
         values["end_type"],
         values["alarm_type"],
         values["end_relative_number"],
         values["end_relative_unit"],
         values["alarm_relative_number"],
         values["alarm_relative_unit"],
         values["time_standard"],
     )
     wxscheduler_api.insert_rule(filename, id_, rule, label)
コード例 #7
0
ファイル: occur_every_week.py プロジェクト: kynikos/outspline
 def insert_rule(cls, filename, id_, rule, rulev):
     standard = 'UTC' if rule['rule'] == 'occur_regularly_UTC' else 'local'
     values = cls._compute_values(standard, rulev)
     label = cls._make_label(values['start_weekday'],
                             values['start_hour'],
                             values['start_minute'],
                             values['end_hour'],
                             values['end_minute'],
                             values['alarm_hour'],
                             values['alarm_minute'],
                             values['end_relative_number'],
                             values['end_relative_unit'],
                             values['alarm_relative_number'],
                             values['alarm_relative_unit'],
                             values['end_type'],
                             values['alarm_type'],
                             values['end_next_day'],
                             values['alarm_previous_day'],
                             values['time_standard'])
     wxscheduler_api.insert_rule(filename, id_, rule, label)
コード例 #8
0
ファイル: occur_every_month.py プロジェクト: xguse/outspline
 def insert_rule(cls, filename, id_, rule, rulev):
     standard = "UTC" if rule["rule"] == "occur_monthly_number_direct_UTC" else "local"
     values = cls._compute_values(standard, rulev)
     label = cls._make_label(
         values["start_day"],
         values["start_hour"],
         values["start_minute"],
         values["end_hour"],
         values["end_minute"],
         values["alarm_hour"],
         values["alarm_minute"],
         values["end_relative_number"],
         values["end_relative_unit"],
         values["alarm_relative_number"],
         values["alarm_relative_unit"],
         values["end_type"],
         values["alarm_type"],
         values["end_next_day"],
         values["alarm_previous_day"],
         values["time_standard"],
     )
     wxscheduler_api.insert_rule(filename, id_, rule, label)