system_js item assignment

XMLWordPrintableJSON

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

      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 Hackett
              Reporter:
              sajal kayan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: