aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-03-26Phase 1 of implementing a transfer permission. Overwrite libOMV's PermissionMaskMelanie1-1/+2
with our own and add export permissions as well as a new definition for "All" as meaning "all conventional permissions" rather than "all possible permissions"
2013-03-05Per discussions with justincc... split the JsonStore typeMic Bowman4-34/+130
functions into one for node type and one for value type. Define and export constants for both nodes and values.
2013-02-19Fix the JsonStore path set problem justincc found earlier today andMic Bowman3-95/+3
remove the deprecated TestPath functions.
2013-02-19Convert JsonTestPath() use in json regression tests to JsonGetPathType() insteadJustin Clark-Casey (justincc)1-10/+10
2013-02-18minor: Rename regression test method TestGetArrayLength() -> ↵Justin Clark-Casey (justincc)1-1/+1
JsonTestGetArrayLength() to match others
2013-02-15Enable one sub-test in TestJsonSetValue() which now works (using identifier ↵Justin Clark-Casey (justincc)1-17/+13
with embedded .). Need to look further at other still commented tests. Still need to check coverage against some of Mic's scripts.
2013-02-15Rename JsonSetValueJson() -> JsonSetJson() and JsonGetValueJson() -> ↵Justin Clark-Casey (justincc)2-15/+15
JsonGetJson() This is because JsonGetJson() is getting json from anywhere in the structure, not just values. Equally, JsonSetJson() is setting any type of json, not just json which represents a value. Agreed with cmickeyb
2013-02-15Comment out regression TestJsonTestPath and TestJsonTestPathJson as these ↵Justin Clark-Casey (justincc)1-62/+62
will go away soon
2013-02-15Add regression TestJsonList2Path()Justin Clark-Casey (justincc)1-2/+27
2013-02-14Add regression TestGetArrayLength()Justin Clark-Casey (justincc)1-0/+33
2013-02-14Add regression TestJsonGetPathType()Justin Clark-Casey (justincc)1-0/+47
2013-02-14Rename new JsonScript functions JsonPathType() -> JsonGetPathType() and ↵Justin Clark-Casey (justincc)2-6/+6
JsonArrayLength() -> JsonGetArrayLength() This is for consistentency with the verb:noun naming approach existing json script functions and other script functions. Corresponding c# methods also changed since verb:noun is also the .net c# method naming guideline (as used by OpenSimulator) and for consistency with script functions. As agreed with cmickeyb
2013-02-14Make new JsonStore script constants separated with underscores, to be ↵Justin Clark-Casey (justincc)1-5/+5
consistent with existing LSL/OSSL, etc script constants. Agreed with cmickeyb
2013-02-13Adds a couple requested functions to the JsonStore scriptMic Bowman3-1/+147
interface. JsonPathType returns the type of node pointed to by the path and deprecates the functionality of both JsonTestPath functions. JsonArrayLength returns the length of an array node.
2013-02-12Make path parsing more robust in the JsonStore.Mic Bowman1-12/+6
2013-02-13Add more sub-tests to TestJsonSetValue for paths containing []{} without {} ↵Justin Clark-Casey (justincc)1-5/+86
delineation. As expected, values are not set and the set call returns FALSE (0). As a reminder, these tests are not currently running on jenkins continuous integration as the functionality is only available on .net 4 (mono 2.8 and later).
2013-02-13Extend JsonTestSetValue() with tests for escaping brackets, periods and ↵Justin Clark-Casey (justincc)1-2/+71
unbalanced braces from paths The sub-tests that are commented out are currently those which fail unexpectedly based on my understanding of the path syntax
2013-02-13Add test for array as root element in TestJsonCreateStore()Justin Clark-Casey (justincc)1-0/+9
2013-02-13Extend TestJsonRemoveValue() with tests for non-penultimate nodes and arraysJustin Clark-Casey (justincc)1-13/+57
2013-02-12Extend TestJsonCreateStore() with a one key input and an input with raw ↵Justin Clark-Casey (justincc)1-2/+20
number values
2013-02-12Re-enable subtest for single quoted token in TestJsonSetValueJson()Justin Clark-Casey (justincc)1-9/+9
This is in response to the resolution of http://opensimulator.org/mantis/view.php?id=6540
2013-02-12Adds the parameter for OSD serialization to encode default values. ThisMic Bowman2-5/+8
makes the JsonStore get/set operations symmetric.
2013-02-11Fix handling of string values in JsonSetValueJson(). There areMic Bowman1-1/+31
some oddities with empty strings: the Json serializer treats them as default values and does not return them in serialized hashes.
2013-02-12Add regression TestJsonSetValueJson()Justin Clark-Casey (justincc)1-0/+58
The part to test setting of single leaf-node string tokens is currently commented out. See http://opensimulator.org/mantis/view.php?id=6540
2013-02-11Add regression TestJsonGetValueJson()Justin Clark-Casey (justincc)1-0/+33
2013-02-11Add regression TestJsonTestPathJson()Justin Clark-Casey (justincc)1-0/+32
2013-02-11Add section to TestJsonGetValue() to test call on a sub-treeJustin Clark-Casey (justincc)1-9/+21
2013-02-11Extend TestJsonTestPath() for non-terminating section of path (i.e. one that ↵Justin Clark-Casey (justincc)1-8/+20
does not point to a value/leaf)
2013-02-11Add section to TestJsonSetValue() to test attempted set of value where the ↵Justin Clark-Casey (justincc)1-8/+23
penultimate section of path does not exist
2013-02-11Add test to try reading notecard into an invalid path in ↵Justin Clark-Casey (justincc)1-7/+13
TestJsonReadNotecard() regression test
2013-02-08Make JsonStore path parsing more robust. Should fix theMic Bowman2-21/+59
invalid path problem.
2013-02-09Change TestDestroyStore() and TestJsonRemoveValue() to reflect the fact that ↵Justin Clark-Casey (justincc)1-5/+2
the return values have changed.
2013-02-08BulletSim: fix avatar bobbing or jiggling while stationary flying.Robert Adams1-1/+9
Various comments and debugging message mods.
2013-02-08BulletSim: add initial instance of the ExtendedPhysics region module which ↵Robert Adams1-0/+163
adds new LSL commands for extended physics functions. Uses the modInvoke system. Disabled by default.
2013-02-08Broaden the internal OSD type checks to parse JSON that hasMic Bowman1-2/+29
non string values.
2013-02-08Adds size limits to JsonStore. Adds a separate configurationMic Bowman2-2/+66
variable to enable binding to dynamic attributes.
2013-02-08Fix the return values for JsonDestroyStore, JsonRemoveValue, and JsonSetValue.Mic Bowman3-10/+17
Fix the link message status when reading a notecard.
2013-02-08Refine TestJsonReadNotecard() and use / instead of . to separate paths.Justin Clark-Casey (justincc)1-15/+46
An attack of the stupid meant that I was using / as a path separator. Fixing this makes the tests behave better, though still with some questions. Also, I imagine / shouldn't really put data in the root as that's not a valid identifier. This commit also fix the / mistake in other tests those this does not affect their outcomes.
2013-02-08Extend TestJsonReadNotecard() for reads to non-root locations and fake stores.Justin Clark-Casey (justincc)1-9/+33
Assertions for loading to non-root paths are currently commented out because this doesn't seem to be working. Will be raising mantis to resolve.
2013-02-08Stop wrongly create a receiving store already populated with "Hello":"World" ↵Justin Clark-Casey (justincc)1-1/+3
in TestJsonReadNotecard()
2013-02-08Extend TestJsonWriteNotecard() regression test for cases with fake paths and ↵Justin Clark-Casey (justincc)1-8/+61
fake stores. Also separates out TestJsonWriteReadNotecard() into separate write and read tests
2013-02-08Extend TestJsonSetValue() regressio ntes tto test against a fake storeJustin Clark-Casey (justincc)1-0/+5
2013-02-08Extend TestJsonTestPath() regression test with checks against fake values ↵Justin Clark-Casey (justincc)1-0/+8
and fake stores
2013-02-07Add tests for removing fake values/from fake store in TestJsonRemoveValue()Justin Clark-Casey (justincc)1-0/+11
Again, need to check if returning true for removing a value that doesn't exist is most appropriate.
2013-02-07Add testing for getting non-existing values and values from a non-existing ↵Justin Clark-Casey (justincc)1-1/+10
datastore to TestJsonGetValue()
2013-02-07Add TestJsonDestoreStoreNotExists()Justin Clark-Casey (justincc)1-0/+14
This still returns true even if we ask to destroy a store that does not exist. Need to check that this is more appropriate behaviour.
2013-02-07Fix a recent regression in e17392a where JsonSetValue() stopped working ↵Justin Clark-Casey (justincc)3-15/+15
(probably other functions as well). Fix is to call through to the no-arg constructor from the string constructor in JsonStore, which I suspect was just forgotten. This was actually picked up by the TestJsonSetValue() regression test failing But this isn't being run on jenkins due to the .net version issue. This commit also puts the full stack trace in logged messages and makes these error level messages instead of info
2013-02-07Add TestJsonWriteReadNotecard() regression testJustin Clark-Casey (justincc)1-1/+44
2013-02-06Enables script access to the per object dynamic attributes through the JsonStoreMic Bowman3-13/+95
script functions. Adds JsonAttachObjectStore to associate a store identifier with an object (scripts can only access the store in their host object, this could be extended but isn't necessary for now). Note this opens a method to the DAMap OSDMap. This will be removed later, but greatly simplifies the code for now. The JsonStore and these scripts are disabled by default.
2013-02-07Make json store tests operate on a single thread to ensure we don't run into ↵Justin Clark-Casey (justincc)1-0/+16
any race related test failures in the future.