aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting/JsonStore (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' of ssh://opensimulator.org/var/git/opensimMic Bowman2013-02-081-5/+2
|\
| * Merge branch 'master' of ssh://opensimulator.org/var/git/opensimJustin Clark-Casey (justincc)2013-02-092-4/+95
| |\
| * | Change TestDestroyStore() and TestJsonRemoveValue() to reflect the fact that ↵Justin Clark-Casey (justincc)2013-02-091-5/+2
| | | | | | | | | | | | the return values have changed.
* | | Make JsonStore path parsing more robust. Should fix theMic Bowman2013-02-082-21/+59
| |/ |/| | | | | invalid path problem.
* | Broaden the internal OSD type checks to parse JSON that hasMic Bowman2013-02-081-2/+29
| | | | | | | | non string values.
* | Adds size limits to JsonStore. Adds a separate configurationMic Bowman2013-02-082-2/+66
|/ | | | variable to enable binding to dynamic attributes.
* Fix the return values for JsonDestroyStore, JsonRemoveValue, and JsonSetValue.Mic Bowman2013-02-083-10/+17
| | | | Fix the link message status when reading a notecard.
* Refine TestJsonReadNotecard() and use / instead of . to separate paths.Justin Clark-Casey (justincc)2013-02-081-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.
* Extend TestJsonReadNotecard() for reads to non-root locations and fake stores.Justin Clark-Casey (justincc)2013-02-081-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.
* Stop wrongly create a receiving store already populated with "Hello":"World" ↵Justin Clark-Casey (justincc)2013-02-081-1/+3
| | | | in TestJsonReadNotecard()
* Extend TestJsonWriteNotecard() regression test for cases with fake paths and ↵Justin Clark-Casey (justincc)2013-02-081-8/+61
| | | | | | fake stores. Also separates out TestJsonWriteReadNotecard() into separate write and read tests
* Extend TestJsonSetValue() regressio ntes tto test against a fake storeJustin Clark-Casey (justincc)2013-02-081-0/+5
|
* Extend TestJsonTestPath() regression test with checks against fake values ↵Justin Clark-Casey (justincc)2013-02-081-0/+8
| | | | and fake stores
* Add tests for removing fake values/from fake store in TestJsonRemoveValue()Justin Clark-Casey (justincc)2013-02-071-0/+11
| | | | Again, need to check if returning true for removing a value that doesn't exist is most appropriate.
* Add testing for getting non-existing values and values from a non-existing ↵Justin Clark-Casey (justincc)2013-02-071-1/+10
| | | | datastore to TestJsonGetValue()
* Add TestJsonDestoreStoreNotExists()Justin Clark-Casey (justincc)2013-02-071-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.
* Merge branch 'master' of ssh://opensimulator.org/var/git/opensimJustin Clark-Casey (justincc)2013-02-071-1/+60
|\
| * Merge branch 'master' of ssh://opensimulator.org/var/git/opensimJustin Clark-Casey (justincc)2013-02-073-13/+95
| |\
| * | Add TestJsonWriteReadNotecard() regression testJustin Clark-Casey (justincc)2013-02-071-1/+44
| | |
| * | Make json store tests operate on a single thread to ensure we don't run into ↵Justin Clark-Casey (justincc)2013-02-071-0/+16
| | | | | | | | | | | | any race related test failures in the future.
* | | Fix a recent regression in e17392a where JsonSetValue() stopped working ↵Justin Clark-Casey (justincc)2013-02-073-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
* | Enables script access to the per object dynamic attributes through the JsonStoreMic Bowman2013-02-063-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.
* Allow JsonReadNotecard() to accept the name of the notecard as well as the ↵Justin Clark-Casey (justincc)2013-02-061-8/+18
| | | | | | | asset ID. Agreed in discussion with cmickeyb. This is to make this consistent with similar existing LSL/OSSL functions such as llTriggerSound() and osNpcLoadAppearance() that allow an item name or an asset id.
* Move the JsonStore regular expressions to static variables to avoidMic Bowman2013-01-312-87/+190
| | | | | recompiling on every operation. Added JsonList2Path script function to simplify array iteration.
* Add JsonTestStore to determine if a JsonStore is associated withMic Bowman2013-01-302-0/+24
| | | | a particular UUID.
* Add JsonDestroyStore() basic regression testJustin Clark-Casey (justincc)2013-01-301-0/+15
|
* refactor: Make invocations of json store functions from the regression test ↵Justin Clark-Casey (justincc)2013-01-301-42/+17
| | | | simpler
* Add regression test for script func JsonRemoveValue()Justin Clark-Casey (justincc)2013-01-301-0/+52
|
* minor: change name of json script tests to JsonStoreScriptModuleTests ↵Justin Clark-Casey (justincc)2013-01-291-1/+1
| | | | instead of copy/pasted LSL_ApiInventoryTests
* Try ignoring json tests if they can't be run due to being on <=.net 3.5Justin Clark-Casey (justincc)2013-01-291-6/+17
|
* Disable json tests for now - I see this is failing on jenkins because mono ↵Justin Clark-Casey (justincc)2013-01-252-32/+29
| | | | | | 2.4.3 doesn't have Funcs >5 params, though mono 2.6 onwards does. Standardize logging in JsonStoreScriptModule and some minor code formatting.
* See if getting the registering JsonReadNotecard with MethodInfo works around ↵Justin Clark-Casey (justincc)2013-01-251-2/+5
| | | | an apparent issue with registering methods with more than 5 parameters on mono 2.4.3
* Increase logging by enabling during test setup rather than during individual ↵Justin Clark-Casey (justincc)2013-01-251-4/+6
| | | | tests of for JsonStore
* Enable logging in new json store tests to find out why they fail on jenkins ↵Justin Clark-Casey (justincc)2013-01-251-4/+4
| | | | but not locally.
* Add JsonTestPath() regression testJustin Clark-Casey (justincc)2013-01-251-0/+17
|
* Add regression test for JsonSetValue()Justin Clark-Casey (justincc)2013-01-251-0/+23
|
* Add basic JsonGetValue() regression test.Justin Clark-Casey (justincc)2013-01-251-0/+17
|
* Add basic JsonCreateStore() regression testJustin Clark-Casey (justincc)2013-01-251-0/+86
|
* Remove any mention of IRegionModule from region names and comments to aidMelanie2012-11-122-2/+2
| | | | grepping for remaining uses
* Allow an incoming identifier to be specified for a JsonStore.Mic Bowman2012-09-112-8/+8
|
* Where possible, use the system Encoding.ASCII and Encoding.UTF8 rather than ↵Justin Clark-Casey (justincc)2012-07-111-4/+3
| | | | | | | constructing fresh copies. The encodings are thread-safe and already used in such a manner in other places. This isn't done where Byte Order Mark output is suppressed, since Encoding.UTF8 is constructed to output the BOM.
* Add try/catch around Json script method registration to avoild some issuesMic Bowman2012-04-251-15/+24
| | | | | | with .NET 3.5 vs 4.0 differences. See http://opensimulator.org/mantis/view.php?id=5971
* clean up some more logging spam in the jsonstore modulesMic Bowman2012-04-172-2/+4
|
* Fix the Csharp 3.0 vs 4.0 problem in JsonStore initialization.Mic Bowman2012-04-173-5/+7
| | | | Cut down on the logging spam.
* This commit adds a new optional region module, JsonStore, that provides ↵Mic Bowman2012-04-173-0/+1416
structured storage (dictionaries and arrays of string values) for scripts and region modules. In addition, there are operations on the storage that enable "real" distributed computation between scripts through operations similar to those of a tuple space. Scripts can share task queues, implement shared locks or semaphores, etc. The structured store is limited to the current region and is not currently persisted. However, script operations are defined to initialize a store from a notecard and to serialize the store to a notecard. Documentation will be posted to the opensim wiki soon.