Commit graph

417 commits

Author SHA1 Message Date
Griatch
94cb5f9527 Some tweaks for testing. 2014-11-24 20:03:20 +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
46edc6eef6 Added inlinefunc, an inline text parser for custom dynamic functions,
as per #520.
2014-10-25 13:37:25 +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
Griatch
a5b4ddd1e9 Adding minor doc update. 2014-10-20 19:55:06 +02:00
Griatch
1bcd9abc6b Changed order of Script save. This avoids a race condition where Scripts that die very quickly tries to delete themselves before having had time to save first. Resolves #597. 2014-10-13 08:41:22 +02:00
Simon Vermeersch
cde64692ff Adds in support for links 2014-10-05 17:44:35 +02:00
Griatch
ef23cfceb9 Fixed persistence of options for a given column. Resolves #593. 2014-10-04 17:52:50 +02:00
Griatch
3cc0d6ee16 Removed ability to add EvColumns directly to table - this causes some confusing effects and is not worth the trouble over building the table normally and reformatting with reformat_column. 2014-10-02 09:40:55 +02:00
Griatch
8b8fbe8101 Reworked EvTable to use internal EvColumn objects. This allows a new method on EvTable. Columns with a set width will not be affected by auto-balancing, allowing for mixing fixed and auto-balancing columns as suggested in #550. Changed EvTable keywords involving characters to consistently end with _char, such as corner_top_left -> corner_top_left_char. 2014-10-02 09:08:08 +02:00
Duarte Cordeiro
fd7bb29505 Fixes add_row on EvTable class, allowing the creation of a table without a header. 2014-09-30 16:28:53 +01:00
Griatch
5371d06e3a Removed check for south availability. 2014-09-17 12:08:11 +02:00
Griatch
35dad76d02 Increased required library versions to Python2.7+, django1.7+ and twisted 12.0+. 2014-09-17 12:06:36 +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
Duarte Cordeiro
8bb00d5595 Corrected fix for #578 2014-09-16 15:46:23 +01:00
Duarte Cordeiro
394ef28212 This fixes issue #578 2014-09-15 15:15:46 +01:00
Griatch
c4c662b33e Moved unicode/str conversions to sessionhandler level in order to still allow message_all session messages without triggering unicode tracebacks (such as when server restarts). 2014-09-10 09:33:44 +02:00
Griatch
46781d3ee1 Blocked cache rmem checks in windows until we have figured out some other way to check this. 2014-09-06 08:46:54 +02:00
Griatch
aba6f947fa Added django 1.7+ warning to version checker. 2014-09-05 10:08:27 +02:00
Griatch
8ade616d1b Made newer-django warning format correctly. 2014-09-05 09:57:40 +02:00
Griatch
aeb17e78e4 Added deepcopying of prototypes in spawner. Resolves #565. 2014-09-05 09:13:53 +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
a075e07e55 Made spawner prototype verification more strict. Resolves #556. 2014-08-31 12:32:58 +02:00
Griatch
ffa90e1a03 Removed clearing of extended 127-159 range, as per #551. 2014-08-21 22:49:52 +02:00
Griatch
6ae2ca6901 Moved escape mechanism to a central location in serversessionhandler. 2014-08-21 09:13:53 +02:00
Griatch
4e2dfef321 Added escaping of unicode text input of ASCII control characters and extended characters as per #551. 2014-08-21 08:53:01 +02:00
Griatch
8afdbc6adb Changed ansi parser to strip hard-coded ansi codes inserted raw into the stream, as discussed in #551. 2014-08-20 20:15:11 +02:00
Griatch
5750f407df Clarified output of utils.string_from_module. See #541. 2014-08-15 23:40:16 +02:00
Michael K
42d614dc0e Changed check to basestring, allowing for ansi. 2014-08-15 22:00:40 +02:00
Griatch
fdf5c723d2 Fixed silly error reporting when trying to create an object of a non-found typeclass. 2014-08-09 21:27:01 +02:00
Griatch
8af76ce669 Fixed a typo in batchprocessor. Resolves #539. 2014-07-07 22:07:04 +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
Griatch
fb8cf41b4e Added recursive loop-detection to the spawner. This should avoid accidentally creating infinite self-references in prototype structures. 2014-07-01 20:16:43 +02:00
Griatch
b9c8c1695c Finalized the spawner API and made the @spawn command also take prototypes directly, e.g. @spawn GOBLIN. 2014-07-01 19:39:12 +02:00
Griatch
221d56fecd Made the spawner more streamlined, and allowed the @spawn command to access prototypes in a file specified by the optional PROTOTYPE_MODULES setting. 2014-07-01 04:04:54 +02:00
Griatch
6eafe65076 Implemented src.utils.spawner along with a test command @spawn. This allows for spawning individualized objects based on a prototype dictionary rather than having to make a new Typeclass for small changes. Allows for setting basid properties as well as Attributes and NAttributes. Supports prototype multiple inheritance (see header of src/utils/spawner.py) 2014-07-01 02:14:48 +02:00
Griatch
05d21ef4f7 Updated create.create_object to be faster. Made AttributeHandler.add() handle bulk-adding of Attributes and with a slightly more efficient way to create new Attributes. 2014-07-01 00:46:20 +02:00
Griatch
cda13989f6 Run Migrations! Made Tags unique based on the combination of their db_key, db_category AND their db_tagtype fields. 2014-06-30 20:14:58 +02:00
Kelketek Rritaa
a1b596a847 Fixed an issue where saving an attribute/tag would make duplicates. 2014-06-28 18:01:00 -05: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
05c9d67ffc Made the tab, space and linebreak ansi characters case-insensitive. Resolves #522. 2014-06-28 18:51:04 +02:00
Griatch
3a6a8d5c48 Made objects clear more handlers on deletion, also scramble some methods and all database access wrappers to avoid an object memory instance being accessed after it has been deleted. See #509. 2014-06-15 12:27:48 +02:00
Griatch
57144b2c21 Made objects auto-unsubscribe from tickerhandler when deleted (resolves #515). Fixed a bug that made typeclass loading mechanism not report errors as verbosely as it could. 2014-06-14 19:31:19 +02:00
Griatch
c776a2da18 Changed batchprocessor regex matching to not rely on python2.7 feature. 2014-06-12 23:25:49 +02:00
Griatch
5c212683de Merged Memory modification branch with main. Includes some more testing. 2014-06-06 11:37:20 +02:00