Skip to content

mr.bob truncates content/__init__.py #90

@NicolasGoeddel

Description

@NicolasGoeddel

Hi,

we are using mr.bob in version 0.1.2 with Python 3.6 and Plone 5.2.1. Everytime we add a new content type like you can see in the following block the __init__.py file inside my.app/src/my/app/content/ gets truncated.

$ mrbob bobtemplates.plone:content_type
Welcome to mr.bob interactive mode. Before we generate directory structure, some questions need to be answered.
Answer with a question mark to display help.
Values in square brackets at the end of the questions show the default value if there is no answer.
--> Please commit your changes, before using a sub-template! Continue anyway? [n/y] [n]: y
--> Content type name (Allowed: _ a-z A-Z and whitespace) [Todo Task]: my_keyword
--> Content type description: A widget for keywords.
--> Use XML Model [y]: n
--> Dexterity base class (Container/Item) [Container]: 
--> Should the content type globally addable? [y]: n
--> Parent container portal_type name: my_frontpage
--> Should we filter content types to be added to this container? [n]: n
--> Create a content type class [y]: y
--> Activate default behaviors? [y]: y
>>> reading Plone version from bobtemplate.cfg
profile-plone.app.dexterity:default already in metadata.xml, skip adding!
Generated file structure at /home/user/plone/zeocluster/src/my.addon

Also the addon creates a XML schema inside the content folder even if the question about using a XML model was answered with no.

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