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

Plone app contenttypes 1 1 1 #358

Merged
merged 11 commits into from
Jul 7, 2017
Merged

Plone app contenttypes 1 1 1 #358

merged 11 commits into from
Jul 7, 2017

Conversation

idgserpro
Copy link
Member

Os erros são relativos à mudança de nomes das templates.

Como conversado, iremos lançar uma versão 1.1.6b1 até corrigir esses erros. Fica a seu critério se irá usar só a branch ou se efetuará um merge.

Evita o erro

plone.app.contenttypes-1.1.1-py2.7.egg/plone/app/contenttypes/migration/dxmigration.py", line 74, in migrate_schema_fields
    self.new.attendees = tuple(self.old.attendees.splitlines())
AttributeError: 'NoneType' object has no attribute 'splitlines'

ao rodar o upgradeStep. No caso, isso só é util se o usuário voltar a
rodar esse upgradeStep, pois para usuários que criam sites novos a
partir desse commit não terão esse problema.
Queremos evitar de pinar numa branch de portal.buildout para que no
futuro, caso seja necessário remontar esse ambiente com esse commit, não
dê erro na branch que terá sido excluída.
Ao atualizar para plone.app.contenttypes 1.1.1, se você tiver um evento
criado pelo brasil.gov.portal sem attendees ou ter eventos criados pela
interface sem preencher o campo atteendes, dá erro na migração. Por isso
precisamos do patch.
Com a atualização para o plone.app.contenttypes, houve mudança no nome
das views e foi necessária a sua adaptação, tanto nas templates quanto
na lógica dos overrides.zcml.

https://github.com/plone/plone.app.contenttypes/tree/1.1.1#user-content-differences-to-productsatcontenttypes

folder_listing_view (Folders) and collection_view (Collections) -> listing_view (Folders and Collections)
folder_summary_view (Folders) and summary_view (Collections) -> summary_view (Folders and Collections)
folder_tabular_view (Folders) and tabular_view (Collections) -> tabular_view (Folders and Collections)
folder_full_view (Folders) and all_content (Collections) -> full_view (Folders and Collections)
atct_album_view (Folders) and thumbnail_view (Collections) -> album_view (Folders and Collections)
Coloca a url da branch para poder passar no travis.
@idgserpro idgserpro requested a review from hvelarde July 7, 2017 19:23
idgserpro and others added 2 commits July 7, 2017 16:24
test_collection_listing_view falhem.

test_collection_listing_view e test_collection_summary_view estão
falhando após plone.app.contenttypes >= 1.1.1

Ver: #359
@idgserpro idgserpro force-pushed the plone_app_contenttypes_1_1_1 branch from b167155 to 98e8050 Compare July 7, 2017 20:57
@idgserpro
Copy link
Member Author

@hvelarde pulei os testes que estavam falhando:

98e8050

@hvelarde
Copy link
Member

hvelarde commented Jul 7, 2017

por que continua em vermelho?

Copy link
Member

@hvelarde hvelarde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vou mesclar e gerar o release pois sei que estão esperando por ele, mas o problema que está acontecendo com os testes tem que ser consertado em breve.

@hvelarde hvelarde merged commit 9cb7649 into master Jul 7, 2017
@hvelarde hvelarde deleted the plone_app_contenttypes_1_1_1 branch July 7, 2017 21:43
@idgserpro
Copy link
Member Author

@hvelarde obrigado 🍺 !

@hvelarde
Copy link
Member

hvelarde commented Jul 7, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants