Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-190

system_js item assignment

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      pymongo version 1.9
      Django 1.2.3

      db.system_js.add = "function (a, b)

      {return a+b;}"

      works perfectly... but the following doesn't

      db.system_js["add"] = "function (a, b){return a+b;}

      "

      my goal is to have a directory of .js files, and using a manage.py runscript command, i wanna loop thru the js directory and add functions from there using item assignment

      pseudo code

      for file in JSdirectory:
      db.system_js[file.filename] = file.contents

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            sajal sajal kayan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: