Repository navigation
Conversation
Os Tech Events de 2018 e 2019, importados com o plone.exportimport, selecionam os temas pythoncerrado-2018 e pythoncerrado-2019. O token é validado contra o vocabulário sc.voltolighttheme.themes, então os temas precisam existir no registro antes do import. Os dois temas entram no themes.py e no XML do registro, para sites novos. O upgrade step 20261021001 os cria (ou atualiza) em sites existentes, sem reimportar o registro, o que restauraria valores alterados no site. Closes #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adiciona os temas
pythoncerrado-2018epythoncerrado-2019, usados pelos Tech Events dessas edições, que serão importados com oplone.exportimport.O
themedo Tech Event é validado contra o vocabuláriosc.voltolighttheme.themes. Por isso os dois temas precisam estar no registro antes do import: sem eles, o importer recusa o campo.O que muda
themes.pyesc.voltolighttheme.themes.xmlpassam a ter os dois temas, com cores para os modos claro e escuro e fonte Outfit. As cores têm contraste AA nos dois modos. Os testes de tema já comparam o XML com oTHEMES.20261021001: cria os dois temas em sites existentes, ou os atualiza se alguém já os tiver criado à mão. Ele não reimporta o registro, porque isso restauraria valores alterados no site.Depois do merge
portal_setup→ Upgrades./2018e/2019.Verificação
make test(backend): 35 testes passando, 9 deles novos.Closes #7