You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resuming, I don't think that it's the right place to do what is trying to do, because the code is really fragile and prone to errors, but maybe I'm wrong.
currently I found the following issues with a real site:
items with a None value on relatedItems element fail with AttributeError on line 92 (e.g. u'relatedItems': [u'/clientes/brasil/brasil/educacao/2014/01/dilma-a-educacao-e-o-eixo-do-brasil-que-queremos', None, u'/clientes/brasil/brasil/educacao/2014/01/governo-quer-garantir-acesso-de-todos-a-escolas-de-qualidade'])
items with an illegal value on remoteUrl element fail with UnicodeEncodeError on line 102 (e.g. u'remoteUrl': u'Iniciativa dar\u00e1 cr\u00e9dito para fam\u00edlias de baixa renda reformarem im\u00f3vei'")
The text was updated successfully, but these errors were encountered:
@bsuttor can you elaborate on the need of that part of the code? can we move it to a separate method to be able to make it easier to skip in case of errors?
I'm currently wrapping the whole block on a try/except, but seems to be not very elegant.
I'm trying to migrate a site that has around 150.000 content objects and I don't understand the purpose of this part of the
RedirectorSection
code:https://github.com/collective/plone.app.transmogrifier/blob/master/src/plone/app/transmogrifier/redirector.py#L61-L120
resuming, I don't think that it's the right place to do what is trying to do, because the code is really fragile and prone to errors, but maybe I'm wrong.
currently I found the following issues with a real site:
None
value onrelatedItems
element fail withAttributeError
on line 92 (e.g.u'relatedItems': [u'/clientes/brasil/brasil/educacao/2014/01/dilma-a-educacao-e-o-eixo-do-brasil-que-queremos', None, u'/clientes/brasil/brasil/educacao/2014/01/governo-quer-garantir-acesso-de-todos-a-escolas-de-qualidade']
)remoteUrl
element fail withUnicodeEncodeError
on line 102 (e.g.u'remoteUrl': u'Iniciativa dar\u00e1 cr\u00e9dito para fam\u00edlias de baixa renda reformarem im\u00f3vei'"
)The text was updated successfully, but these errors were encountered: