Commit graph

19 commits

Author SHA1 Message Date
Griatch
5100a0561f Some further bug fixes. 2013-04-09 11:14:08 +02:00
Griatch
09b4b69da9 Added MuxCommandOOX to ev.default_cmds. Resolves Issue 293. 2012-10-14 17:30:26 +02:00
Griatch
d32cf37820 ev was missing a line causing default admin commands to not be included. Resolves Issue 270. 2012-09-29 09:35:25 +02:00
Griatch
0b102bb07b Fixed @batchcommand access, automatically disabling procpool under SQLite3. 2012-09-27 20:51:06 +02:00
Griatch
4678234e9a Multiple fixes to ev and utils:
Made utils.variable_from_module more generic (it can now load pretty much any form of module it's given and also supports searching and returning multiple variables).

Removed the variable-load functionality from utils.load_module; this is now purely a loader - use variable_from_module instead.

I found out that one couldn't import from src.commands.default due to the __init__ file being restrictive for the sake of the ev API. Removed that and instead imported the default commands into ev.py with the help of utils.variable_from_module instead. Some more fixes in ev followed on this.
2012-04-22 12:23:42 +02:00
Griatch
fcc338c027 Minor clarifications in ev.py. 2012-03-31 17:06:31 +02:00
Griatch
551a91caef Editing the ev.py API, removing db_* manager shortcuts in favour of a 'managers' container holding them all. It makes the API slightly less "flat", but makes for a cleaner interface. 2012-03-31 16:50:53 +02:00
Griatch
c0322c9eae Cleaning some unnecessary whitespace, overall cleanup of various source codes. 2012-03-30 23:47:22 +02:00
Griatch
82a10903d1 Added more comments to help exploration through the ev interface. 2012-03-29 19:42:08 +02:00
Griatch
da51cb063f ev-API cleanups. ev can now be imported also from a non-django initiated python interpreter (it initiates itself). Gave some more info text and made sure wrapped db_ methods correctly forward their doc strings for introspection. 2012-03-27 09:59:11 +02:00
Griatch
07a17ac15e Added ev API support to @py command. 2012-03-25 18:36:23 +02:00
Griatch
b2f45a7cf4 Fixed an inconsistent API name. (db_serverconfs -> db_serverconfigs) 2012-03-25 18:21:22 +02:00
Griatch
93a1646ea7 Moved contribs to use the new API. Added the system command keys to a property syscmdkeys, for easy access from ev.py. 2012-03-25 18:11:14 +02:00
Griatch
b43fb3156a Added create_* and search_* helper methods directly in the API. 2012-03-25 17:01:27 +02:00
Griatch
4398d42360 Added new templates to gamesrc/*/examples. The old base* modules still in place. Some cleanup of the API. 2012-03-25 16:35:22 +02:00
Griatch
88c0087fbd Updated game/ for the ev API. There will likely be some changes happening in the game/folder, in the way new objects are inherited. This should use the API rather than inherit from the basecommand/baseobject modules (these will probably into the example folders as vanilla templates instead). 2012-03-25 13:09:17 +02:00
Griatch
3466e406f6 Exposing some more utils modules to API. 2012-03-24 23:24:54 +01:00
Griatch
cdbdbe6928 API fix; the default_commands ended up in the wrong layer 2012-03-24 23:19:44 +01:00
Griatch
0d01462077 Adding a new API system to Evennia. This centralizes all access of the evennia driver through a single module "ev". Importing ev one should be able to access (and also importantly, easily explore) Evennia's API much easier. This API goes a long way to "flatten" the structure so that one doesn't need to remember how to find some method in a deeply nested subdirectory.
As part of this work, I have also written full listings of all available properties on Typeclassed objects (including those inherited in various ways). Should hopefully make things easier to find.
One can of course still import things directly from src/ as before. But this is a first step towards removing the "base" objects in game/gamesrc and instead making those accessible through the core API.
2012-03-24 23:02:45 +01:00