Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnu7 committed Jan 7, 2012
1 parent 0178fa0 commit b2d28e2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions db.py
Expand Up @@ -136,6 +136,7 @@ def update_check(self, username, date):
print "No update"
return False


def update(self, username, date):
# Update last access date in user account
cursor = self.db.cursor()
Expand Down
19 changes: 19 additions & 0 deletions sample_sms_provider.py
@@ -1,16 +1,35 @@
#!/usr/bin/python
'''
SMS Attendance
Copyright (C) 2010-2012 jishnu7@gmail.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
'''

class sample_sms_provider():
def __init__(self):
# Set Cookie
print "Setting cookie"


def login(self, username, password):
# Login
print "Login : ", username, password
# return false if login is incorrect
return True


# Function to send SMS
def send(self, message, mobile_num) :
# success message
Expand Down

0 comments on commit b2d28e2

Please sign in to comment.