Skip to content

map context fields #1

@espenmn

Description

@espenmn

Mapping context fields.

Could it be an idea to map context fields if 'mapping field does not exist'?

For example, if I map

title title

And if EasyForm title does not exist => title = context.title

Some kind of checking, for title this works:

    if "id" in mappings and mappings["id"]:
        title_or_id = mappings["id"]
    elif "title" in mappings and mappings["title"]:
        title_or_id = mappings["title"]
    elif context.title:
        #use title or some other field
        title = context.Title()
        mappings["title"] = title
        title_or_id = title

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions