Codebase list gcalcli / 9b46080
New upstream version 4.3.0. Unit 193 3 years ago
5 changed file(s) with 30 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
0 v4.3.0
1 * Adds 'conference' to details display (michaelhoffman)
2
03 v4.2.1
14 * Remove python2 support
25 * Allow flexible notion for durations (flicken)
00 __program__ = 'gcalcli'
1 __version__ = 'v4.2.1'
1 __version__ = 'v4.3.0'
22 __author__ = 'Eric Davis, Brian Hartvigsen, Joshua Crowgey'
33 __API_CLIENT_ID__ = '232867676714.apps.googleusercontent.com'
44 __API_CLIENT_SECRET__ = '3tZSxItw6_VnZMezQwC8lUqy'
1010 import locale
1111
1212 DETAILS = ['calendar', 'location', 'length', 'reminders', 'description',
13 'url', 'attendees', 'email', 'attachments', 'end']
13 'url', 'conference', 'attendees', 'email', 'attachments', 'end']
1414
1515
1616 PROGRAM_OPTIONS = {
602602 output += '\t%s' % (event['hangoutLink']
603603 if 'hangoutLink' in event else '')
604604
605 if self.details.get('conference'):
606 conference_data = (event['conferenceData']
607 if 'conferenceData' in event else None)
608
609 # only display first entry point for TSV
610 # https://github.com/insanum/gcalcli/issues/533
611 entry_point = (conference_data['entryPoints'][0]
612 if conference_data is not None else None)
613
614 output += '\t%s' % (entry_point['entryPointType']
615 if conference_data is not None else '')
616
617 output += '\t%s' % (entry_point['uri']
618 if conference_data is not None else '')
619
605620 output += '\t%s' % self._valid_title(event).strip()
606621
607622 if self.details.get('location'):
709724 hlink = event['hangoutLink']
710725 xstr = '%s Hangout Link: %s\n' % (details_indent, hlink)
711726 self.printer.msg(xstr, 'default')
727
728 if self.details.get('conference') and 'conferenceData' in event:
729 for entry_point in event['conferenceData']['entryPoints']:
730 entry_point_type = entry_point['entryPointType']
731 hlink = entry_point['uri']
732 xstr = '%s Conference Link: %s: %s\n' % (details_indent,
733 entry_point_type,
734 hlink)
735 self.printer.msg(xstr, 'default')
712736
713737 if self.details.get('location') \
714738 and 'location' in event \
2727 license='MIT',
2828 packages=['gcalcli'],
2929 data_files=[('share/man/man1', ['docs/man1/gcalcli.1'])],
30 python_requires='>=3',
3031 install_requires=[
3132 'python-dateutil',
3233 'google-api-python-client>=1.4',