Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

https://img.shields.io/pypi/v/gocept.xmlrpcskin https://img.shields.io/pypi/pyversions/gocept.xmlrpcskin https://github.com/zopefoundation/gocept.xmlrpcskin/actions/workflows/tests.yml/badge.svg https://coveralls.io/repos/github/zopefoundation/gocept.xmlrpcskin/badge?branch=master

This package is an extension to the Zope Publisher that provides a ZCML directive for XML-RPC views that supports a layer parameter.

It collects the changes that briefly were contained in 3.5.0alpha releases (but subsequently have been removed) of the following packages

  • zope.app.publisher (removed in r82484)

  • zope.traversing (removed in r82482)

  • zope.publisher (removed in r82493)

Usage

The gocept:xmlrpcview directive is like the xmlrpc:view directive of zope.app.publisher, but with an additional parameter layer.

Here’s an abbriged example (also available as gocept.xmlrpcskin.tests.fixture):

<include package="zope.component" file="meta.zcml" />

<include package="gocept.xmlrpcskin" file="meta.zcml" />
<include package="gocept.xmlrpcskin" />

<interface
  interface=".interfaces.IFooLayer"
  type="gocept.xmlrpcskin.interfaces.IXMLRPCSkinType"
  name="foo"
  />

<gocept:xmlrpcview
  for="*"
  class=".view.Example"
  permission="zope.Public"
  methods="
  all_layers
  "
  />

<gocept:xmlrpcview
  for="*"
  class=".view.Example"
  layer=".interfaces.IFooLayer"
  permission="zope.Public"
  methods="
  foo_layer
  "
  />


class IFooLayer(zope.publisher.interfaces.xmlrpc.IXMLRPCRequest):
    pass

class Example(zope.app.publisher.xmlrpc.XMLRPCView):

    def all_layers(self):
        return dict(returncode=1)

    def foo_layer(self):
        return dict(returncode=2)

The method all_layers will then be available on all layers, while foo_layer only is available on /++skin++foo.

CHANGES

2.0 (2023-02-17)

  • Add support for Python 3.9, 3.10, 3.11.

  • Drop support for Python 2.7, 3.5, 3.6.

  • Fix warning in setup.py.

1.1 (2019-12-03)

  • Explicitly support and test for Python 2.7, 3.7 and 3.8.

1.0 (2011-09-22)

  • first release.

Release files for gocept.xmlrpcskin 2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gocept.xmlrpcskin 2.0
File Size Uploaded
gocept.xmlrpcskin-2.0.tar.gz 8.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gocept.xmlrpcskin 2.0
File Interpreter ABI Platform
gocept.xmlrpcskin-2.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.4 kB

Release files / gocept.xmlrpcskin-2.0.tar.gz

Download URL gocept.xmlrpcskin-2.0.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3d4971268cca27ac907789e5db7867eaf77738586950c4513d2430cb6bc02dc9
BLAKE2b-256 checksum
How to use checksums
e7c7ad3a036e64c9303f6e47a7743aea5f24fcc2d75592cc533d0800920d2863
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / gocept.xmlrpcskin-2.0-py3-none-any.whl

Download URL gocept.xmlrpcskin-2.0-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d34293b821d5d5f01110b9afffbbb2d300db67500073f108ceac03d30d183483
BLAKE2b-256 checksum
How to use checksums
ee0bcc5c3aecd62d13019b9544a3943734e5dc2f788c2b694e4616a24ae30c48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page