Ejemplo n.º 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))
Ejemplo n.º 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))
Ejemplo n.º 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)
     )
Ejemplo n.º 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))
Ejemplo n.º 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)
        )
Ejemplo n.º 6
0
 def __init__(self, exception=None):
     Operation.__init__(self, ('exception', exception))
Ejemplo n.º 7
0
 def __init__(self, exception=None):
     Operation.__init__(self, ('exception', exception))
Ejemplo n.º 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))
Ejemplo n.º 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))