2013-11-20 12:59:58 +05:30
|
|
|
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
2013-08-05 14:59:54 +05:30
|
|
|
# License: GNU General Public License v3. See license.txt"
|
2013-01-09 16:39:27 +05:30
|
|
|
|
2012-02-23 12:35:32 +05:30
|
|
|
|
2012-07-19 13:40:31 +05:30
|
|
|
from __future__ import unicode_literals
|
2014-02-14 15:47:51 +05:30
|
|
|
import frappe
|
2014-04-01 12:21:06 +05:30
|
|
|
from frappe.utils import nowtime
|
|
|
|
from frappe.utils.user import get_user_fullname
|
2014-02-28 11:53:30 +05:30
|
|
|
from erpnext.home import make_feed
|
2013-12-13 14:10:14 +05:30
|
|
|
|
2013-12-16 12:48:22 +05:30
|
|
|
def on_session_creation(login_manager):
|
2014-03-13 20:44:10 +05:30
|
|
|
"""make feed"""
|
2014-04-22 19:30:49 +05:30
|
|
|
if frappe.session['user'] != 'Guest':
|
2012-02-03 12:56:12 +05:30
|
|
|
# create feed
|
2014-03-11 16:15:05 +05:30
|
|
|
make_feed('Login', 'User', login_manager.user, login_manager.user,
|
2014-04-22 19:30:49 +05:30
|
|
|
'%s logged in at %s' % (get_user_fullname(login_manager.user), nowtime()),
|
2013-01-31 11:20:10 +05:30
|
|
|
login_manager.user=='Administrator' and '#8CA2B3' or '#1B750D')
|