|
|
Choosing A Webhost: |
CVS: Products/CMFCore - TypesTool.py:1.74.2.7: msg#00098web.zope.cmf.cvs
Update of /cvs-repository/Products/CMFCore In directory cvs.zope.org:/tmp/cvs-serv9598/CMFCore Modified Files: Tag: CMF-1_5-branch TypesTool.py Log Message: - TypesTool: Changed the way available factory_type_informations are presented on the dropdown list when adding a new type from a filesystem FTI to the Types Tool. The new representation includes the "id" as set in the FTI instead of just the product name and the meta_type. (http://www.zope.org/Collectors/CMF/49) === Products/CMFCore/TypesTool.py 1.74.2.6 => 1.74.2.7 === --- Products/CMFCore/TypesTool.py:1.74.2.6 Sun Nov 7 12:04:45 2004 +++ Products/CMFCore/TypesTool.py Mon Nov 22 06:55:59 2004 @@ -716,19 +716,27 @@ res = [] products = self.aq_acquire('_getProducts')() for product in products.objectValues(): + product_id = product.getId() + if hasattr(aq_base(product), 'factory_type_information'): ftis = product.factory_type_information else: - package = getattr(Products, product.getId(), None) + package = getattr(Products, product_id, None) dispatcher = getattr(package, '__FactoryDispatcher__', None) ftis = getattr(dispatcher, 'factory_type_information', None) + if ftis is not None: if callable(ftis): ftis = ftis() + for fti in ftis: mt = fti.get('meta_type', None) + id = fti.get('id', '') + if mt: - res.append((product.getId() + ': ' + mt, fti)) + p_id = '%s: %s (%s)' % (product_id, id, mt) + res.append( (p_id, fti) ) + return res _addTIForm = DTMLFile( 'addTypeInfo', _dtmldir )
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | CVS: CMF - CHANGES.txt:1.248.2.48, Jens Vagelpohl |
|---|---|
| Next by Date: | CVS: Products/CMFCore - TypesTool.py:1.82, Jens Vagelpohl |
| Previous by Thread: | CVS: CMF - CHANGES.txt:1.248.2.48, Jens Vagelpohl |
| Next by Thread: | CVS: Products/CMFCore - TypesTool.py:1.82, Jens Vagelpohl |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |