Griatch
d4f1733bc7
Update docstrings to pass autodoc parsing
2020-10-11 17:15:30 +02:00
Griatch
d414cc3ccd
Start add docs again
2020-10-08 21:45:18 +02:00
Griatch
b24d4f0e1e
Run black on sources; add black config
2020-07-27 21:12:06 +02:00
Griatch
ad59dde130
Extension to typeclass fix, to allow non-typeclass mixins
2020-07-04 00:12:12 +02:00
Griatch
5e6c52e2e6
Fix for typeclass app_label, and admin fix. Resolves #2112 .
2020-06-26 21:17:07 +02:00
Griatch
e8b99175ad
Fix setting app_label correctly for typeclass
2020-06-26 20:00:44 +02:00
trhr
e552663eea
#1904 is_typeclass to default exact=False
2020-03-07 21:24:15 -06:00
Griatch
69d85bd184
Make scripts/objects lists use EvMore. Change EvMore to not justify by default.
2020-01-11 15:49:12 +01:00
Griatch
4ea6209123
Ran black on branc
2019-12-16 20:31:42 +01:00
Tehom
19d9811de2
Add index to typeclass path. Closes #1975
2019-10-25 08:39:03 -04:00
Griatch
c2c7fa311a
Format code with black. Add makefile to run fmt/tests
2019-09-28 18:18:11 +02:00
Greg Taylor
5e1a672fc2
Remove builtins imports
...
This module is not intended to be used directly in most cases, per:
https://docs.python.org/3/library/builtins.html
None of our usages warrant the explicit import. We also avoid some
confusion as folks dig to see what we are doing to require
importing builtins directly.
2019-09-15 20:29:59 -07:00
Griatch
781e8310f5
Security update; Increase rec Django version to 2.2.4
2019-08-09 18:03:02 +02:00
Griatch
6dde0b52f5
Refactor/remove signal receiver module
2019-04-14 22:53:38 +02:00
Andrew Bastien
72faf039cf
Refactored signals with better names and more of them. Put them after hook calls.
2019-04-13 18:05:15 -04:00
Griatch
7a535b35fa
Remove __unicode__ magic methods no longer needed
2019-01-30 23:50:43 +01:00
Griatch
aa48593a40
Made all unit tests pass
2019-01-09 22:08:48 +01:00
Griatch
981119b640
Fix merge conflicts
2019-01-01 15:19:20 +01:00
Johnny
58899bfeec
Makes web_get_*_url functions pass slugified versions of the meta.verbose_name ( closes #1712 ).
2018-10-27 11:28:40 +00:00
Johnny
59cbbb3e15
Adds puppet activation url method to base object typeclass.
2018-10-24 21:08:11 +00:00
Griatch
e1431dca94
Made some pep8 fixes
2018-10-22 23:32:12 +02:00
Johnny
84f1cad6a2
Renames methods to web_get_* and fixes tests.
2018-10-22 20:33:56 +00:00
Johnny
e1b4e6f7bc
Renames all URL methods to web_*, moves to TypedObject model.
2018-10-17 22:52:06 +00:00
Ryan Stein
cd21fb2396
Use Python 3's new super() convention.
2017-11-02 10:41:41 -04:00
Ryan Stein
6fa280b9fd
Run 2to3.
2017-10-29 13:40:30 -04:00
Griatch
d2e8badf18
Stop #dbref searches for unprivileged. Other minor fixes. Resolves #1251 .
2017-10-01 16:56:20 +02:00
Griatch
a8603975a1
Merge back fixes into master
2017-10-01 16:55:51 +02:00
Griatch
da58d827cf
Cleanup of at_say hook, pass outputfunc, support multiple receivers.
...
This is an API change since at_say(recever=...) is now
at_say(receivers=...). Since this was originally committed for devel, I
merge this into master. This resolves #1432 and #1433 and reimplements the changes by #1419 without the
addition of a new type kwarg.
2017-09-30 14:11:14 +02: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
5590ee2258
Rename all instances of Player->Account.
2017-07-07 23:47:21 +02:00
Griatch
7458bb76e2
Remove spurious patch import
2017-06-24 21:32:20 +02:00
Griatch
c60555b70a
Add migrations to django 1.11.
2017-06-06 19:34:56 +02:00
Griatch
ce3558d654
Go to Django 1.10. Remove support for Django 1.9.
2017-06-06 18:45:41 +02:00
Griatch
cdeffc1f08
Add some debug outputs.
2017-06-06 17:31:22 +02:00
Griatch
a727547b6f
Test typeclass upgrade for new django version. Not working yet.
2017-06-06 15:44:53 +02:00
Griatch
7e416e0cd6
Start fixing things for django 1.10.
2017-06-06 14:56:13 +02:00
Tehom
da008a69d9
Figured out that proxy models do not call signals attached to their classes they proxy for. I used the metaclass that already had a post_save signal attached to it, and it works fine now! I took out the unnecessary apps.py now that we're no longer attaching a signal to the base model classes and just doing it to the proxies.
2017-02-05 09:24:48 +01:00
Tehom
b67faf45d9
Attempt at making bulk deletion clear out handlers, to remove the problem of orphaned Attributes.
2017-02-05 09:24:48 +01:00
Griatch
74eebfed6d
Refactor code to remove alerts as per lgtm and #1176 .
2017-01-29 19:02:00 +01:00
Tehom
ae0b4bad55
Refactor of class_setting from init in typeclass so we can just call it from django admin, and avoid weirdness of calling init twice, which seemed to mess things up
2016-12-05 07:53:06 -05:00
Griatch
196f1ad270
Change so typeclass equality is not only based on dbid but also on model.
2016-10-15 22:48:38 +02:00
Griatch
2b35140fe3
Implement a more throughough cache-flush mechanism. This makes sure to flush foreignkey cache relations for objects not affected by flushing (normally objects with an NAttribute stored in them). Without ForeignKey flushing, the location of such objects would remain cached and drift out of sync, leading to content caches in turn desyncing. Resolves #1064 .
2016-10-02 20:52:05 +02:00
Griatch
15025c0586
Added at_idmapper_flush to allow objects more control of their flush characteristics.
2016-10-02 20:52:05 +02:00
Griatch
80befa96b6
Added an /update switch and a corresponding update command to the typeclass switch system, this allows to soft-update a typeclass and re-run only its at_object_creation, which seems to be the most common use-case.
2016-08-31 21:02:15 +02:00
Griatch
faa3dca2d0
Make the 'exec' prototype key only usable for Immortals from the command line. Also fixes a bug in the check_permission method that made it not honor quelling.
2016-08-21 23:59:56 +02:00
Griatch
61a0e49f66
Make manually setting a valid class that is not a typeclass gracefully degrade with log error. Resolves #999 .
2016-08-20 09:28:56 +02:00
Griatch
2d35c71cd1
Make @typeclass/reset also purge cmdsets. Resolves #1000 .
2016-08-19 22:48:44 +02:00
Griatch
bece57f067
Added non-persistent functinality to the TickerHandler, for specific use with OOB.
2016-05-22 20:45:40 +02:00
Griatch
d8c67c7c0c
Minor fix to docstring.
2016-03-13 10:37:58 +01:00
Andrew Bastien
8e60a04849
Adding the at_rename hook to the base Typeclass.
2016-03-13 10:33:35 +01:00