Commit graph

176 commits

Author SHA1 Message Date
Griatch
9bfb829274 Implemented WeakSharedMemoryModel for Attributes. 2014-05-11 15:23:11 +02:00
Griatch
f67effa0f9 Made Attributes into a normal Model instead of a SharedMemoryModel (like Tags). Removed artificial exclusivity of strvalue and value on Attributes. 2014-05-11 08:57:36 +02:00
Griatch
e11b242365 Continued with weakref and lazyloading fixes. 2014-05-11 01:05:59 +02:00
Griatch
0030530021 Added weak reverse references from all handlers. 2014-05-10 17:12:49 +02:00
Griatch
4e3789cede Added lazy-loading of on-model handlers. 2014-05-10 13:31:50 +02:00
Griatch
fdca3ddec9 Some minor refactoring. 2014-05-05 00:07:04 +02:00
Griatch
42c0235d0d Added an example unittest to test_utils_utils.py. 2014-05-03 23:51:08 +02:00
Griatch
4ab5e2aa22 Fixed Attributehandler.get() default return value. 2014-04-25 09:01:49 +02:00
Griatch
c402f9424c Added more verbose logging of typeclass module's syntax errors. 2014-04-23 20:29:38 +02:00
Griatch
12dd202795 Added functionality to TypedObject.swap_typeclass to handle various typeclasses safely. Resolves #390. 2014-04-21 11:52:48 +02:00
Griatch
792b3c9282 Some cleanup code fixes. 2014-04-20 18:11:41 +02:00
Griatch
972e47e66c Fixed more cleanup of Attibute/Tag/Nick/Permission handlers when object is deleted. 2014-04-20 16:47:03 +02:00
Griatch
7d0ff9c71c Fixed a database referene bug that would remove ForeignKey referenced objects when reverse referenced through something like db_home (this defaults to CASCADE mode, is now SET_NULL). Also fixed some other minor things. 2014-04-20 15:03:53 +02:00
Griatch
f9c47e7945 Fixed a bug in removing tags from TagHandler. 2014-03-31 07:31:48 +02:00
Griatch
97991a2238 Implemented RSS feed reader along with updated rss2chan command. 2014-03-08 11:42:35 +01:00
Griatch
9770786486 Made addcom aliases case-insensitive. Resolves #428. Also fixed a bug with channel aliases that made them not work correctly with the new Attribute changes. 2014-02-16 23:29:19 +01:00
Griatch
5e942749e9 Run migrations! Schema changed for Attributes and Tags. 2014-02-16 22:42:49 +01:00
Griatch
41087789ce Made unittesting suite work again. 2014-02-16 22:31:59 +01:00
Griatch
b1e08c7da6 Continuing to clean up and fix bugs around Attribute/Tag 2014-02-16 22:09:35 +01:00
Griatch
bad24513e0 Fixed and corrected various bugs resulting from the change to Attributes/Tags). 2014-02-16 21:27:42 +01:00
Griatch
630d31cac4 First working version of new Attribute/Tag categories 2014-02-16 18:24:56 +01:00
Griatch
bdacc7beba Renamed typo on schema 2014-02-16 16:55:39 +01:00
Griatch
641633a0d4 Added the same extra fields to Attributes so as to not have to pollute category for Nicks in any way. 2014-02-16 15:10:47 +01:00
Griatch
17123bf7ed First rework of tag category handling by new fields db_model and db_tagtype. 2014-02-16 13:19:31 +01:00
Griatch
87f3093dac Deprecation warning: Added combined hook at_access(result, accessing_obj, access_type, **kwargs) to Objects and Players. This hook replaces at_access_failure and at_access_success, which are now both DEPRECATED and will be removed later. 2014-01-18 23:56:07 +01:00
Griatch
81ce6a1827 Fixed silly bug in previous commit. 2013-12-09 09:13:51 +01:00
Griatch
3aeec1298a Added category support to @tag command; also fixed some bugs. 2013-12-02 16:39:21 +01:00
Griatch
88d103b55f Added @tag command for easily manipulating tags. Fixed some bugs at the same time. 2013-12-02 15:40:02 +01:00
Griatch
9839e0ba1f Fixed bugs in scripts starting and with multiple aliases getting a malformed tag category. 2013-11-28 14:11:18 +01:00
Griatch
e9e2c78eef Refactored amp.py to more cleanly splitting long AMP messages also during server sync (this could cause errors with a large number of connected players). Also fixed an issue with the lockstring get:all() being set by @create despite it not needing to (overloading changes in the typeclass). 2013-11-27 16:57:41 +01:00
Griatch
1ae17bcbe4 PEP8 cleanup of the entire codebase. Unchanged are many cases of too-long lines, partly because of the rewrite they would require but also because splitting many lines up would make the code harder to read. Also the third-party libraries (idmapper, prettytable etc) were not cleaned. 2013-11-14 19:31:17 +01:00
Griatch
8f914196f4 Removed caching of Attribute values, since this caused problems when storing and deleting database objects. There is an overhead from unpickling every call; hopefully not too bad (and if it is, one needs to use strvalue storage instead). 2013-11-12 19:32:24 +01:00
Griatch
7f0d0dd0f8 Fixed more errors with quelling as well as some other things with updating permissions in general. Resolves Issue 430. 2013-11-11 22:44:22 +01:00
Griatch
3430aa9eae Fixed bug in delcom. 2013-10-21 22:51:16 +02:00
Griatch
06a0bea8d6 Added fix to object.contents cache as well as reworked the extent of cache hooks on location modification. 2013-10-21 21:17:32 +02:00
Griatch
07af616b67 Adding caching to tags and attribute lookups. Leads to a noticeable speed improvement. 2013-10-20 21:02:37 +02:00
Griatch
910fa612c6 Fixed how tags are looked-up; using startswith on the category. 2013-10-18 17:17:42 +02:00
Griatch
55423f6a2f Fixed a ZeroDivionError by adjusting what is returned by aliashandler.all() when no aliases are given ([] instead of ['']). Also made sure src.utils.stringsuggestions() don't crash in such a situation. 2013-10-18 16:15:51 +02:00
Griatch
bdcc8de5bc OOB MSDP working with direct sending of data from various parts of the system. Tracking as well as support for the default MSDP commands (LIST, REPORT etc) are not yet tested/implemented. 2013-10-15 20:00:18 +02:00
Griatch
f11f330e95 Moved db_player and db_sessid under metaclass wrappers. 2013-09-23 23:10:23 +02:00
Griatch
fd9acd6bf9 Fixed website. Fixing references to db_references, not sure how to add the m2m field access to the admin. Fixed wrapper for db_home. 2013-09-23 22:08:14 +02:00
Griatch
272a6ddc2d First version where test suite validates. Caching is still not fully active (especially attribute lookup), OOBhandler is untested. 2013-09-22 22:57:03 +02:00
Griatch
8b1afa7043 Fixed errors in attributehandler that affected nicks. Test suite not validating yet. 2013-09-22 22:34:22 +02:00
Griatch
bbba695380 Changed unittest suite to use dummy sessions. 2013-09-22 16:29:02 +02:00
Griatch
2ba16e155e Fixed a bug in amp that made reloading not work. 2013-09-21 22:00:46 +02:00
Griatch
e36c7d5cc1 Cleaned up worst instability. Test suite does validate yet. 2013-09-21 17:33:48 +02:00
Griatch
d74cce4dfe First version of OOBHandler put together. Might still have to rework it since it cannot properly handle multiple trackers tracking a single field on a given object. 2013-09-14 23:18:36 +02:00
Griatch
4a5de04956 Changed msg() to work with **kwargs rather than data dicts. Still not fully updated the portal side (also remember that keywords let through to the portal must not contain dbobjs, since the portal has no connection to the database). 2013-09-14 09:10:31 +02:00
Griatch
839a78ca8d Fixed erroneous alias-assigments in tutorial_world that caused tracebacks. Resolves Issue 423. 2013-08-30 20:53:38 +02:00
Griatch
0a42b73824 Added category keyword to AttributeHandler's all() and clear() methods. 2013-08-25 19:15:27 +02:00