j01.jsonrpc


Namej01.jsonrpc JSON
Version 2.2.5 PyPI version JSON
download
home_pagehttp://pypi.python.org/pypi/j01.jsonrpc
SummaryJSON-RPC helpers based on JQuery, z3c.form and z3cjsonrpc for Zope 3
upload_time2024-01-26 13:48:46
maintainerNone
docs_urlNone
authorRoger Ineichen, Projekt01 GmbH
requires_pythonNone
licenseZPL 2.1
keywords j01 xhr ajax z3c form json-rpc jquery zope3
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            This package provides some JQuery based JSON-RPC form handling using the
z3c.jsonrpc and z3c.form libraries for Zope3.


=======
CHANGES
=======

2.2.5 (2024-01-26)
------------------

- bugfix: remove bad unicode char from j01.loading.js javascript file


2.2.4 (2023-02-21)
------------------

- bugfix: get attribute values based on attrNames from Button instance and not
  from ButtonAction.


2.2.3 (2022-02-17)
------------------

- feature: added stopPropagation option to on click handler. This allows to
  use j01.jsonrpc click handler in nested structure without to propagate the
  click event to a parent element. E.g. an a href as child in a div where the
  a href element and the div provide a click handler.


2.2.2 (2019-09-02)
------------------

- feature: support cssHTMLId and cssBodyId in j01FormProcessor jsonrpc response
  and apply this ids to html and body tag if they get used in response. For more
  information see cssHTMLClass and cssBodyClass below.


2.2.1 (2019-05-14)
------------------

- bugfix: fix issues with latest z3c.form py3 changes. Ensure that the ordered
  dict used in buttons get initialized.


2.2.0 (2018-02-25)
------------------

- bugifx: remove jquery browser.msie usage in form serialisation because
  $.browser.msie is not supported in jquery version 1.9.

- feature: added jquery migrate 1.4.1 plugins, use this for migration nad
  backwards compatibility


2.1.3 (2018-02-09)
------------------

- bugfix: call j01RenderHTMLAndBodyMarkers before we render the content.
  Otherwise the dom doesn't provide the right classes and ids. And more
  important, if we use the cssHTMLId, cssHTMLClass, cssBodyId or cssBodyClass
  for display parts of the site, the new part of the site is not visible and
  doesn't provide the correct width and height and size caculation will fail.
  This happend by loading an j01.pager and the pager width didn't get
  calculated because we rendered the pager into an invisable site part.


2.1.2 (2017-12-27)
------------------

- feature: support cssHTMLId and cssBodyId in jsonrpc response and apply
  this ids to html and body tag if they get used in response. For more
  information see cssHTMLClass and cssBodyClass below.

- feature: support cssHTMLClass and cssBodyClass in jsonrpc response and apply
  this classes to html and body tag if they get used in response. This is a
  smart concept for enable and disable parts of a mobile page and can control
  single application pages. This can get used for hide the detail content if
  you load an item listing and disable the listing if you load the detail page
  by just apply the relevant css class to the body element.


2.1.1 (2017-09-18)
------------------

- bugfix: fix input enter javascript. Added missing event function argument

- bugfix: removed __call__ method from button Handlers class. This method was
  never used and the implementation was never working


2.1.0 (2017-06-29)
------------------

- feature: added contentRenderMethodName for rendering the response content
  based on additional javascript methods

- bugfix: removed double ;; in j01.jsonrpc.js


2.0.3 (2017-01-11)
------------------

- bugfix: fix adapter configuration signature for JSONErrorViewSnippet and
  JSONValueErrorViewSnippet.

- feature: new layout mixin helper class offering html and body element id and
  css class mixins in page and forms.


2.0.2 (2015-06-15)
------------------

- bugfix: fix button value translation. Added explicit translation to value
  based on given button schema field (i18nmessageid) title


2.0.1 (2015-03-17)
------------------

- feature: added different testing hooks for p01.testbrowser suport.
  The new p01.testbrowsre package implicit support any j01.jsonrpc
  button and link click call. This is a big imrpovement and makes testing
  a lot simpler.

- feature: added j01.loading.css file based on j01.loading.less

- bugfix: fix error handling in javacsript for jsonrpc error response
  support onError and onException. onError handles known status 200
  json-rpc error response and onException handles non staus 200 errors.
  Also make sure that a JQuery event get triggered if no error handling
  concept is used e.g. if onError is missing


