Alessandro,
Receio que
apenas isso não é o suficiente L
CatalogError: The index chosen for sort_on (Title) is not capable of being used as a sort index. Tem alguma outra ideia?
Traceback (innermost last): Module ZPublisher.Publish, line 101, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Shared.DC.Scripts.Bindings, line 306, in __call__ Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec Module Products.PageTemplates.ZopePageTemplate, line 222, in _exec Module Products.PageTemplates.PageTemplate, line 96, in pt_render - ZopePageTemplate at /intranet/biblioteca/index_html Module TAL.TALInterpreter, line 190, in __call__ Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 671, in do_useMacro Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 409, in do_optTag_tal Module TAL.TALInterpreter, line 394, in do_optTag Module TAL.TALInterpreter, line 389, in no_tag Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 702, in do_defineSlot Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 409, in do_optTag_tal Module TAL.TALInterpreter, line 394, in do_optTag Module TAL.TALInterpreter, line 389, in no_tag Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 650, in do_defineMacro Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 694, in do_defineSlot Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 650, in do_defineMacro Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 460, in do_setLocal_tal Module Products.PageTemplates.TALES, line 221, in evaluate - URL: /intranet/biblioteca/index_html - Line 10, Column 2 - _expression_: PythonExpr here.ultimas.biblioteca('Title') - Names: {'container': ATFolder instance at 427b7e60, 'context': ATFolder instance at 427b7e60, 'default': Products.PageTemplates.TALES.Default instance at 0x409eefcc, 'here': ATFolder instance at 427b7e60, 'loop': SafeMapping instance at 431dddf0, 'modules': Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x409f4aac, 'nothing': None, 'options': {'args': ()}, 'repeat': SafeMapping instance at 431dddf0, 'request': HTTPRequest, URL=""> 'root': Application instance at 419f28f0, 'template': ZopePageTemplate at /intranet/biblioteca/index_html, 'traverse_subpath': [], 'user': macanudo} Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__ - __traceback_info__: here.ultimas.biblioteca('Title') Module Python _expression_ here.ultimas.biblioteca('Title'), line 1, in _expression_ Module Shared.DC.Scripts.Bindings, line 306, in __call__ Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec Module Products.PythonScripts.PythonScript, line 334, in _exec Module None, line 23, in biblioteca - PythonScript at /intranet/ultimas/biblioteca - Line 23 Module None, line 12, in defineOrdenacao - PythonScript at /intranet/ultimas/biblioteca - Line 12 Module Products.CMFCore.CatalogTool, line 217, in searchResults Module Products.ZCatalog.ZCatalog, line 649, in searchResults Module Products.ZCatalog.Catalog, line 744, in searchResults Module Products.ZCatalog.Catalog, line 730, in _getSortIndexCatalogError: The index chosen for sort_on (Title) is not capable of being used as a sort index.
De: zope-pt@yahoogrupos.com.br [mailto:zope-pt@yahoogrupos.com.br] Em nome de alessandro.smendes
Enviada em: quinta-feira, 6 de
julho de 2006 22:25
Para: zope-pt@yahoogrupos.com.br
Assunto: [zope-pt] Re:
portal_catalog - Alfabetica
here.portal_catalog.searchResults(sort_on='Title',
portal_type='ATFile')
--- Em zope-pt@yahoogrupos.com.br,
Leonardo Borille de Queiroz
[EMAIL PROTECTED] escreveu
Como faço para ordenar um catalogo por ordem alfabética?
biblioteca =
context.portal_catalog.searchResults(
meta_type='ATFile',
path='/intranet/biblioteca',
review_state='published')
__._,_.___
Para enviar uma mensagem: zope-pt@yahoogrupos.com.br
Para desistir envie uma mensagem em branco para: [EMAIL PROTECTED]
Yahoo! Grupos, um serviço oferecido por:
PUBLICIDADE
Links do Yahoo! Grupos
Para visitar o site do seu grupo na web, acesse:http://br.groups.yahoo.com/group/zope-pt/
Para sair deste grupo, envie um e-mail para:[EMAIL PROTECTED]
O uso que você faz do Yahoo! Grupos está sujeito aos Termos do Serviço do Yahoo!.
__,_._,___