Re: [Zope-CMF] cmfuid and zope.app.intids
On May 29, 2008, at 15:10 , Miles wrote: - Has anyone used zope.app.intids at all, or done anything similar? No to both - Does this sound achievable at all? I'd think so. - Is this a generally useful thing to do? From the standpoint of trying to prevent reinventing wheels all over the place it sounds like a good idea to re-use a Zope 3 component. However, beware of backwards-compatibility in terms of software and in terms of persistent data generated by the existing version. Like Tres always says, "persistence means always having to say you're sorry". Essentially, if you can do it while retaining backwards compatibility I'd be all for it. jens ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] cmfuid and zope.app.intids
Hi, I was wondering if the CMFUid package could be replaced by a thin wrapper around zope.app.intids. As (I think) one of the few users of CMFUid, I'd like to replace it within something a little more robust and this seemed like a possible way to do it. Generally, I've found having the concept of uids available a very useful thing. So, my questions are: - Has anyone used zope.app.intids at all, or done anything similar? - Does this sound achievable at all? - Is this a generally useful thing to do? Thanks, Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] CMFUid
Dear all, I'm looking at using CMFUid and I'm not quite sure how to use it: do I need to add support for it explicitly in my objects, ie. from Products.CMFCore.PortalContent import PortalContent from Products.CMFCore.utils import getUtilityByInterfaceName from AccessControl import ClassSecurityInfo class AContentObject(PortalContent): security = ClassSecurityInfo() def __init__(self, title=None, description=None): uid = getUtilityByInterfaceName('portal_uidgenerator') self.id = uid() Or is this a case for using an adapter? from Products.CMFUid.interfaces import IUniqueIdAnnotation? class AContentObject(PortalContent): security = ClassSecurityInfo() def __init__(self, title=None, description=None): self.id = IUniqueIdAnnotation(self) which allows behaviour to be configured site wide? Charlie - Charlie Clark Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-938-5360 GSM: +49-178-782-6226 ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] CMFUid broken
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It looks like the CMFUid product is plain broken right now on the CMF-2.0-branch (and I assume the trunk), and unfortunately in ways that are not even picked up by the unit tests that come with the product. Here's a simple way to show the breakage: - - create a CMF site and select the CMFUid extension profile - - create some content in the site - - in the ZMI, go to the portal_uidhandler Query tab and search for some random string - -> blowup in the logging in CMFUid.UniqueIdHandlerTool._queryBrain The blowup, first of all, is because the logging call is obviously flawed. But the reason it wants to log something in the first place is because it thinks more than one item exists for the same UID. That's because the index "cmf_uid" does not exist on which the query is based, so the catalog returns everything. I've been trying to fiddle with this for a bit and end up frustrated. Can someone who knows the product (and cares) please fix it? I personally don't want to spend time on it anymore, I believe this should be done by those who lobbied to get in into the core in the first place. jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFESjlHRAx5nvEhZLIRAk8+AJ0a0INX7IyM+rZhzQ0ONM8iQO//iQCeLf+n DYst/VMd7ekPOLyPzZQa0TA= =9Yu2 -END PGP SIGNATURE- ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests