[Zope3-Users] Assigning a name dinamically to a content object

Florent Guillaume fg at nuxeo.com
Sun Nov 21 12:41:23 EST 2004


In article <20041121153316.GA33783 at pixie.subbacultcha.home> you write:
> The bugtracker has a feature that I'd like to implement, but I'm not
> able to find it in the source code (ouch! ... :p).
> When a bug is added the content object names itself as "1", "2" and so
> on, instead of "contentobject-1", "content-object-2".
> Where do I have to look or how can I do ?

Have a look at BugTrackerNameChooser in tracker.py, registered through

  <adapter 
      for=".interfaces.IBugTracker"
      factory=".tracker.BugTrackerNameChooser"
      provides="zope.app.container.interfaces.INameChooser" />

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   fg at nuxeo.com


More information about the Zope3-users mailing list