Scyfris Talivinsky
9d10ca4f39
Fix an issue with adding an empty column to an EvTable
...
There seems to be an issue with adding an empty column (i.e. a column
with empty data) to an EvTable that has already been set up. It seems
that the column with empty data is added with one extra row than the
rest of the table, and when a new call to add_rows() is made to EvTable,
the data in the column that was added previously is offset by 1.
This change fixes that by calculating the size of the new column to take
into account the headers BEFORE making the calculation on whether to
expand the column to match the table's size or not.
2017-10-15 13:38:53 -07:00
Griatch
9f7fb2734c
Make @py output appear for all sessions in MULTISESSION_MODE=1
...
Resolves #1356 .
2017-10-12 18:03:48 +02:00
Griatch
70fea693e6
Refactor utils test suite into utils/tests/
2017-10-07 11:27:47 +02:00
Scyfris Talivinsky
b6649bcef8
Add a @spawn unit test
...
Tests the @spawn command and its variations. The test is designed to
aslo check the properties of the spawned objects for some common/obvious
settings.
Test also adds a new prototypes file to be used with the Evennia unit
tester for any tests that require named prototypes. The spawner test
requires testing named prototypes, so it is added in this change.
2017-10-06 01:59:45 -07:00
Griatch
2c88963e3c
Fix to handle changed Widget signature affecting picklefield in admin
2017-10-05 20:18:57 +02:00
Scyfris Talivinsky
635200ca17
Fix locationless spawned objects
...
Spawned objects were not getting locations assigned to them. By default
the locations should be assigned to the caller's location.
2017-09-30 18:19:01 -07:00
Griatch
ef95726be6
Fix strange regression in inlinefunc. Resolve #1307 .
2017-09-30 23:25:27 +02:00
Griatch
a7d7917995
Fix of batchcommand INSERT parser.
2017-09-30 19:59:05 +02:00
Griatch
b3c6e9d2cc
Update alerts reported by LGTM
2017-09-23 16:46:54 +02:00
Griatch
4f8d70118e
Remove check of datestring if trying to load an replaced class from an Attribute
2017-09-17 14:02:14 +02:00
Griatch
14fc12fb6b
Add ATTRIBUTE_STORED_MODEL_RENAME setting to manage renamed models stored in Attributes.
2017-09-07 22:04:37 +02:00
Griatch
f6b4155aed
Rename migration to indicate slowness - may need to drop migration table and --fake run again.
2017-09-07 21:27:13 +02:00
Griatch
ab1cd445e4
Further fix for multi-line non-block code at the start of batchcode file
2017-09-03 00:33:02 +02:00
Griatch
2bb0b23688
Fix of batchcode to correctly handle code inserted at the beginning of the file, outside a block
2017-09-03 00:09:24 +02:00
Nicholas Matlaga
7c7ec3736f
Fixed EvCell behaviour mentioned in #1410
2017-09-01 00:18:15 +02:00
Griatch
90fde4a10a
Add check for accidentally passing permissions as a string rather than a list to the create_object and create_account functions
2017-08-27 18:58:58 +02:00
Griatch
4505ace90d
Make IRCbot handler irc->ansi colors. Add support for reset etc. See #1255 .
2017-08-27 18:06:21 +02:00
Griatch
92df3ce5ae
Structure handlers to allow .get() to return lists
...
See #1154 . In the end I didn't modify the Attributehandler and
TagHandler like this, instead I added the `return_list` argument
for cases when one wants a guaranteed return.
2017-08-27 14:56:05 +02:00
Griatch
f0d1abc4ff
Some refactoring of the error message and code.
2017-08-24 22:30:04 +02:00
Tehom
d0dc2841d9
Add more clear error message to _SaverMutable
2017-08-22 17:49:28 -04:00
Griatch
b278337172
Make PEP8 cleanup of line spaces and character distances as well as indents
2017-08-19 23:16:36 +02:00
Griatch
7ff783fea1
Resolve merge conflicts with master.
2017-08-19 21:30:42 +02:00
Griatch
3da28c5ba9
Change |- into a 4-space indent and shift the TAB character to the |t tag. Resolves 1393.
2017-08-13 18:08:06 +02:00
Jonathan Piacenti
9825f254a8
Force ANSIString into bytestring before sessions send it over the wire.
2017-08-13 09:38:51 -05:00
Griatch
19bb66665b
Merge branch 'persistent_delay' of git://github.com/vlegoff/evennia into vlegoff-persistent_delay
2017-08-10 22:42:31 +02:00
Vincent Le Goff
37c9d65a9d
Place the persistent task in a task handler
2017-08-08 19:47:22 +02:00
CloudKeeper1
c8131eab80
Add EvMenu support for ending on start node.
...
Currently, if the start node has options of None then any input causes a "Choose an option or try 'help'." message to display and then ending the menu. This supports ending the menu without eating input.
2017-07-26 23:53:53 +10:00
Vincent Le Goff
e0eb490814
Slightly optimize persistent tasks and serialization
2017-07-21 18:38:11 +02:00
Griatch
9f03e4a3f4
Fix isolated unittests for color markup. Issues with module reloading.
2017-07-20 22:09:44 +02:00
Griatch
536bb28470
Move {- and %c color markup to contrib, make easily extendable, as per #1229
2017-07-20 22:09:44 +02:00
Griatch
03f4ecb3a4
Move {- and %c color markup to contrib, make easily extendable, as per #1229
2017-07-20 22:09:44 +02:00
Vincent Le Goff
87b6cee596
Add the persistent utils.delay
2017-07-20 21:37:34 +02:00
Griatch
be8452b1c7
Fix hard-coded lock names in event system to match new hierarchy.
2017-07-09 13:03:01 +02:00
Griatch
5590ee2258
Rename all instances of Player->Account.
2017-07-07 23:47:21 +02:00
Griatch
63c96de443
Create parallel Player/Account fields and copy all
2017-07-06 22:37:28 +02:00
Griatch
0ff1718437
Resolve django 1.11 migration errors.
2017-06-17 22:15:00 +02:00
Griatch
ce3558d654
Go to Django 1.10. Remove support for Django 1.9.
2017-06-06 18:45:41 +02:00
Griatch
6370c377d5
Add cache optimization to variable imports in logger.
2017-05-21 19:24:54 +02:00
Tehom
2bea778181
Move settings to be local imports to prevent conflicts before django is fully loaded
2017-05-21 06:59:54 -04:00
Tehom
4605b3128e
Add docstr to class and methods, adjust names of settings to be more clearly modifying channel logs.
2017-05-21 03:29:33 -04:00
Griatch
ce57b52dcf
Move olc to separate branch for now.
...
This is because it has increased in scope and would delay the release of
the devel branch unnecessarily.
2017-05-21 07:50:25 +02:00
Tehom
6e2c10b008
Remove print statements I had left in during debugging. Oops.
2017-05-20 22:18:26 -04:00
Tehom
f150d8bae5
Add Evennia logfile class based on Twisted LogFile for automatic rotating channel logs. Append tail end of logs when rotating, customizable with settings.
2017-05-20 21:33:57 -04:00
Griatch
60fcb471ec
Primitive display of olc fields, not working yet.
2017-05-17 22:45:41 +02:00
Griatch
88a44fc0cf
Start working on OLCPage structure.
2017-05-17 19:49:46 +02:00
Griatch
de552782a0
Add single tag fields.
2017-05-15 20:59:26 +02:00
Tehom
6ea13dbc96
Check for instance in cache to have the appropriate foreignkey if we're called from a related manager. Stops us from retrieving any object by ID, whether it was related to us or not.
2017-05-07 02:12:58 -04:00
Griatch
2b1a4fc49e
Add concept of olc batchfields.
2017-05-06 23:21:33 +02:00
Griatch
69d7362203
Add more work on OLC field structures.
2017-05-06 22:31:44 +02:00
Tehom
5de1f7b45b
Add dbclass to names of classdict for cache_size function to remove duplicate entries
2017-05-06 03:21:50 -04:00