[Checkins] [zopefoundation/zope.app.publisher] 33391e: Added code to clean up views registered by the tes...

GitHub noreply at github.com
Tue Mar 12 13:28:12 UTC 2013


  Branch: refs/heads/monolithic-zope3-ZopeX3-3.0
  Home:   https://github.com/zopefoundation/zope.app.publisher
  Commit: 33391ed01198620defbdbe458bd72a16f04bc981
      https://github.com/zopefoundation/zope.app.publisher/commit/33391ed01198620defbdbe458bd72a16f04bc981
  Author: Jim Fulton <jim at zope.com>
  Date:   2004-08-27 (Fri, 27 Aug 2004)

  Changed paths:
    M xmlrpc/ftests.py

  Log Message:
  -----------
  Added code to clean up views registered by the test.


  Commit: 84138b05d24e6f164552e111123ac3b887648ba2
      https://github.com/zopefoundation/zope.app.publisher/commit/84138b05d24e6f164552e111123ac3b887648ba2
  Author: Jim Fulton <jim at zope.com>
  Date:   2004-08-27 (Fri, 27 Aug 2004)

  Changed paths:
    M xmlrpc/README.txt
    M xmlrpc/configure.zcml

  Log Message:
  -----------
  Changed so that removeAllProxies is no-longer needed.

Updated README.txt to test handling of faults.


  Commit: cef2a5dbb2b1c986ca49fa79eeee3aa07359f6a9
      https://github.com/zopefoundation/zope.app.publisher/commit/cef2a5dbb2b1c986ca49fa79eeee3aa07359f6a9
  Author: Jim Fulton <jim at zope.com>
  Date:   2004-08-28 (Sat, 28 Aug 2004)

  Changed paths:
    M browser/tests/test_addMenuItem.py
    M xmlrpc/ftests.py

  Log Message:
  -----------
  Merged from trunk:

  r27323 | jim | 2004-08-28 15:31:22 -0400 (Sat, 28 Aug 2004) | 15 lines

Integrated the latest doctest rom the Python cvs.

This brought two backward-incompatible changes:

- setUp and tearDown functions are now passed a test 
  argument, which is a doctest.DocTest.  This provides access to the
  test globals.

- The names of doctest reporting options for requesting diff output
  have changed.

Thesechanges are both positive for the long run, despite the
short-term backward-incompatability. Better before X3.0 final than
later.


  Commit: b6d4c8509bb70ddbf4036c0243ce47b942eb1ca6
      https://github.com/zopefoundation/zope.app.publisher/commit/b6d4c8509bb70ddbf4036c0243ce47b942eb1ca6
  Author: Philipp von Weitershausen <philipp at weitershausen.de>
  Date:   2004-08-29 (Sun, 29 Aug 2004)

  Changed paths:
    R xmlrpc/t

  Log Message:
  -----------
  Get rid of temporary test file.


  Commit: 2ffbcb674c38122f1a581a76098e779184fb432d
      https://github.com/zopefoundation/zope.app.publisher/commit/2ffbcb674c38122f1a581a76098e779184fb432d
  Author: Philipp von Weitershausen <philipp at weitershausen.de>
  Date:   2004-08-29 (Sun, 29 Aug 2004)

  Changed paths:
    M xmlrpc/README.txt
    M xmlrpc/metaconfigure.py

  Log Message:
  -----------
  Allow XML-RPC view methods to take parameters.

When the XML-RPC view setup machinery was changed recently, views taking parameters
were not tested.  The problem was that methods were security protected using
an instance of ProtectedMethod which implemented ILocation (thus could inherit
security context) and provides a __call__(*args) and passes *args onto the
actual view method.  THis works fine when no parameters are issues via xml-rpc,
but when they are, zope.publisher.publish.mapply chokes.  For some reason, it
cannot figure out the *args thing.

This fix gets rid of MethodFactory and ProtectedMethod.  Instead, a new view
class with a security checker and a __call__ that is a copy of the method that
is to be used is created.  This process is very similar to what happens with
browser pages.

README.txt was updated with a functional test for this.


  Commit: fada478432c234d5f05d25ab089892a957e5e146
      https://github.com/zopefoundation/zope.app.publisher/commit/fada478432c234d5f05d25ab089892a957e5e146
  Author: Fred Drake <fdrake at acm.org>
  Date:   2004-08-31 (Tue, 31 Aug 2004)

  Changed paths:
    M browser/tests/test_directoryresource.py

  Log Message:
  -----------
  Use zapi.isinstance() as appropriate.

Always use zapi.isinstance(o) instead of isinstance(removeSecurityProxy(o))
when the unproxied object is not otherwise needed.


  Commit: 6219dc10c46f9b0a3d59cfadebdf6fad55bce922
      https://github.com/zopefoundation/zope.app.publisher/commit/6219dc10c46f9b0a3d59cfadebdf6fad55bce922
  Author: Philipp von Weitershausen <philipp at weitershausen.de>
  Date:   2004-09-01 (Wed, 01 Sep 2004)

  Changed paths:
    M xmlrpc/README.txt
    M xmlrpc/configure.zcml

  Log Message:
  -----------
  Allow xmlrpclib.DateTime values in xml-rpc data exchange.


  Commit: db09a7bc26b68df9a0d6192de54f61d12fba7ca7
      https://github.com/zopefoundation/zope.app.publisher/commit/db09a7bc26b68df9a0d6192de54f61d12fba7ca7
  Author: Philipp von Weitershausen <philipp at weitershausen.de>
  Date:   2004-09-01 (Wed, 01 Sep 2004)

  Changed paths:
    M xmlrpc/README.txt

  Log Message:
  -----------
  Fix apparently test which is apparently failing on some machines.


  Commit: f6a79e14621ce869c00970d96bd5b8e528fbb027
      https://github.com/zopefoundation/zope.app.publisher/commit/f6a79e14621ce869c00970d96bd5b8e528fbb027
  Author: Fred Drake <fdrake at acm.org>
  Date:   2004-10-05 (Tue, 05 Oct 2004)

  Changed paths:
    M browser/fileresource.py

  Log Message:
  -----------
  remove duplicated line of code
(closes bug #291; merged from trunk revision 27770)


  Commit: 2c8ab107d91f4a0497a421b5c272c7fd1caef58a
      https://github.com/zopefoundation/zope.app.publisher/commit/2c8ab107d91f4a0497a421b5c272c7fd1caef58a
  Author: Philipp von Weitershausen <philipp at weitershausen.de>
  Date:   2005-04-07 (Thu, 07 Apr 2005)

  Changed paths:
    M browser/metadirectives.py
    M browser/tests/test_directives.py

  Log Message:
  -----------
  merged r29897 from trunk:
  For ``for`` parameter of the <browser:menuItem> and
  <browser:menuItems> directives was not marked as required in
  the directive schema, while it actually was expected to be
  required.


Compare: https://github.com/zopefoundation/zope.app.publisher/compare/33391ed01198^...2c8ab107d91f


More information about the checkins mailing list