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.
 
 
 
 
 
 

19 regels
507 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 import _
  6. import json
  7. @webnotes.whitelist()
  8. def update_event(args, field_map):
  9. args = webnotes._dict(json.loads(args))
  10. field_map = webnotes._dict(json.loads(field_map))
  11. w = webnotes.bean(args.doctype, args.name)
  12. w.doc.fields[field_map.start] = args[field_map.start]
  13. w.doc.fields[field_map.end] = args[field_map.end]
  14. w.save()