Commit graph

425 commits

Author SHA1 Message Date
Griatch
70da53569d Removed .typeclass and .dbobj references in codebase. 2015-01-02 20:48:34 +01:00
Griatch
1130dc5757 Started to go through the unittest errors, fixing player creation. 2015-01-02 19:01:09 +01:00
Griatch
0b01df1fcc Fixed creation function that caused entities to be wrong-named in certain circumstances. Server now starts and shutsdown without tracebacks. 2015-01-01 21:13:36 +01:00
Griatch
3d557f6bf9 Can log in, still errors all over the place due to missing .typeclass/.dbobj 2014-12-28 20:00:31 +01:00
Griatch
9af9f94fa0 Moved Players over to the new proxy system, made the start-hook called by the save-signal system into at_first_save() 2014-12-25 14:43:43 +01:00
Griatch
db512cbbf5 Moved object methods up from ObjectDB and mainly onto the typeclass. In the process of converting players in the same way. 2014-12-24 01:24:26 +01:00
Griatch
302f5bdd81 Refactored the typeclass base, moved Attributes/Tags into separate modules and the django-proxy patch to its on module too. Lots of other cleanups. 2014-12-23 22:25:39 +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
1be49e7bea Fixed a bug in object manager. 2014-12-22 09:01:40 +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
4e0b5be962 Fixed creation. Time to start cleaning the .dbobj hierarchy. 2014-12-20 19:29:38 +01:00
Griatch
043ebf7213 Fixed metaclass to handle proxy correctly. Some issues with getting path properties set correctly. 2014-12-20 19:04:49 +01:00
Griatch
32e44dceab Made the proxy typeclass system work in principle, using a wrapper of the __new__ method for the class. 2014-12-20 18:30:39 +01:00
Griatch
8314d8ba5e Now solving issues with faulty imports. Still nothing functional. 2014-12-20 17:03:34 +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
50b072170f Some cleanup and updates of the object.py file. 2014-09-24 15:45:46 +02:00
Griatch
062a545a97 Changed at_cmdset_get() hook to at_cmdset_get(**kwargs). This allows for the possibility to control dynamic generation of cmdsets, for example to force Exit cmdsets to be rebuilt. The aliasing command now uses this. Resolves #563. 2014-09-20 10:26:59 +02:00
Griatch
bb36f2cb76 Changed to Django1.7. Django 1.6 no longer supported. To change, upgrade django to 1.7+ and then run manage.py migrate, possibly followed by manage.py migrate --fake for objects and players. 2014-09-17 10:49:42 +02:00
Griatch
0bf4f3cfea Removed all old south migrations, leaving migration dirs empty for future django1.7 migrations. 2014-09-17 09:45:41 +02:00
Griatch
81a18ab340 Fixed nasty lookup bug when querying for multi-word fuzzy matches using mysql. Resolves #527. 2014-09-15 22:26:25 +02:00
Griatch
3dc35d8b6d Changed create_object to have at_object_receive and at_after_move to correctly target the location and not the new object. Resolves #566. 2014-09-05 07:52:18 +02:00
Griatch
7bba75b9ff Fixed a missing **kwargs relay from last commit 2014-08-24 10:08:22 +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
Kelketek Rritaa
ca3f92acd0 Admin interface greatly improved. Support for editing Attributes added.
Resolves #503. Resolves #201.
2014-06-28 16:30:01 -05:00
Griatch
bb8c9ce2ab Changed default puppet lock to puppet:pperm(Immortals) by default. Resolves #521. 2014-06-28 18:48:54 +02:00
Griatch
c60a5fdea1 Fixed and refactored OOB system and tested with new websocket client 2014-06-28 18:10:20 +02:00
Griatch
58af67bdf2 Fixed flush protection for instances, memory is successfully made available on an idmapper flush now. 2014-05-17 14:38:43 +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
cfd2f111f1 Updating to make unittests work 2014-05-11 19:41:37 +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
4e7bfb95b5 Fixed some documentation on object typeclass. 2014-04-25 16:24:48 +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