This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import win32com.client, datetime, time | |
# make sure we've got the outlook constants for Outlook 2010 - 'Microsoft Outlook 14.0 Object Library' | |
from win32com.client import gencache | |
gencache.EnsureModule('{00062FFF-0000-0000-C000-000000000046}', 0, 9, 4) | |
def _com_time_to_datetime(pytime): | |
return datetime.datetime(month=pytime.month, day=pytime.day, year=pytime.year, | |
hour=pytime.hour, minute=pytime.minute, second=pytime.second) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import jira | |
import urllib | |
import browser_cookie3 | |
def jira_login(jira_base_url): | |
hostname = urllib.parse.urlparse(jira_base_url).hostname | |
jira_cookies = browser_cookie3.chrome(domain_name=hostname) | |
cookie_dict= {c.name: c.value for c in jira_cookies} | |
options = {"server" : jira_base_url, "cookies" : cookie_dict} | |
return jira.JIRA(options) |