Skip to content

Commit

Permalink
Use single quotes.
Browse files Browse the repository at this point in the history
  • Loading branch information
tisto committed Mar 27, 2015
1 parent 7d0000c commit 091f27a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/plone/restapi/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
@adapter(IPloneSiteRoot)
def SerializeSiteRootToJson(context):
result = {
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
"@id": context.absolute_url(),
'@context': 'http://www.w3.org/ns/hydra/context.jsonld',
'@id': context.absolute_url(),
'@type': 'Collection',
'portal_type': 'SiteRoot'
}
Expand All @@ -45,8 +45,8 @@ def SerializeSiteRootToJson(context):
@adapter(IContentish)
def SerializeToJson(context):
result = {
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
"@id": context.absolute_url(),
'@context': 'http://www.w3.org/ns/hydra/context.jsonld',
'@id': context.absolute_url(),
}
if IFolderish.providedBy(context):
result['@type'] = 'Collection'
Expand Down Expand Up @@ -108,8 +108,8 @@ def SerializeToJson(context):
@adapter(IFile)
def SerializeFileToJson(context):
result = {
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
"@id": context.absolute_url(),
'@context': 'http://www.w3.org/ns/hydra/context.jsonld',
'@id': context.absolute_url(),
'@type': 'Resource',
'portal_type': 'File',
'title': context.title,
Expand All @@ -126,8 +126,8 @@ def SerializeImageToJson(context):
image_properties = ptool.imaging_properties
allowed_sizes = image_properties.getProperty('allowed_sizes')
result = {
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
"@id": context.absolute_url(),
'@context': 'http://www.w3.org/ns/hydra/context.jsonld',
'@id': context.absolute_url(),
'@type': 'Resource',
'portal_type': 'Image',
'title': context.title,
Expand Down

0 comments on commit 091f27a

Please sign in to comment.