Commit graph

2133 commits

Author SHA1 Message Date
Griatch
c73e013459 Fixed bug in taghandler that stopped tags.get from working correctly with unset categories. 2014-12-22 14:34:02 +01:00
Griatch
14086e3b3d General database operations works with reworked, proxy-based typeclass system. 2014-12-22 14:14:21 +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
b244d70e16 Resolved a UNIQUE id error when re-saving a typeclassed object. This was due to an idmapper hack which I *think* is not needed anymore, but might need to look at this in the future to see if the related lookup is actually using the cache or not. 2014-12-21 19:57:01 +01:00
Griatch
3b704d37dc Made sure all proxies of a given database model share the same idmapper cache 2014-12-21 16:06:10 +01:00
Griatch
9ee6b718da Some issues with unique restraint when re-saving objects. 2014-12-21 15:02:34 +01:00
Griatch
4e0b5be962 Fixed creation. Time to start cleaning the .dbobj hierarchy. 2014-12-20 19:29:38 +01:00
Griatch
e28d544fb0 The manager wrapper has trouble finding the path of the current class. 2014-12-20 19:19:48 +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
08d0442f9c Strange issue with __init__, proxy implementation not working at the moment. 2014-12-19 16:56:28 +01:00
Griatch
3adeade69a Some errors in the proxy setting. 2014-12-19 16:41:20 +01:00
Griatch
236c0d17d3 First non-tested version of moving typeclasses to proxy models. 2014-12-19 16:29:41 +01:00
Griatch
8e8d85a4fe Added a new fuzzy module load mechanism 2014-12-19 13:32:08 +01:00
Griatch
ac9c68b877 Some rewordings in docstring. 2014-12-17 00:53:31 +01:00
Griatch
34dce9d175 Merge branch 'luyijun-contrib' 2014-12-17 00:50:34 +01:00
Griatch
192d12d905 Some minor cleanups. 2014-12-17 00:50:05 +01:00
Griatch
e48b5dd1d2 Merge branch 'contrib' of https://github.com/luyijun/evennia into luyijun-contrib 2014-12-17 00:44:52 +01:00
Griatch
417e8255af Just a small range->xrange addition. 2014-12-17 00:41:18 +01:00
Griatch
140a9f69f0 Fixed a column-border related issue with EvTable. 2014-12-16 23:33:48 +01:00
Griatch
0772341823 Optimizing EvTable for one-time presentation rather than re-use of a once-created table - this leads to optimization possibilities. 2014-12-16 22:01:10 +01:00
luyijun
cf1b75862e Merge remote-tracking branch 'upstream/master' into contrib 2014-12-16 23:49:55 +08:00
luyijun
ad4426d55d edit prompt_choice's documentation 2014-12-16 23:48:10 +08:00
Griatch
2bf3a5ce52 Fixed bug that added too many empty rows when adding columns to EvTable using .add_column() 2014-12-15 22:30:02 +01:00
luyijun
fe6763a33f Adds links in prompt_yesno. Adds prompt_choice. 2014-12-14 12:01:34 +08:00
Jonathan Piacenti
07aba24f4d Improve ANSIString performance. 2014-12-13 20:57:26 -06:00
Griatch
ef6fffbca7 Fixed case when some parts of an evtable wouldn't color correctly. Resolves #623. 2014-12-02 09:45:15 +01:00
Griatch
94cb5f9527 Some tweaks for testing. 2014-11-24 20:03:20 +01:00
Griatch
0077408d02 Some doc cleanup. 2014-11-02 10:42:29 +01:00
Griatch
edc25824f7 Changed so the dynamic channel command must be followed by a space and then text when sending to a channel. This avoid overriding conflicts with other commands starting with common channel-names (like pub). Resolves #608. 2014-11-02 10:42:22 +01:00
Griatch
4e0bbf4827 Fixed a typo in menu_login contrib 2014-10-26 17:59:31 +01:00
Griatch
12285f9fd2 Made it so that inlinefunc also accepts single function calls (no end tag) - in this case the ingoing text string will be the empty string. This is useful for functions like {time() that makes no use of the text input - you can now use just {time() instead of having to use {time(){/time. 2014-10-26 16:23:55 +01:00
Griatch
6ef4467203 Added session object to kwarg of inlinefuncs. This means that the new call signature for inlinefuncs is funcname(text, *args, **kwargs), where **kwargs are only used for engine-related things (currently only session=session). 2014-10-26 10:46:22 +01:00
Griatch
5b42b31240 API change. Removed managers for Attributes and Tags - these are instead incoorporated into the TypedObjectManager which all Typeclassed object handlers inherit from. This concludes the refactor started in #529. This means that access to Attributes/Permissions/Aliases and Tags/nicks are done directly through e.g. ObjectDB.objects.get_by_tag() (or ev.managers.objects.get_by_tag) rather than using Tag.get_obj_with_tag and specifying the model type manually. The create_tag() method was also moved into the TypedObjectManager as part of removing the Tagmanager. As part of this change, Tag and Attribute was also removed from the ev interface. 2014-10-25 22:40:38 +02:00
Griatch
08b18524fd Some minor documentation fixes and tests. 2014-10-25 16:04:00 +02:00
Griatch
498e3f5064 Added some more inlinefunc docs. 2014-10-25 13:59:22 +02:00
Griatch
3b9d49ef35 Merge branch 'evformat' 2014-10-25 13:51:27 +02:00
Griatch
f7c1fa4a18 Defaulting INLINEFUNC_ENABLED=False. 2014-10-25 13:39:25 +02:00
Griatch
46edc6eef6 Added inlinefunc, an inline text parser for custom dynamic functions,
as per #520.
2014-10-25 13:37:25 +02:00
Griatch
573847d80a Better handles very slow mud clients not sending line breaks together with their data input; this avoids a race condition where Evennia is much faster than the client. See #606. 2014-10-24 10:26:59 +02:00
Griatch
0cd4e2188a Corrected the session count when dropping connections. 2014-10-23 10:01:43 +02:00
Griatch
60931c26a7 Deprecated the code= keyword of contrib/menusystem - this is replaced with a callback keyword where a function object is supplied rather than a code string. Code still works, but will give a deprecation warning in log. Cleaned up the code and fixed dynamic yes/no allocation. Should handle the remaining issues of #596. 2014-10-23 01:27:31 +02:00
Griatch
671c541a1c Added more verbose error logging to cmdset loading. 2014-10-22 23:47:59 +02:00
Griatch
7a9e738156 Made a different regex for #605. 2014-10-22 21:08:07 +02:00
Griatch
ed52a0c101 Enforced text input for the look command in menu_login, as per #605. 2014-10-22 20:58:07 +02:00
luyijun
73e57422c7 Merge remote-tracking branch 'upstream/master' 2014-10-22 00:37:49 +08:00
luyijun
e687f935cb Fixed some issues in dealing with multibyte characters. 2014-10-22 00:37:08 +08:00