Giter Club home page Giter Club logo

Comments (3)

ericof avatar ericof commented on August 16, 2024

This also affects Image content type

from plone.app.contenttypes.

pbauer avatar pbauer commented on August 16, 2024

By default the types image and file have the bahavior 'plone.app.dexterity.behaviors.filename.INameFromFileName' that already takes care of this issue. Can you make sure that the subscriber is only called if said behavior is deactivated allthough I don't know why someone whould want to deactivate it.

Why do we need a empty unicode-string as a descriptions?

from plone.app.contenttypes.

ericof avatar ericof commented on August 16, 2024

@pbauer Thanks for reminding me of this behavior. I will see why it is not being applied properly for File and Image,

About the description, with the #53 fix we found a different issue: Title and description fields for Image and File are not from the basic metadata behavior but defined on the content type schema and when they are left empty instead of returning an empty unicode-string (the default behavior using basic metadata) we receive a None value. This breaks the SearchableText indexer.

I've tried to add <missing_value></missing_value> to the schema with no luck. It still returns None instead of an empty unicode.

from plone.app.contenttypes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.