-
-
Save wengole/a24a679f90c3d2370a64 to your computer and use it in GitHub Desktop.
Revisions
-
wengole revised this gist
Jun 9, 2015 . 1 changed file with 17 additions and 24 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,29 +1,22 @@ # -*- coding: utf-8 -*- def get(obj): """Get the preview images for the given object If there are currently no previews an empty list will be returned :param obj: The Plone object to get previews for :type obj: A Plone content object :return: The preview images :rtype: list """ return [] def create(obj, request): """Generate the preview images for the given content object :param obj: The Plone object to get previews for :type obj: A Plone content object :param request: The Plone request object :type request: HTTPRequest """ pass -
simonedeponti revised this gist
Jun 9, 2015 . 1 changed file with 24 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,29 @@ def has_pdf(obj): pass def has_preview(obj): pass def has_thumb(obj): pass def get_pdf(obj): pass def get_preview(obj): pass def get_thumb(obj): pass def generate_pdf(obj, request): pass def generate_preview(obj, request): pass def generate_thumb(obj, request): pass def generate_all(obj, request): pass -
simonedeponti revised this gist
Jun 9, 2015 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ def object_has(obj, type=None): pass def object_get(obj, type=None): pass def object_generate(obj, request, type=None): pass -
simonedeponti revised this gist
Jun 9, 2015 . 1 changed file with 8 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1,8 @@ def extract_and_add(file_upload, obj, workspace=None, token=None): """Extracts temporary attachments from storage and attaches them into `obj` Extract file data `from file_upload`, create file/image objects and add them as attachments to ``obj``. If workspace and token are given, reuse previously uploaded temporary attachments if they exist. """ -
simonedeponti created this gist
Jun 9, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ # Foo