-
Notifications
You must be signed in to change notification settings - Fork 24
Adiciona modelo VisualResourceBase e testes #937
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
Adiciona modelo VisualResourceBase e testes #937
Conversation
@@ -0,0 +1,46 @@ | |||
from packtools.sps.models.accessibility_data import AccessibilityData |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Rossi-Luciano AccessibilityData já está no branch master?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robertatakenaka, tem um PR específico para AccessibilityData
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Rossi-Luciano então este está aprovado, mas você faça o merge quando o outro estiver aprovado
|
||
|
||
class XmlVisualResource: | ||
RESOURCE_TYPES = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Rossi-Luciano como se instancia? como se usa?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robertatakenaka modifiquei para RESOURCE_TYPES
ser um parâmetro.
for node in self.article_and_subarticles: | ||
full_text = Fulltext(node) | ||
|
||
for resource_type, resource_class in self.RESOURCE_TYPES: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Rossi-Luciano entendi o uso, mas acho que não tem demanda para isso. Está sendo misturado no retorno inline-media e media. Acho mais conveniente haver um método para cada uma, caso haja a demanda de obter ambas, que cada método seja chamado
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robertatakenaka modifiquei para RESOURCE_TYPES
ser um parâmetro.
O que esse PR faz?
Adiciona modelo VisualResourceBase e testes.
Onde a revisão poderia começar?
Por commit.
Como este poderia ser testado manualmente?
NA
Algum cenário de contexto que queira dar?
NA
Screenshots
NA
Quais são tickets relevantes?
Substitui PR #915
Referências
NA