[Zope-CMF] Metatype() standard?
Marc Lindahl
marc at bowery.com
Wed Mar 3 12:44:42 EST 2004
I'm crossposting this because I'm interested in feedback - is
Metatype() just a vestige of TypesTool or is it intended to be
standardized on? I was investigating this area and found that Type()
actually returns the TITLE of the type, not the meta_type, unless there
is no title, and also that Type() is supposed to be depreciated.
What's the real story? Anyone know?
Thanks,
Marc
Begin forwarded message:
> From: Christian Heimes <heimes at faho.rwth-aachen.de>
> Date: Wed Mar 3, 2004 1:48:20 AM America/New_York
> To: archetypes-devel at lists.sourceforge.net
> Subject: [Archetypes-devel] Re: missing Metatype()
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Marc Lindahl wrote:
> | I noticed (while fixing bugs in CMFRating) that Archetypes (at least,
> | 1.2.4) is missing the Metatype() definition.
>
> The method Metadata() isn't part of the DC specs
> (http://dublincore.org/documents/dces/) and isn't in the list of
> additional meta data fields in CMFCore. Only the TypesTool and type
> information have a method Metadata(). I grepped the whole cmf, zope,
> plone and must of the collective tree to be shure.
>
> | It's needed - Type() is
> | NOT the same thing - it gives back the Title of the type, which can
> be
> | user-edited, etc.!
>
> The types title is editable only through the ZMI (portal_types) or the
> types tool api. If an user changes something so deep in the system and
> screws up the system it's not our fault. An user *must* know what
> she/he
> does.
>
> |
> | Adding this code to BaseObject.py and ExtensibleMetadata.py fixes it:
> |
> | security.declareProtected(CMFCorePermissions.View, 'Metatype')
> | def Metatype(self):
> | """
> | Returns the Zope 'meta_type' for this content object.
> | May be used for building the list of portal content
> | meta types.
> | """
> | return self.meta_type
>
> Rejected
>
> | BTW, there's a bunch of "fixme"s in ExtensibleMetaType, is the
> | dublinCore stuff ever going to be fleshed out?
>
> Yes your right! Format(), Publisher() and Identifer() are broken.
>
> Christian
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> Comment: Using GnuPG with Debian - http://enigmail.mozdev.org
>
> iD8DBQFARX+09aLWrfOU0PgRAgvTAJ4hqgm23KyAt2UryRudoPGl/40mHwCbBRxz
> b5VPFpD8dwQ7PTksvFgzHzI=
> =VxFF
> -----END PGP SIGNATURE-----
>
>
>
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> Archetypes-devel mailing list
> Archetypes-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/archetypes-devel
More information about the Zope-CMF
mailing list