Commit graph

8 commits

Author SHA1 Message Date
Griatch
c0b03c2ee3 Some further removal of recursive loops in the typeclass system. 2012-09-20 23:18:52 +02:00
Griatch
5b88972523 Turning back more reasonable dummyrunner settings. 2012-09-20 02:56:41 +02:00
Griatch
7a130cb442 Removing some of the last self-reference loops in object.models, based on profiling. 2012-09-20 02:52:21 +02:00
Griatch
4bd3be334d Added a warning to @delete command if trying to delete CHARACTER_DEFAULT_HOME (Limbo by default). 2012-09-20 01:42:51 +02:00
Griatch
4c83d3e7a1 Various speed optimizations in various places, following further profiling. 2012-09-20 00:47:28 +02:00
Griatch
c53a9b5770 Changed how Objects are searched, using proper Django Q objects instead of hack-y evals to build queries. This has lead to a number of changes to the ObjectDB manager search. Notably there is now no way to supply a "location" to either of the manager search methods anymore. Instead you can now supply the keyword "candidates", a list of objects which should be used to limit the search. This is much more generic than giving location. The higher-level search (like caller.search, reached from commands) have not changed its API, so commands should work the same unless you are using the manager backbone directly. This search function is now using location to create the "candidates" list. Some other things, like matching for "me" and "here" have also been moved up to a level were it can be easily overloaded. "me" and "here" etc were also moved under i18n.
As part of this overhaul I implemented the partial_matching algorithm originally asked for by user "Adam_ASE" over IRC. This will allow for (local-only) partial matching of objects. So "big black sword" will now be matched by "bi", "sword", "bi bla" and so on. The partial matcher sits in src.utils.utils.py if one wants to use it for something else.
2012-09-17 15:31:50 +02:00
Griatch
5348563bfb Some fixes to dummyrunner. 2012-09-03 22:29:01 +02:00
Griatch
047de533f3 Moved dummyrunner into a separate directory under src/utils 2012-09-03 21:54:13 +02:00