2.0.0 (2015-01-20)
------------------

- feature: support old j01.proxy.js javascript as j01.proxy.deprecated.js

- feature: reimplement JSONRPC proxy javascript library. Improved error
  handling and timeout callbacks. NOTE: the new library is not backward
  compatible. The most important part is the addMethod signature which changed
  from:
  addMethod(name, onSuccess, onError, onTimeout, isPushState, id)
  to:
  addMethod(name, callback, requestId, onError, onTimeout)
  The addMethod will also return the method itself. This method can get used
  for apply optional event handler for onLoading and onLoaded.
  The JSONRPC proxy will trigger a JQuery event on errors by default.
  You can simply register an event handler for the ``j01.proxy.error`` event
  or you can define your own onError handler. Since we initialize a jsonrpc
  call from the client, we also support an isPushState marker for trigger
  push state. This allows us to supress a push state given from a server
  response if needed. Of corse the isPushState is only relevant if the optional
  j01.history.js library is used.

- feature: trigger ``j01.jsonrpc.error`` if error content target is missing
  in j01RenderContentError error handler. This allows to apply a custom error
  handler.

- feature: move history concept to a separate file called j01.history.js. This
  makes it possible to apply a different history concept. This means you need
  to include this file too or you will loose the defautl jsonrpc history
  conecpt.

- bugfix: use id instead of requestId as jsonrpc response id in j01.proxy.js

- feature: support explicit disable button call in j01ButtonDisabler. This
  allows us to disable a button asap in a rendered page for the given duration.
  This is usefull for re-submit buttons e.g. send this again etc.


1.0.1 (2014-08-25)
------------------

- remove history javascript implementation and integrate native browser history
  api support in jsonrpc page, form, jsonrpc method and javascript. Now the
  browser history api is implicit supported. There are several attributes for
  enable or manipulate the browser history state handling in the jsonrpc form
  and page classes. See the comments in the form class for more information.

- bugfix: fix missing getJavaScript and getInputEnterJavaScript method in
  simple Button

- bugfix: skip widget update call for buttons. They don't need to update the
  value

- feature: added new j01.loading.js javascript which shows a progress line at
  the top of the page or anywhere you need it. Moved the existing spinner
  loading javascript to j01.spinner.js.

- feature: added JQuery events called j01.jsonrpc.loading and
  j01.jsonrpc.loaded before and after loading content.

- feature: provide new CloseButton which is able to remove content from the
  html page using jquery.empty and an animation. As default animation the
  jquery slideUp method is used.

- feature: implemented jsonrpc testing helper methods for button submit etc.

- fix: ``jsform.JSONRPCFormMixin``: checking for REDIRECT_STATUS_CODES after
  update() too


1.0.0 (2014-04-04)
------------------

- implemented a compatible z3c.form button and handler concept. This
  new button and handler concept supports the z3c.form button and handler
  concept and can get used as a replacement for any form. This implementation
  will lookup the button handler by it's name form a simple dict and does not
  use a built in adapter registry. This makes it compatible with any kind of
  button and handler implementation. The existing jsbutton module isn't
  available anymore. Import the new buttons from j01.jsonrpc.btn.


0.7.0 (2014-03-25)
------------------

- feature: implemented button disable concept based on button property and
  JQuery event. Take alook at the new j01.button.js javascript. Note, this
  implementation keeps event handler intact. Other concepts like the one
  used in the twitter bootstrap framework will destroy applied event handler
  during reset a button state which will not work for our implementation.

- feature: implemented JQuery click event trigger. This could get used for
  different concepts like apply a loading icon etc. We also use this event
  handler for the new button disable concept.


0.6.0 (2014-03-04)
------------------

- javascript: use JSON2 as default instead of eval for load json repsonse.
  Fallback to custom implementation if no JSON2 is available.

- javascript: update to newest history.js javascripts

- javascript: implemented low level unauthorized nextURL error response
  handling in j01.proxy.js javascript.

- implemented handleError method

- changed unauthorized error page redirect from loginForm.html to
  j01Login.html for better customization. Note, you will need at least to
  register your existing loginForm.html as an additional j01Login.html page.
  Or the new nextURL redirect to j01Login.html will point ot a missing page.
  This changes makes it possible to show an explicit comment (session expires
  for jsonrpc call).

