[Zope-dev] Re: Zope 3 ZPTs in Zope 2: Nearly done

Tres Seaver tseaver at palladion.com
Sun May 21 23:13:17 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Re: Empty path elements:

Zope2 uses them at the beginning of a path to indicate traversal from
the root.  -1 to dropping that case (it is the one which makes
'/foo/bar' behave orthagonally).  Havinng blank elements work as no-ops
also makes them behave predictably:  this is what command shells (sane
ones, anyway) do with them.  E.g.:

  $ ls /path/to//foo

yiels the same results as:

  $ ls /path/to/foo

So -0 to dropping the current blank traversal behavior at all.
Therefore, +0 to modifying Z3's version to allow the same behavior (I
think Zope2's version is more correct).

Re: calling primitive types which are at the end of a path expression.

They should be called, as should any other callable at the end of a path
expression;  anything else is a hard-to-explain bit of special case
hackery.  The ZPT spec has *always* read so.  +1 to fixing both / either
Z2 or Z3 to make this uniformly so.  BBB be damned in this case, as the
behavior (not calling the primitiive type) is contrary to spec.


Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEcSxN+gerLs4ltQ4RAvnxAKCeLS5DxZo6f1PAikJ5Gp9IWAxy7QCgvxSe
z3WxK2p0Opb6jPRzl/S3VZ4=
=Dj/N
-----END PGP SIGNATURE-----



More information about the Zope-Dev mailing list