Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utilizando o brasil.gov.vcge 2.0.0 causa erro na busca #222

Closed
idgserpro opened this issue Sep 11, 2015 · 4 comments
Closed

Utilizando o brasil.gov.vcge 2.0.0 causa erro na busca #222

idgserpro opened this issue Sep 11, 2015 · 4 comments
Labels

Comments

@idgserpro
Copy link
Member

Ao utilizar o brasil.gov.vcge 2.0.0 ocorre um erro ao buscar um conteúdo:

2015-09-11 11:17:24 ERROR Zope.SiteErrorLog 1441981044.930.415152013588 http://localhost:8080/Plone2/@@busca
Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module Products.Five.browser.metaconfigure, line 479, in __call__
  Module Products.Five.browser.pagetemplatefile, line 125, in __call__
  Module Products.Five.browser.pagetemplatefile, line 59, in __call__
  Module zope.pagetemplate.pagetemplate, line 132, in pt_render
  Module five.pt.engine, line 93, in __call__
  Module z3c.pt.pagetemplate, line 163, in render
  Module chameleon.zpt.template, line 258, in render
  Module chameleon.template, line 188, in render
  Module chameleon.template, line 170, in render
  Module dc75bf7c3ae43532a782b192e7f1f7d8.py, line 3379, in render
  Module b18c4762171764a55ac44c155d9c1fb9.py, line 1392, in render_master
  Module b18c4762171764a55ac44c155d9c1fb9.py, line 612, in render_content
  Module dc75bf7c3ae43532a782b192e7f1f7d8.py, line 3312, in __fill_main
  Module dc75bf7c3ae43532a782b192e7f1f7d8.py, line 1264, in render_search_results
  Module brasil.gov.portal.browser.busca.busca, line 29, in skos
KeyError: u'http://vocab.e.gov.br/2011/03/vcge#informacoes-sobre-pais'

 - Expression: "python:view.skos(item)"
 - Filename:   ... /src/brasil/gov/portal/browser/busca/templates/search.pt
 - Location:   (line 354: col 69)
 - Source:     ... al:define="categories python:view.skos(item)"
                                         ^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  repeat: {...} (0)
               template: <ViewPageTemplateFile - at 0xaffde4acL>
               views: <ViewMapper - at 0xaffdeb4cL>
               modules: <instance - at 0xb630a9ccL>
               args: <tuple - at 0xb751902cL>
               here: <ImplicitAcquisitionWrapper Plone2 at 0xafe0dfccL>
               user: <ImplicitAcquisitionWrapper - at 0xafdc575cL>
               nothing: <NoneType - at 0x81ad6b4>
               container: <ImplicitAcquisitionWrapper Plone2 at 0xafe0dfccL>
               request: <instance - at 0xb09a134cL>
               wrapped_repeat: <SafeMapping - at 0xafe8461cL>
               traverse_subpath: <list - at 0xb0e1824cL>
               default: <object - at 0xb753f830L>
               loop: {...} (5)
               context: <ImplicitAcquisitionWrapper Plone2 at 0xafe0dfccL>
               view: <SimpleViewClass from /home/user/sites/portal.buildout/src/brasil.gov.portal/src/brasil/gov/portal/browser/busca/templates/search.pt busca at 0xaffdecacL>
               translate: <function translate at 0xb03545dcL>
               root: <ImplicitAcquisitionWrapper Zope at 0xaff3f39cL>
               options: {...} (0)
               target_language: <NoneType - at 0x81ad6b4>

Relacionando com #220?

@idgserpro idgserpro added the bug label Sep 11, 2015
@hvelarde
Copy link
Member

@idgserpro não tenho certeza; a versão 1.x funciona sem problemas?

@idgserpro
Copy link
Member Author

@hvelarde sim. A versão 1.x funciona corretamente.

@caduvieira
Copy link
Contributor

KeyError: u'http://vocab.e.gov.br/2011/03/vcge#informacoes-sobre-pais'

É um item do VCGE 1.X sendo pesquisado que não existe no VCGE 2.X

@hvelarde
Copy link
Member

consertado no plonegovbr/brasil.gov.vcge#56.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants