-
Type: Improvement
-
Resolution: Done
-
Priority: Minor - P4
-
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