This file contains hidden or 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
from __future__ import absolute_import | |
__author__ = 'Chuck Martin' | |
import os | |
import Tkinter | |
import tkFileDialog | |
def convert_template(file_path=None, out_dir=None): |
This file contains hidden or 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
/** | |
* Created by Chuck Martin on 12/4/14. | |
* | |
* When django-dynamic-formset creates a new formset and that formset used the "Chosen" widget | |
* (http://harvesthq.github.io/chosen/), the newly created Chosen widget does not work right. | |
* | |
* This code solves that problem by replacing the select (along with the chosen code) that was cloned with a new | |
* select created from scratch. | |
* | |
* This function returns a function for creating a new select that can be associated with Chosen. |
This file contains hidden or 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 requests | |
import json | |
import base64 | |
import pprint | |
import unittest | |
import time | |
import datetime | |
# Put this in contactMechList | |
ADDRESS_TEMPLATE = { |
This file contains hidden or 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 time | |
import oauth2 as oauth | |
import requests # From: http://docs.python-requests.org/en/latest/ | |
# oauth_token and oauth_token_secret are the tokens produced at the end of the Flickr oauth process | |
token = oauth.Token(oauth_token, oauth_token_secret) | |
photo_url = 'http://api.flickr.com/services/upload' |
NewerOlder