From: rossp <svn...@pl...> - 2006-07-20 18:11:31
|
Author: rossp Date: Thu Jul 20 18:11:23 2006 New Revision: 26300 Modified: Tags/trunk/Extensions/Install.py Tags/trunk/content.py Tags/trunk/indexes.py Log: Minor changes I've lost track of. Modified: Tags/trunk/Extensions/Install.py ============================================================================== --- Tags/trunk/Extensions/Install.py (original) +++ Tags/trunk/Extensions/Install.py Thu Jul 20 18:11:23 2006 @@ -1,16 +1,23 @@ from StringIO import StringIO +from Products.CMFCore.utils import getToolByName + from Products.Archetypes import listTypes from Products.Archetypes.Extensions.utils import installTypes from Products.Archetypes.Extensions.utils import install_subskin -from Products.Tags.config import * +from Products.Tags.config import PROJECTNAME +from Products.Tags.config import GLOBALS +from Products.Tags.content import TagsSubmission +from Products.Tags.content import TagsTarget def install(self): out = StringIO() + # install skins install_subskin(self, out, GLOBALS) + # install types typeInfo = listTypes(PROJECTNAME) installTypes(self, out, typeInfo, Modified: Tags/trunk/content.py ============================================================================== --- Tags/trunk/content.py (original) +++ Tags/trunk/content.py Thu Jul 20 18:11:23 2006 @@ -51,10 +51,10 @@ # XXX Enable edit on target for Authenticated class TagsTarget(UserProviderTarget): - """Target class for Tags.""" + """Provider target class for Tags.""" schema = tags_target_schema - meta_type = 'TagsTarget' - archetype_name = 'Tags' + meta_type = portal_type = 'TagsTarget' + archetype_name = 'Tags Target' content_icon = 'tags_icon.gif' global_allow = False filter_content_types = True @@ -66,3 +66,4 @@ storage=ProviderStorage(), submission_target='tags') tags_provider_schema = Schema((tags_provider_field,)) +tags_origin_schema = tags_provider_field.copy() Modified: Tags/trunk/indexes.py ============================================================================== --- Tags/trunk/indexes.py (original) +++ Tags/trunk/indexes.py Thu Jul 20 18:11:23 2006 @@ -42,6 +42,9 @@ # child can end up getting indexed with the results of the # parent. This should prolly be addressed in PluginIndexes. +# XXX The index should rank results by count of tag applications for +# searching + class TagIndex(KeywordIndex): """A specialization of KeywordIndex that also indexes multiple applications of a tag to an indexed object.""" |