You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 11 година
пре 11 година
1234567891011121314151617181920
  1. # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
  2. # MIT License. See license.txt
  3. from __future__ import unicode_literals
  4. import webnotes
  5. from webnotes.webutils import render_blocks
  6. no_cache = 1
  7. no_sitemap = 1
  8. def get_context(context):
  9. message_context = {}
  10. if hasattr(webnotes.local, "message"):
  11. message_context["title"] = webnotes.local.message_title
  12. message_context["message"] = webnotes.local.message
  13. if hasattr(webnotes.local, "message_success"):
  14. message_context["success"] = webnotes.local.message_success
  15. message_context.update(context)
  16. return render_blocks(message_context)