Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

21 rader
621 B

  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)