コード例 #1
0
 def __init__(self, calendar_id, event, credential_path):
     """
     :param calendar_id: string: calendar id
     :param event: calendar_cli.model.Event: event data to create
     :param credential_path: string: path to the credential file
     """
     Operation.__init__(self, ('calendar_id', calendar_id),
                        ('event', event),
                        ('credential_path', credential_path))
コード例 #2
0
 def __init__(self, calendar_id, event_id, credential_path):
     """
     :param calendar_id: string: calendar id
     :param event_id: string: event id
     :param credential_path: string: path to the credential file
     """
     Operation.__init__(self, ('calendar_id', calendar_id),
                        ('event_id', event_id),
                        ('credential_path', credential_path))
コード例 #3
0
 def __init__(self, calendar_id, event, credential_path):
     """
     :param calendar_id: string: calendar id
     :param event: calendar_cli.model.Event: event data to create
     :param credential_path: string: path to the credential file
     """
     Operation.__init__(
         self,
         ('calendar_id', calendar_id),
         ('event', event),
         ('credential_path', credential_path)
     )
コード例 #4
0
    def __init__(self, calendar_id, start_time, duration, credential_path,
                 format, separator):
        """
        :param calendar_id: string: calendar id
        :param start_time: datetime in tzinfo-aware
        :param duration: timedelta
        :param credential_path: string: path to the credential file
        :param format: string: format string
        :param separator: string: date separator string
        """
        assert start_time.tzinfo is not None, 'start_time must be tzinfo-aware'

        Operation.__init__(self, ('calendar_id', calendar_id),
                           ('start_time', start_time), ('duration', duration),
                           ('credential_path', credential_path),
                           ('format', format), ('separator', separator))
コード例 #5
0
    def __init__(self, calendar_id, start_time, duration, credential_path, format, separator):
        """
        :param calendar_id: string: calendar id
        :param start_time: datetime in tzinfo-aware
        :param duration: timedelta
        :param credential_path: string: path to the credential file
        :param format: string: format string
        :param separator: string: date separator string
        """
        assert start_time.tzinfo is not None, 'start_time must be tzinfo-aware'

        Operation.__init__(
            self,
            ('calendar_id', calendar_id),
            ('start_time', start_time),
            ('duration', duration),
            ('credential_path', credential_path),
            ('format', format),
            ('separator', separator)
        )
コード例 #6
0
 def __init__(self, exception=None):
     Operation.__init__(self, ('exception', exception))
コード例 #7
0
 def __init__(self, exception=None):
     Operation.__init__(self, ('exception', exception))
コード例 #8
0
 def __init__(self, secret_path, credential_path, read_only, no_browser):
     Operation.__init__(self,
                        ('secret_path', secret_path),
                        ('credential_path', credential_path),
                        ('read_only', read_only),
                        ('no_browser', no_browser))
コード例 #9
0
 def __init__(self, secret_path, credential_path, read_only, no_browser):
     Operation.__init__(self, ('secret_path', secret_path),
                        ('credential_path', credential_path),
                        ('read_only', read_only),
                        ('no_browser', no_browser))