forked from ccheever/bunny1
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding simple Google Reader and Voice commands.
- Loading branch information
Sean Reifschneider
committed
Feb 7, 2011
1 parent
e6e296c
commit 2a08abe
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
|
||
from . search import * | ||
from . lang import * | ||
from . voice import * | ||
from . reader import * |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from bottle import redirect | ||
from cony import rich_help | ||
|
||
|
||
@rich_help('--help') | ||
def cmd_reader(term): | ||
'''Go to the Google Reader page.''' | ||
|
||
template = """ | ||
<p />Go to the Google Reader inbox page. | ||
%rebase layout title = 'Reader Help' | ||
""" | ||
|
||
if term == '--help' or term == '?' or term == '-?': | ||
return dict(template = template) | ||
else: | ||
redirect('http://www.google.com/reader/view/') |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from bottle import redirect | ||
from cony import rich_help | ||
|
||
|
||
@rich_help('--help') | ||
def cmd_voice(term): | ||
'''Go to the Google Voice page.''' | ||
|
||
template = """ | ||
<p />Go to the Google Voice inbox page. | ||
%rebase layout title = 'Voice Help' | ||
""" | ||
|
||
if term == '--help' or term == '?' or term == '-?': | ||
return dict(template = template) | ||
else: | ||
redirect('https://www.google.com/voice#inbox') |