Re: LocationError on content imported from Wordpress
Simone Orsi <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.user |
|---|---|
| Message-ID | <CANJtmqCZQ_zMnM2gWSEWPir7j-s5ftoCsNDme4QbtXe37iWOVA@mail.gmail.com> |
Hi David, Marcos is right. You should set the value as `RichTextValue` as reporte here http://docs.plone.org/external/plone.app.dexterity/docs/advanced/rich-text-markup-transformations.html#the-richtextvalue Cheers, S. On Fri, Aug 29, 2014 at 2:51 PM, Marcos Romero < marcos.romero-MNlxzY3ygasU7WH4Fnm6qAC/[email protected]> wrote: > David > > Don't know if I understood your question. > Here you can find RichText documentation: > > http://docs.plone.org/external/plone.app.dexterity/docs/advanced/rich-text-markup-transformations.html > > I think the source of the problem is in the import process: it sounds like > the text field wasn't imported as RichText but just plain text. > > Regards > > -- > Marcos F. Romero > Responsable de Desarrollo > Inter-Cultura > > marcos.romero-MNlxzY3ygasU7WH4Fnm6qAC/[email protected] > www.inter-cultura.com > +54 11 4542-8299 > > > On Thu, Aug 28, 2014 at 6:09 PM, David Siedband <[email protected]> > wrote: > >> Thanks Marcos, >> >> I’m trying to figure out the syntax to pass the layout property and what >> values are accepted. >> >> Does it expect a tuple? Parameterized values? What output format do I >> pass for HTML content? >> >> Is this documented somewhere? >> >> Thanks, >> -- >> David Siedband >> http://zentraal.com >> >> >> >> On Aug 28, 2014, at 8:04 AM, Marcos Romero < >> marcos.romero-MNlxzY3ygasU7WH4Fnm6qAC/[email protected]> wrote: >> >> I'm just guessing but I think that your import process is giving you a >> "text" field as plain text instead of RichText >> >> The line context/text/output expects a "text" attribute (the field) to >> have an "output" attribute. >> >> Regards >> >> -- >> Marcos F. Romero >> Responsable de Desarrollo >> Inter-Cultura >> >> marcos.romero-MNlxzY3ygasU7WH4Fnm6qAC/[email protected] >> www.inter-cultura.com >> +54 11 4542-8299 >> >> >> On Thu, Aug 28, 2014 at 5:00 AM, David Siedband <[email protected] >> > wrote: >> >>> Hi, I’m doing another Wordpress to Plone migration ;) >>> >>> This is the first one where I’m using the Dexterity News Item >>> content-type for the imported posts. >>> >>> I scripted over the posts from MySQL, and the import runs ok, but when I >>> try to view any imported blog item, I get a “LocationError" >>> >>> Here’s what it looks like. Where the zzzzz’s appear, I’ve removed the >>> client’s HTML, but as far as I can tell, it’s just regular HTML. >>> >>> Any ideas what’s happening here? >>> >>> 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 zope.pagetemplate.pagetemplate, line 240, in __call__ >>> Module zope.tal.talinterpreter, line 271, in __call__ >>> Module zope.tal.talinterpreter, line 343, in interpret >>> Module zope.tal.talinterpreter, line 888, in do_useMacro >>> Module zope.tal.talinterpreter, line 343, in interpret >>> Module zope.tal.talinterpreter, line 533, in do_optTag_tal >>> Module zope.tal.talinterpreter, line 518, in do_optTag >>> Module zope.tal.talinterpreter, line 513, in no_tag >>> Module zope.tal.talinterpreter, line 343, in interpret >>> Module zope.tal.talinterpreter, line 954, in do_defineSlot >>> Module zope.tal.talinterpreter, line 343, in interpret >>> Module zope.tal.talinterpreter, line 533, in do_optTag_tal >>> Module zope.tal.talinterpreter, line 518, in do_optTag >>> Module zope.tal.talinterpreter, line 513, in no_tag >>> Module zope.tal.talinterpreter, line 343, in interpret >>> Module zope.tal.talinterpreter, line 858, in do_defineMacro >>> Module zope.tal.talinterpreter, line 343, in interpret >>> Module zope.tal.talinterpreter, line 954, in do_defineSlot >>> Module zope.tal.talinterpreter, line 343, in interpret >>> Module zope.tal.talinterpreter, line 533, in do_optTag_tal >>> Module zope.tal.talinterpreter, line 518, in do_optTag >>> Module zope.tal.talinterpreter, line 513, in no_tag >>> Module zope.tal.talinterpreter, line 343, in interpret >>> Module zope.tal.talinterpreter, line 954, in do_defineSlot >>> Module zope.tal.talinterpreter, line 343, in interpret >>> Module zope.tal.talinterpreter, line 533, in do_optTag_tal >>> Module zope.tal.talinterpreter, line 518, in do_optTag >>> Module zope.tal.talinterpreter, line 513, in no_tag >>> Module zope.tal.talinterpreter, line 343, in interpret >>> Module zope.tal.talinterpreter, line 946, in do_defineSlot >>> Module zope.tal.talinterpreter, line 343, in interpret >>> Module zope.tal.talinterpreter, line 533, in do_optTag_tal >>> Module zope.tal.talinterpreter, line 518, in do_optTag >>> Module zope.tal.talinterpreter, line 513, in no_tag >>> Module zope.tal.talinterpreter, line 343, in interpret >>> Module zope.tal.talinterpreter, line 858, in do_defineMacro >>> Module zope.tal.talinterpreter, line 343, in interpret >>> Module zope.tal.talinterpreter, line 533, in do_optTag_tal >>> Module zope.tal.talinterpreter, line 518, in do_optTag >>> Module zope.tal.talinterpreter, line 513, in no_tag >>> Module zope.tal.talinterpreter, line 343, in interpret >>> Module zope.tal.talinterpreter, line 852, in do_condition >>> Module zope.tal.talinterpreter, line 343, in interpret >>> Module zope.tal.talinterpreter, line 742, in do_insertStructure_tal >>> Module Products.PageTemplates.Expressions, line 218, in >>> evaluateStructure >>> Module zope.tales.tales, line 696, in evaluate >>> - URL: >>> /home/zope/buildout/eggs/plone.app.contenttypes-1.1b2-py2.7.egg/plone/app/contenttypes/browser/templates/ >>> newsitem.pt >>> - Line 41, Column 8 >>> - Expression: <PathExpr standard:u'context/text/output'> >>> - Names: >>> {'args': (), >>> 'container': <NewsItem at /Plone/blog/blog-post-one>, >>> 'context': <NewsItem at /Plone/blog/blog-post-one>, >>> 'default': <object object at 0x7f21b650b4f0>, >>> 'here': <NewsItem at /Plone/blog/blog-post-one>, >>> 'loop': {}, >>> 'nothing': None, >>> 'options': {}, >>> 'repeat': <Products.PageTemplates.Expressions.SafeMapping object >>> at 0x7f2198c242b8>, >>> 'request': <HTTPRequest, URL= >>> https://chimichurri.zentraal.com/blog/blog-item/newsitem_view>, >>> 'root': <Application at >, >>> 'template': >>> <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at >>> 0x7f2199741f10>, >>> 'traverse_subpath': [], >>> 'user': <PropertiedUser 'admin'>, >>> 'view': <Products.Five.metaclass.SimpleViewClass from >>> /home/zope/buildout/eggs/plone.app.contenttypes-1.1b2-py2.7.egg/plone/app/contenttypes/browser/templates/ >>> newsitem.pt object at 0x7f21a80849d0>, >>> 'views': <Products.Five.browser.pagetemplatefile.ViewMapper >>> object at 0x7f2198c33a10>} >>> Module zope.tales.expressions, line 217, in __call__ >>> Module Products.PageTemplates.Expressions, line 147, in _eval >>> Module zope.tales.expressions, line 124, in _eval >>> Module Products.PageTemplates.Expressions, line 97, in >>> trustedBoboAwareZopeTraverse >>> Module zope.traversing.adapters, line 136, in traversePathElement >>> - __traceback_info__: ('zzzzz', 'output') >>> Module zope.traversing.adapters, line 50, in traverse >>> - __traceback_info__: ('zzzzz', 'output', []) >>> LocationError: ('zzzzz', 'output') >>> >>> -- >>> David Siedband >>> http://zentraal.com >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Slashdot TV. >>> Video for Nerds. Stuff that matters. >>> http://tv.slashdot.org/ >>> _______________________________________________ >>> Plone-Users mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/plone-users >>> >> >> >> >> >> > > > ------------------------------------------------------------------------------ > Slashdot TV. > Video for Nerds. Stuff that matters. > http://tv.slashdot.org/ > _______________________________________________ > Plone-Users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/plone-users > > ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ Plone-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plone-users