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

contentbody tile: AttributeError: getText with DX type from p.a.contenttypes #323

Closed
agitator opened this issue Oct 18, 2013 · 2 comments
Closed
Assignees
Labels
Milestone

Comments

@agitator
Copy link
Member

since the document from p.a.contenttype doesn't have an accessor getText an attribute error occures and destroys the whole layout.

proposed solution: check if getText is available, alternatively check for text as well and fallback to None.

objections?

is there any example how to test something like this?

@hvelarde
Copy link
Member

a workaround could be change the tile template to something like this:

  <div tal:condition="body" class="contentbody tile-content">
    <div class="content" tal:content="structure body|nothing">Body</div>
    <div class="visualClear"><!-- --></div>
  </div>

@hvelarde
Copy link
Member

awesome! thanks! 🍺

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