bugfix in session update and separated GET and POST queries

This commit is contained in:
Rushabh Mehta 2013-01-31 11:20:10 +05:30
parent 86f0bc81a9
commit 028abd2d08
2 changed files with 4 additions and 1 deletions

View File

@ -117,6 +117,7 @@ erpnext.update_messages = function(reset) {
wn.call({
method: 'startup.startup.get_global_status_messages',
type:"GET",
callback: set_messages
});

View File

@ -25,9 +25,11 @@ def on_login_post_session(login_manager):
# create feed
from webnotes.utils import nowtime
from webnotes.profile import get_user_fullname
webnotes.conn.begin()
home.make_feed('Login', 'Profile', login_manager.user, login_manager.user,
'%s logged in at %s' % (get_user_fullname(login_manager.user), nowtime()),
login_manager.user=='Administrator' and '#8CA2B3' or '#1B750D')
login_manager.user=='Administrator' and '#8CA2B3' or '#1B750D')
webnotes.conn.commit()
def comment_added(doc):