Commit graph

249 commits

Author SHA1 Message Date
Griatch
2b3a32e447 Reshuffling the Evennia package into the new template paradigm. 2015-01-06 14:53:45 +01:00
Griatch
4e4d8484d4 Made sure to re-cache the superuser bypass correctly. 2015-01-03 18:44:21 +01:00
Griatch
24764743ff Made a new version of create_object function, and made Objects creatable using o=Object(). 2014-12-23 21:33:03 +01:00
Griatch
969b947ba0 One needs to turn off all imports of typeclasses in __init__ or django will create migrations for them. This might be interesting for the future but not for development. 2014-12-23 11:53:32 +01:00
Griatch
749715a193 Server can be connected to, not yet get to a command line; may need to work on different app_labels. 2014-12-22 23:03:00 +01:00
Griatch
0b5e2b94ff Starting the move of typeclass methods off *DB models and onto the typeclasses. 2014-12-22 22:46:58 +01:00
Griatch
c6c91c7a0b Removing some more .typeclass properties. 2014-12-22 22:04:52 +01:00
Griatch
2ee9e62336 Fixed correct and separate handling of database model bases as compared to its proxy classes using different managers for each type (e.g. ObjectDB.objects.all() will return all ObjectDB instances(including proxy instances) whereas Object.objects.all() will only return Objects) 2014-12-22 08:54:53 +01:00
Griatch
554d1b9834 Fixed the *_family manager methods to correctly return typeclasses subclassed at any depth. 2014-12-21 23:08:20 +01:00
Griatch
236c0d17d3 First non-tested version of moving typeclasses to proxy models. 2014-12-19 16:29:41 +01:00
Griatch
0077408d02 Some doc cleanup. 2014-11-02 10:42:29 +01:00
Griatch
348ff0b5f4 Added auto-conversion of typeclass to dbobj in ObjectDB.contents_get() 2014-09-30 12:31:44 +02:00
Griatch
a88afabd60 Added **kwargs to cmdhandler and execute_cmd() methods, to set arbitrary flags on commands at run-time. Unused by default Evennia but may be useful to codedly change operation parameters on commands at run-time. 2014-08-24 09:43:55 +02:00
Griatch
d4a78a11a6 Changed so sessid.get() always returns a list for every MULTISESSION_MODE. 2014-08-13 13:19:32 +02:00
Griatch
55cbe615e9 Tested all multisession modes against unittests. Seems to work. 2014-08-04 17:09:16 +02:00
Griatch
1e41be797b Run migrations! First version of MULTISESSION_MODE=3. @ic/@ooc not working yet. 2014-08-04 15:32:48 +02:00
Griatch
e6950aadf2 Changed how lazy-loading of handlers work, using a werkzeug recipe. Much more efficient now. 2014-07-06 13:10:03 +02:00
Griatch
c60a5fdea1 Fixed and refactored OOB system and tested with new websocket client 2014-06-28 18:10:20 +02:00
Griatch
a617924fb0 Made flush_cache work correctly on idmapper; added _idmapper_cache_flush_safe variable for 'securing' objects from cache cleanups. Nothing using this system yet. 2014-05-15 09:51:24 +02:00
Griatch
e11b242365 Continued with weakref and lazyloading fixes. 2014-05-11 01:05:59 +02:00
Griatch
4e3789cede Added lazy-loading of on-model handlers. 2014-05-10 13:31:50 +02:00
Griatch
047eee4bed Some more cleanup. 2014-04-30 20:31:13 +02:00
Griatch
86b771fb68 Some minor cleanups related to typeclass lookup calls. 2014-04-30 20:11:40 +02:00
Griatch
5d1b74ea17 Made msg() properly trigger the at_msg_receive hook, as per #506. 2014-04-25 13:56: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
f521b8129e Removed some debug output. 2014-04-20 16:18:15 +02:00
Griatch
91b23f58a4 Removed CHARACTER_DEFAULT_HOME, replaced with DEFAULT_HOME and added START_LOCATION for determining where default commands dump new characters. 2014-04-20 15:56:38 +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
59513e5c00 Fixed player.search() to also move here/me/self wrappers to typeclass. 2014-04-13 10:04:35 +02:00
Griatch
99b73c173c Moved here/me,self replacement out of dbobj.search and into the typeclass. 2014-04-13 09:07:45 +02: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
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
617d0a3252 Added new handler calls to all typeclassed objects 2014-02-16 15:22:43 +01:00
Griatch
393a3e5e73 Added check to location setter that makes sure to stop a location-loop forming. This closes #454. 2014-02-15 21:05:23 +01:00
delizin
c8dcae06ed Revert to master fork changes 2014-02-09 20:27:16 -05:00
delizin
38090e686f Fixed bug with how PlayerDB import was handled 2014-02-09 12:27:02 -05:00
delizin
e7de2de63b Delete char from player list upon obj deletion 2014-02-09 00:00:13 -05:00
Kelketek
46a7e891d1 Fixed issue where object aliases were not being included in searches. 2013-12-23 13:38:40 -06: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
769e2a8744 Fix of a typo in previous commit. 2013-11-12 20:23:44 +01:00
Griatch
d2448c3eb6 Fixed so nick cmdline/channelname replacement worked with the new execute_cmd paradigm. Also, Resolves Issue 427. 2013-11-12 20:11:36 +01:00
Griatch
bc8e27fea6 Changed object.search() to include nick-matching by default. 2013-10-21 22:56:03 +02: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
4af1b165fd Fixed an issue where the contents of an object were not updated correctly. 2013-10-20 14:27:19 +02:00
Griatch
a00179b742 Fixed an error in aliasing 2013-10-18 22:31:22 +02:00