forked from 05sonicblue/Gamez
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Authentication and Prowl Functionality
- Loading branch information
Michael Dlesk
committed
Jan 9, 2012
1 parent
88df904
commit 62df0d9
Showing
15 changed files
with
77 additions
and
20 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
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
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
Binary file not shown.
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
def VersionNumber(): | ||
return "1.1.4.0" | ||
return "1.1.5.0" |
Binary file not shown.
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
Binary file not shown.
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 |
---|---|---|
@@ -1,9 +1,22 @@ | ||
import DBFunctions | ||
import ConfigParser | ||
import os | ||
import prowlpy | ||
from Logger import LogEvent | ||
|
||
def LogEvent(message): | ||
DBFunctions.AddEventToDB(message) | ||
return | ||
|
||
def ClearLog(): | ||
ClearDBLog() | ||
def HandleNotifications(status,message,appPath): | ||
config = ConfigParser.RawConfigParser() | ||
configFilePath = os.path.join(appPath,'Gamez.ini') | ||
config.read(configFilePath) | ||
prowlApi = config.get('Notifications','prowl_api').replace('"','') | ||
if(prowlApi <> ""): | ||
SendNotificationToProwl(status,message,prowlApi) | ||
return | ||
|
||
def SendNotificationToProwl(status,message,prowlApi): | ||
prowl = prowlpy.Prowl(prowlApi) | ||
try: | ||
prowl.add('Gamez',status,message,1,None,"http://www.prowlapp.com/") | ||
LogEvent("Prowl Notification Sent") | ||
except Exception,msg: | ||
LogEvent("Prowl Notification Error: " + msg) | ||
return |
Binary file not shown.
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
Binary file not shown.
Binary file not shown.
Binary file not shown.