No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

21 líneas
667 B

  1. # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
  2. # MIT License. See license.txt
  3. # For license information, please see license.txt
  4. from __future__ import unicode_literals
  5. import webnotes
  6. from webnotes import _
  7. @webnotes.whitelist(allow_roles=["System Manager", "Administrator"])
  8. def update_this_app():
  9. import conf
  10. if hasattr(conf, "expires_on"):
  11. return _("This feature is only applicable to self hosted instances")
  12. from webnotes.utils import execute_in_shell, cstr, get_base_path
  13. err, out = execute_in_shell("cd %s && exec ssh-agent lib/wnf.py --update origin master" % \
  14. (get_base_path(),))
  15. return "\n".join(filter(None, [cstr(err), cstr(out)]))