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

Template selector in the Document Designer does not show existing templates for the current profile #448

Open
pgathogo opened this issue Mar 14, 2021 · 3 comments
Assignees
Labels

Comments

@pgathogo
Copy link
Contributor

In the document designer, the Template Selector dialog does not show existing templates for the current profile. When you open the selector it is empty.

@gkahiu
Copy link
Contributor

gkahiu commented Mar 17, 2021

Hi Paul,

I cannot reproduce, I can see the template that I saved for the current profile. See below:

image

Perhaps it could also be a 'relatively' old issue addressed in the latest commits, you can try pull the latest master and confirm.

@pgathogo
Copy link
Contributor Author

@gkahiu new templates are showing, however, for old templates for the same profile are not showing.

@gkahiu
Copy link
Contributor

gkahiu commented Mar 22, 2021

Yes, now I do confirm. There is now a huge shift in the internal mechanics of how custom attributes (e.g. data source, referenced table name etc.) are stored in a layout hence the reason as to why old (composer-based) templates are not being loaded.

@nyalldawson, the current logic is not able able to read the data source defined in older composer-based templates (see an example here). I see there is a QgsCompositionConverter class for converting 2.x composition to 3.x layouts but its not available in Python bindings. Also am not sure how to do the conversions for STDM composer items (e.g. line, labels, attribute tables etc.) to the new custom layout items. Perhaps we might need something like an STDMTemplateConverter for updating STDM composer-based templates, please assist.

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