alorence / django-modern-rpc

Simple XML-RPC and JSON-RPC server for modern Django
http://django-modern-rpc.rtfd.io
MIT License
98 stars 17 forks source link

Problems with kwargs in method called #18

Closed sergio-bershadsky closed 6 years ago

sergio-bershadsky commented 6 years ago

I faced conflict with request, entry_point, protocol, handler params name because they are kewords in modernrpc.core

REQUEST_KEY = 'request'
ENTRY_POINT_KEY = 'entry_point'
PROTOCOL_KEY = 'protocol'
HANDLER_KEY = 'handler'

would be handy if there will be some workaround to rename keywords per method or settings level

alorence commented 6 years ago

Hi Sergey,

Thank you for your feedback. Commit 9341bd2be64e should fix this issue. It will be part of the next release. Feel free to install the lib from current master branch to test.

Cheers

alorence commented 6 years ago

Hi Sergey,

The new release 0.11.0 has been published: https://pypi.org/project/django-modern-rpc/

I apology for the time I took to release this, I tried for a few months to fix a strange behavior in tests with Django 2.0. It was finally fixed today, so here it is. The new version, including settings variable to customise kwargs dict keys, is now online.