Mercurial > my-enso-commands
changeset 15:e96c724d3c7a
Removed kiritsu-related commands.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sat, 27 Mar 2010 15:13:15 -0700 |
parents | 9ca05d02bc3a |
children | 1fee5287e956 |
files | my-enso-commands.py |
diffstat | 1 files changed, 0 insertions(+), 36 deletions(-) [+] |
line wrap: on
line diff
--- a/my-enso-commands.py Sat Mar 27 15:11:57 2010 -0700 +++ b/my-enso-commands.py Sat Mar 27 15:13:15 2010 -0700 @@ -859,42 +859,6 @@ "tell application \"iTunes\" to back track" ) -KIRITSU_DIR = "/Users/varmaa/Documents/kiritsu" -KIRITSU_MAKE_SCRIPT = "%s/MakeEverything.py" % KIRITSU_DIR -KIRITSU_VIEW_TEMPLATE = "file://%s/%s.html" -KIRITSU_VIEWS = ["work", "play", "chores"] - -def cmd_refresh_kiritsu(ensoapi): - """ - Refreshes all kiritsu feeds. - """ - - popen = subprocess.Popen( - [sys.executable, - KIRITSU_MAKE_SCRIPT], - cwd = KIRITSU_DIR - ) - - ensoapi.display_message( "Please wait while kiritsu retrieves " - "new feeds." ) - - while popen.poll() is None: - yield - - if popen.returncode != 0: - ensoapi.display_message( "An error occurred in Kiritsu." ) - else: - ensoapi.display_message( "Kiritsu is done." ) - -def cmd_view( ensoapi, viewname ): - """ - Opens the given kiritsu view. - """ - - webbrowser.open( KIRITSU_VIEW_TEMPLATE % (KIRITSU_DIR, viewname) ) - -cmd_view.valid_args = KIRITSU_VIEWS - def cmd_html_template(ensoapi): ensoapi.set_selection({"text" : HTML_TEMPLATE})