Skip to content

Commit

Permalink
Fix content type from Page to Document
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanferri committed Aug 7, 2015
1 parent f012550 commit e376ab0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 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
1.0a1 (unreleased)
------------------

- Fix content type from Page to Document.
[jeanferri]

- Prepare for release on pypi.
[jeanferri]

Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Contributors
============

* Augusto Herrmann
* Cintia Cinquini
* Érico Andrei
* Jean Ferri
Expand Down
6 changes: 3 additions & 3 deletions src/collective/opendata/plugins/content/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from collective.opendata.plugins import DataPlugin
from plone import api
from zope.interface import implements
import rdflib
from rdflib.namespace import RDF, RDFS
import rdflib

DC_MAPPING = {
'contributor': 'listContributors',
Expand Down Expand Up @@ -34,7 +34,7 @@ class Content(DataPlugin):
title = _(u'Content Metadata')
description = _(u'''Content information''')

portal_types = [pmf(u'File'), pmf(u'Page'), pmf(u'Image'), pmf(u'Event'), pmf(u'News Item'), pmf(u'Folder')]
portal_types = [pmf(u'File'), pmf(u'Document'), pmf(u'Image'), pmf(u'Event'), pmf(u'News Item'), pmf(u'Folder')]

def __init__(self, *args, **kwargs):

Expand Down Expand Up @@ -122,7 +122,7 @@ def list(self, portal_type=None):
item['title'] = brain.Title
items.append(item)
return items

@property
def dc_properties(self):
g = rdflib.Graph()
Expand Down

0 comments on commit e376ab0

Please sign in to comment.