if (task.safe_mode) {
$("#user-info").text(task.user_info.role_name + ' ' + task.user_info.user_name);
$('#log-out')
.show()
.click(function(e) {
e.preventDefault();
task.logout();
});
}
Hope this helps.
D.
Hi all, I am new to jam.py, first, thanks for such wonderful framework. I would like to know if there is a way to get the login field data from the session info. Looking at the examples in the documention and making some test I found that the dictionary has values for almost every field in the user table but the login field. How can I get it from my code? can I get it somehow using the user_id present in the session "user_info" diccionary? I don´t know if it is possible tu access the user table data from code, haven´t found documentation on that.thanks
--
You received this message because you are subscribed to the Google Groups "Jam.py Users Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jam-py+unsubscribe@googlegroups.com.
To post to this group, send email to jam...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jam-py/70ea90a2-53f8-4e6d-beef-b0554e1a22b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,Have a look at Task/Client module, here is the code:if (task.safe_mode) {
$("#user-info").text(task.user_info.role_name + ' ' + task.user_info.user_name);
$('#log-out')
.show()
.click(function(e) {
e.preventDefault();
task.logout();
});
}
Hope this helps.
D.
--Hi all, I am new to jam.py, first, thanks for such wonderful framework. I would like to know if there is a way to get the login field data from the session info. Looking at the examples in the documention and making some test I found that the dictionary has values for almost every field in the user table but the login field. How can I get it from my code? can I get it somehow using the user_id present in the session "user_info" diccionary? I don´t know if it is possible tu access the user table data from code, haven´t found documentation on that.thanks
You received this message because you are subscribed to the Google Groups "Jam.py Users Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jam-py+un...@googlegroups.com.
To post to this group, send email to jam...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jam-py/70ea90a2-53f8-4e6d-beef-b0554e1a22b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Jam.py Users Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jam-py+un...@googlegroups.com.
To post to this group, send email to jam...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jam-py/CAMvz_HpG4h0amxJA7yPMsmzbpfydDbHfDNz%3Dt%2BOPCptiB%2Bkp_Q%40mail.gmail.com.