Skip to content

Commit

Permalink
Remove dependency on plone.directives.form
Browse files Browse the repository at this point in the history
  • Loading branch information
hvelarde committed Aug 16, 2018
1 parent 6a4d681 commit 244bf93
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Changelog
2.0a6 (unreleased)
^^^^^^^^^^^^^^^^^^

- Remove dependência no ``plone.directives.form`` e últimos traços do Grok.
[hvelarde]

- Adiciona opção para permitir escolher entre headers diferentes.
[hvelarde, rodfersou]

Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
'plone.app.theming',
'plone.contentrules',
'plone.dexterity',
'plone.directives.form',
'plone.indexer',
'plone.memoize',
'plone.namedfile',
Expand Down
5 changes: 2 additions & 3 deletions src/brasil/gov/portal/content/audio_file.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
from brasil.gov.portal import _
from plone.dexterity.content import Item
from plone.directives import form
from plone.indexer.decorator import indexer
from plone.namedfile.field import NamedBlobFile
from plone.rfc822.interfaces import IPrimaryFieldInfo
Expand Down Expand Up @@ -37,7 +36,7 @@ def validate_ogg(value):
return validate_mimetype(value, OGGTYPES)


class IMPEGAudioFile(form.Schema):
class IMPEGAudioFile(model.Schema):
""" Representa um Arquivo de Audio MPEG"""

model.primary('file')
Expand All @@ -47,7 +46,7 @@ class IMPEGAudioFile(form.Schema):
constraint=validate_mpeg)


class IOGGAudioFile(form.Schema):
class IOGGAudioFile(model.Schema):
""" Representa um Arquivo de Audio OGG"""

model.primary('file')
Expand Down

0 comments on commit 244bf93

Please sign in to comment.