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
9d5a0b13ca
Fixed __version__ reporting in ev.py.
2014-09-24 15:22:05 +02:00
Griatch
ef8e52302a
Added spawner.spawn to ev.py
2014-07-06 17:01:09 +02:00
Griatch
5bf1c03d2a
Some cleanup of ev.py.
2014-04-21 17:11:17 +02:00
Griatch
75ef743297
Made a first version of command IRC2Chan, server starts but no more testing yet.
2014-03-08 11:41:23 +01:00
Griatch
54586d0261
Added Tag,Attribute parent to ev.py.
2014-03-08 11:41:23 +01:00
Griatch
2b1cb1c6ce
Run migrations. Migrated channels to use m2m field rather than the ChannelPlayerConnection model.
2014-03-08 11:41:23 +01:00
Griatch
5c902ef14f
Added tickerhandler to ev.py and improved Script docs.
2014-02-15 23:53:35 +01:00
Griatch
6d06ab5338
Added tag search methods to utils.search. Fixed bug in ev.py.
2013-12-02 14:07:38 +01:00
Griatch
72bdc3b37f
Created wrappers for creating Tags.
2013-12-02 13:00:14 +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
Kelketek
851e6d00cc
Turned comms into typeclassed objects.
2013-09-28 22:23:30 -05:00
Griatch
45706f598a
Fixed remaining issues so the login process works.
2013-07-12 15:57:46 +02:00
Griatch
2b332c3b9a
Attribute cache is working, lots of other updates, but still not a cleanly updatable system. It seems the Attribute-migrations are not coming through properly. Fixed a misnamed table in the comm app.
2013-07-11 09:51:52 +02:00
Griatch
afb139bc1c
Fixed environment setup in ev.py, for launching the api in a normal python interpreter (not manage.py shell)
2013-05-15 23:57:50 +02:00
Griatch
25f1d7b627
An import check in ev.py acted weirdly in some situations. Changed to something more sensible.
2013-05-14 15:17:05 +02:00
Griatch
7a8e53b3bd
Re-inserting ev.settings along with ev.settings_full. It got accidentally deleted in the previous commit.
2013-05-14 12:15:40 +02:00
Griatch
63549e8c0c
Added error checking to ev to catch importing it from a non-django configured interpreter.
2013-05-14 11:54:22 +02:00
Griatch
89c33a9197
Some deprecation fixes for django1.4+. Added the ability to add lists to Attribute-stores lists using e.g. obj.db.mylist + [1,2,3,4]
2013-04-17 19:43:37 +02:00
Griatch
a6544f2848
changed cmdset_default -> cmdset_character and changed the class names to match. Added migrations to properly update default-set cmdset_stores to the new positions (objects created from custom types are not migrated, these should see errors and need to re-point their imports to the new defaults)
2013-04-12 13:01:20 +02:00
Griatch
1aff5f1fd1
Renamed cmdset_ooc -> cmdset_player and settings.CMDSET_OOC -> settings.CMDSET_PLAYER. Also split most of the player-specific commands to a new module player.
2013-04-11 01:02:05 +02:00
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