I have created my own content types based on substanced folder type. The are called book, poem and person. They are all created using the content decorator.
I have created separate python packages for each content type. The init file of each package has an includeme function with one line -config.scan.
I then have a pyramid application which requires some or all of these packages and 'scans' all of them to include the required content types.
This all works fine.
The next step is that these are 'base content types' (in the same way as Folder and File are for substanced). I now want to create a new pyramid application which includes other content types based on the base content types. For example my new application should include packages for new_book and new_poem where new_book and new_poem are content types which inherit from book and poem.
I set all this up and had a pyramid application which required all the base and the new packages but when I ran the application I couldn't 'see' any of the new content types from introspectable.get('content_type'). The only way I could 'see' the content type in the root was to give the new content type decorator an 'add_view' meta keyword. Do I have to have an add_view keyword?
In most cases I will be able to use the base content types so won't need any changes to the content type BUT I would like to have new_book and new_poem even if all they do is pass everything on to the base class. In some cases I will need to add new properties or change the validation on the schema.
Am I going about this the wrong way?
I did look at
Many thanks