[Zope3-dev] Moving dublincore and annotation from zope.app to zope

Christian Heimes heimes at faho.rwth-aachen.de
Sat Jun 26 17:39:24 EDT 2004


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

At Europython there where some discussions about moving some useful
packages from zope.app to zope. IMO dublincore and annotation are two
good candidates.

zope.app.dublincore does only depend on annotation from zope.app and
annotation does only depend on the ILocation interface from
zope.app.location. There is even only one place where the ILocation
interface is used:

class AttributeAnnotations:

~    def __setitem__(self, key, value):
~        """See zope.app.annotation.interfaces.IAnnotations"""
~        if ILocation.providedBy(value):
~            value.__parent__ = self.unwrapped_obj

~        try:
~            annotations = self.unwrapped_obj.__annotations__
~        except AttributeError:
~            annotations = self.unwrapped_obj.__annotations__ = OOBTree()

~        annotations[key] = value


The two packages could be very useful for Five, too. *wink to Martjin* :)

I think there are some other packages that at least partly useful for
non Zope3 applications like:

* zope.app.apidoc
* zope.app.mail
* zope.app.introspector
* zope.app.schema*

apidoc and introspector are useful to create api documentation and
interface introspection on the fly that could be used in other large
projects - including Five based Zope2 products.

zope.app.schema* packages would be *very* handy in zope2. Maybe
Archetype's widget system could be replaced by zope.schema and schemagen
in the future ... .oO( I have a dream :)

Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFA3e0M9aLWrfOU0PgRAsgSAKCwsS+2yyIXZgjBDrQeVUnTQVnongCfZbXO
WMR5wnAOMUnTiQf7bbzehy8=
=fDp7
-----END PGP SIGNATURE-----



More information about the Zope3-dev mailing list