- feature: improve history state handling. Remember initial url and support
  go back to the initial url too whcih doesn't provide a ``j`` marker argument.

- feature: implemented improved json-rpc client including custom error handling
  and removed the dependency to z3c.jsonrpcproxy. This means you need to
  define the z3c.jsonrpcproxy dependency if you use the z3c.jsonrpcproxy
  javascript client in your package.


0.5.1 (2013-03-19)
------------------

- feature: support button action handling based on default z3c.form concept.
  This let us allow to use urls like <page-url>?form.buttons.foobar=1 for non
  jsonrpc requests

- feature: implemented JSONRPCClickButton using a simple click event handler

- feature: support prefixWidgets and prefixButtons property for separate
  different forms loaded into one single page.

- feature: improve javascript callback handler and support scrollToExpression
  with scroll to animation after loading jsonrpc content.

- support response.data.i18nMessage as additional error response given from
  z3c.jsonrpc error views


0.5.0 (2012-11-16)
------------------

- initial release

            

Raw data

            {
    "_id": null,
    "home_page": "http://pypi.python.org/pypi/j01.jsonrpc",
    "name": "j01.jsonrpc",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "J01 XHR ajax z3c form JSON-RPC JQuery Zope3",
    "author": "Roger Ineichen, Projekt01 GmbH",
    "author_email": "dev@projekt01.ch",
    "download_url": "https://files.pythonhosted.org/packages/21/bc/9513709414119736786ce8a331232d2b11e008c76fc7fd4f03c4db271476/j01.jsonrpc-2.2.5.tar.gz",
    "platform": null,
    "description": "This package provides some JQuery based JSON-RPC form handling using the\nz3c.jsonrpc and z3c.form libraries for Zope3.\n\n\n=======\nCHANGES\n=======\n\n2.2.5 (2024-01-26)\n------------------\n\n- bugfix: remove bad unicode char from j01.loading.js javascript file\n\n\n2.2.4 (2023-02-21)\n------------------\n\n- bugfix: get attribute values based on attrNames from Button instance and not\n  from ButtonAction.\n\n\n2.2.3 (2022-02-17)\n------------------\n\n- feature: added stopPropagation option to on click handler. This allows to\n  use j01.jsonrpc click handler in nested structure without to propagate the\n  click event to a parent element. E.g. an a href as child in a div where the\n  a href element and the div provide a click handler.\n\n\n2.2.2 (2019-09-02)\n------------------\n\n- feature: support cssHTMLId and cssBodyId in j01FormProcessor jsonrpc response\n  and apply this ids to html and body tag if they get used in response. For more\n  information see cssHTMLClass and cssBodyClass below.\n\n\n2.2.1 (2019-05-14)\n------------------\n\n- bugfix: fix issues with latest z3c.form py3 changes. Ensure that the ordered\n  dict used in buttons get initialized.\n\n\n2.2.0 (2018-02-25)\n------------------\n\n- bugifx: remove jquery browser.msie usage in form serialisation because\n  $.browser.msie is not supported in jquery version 1.9.\n\n- feature: added jquery migrate 1.4.1 plugins, use this for migration nad\n  backwards compatibility\n\n\n2.1.3 (2018-02-09)\n------------------\n\n- bugfix: call j01RenderHTMLAndBodyMarkers before we render the content.\n  Otherwise the dom doesn't provide the right classes and ids. And more\n  important, if we use the cssHTMLId, cssHTMLClass, cssBodyId or cssBodyClass\n  for display parts of the site, the new part of the site is not visible and\n  doesn't provide the correct width and height and size caculation will fail.\n  This happend by loading an j01.pager and the pager width didn't get\n  calculated because we rendered the pager into an invisable site part.\n\n\n2.1.2 (2017-12-27)\n------------------\n\n- feature: support cssHTMLId and cssBodyId in jsonrpc response and apply\n  this ids to html and body tag if they get used in response. For more\n  information see cssHTMLClass and cssBodyClass below.\n\n- feature: support cssHTMLClass and cssBodyClass in jsonrpc response and apply\n  this classes to html and body tag if they get used in response. This is a\n  smart concept for enable and disable parts of a mobile page and can control\n  single application pages. This can get used for hide the detail content if\n  you load an item listing and disable the listing if you load the detail page\n  by just apply the relevant css class to the body element.\n\n\n2.1.1 (2017-09-18)\n------------------\n\n- bugfix: fix input enter javascript. Added missing event function argument\n\n- bugfix: removed __call__ method from button Handlers class. This method was\n  never used and the implementation was never working\n\n\n2.1.0 (2017-06-29)\n------------------\n\n- feature: added contentRenderMethodName for rendering the response content\n  based on additional javascript methods\n\n- bugfix: removed double ;; in j01.jsonrpc.js\n\n\n2.0.3 (2017-01-11)\n------------------\n\n- bugfix: fix adapter configuration signature for JSONErrorViewSnippet and\n  JSONValueErrorViewSnippet.\n\n- feature: new layout mixin helper class offering html and body element id and\n  css class mixins in page and forms.\n\n\n2.0.2 (2015-06-15)\n------------------\n\n- bugfix: fix button value translation. Added explicit translation to value\n  based on given button schema field (i18nmessageid) title\n\n\n2.0.1 (2015-03-17)\n------------------\n\n- feature: added different testing hooks for p01.testbrowser suport.\n  The new p01.testbrowsre package implicit support any j01.jsonrpc\n  button and link click call. This is a big imrpovement and makes testing\n  a lot simpler.\n\n- feature: added j01.loading.css file based on j01.loading.less\n\n- bugfix: fix error handling in javacsript for jsonrpc error response\n  support onError and onException. onError handles known status 200\n  json-rpc error response and onException handles non staus 200 errors.\n  Also make sure that a JQuery event get triggered if no error handling\n  concept is used e.g. if onError is missing\n\n\n2.0.0 (2015-01-20)\n------------------\n\n- feature: support old j01.proxy.js javascript as j01.proxy.deprecated.js\n\n- feature: reimplement JSONRPC proxy javascript library. Improved error\n  handling and timeout callbacks. NOTE: the new library is not backward\n  compatible. The most important part is the addMethod signature which changed\n  from:\n  addMethod(name, onSuccess, onError, onTimeout, isPushState, id)\n  to:\n  addMethod(name, callback, requestId, onError, onTimeout)\n  The addMethod will also return the method itself. This method can get used\n  for apply optional event handler for onLoading and onLoaded.\n  The JSONRPC proxy will trigger a JQuery event on errors by default.\n  You can simply register an event handler for the ``j01.proxy.error`` event\n  or you can define your own onError handler. Since we initialize a jsonrpc\n  call from the client, we also support an isPushState marker for trigger\n  push state. This allows us to supress a push state given from a server\n  response if needed. Of corse the isPushState is only relevant if the optional\n  j01.history.js library is used.\n\n- feature: trigger ``j01.jsonrpc.error`` if error content target is missing\n  in j01RenderContentError error handler. This allows to apply a custom error\n  handler.\n\n- feature: move history concept to a separate file called j01.history.js. This\n  makes it possible to apply a different history concept. This means you need\n  to include this file too or you will loose the defautl jsonrpc history\n  conecpt.\n\n- bugfix: use id instead of requestId as jsonrpc response id in j01.proxy.js\n\n- feature: support explicit disable button call in j01ButtonDisabler. This\n  allows us to disable a button asap in a rendered page for the given duration.\n  This is usefull for re-submit buttons e.g. send this again etc.\n\n\n1.0.1 (2014-08-25)\n------------------\n\n- remove history javascript implementation and integrate native browser history\n  api support in jsonrpc page, form, jsonrpc method and javascript. Now the\n  browser history api is implicit supported. There are several attributes for\n  enable or manipulate the browser history state handling in the jsonrpc form\n  and page classes. See the comments in the form class for more information.\n\n- bugfix: fix missing getJavaScript and getInputEnterJavaScript method in\n  simple Button\n\n- bugfix: skip widget update call for buttons. They don't need to update the\n  value\n\n- feature: added new j01.loading.js javascript which shows a progress line at\n  the top of the page or anywhere you need it. Moved the existing spinner\n  loading javascript to j01.spinner.js.\n\n- feature: added JQuery events called j01.jsonrpc.loading and\n  j01.jsonrpc.loaded before and after loading content.\n\n- feature: provide new CloseButton which is able to remove content from the\n  html page using jquery.empty and an animation. As default animation the\n  jquery slideUp method is used.\n\n- feature: implemented jsonrpc testing helper methods for button submit etc.\n\n- fix: ``jsform.JSONRPCFormMixin``: checking for REDIRECT_STATUS_CODES after\n  update() too\n\n\n1.0.0 (2014-04-04)\n------------------\n\n- implemented a compatible z3c.form button and handler concept. This\n  new button and handler concept supports the z3c.form button and handler\n  concept and can get used as a replacement for any form. This implementation\n  will lookup the button handler by it's name form a simple dict and does not\n  use a built in adapter registry. This makes it compatible with any kind of\n  button and handler implementation. The existing jsbutton module isn't\n  available anymore. Import the new buttons from j01.jsonrpc.btn.\n\n\n0.7.0 (2014-03-25)\n------------------\n\n- feature: implemented button disable concept based on button property and\n  JQuery event. Take alook at the new j01.button.js javascript. Note, this\n  implementation keeps event handler intact. Other concepts like the one\n  used in the twitter bootstrap framework will destroy applied event handler\n  during reset a button state which will not work for our implementation.\n\n- feature: implemented JQuery click event trigger. This could get used for\n  different concepts like apply a loading icon etc. We also use this event\n  handler for the new button disable concept.\n\n\n0.6.0 (2014-03-04)\n------------------\n\n- javascript: use JSON2 as default instead of eval for load json repsonse.\n  Fallback to custom implementation if no JSON2 is available.\n\n- javascript: update to newest history.js javascripts\n\n- javascript: implemented low level unauthorized nextURL error response\n  handling in j01.proxy.js javascript.\n\n- implemented handleError method\n\n- changed unauthorized error page redirect from loginForm.html to\n  j01Login.html for better customization. Note, you will need at least to\n  register your existing loginForm.html as an additional j01Login.html page.\n  Or the new nextURL redirect to j01Login.html will point ot a missing page.\n  This changes makes it possible to show an explicit comment (session expires\n  for jsonrpc call).\n\n- feature: improve history state handling. Remember initial url and support\n  go back to the initial url too whcih doesn't provide a ``j`` marker argument.\n\n- feature: implemented improved json-rpc client including custom error handling\n  and removed the dependency to z3c.jsonrpcproxy. This means you need to\n  define the z3c.jsonrpcproxy dependency if you use the z3c.jsonrpcproxy\n  javascript client in your package.\n\n\n0.5.1 (2013-03-19)\n------------------\n\n- feature: support button action handling based on default z3c.form concept.\n  This let us allow to use urls like <page-url>?form.buttons.foobar=1 for non\n  jsonrpc requests\n\n- feature: implemented JSONRPCClickButton using a simple click event handler\n\n- feature: support prefixWidgets and prefixButtons property for separate\n  different forms loaded into one single page.\n\n- feature: improve javascript callback handler and support scrollToExpression\n  with scroll to animation after loading jsonrpc content.\n\n- support response.data.i18nMessage as additional error response given from\n  z3c.jsonrpc error views\n\n\n0.5.0 (2012-11-16)\n------------------\n\n- initial release\n",
    "bugtrack_url": null,
    "license": "ZPL 2.1",
    "summary": "JSON-RPC helpers based on JQuery, z3c.form and z3cjsonrpc for Zope 3",
    "version": "2.2.5",
    "project_urls": {
        "Homepage": "http://pypi.python.org/pypi/j01.jsonrpc"
    },
    "split_keywords": [
        "j01",
        "xhr",
        "ajax",
        "z3c",
        "form",
        "json-rpc",
        "jquery",
        "zope3"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "21bc9513709414119736786ce8a331232d2b11e008c76fc7fd4f03c4db271476",
                "md5": "b857f6850b09231d58c88e0c7cf05b16",
                "sha256": "5a54e15ac94c8edfa0cfb4ebbbaebd5a24b29336ba3a67bf9333881151504b71"
            },
            "downloads": -1,
            "filename": "j01.jsonrpc-2.2.5.tar.gz",
            "has_sig": false,
            "md5_digest": "b857f6850b09231d58c88e0c7cf05b16",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 81674,
            "upload_time": "2024-01-26T13:48:46",
            "upload_time_iso_8601": "2024-01-26T13:48:46.988340Z",
            "url": "https://files.pythonhosted.org/packages/21/bc/9513709414119736786ce8a331232d2b11e008c76fc7fd4f03c4db271476/j01.jsonrpc-2.2.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-26 13:48:46",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "j01.jsonrpc"
}
        
Elapsed time: 0.22768s