From 6c41809185e322ce2d30e98234f71144f78f06c0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Fri, 19 Dec 2014 17:44:37 +0100 Subject: [PATCH 1/1] eggification --- Photo.py => Products/Photo/Photo.py | 0 TODO.txt => Products/Photo/TODO.txt | 0 .../Photo/TileSupport.py | 0 __init__.py => Products/Photo/__init__.py | 0 blobbases.py => Products/Photo/blobbases.py | 0 cache.py => Products/Photo/cache.py | 0 .../Photo/dependencies.txt | 0 {dtml => Products/Photo/dtml}/File_icon.gif | Bin {dtml => Products/Photo/dtml}/Image_icon.gif | Bin .../Photo/dtml}/addPhotoForm.dtml | 0 {dtml => Products/Photo/dtml}/fileEdit.dtml | 0 {dtml => Products/Photo/dtml}/imageAdd.dtml | 0 {dtml => Products/Photo/dtml}/imageEdit.dtml | 0 {dtml => Products/Photo/dtml}/imageView.dtml | 0 {dtml => Products/Photo/dtml}/photoEdit.dtml | 0 {dtml => Products/Photo/dtml}/photoView.dtml | 0 {dtml => Products/Photo/dtml}/photo_icon.gif | Bin {dtml => Products/Photo/dtml}/testMenu.dtml | 0 exif.py => Products/Photo/exif.py | 0 license.txt => Products/Photo/license.txt | 0 metadata.py => Products/Photo/metadata.py | 0 .../Photo/migration}/__init__.py | 0 .../Photo/migration}/from2to3.py | 0 .../Photo/migration}/toblob.py | 0 ppm.py => Products/Photo/ppm.py | 0 readme.txt => Products/Photo/readme.txt | 0 .../Photo/standards}/__init__.py | 0 .../Photo/standards}/bridges/__init__.py | 0 .../Photo/standards}/bridges/_bridges.py | 0 .../Photo/standards}/bridges/xmp_exif.csv | 0 .../standards}/exif/0thIFDExifPrivateTags.csv | 0 .../standards}/exif/0thIFDGPSInfoTags.csv | 0 .../exif/0thIFDInteroperabilityTag.csv | Bin .../Photo/standards}/exif/0thIFDTIFFTags.csv | 0 .../Photo/standards}/exif/1stIFDTIFFTag.csv | 0 .../Photo/standards}/exif/__init__.py | 0 .../Photo/standards}/exif/_exif_tags.py | 0 .../Photo/standards}/exif/gpsA.csv | 0 .../Photo/standards}/exif/hand_added.csv | 0 .../Photo/standards}/exif/ifdA.csv | 0 .../Photo/standards}/exif/ifdB.csv | 0 .../Photo/standards}/exif/ifdC.csv | 0 .../Photo/standards}/exif/ifdD.csv | 0 .../Photo/standards}/exif/ifdE.csv | 0 .../Photo/standards}/exif/ifdF.csv | 0 .../Photo/standards}/exif/ifdG.csv | 0 .../Photo/standards}/exif/ifdH.csv | 0 .../Photo/standards}/exif/tiffA.csv | 0 .../Photo/standards}/exif/tiffB.csv | 0 .../Photo/standards}/exif/tiffC.csv | 0 .../Photo/standards}/exif/tiffD.csv | 0 .../Photo/standards}/xmp/__init__.py | 0 .../Photo/standards}/xmp/_namespaces.py | 0 .../Photo/standards}/xmp/accessors.csv | 0 version.txt => Products/Photo/version.txt | 0 xmp.py => Products/Photo/xmp.py | 0 xmp_jpeg.py => Products/Photo/xmp_jpeg.py | 0 xmputils.py => Products/Photo/xmputils.py | 0 .../Photo/xslt}/xmp_merge_descriptions.xsl | 0 Products/__init__.py | 5 +++++ setup.py | 17 +++++++++++++++++ 61 files changed, 22 insertions(+) rename Photo.py => Products/Photo/Photo.py (100%) rename TODO.txt => Products/Photo/TODO.txt (100%) rename TileSupport.py => Products/Photo/TileSupport.py (100%) rename __init__.py => Products/Photo/__init__.py (100%) rename blobbases.py => Products/Photo/blobbases.py (100%) rename cache.py => Products/Photo/cache.py (100%) rename dependencies.txt => Products/Photo/dependencies.txt (100%) rename {dtml => Products/Photo/dtml}/File_icon.gif (100%) rename {dtml => Products/Photo/dtml}/Image_icon.gif (100%) rename {dtml => Products/Photo/dtml}/addPhotoForm.dtml (100%) rename {dtml => Products/Photo/dtml}/fileEdit.dtml (100%) rename {dtml => Products/Photo/dtml}/imageAdd.dtml (100%) rename {dtml => Products/Photo/dtml}/imageEdit.dtml (100%) rename {dtml => Products/Photo/dtml}/imageView.dtml (100%) rename {dtml => Products/Photo/dtml}/photoEdit.dtml (100%) rename {dtml => Products/Photo/dtml}/photoView.dtml (100%) rename {dtml => Products/Photo/dtml}/photo_icon.gif (100%) rename {dtml => Products/Photo/dtml}/testMenu.dtml (100%) rename exif.py => Products/Photo/exif.py (100%) rename license.txt => Products/Photo/license.txt (100%) rename metadata.py => Products/Photo/metadata.py (100%) rename {migration => Products/Photo/migration}/__init__.py (100%) rename {migration => Products/Photo/migration}/from2to3.py (100%) rename {migration => Products/Photo/migration}/toblob.py (100%) rename ppm.py => Products/Photo/ppm.py (100%) rename readme.txt => Products/Photo/readme.txt (100%) rename {standards => Products/Photo/standards}/__init__.py (100%) rename {standards => Products/Photo/standards}/bridges/__init__.py (100%) rename {standards => Products/Photo/standards}/bridges/_bridges.py (100%) rename {standards => Products/Photo/standards}/bridges/xmp_exif.csv (100%) rename {standards => Products/Photo/standards}/exif/0thIFDExifPrivateTags.csv (100%) rename {standards => Products/Photo/standards}/exif/0thIFDGPSInfoTags.csv (100%) rename {standards => Products/Photo/standards}/exif/0thIFDInteroperabilityTag.csv (100%) rename {standards => Products/Photo/standards}/exif/0thIFDTIFFTags.csv (100%) rename {standards => Products/Photo/standards}/exif/1stIFDTIFFTag.csv (100%) rename {standards => Products/Photo/standards}/exif/__init__.py (100%) rename {standards => Products/Photo/standards}/exif/_exif_tags.py (100%) rename {standards => Products/Photo/standards}/exif/gpsA.csv (100%) rename {standards => Products/Photo/standards}/exif/hand_added.csv (100%) rename {standards => Products/Photo/standards}/exif/ifdA.csv (100%) rename {standards => Products/Photo/standards}/exif/ifdB.csv (100%) rename {standards => Products/Photo/standards}/exif/ifdC.csv (100%) rename {standards => Products/Photo/standards}/exif/ifdD.csv (100%) rename {standards => Products/Photo/standards}/exif/ifdE.csv (100%) rename {standards => Products/Photo/standards}/exif/ifdF.csv (100%) rename {standards => Products/Photo/standards}/exif/ifdG.csv (100%) rename {standards => Products/Photo/standards}/exif/ifdH.csv (100%) rename {standards => Products/Photo/standards}/exif/tiffA.csv (100%) rename {standards => Products/Photo/standards}/exif/tiffB.csv (100%) rename {standards => Products/Photo/standards}/exif/tiffC.csv (100%) rename {standards => Products/Photo/standards}/exif/tiffD.csv (100%) rename {standards => Products/Photo/standards}/xmp/__init__.py (100%) rename {standards => Products/Photo/standards}/xmp/_namespaces.py (100%) rename {standards => Products/Photo/standards}/xmp/accessors.csv (100%) rename version.txt => Products/Photo/version.txt (100%) rename xmp.py => Products/Photo/xmp.py (100%) rename xmp_jpeg.py => Products/Photo/xmp_jpeg.py (100%) rename xmputils.py => Products/Photo/xmputils.py (100%) rename {xslt => Products/Photo/xslt}/xmp_merge_descriptions.xsl (100%) create mode 100644 Products/__init__.py create mode 100644 setup.py diff --git a/Photo.py b/Products/Photo/Photo.py similarity index 100% rename from Photo.py rename to Products/Photo/Photo.py diff --git a/TODO.txt b/Products/Photo/TODO.txt similarity index 100% rename from TODO.txt rename to Products/Photo/TODO.txt diff --git a/TileSupport.py b/Products/Photo/TileSupport.py similarity index 100% rename from TileSupport.py rename to Products/Photo/TileSupport.py diff --git a/__init__.py b/Products/Photo/__init__.py similarity index 100% rename from __init__.py rename to Products/Photo/__init__.py diff --git a/blobbases.py b/Products/Photo/blobbases.py similarity index 100% rename from blobbases.py rename to Products/Photo/blobbases.py diff --git a/cache.py b/Products/Photo/cache.py similarity index 100% rename from cache.py rename to Products/Photo/cache.py diff --git a/dependencies.txt b/Products/Photo/dependencies.txt similarity index 100% rename from dependencies.txt rename to Products/Photo/dependencies.txt diff --git a/dtml/File_icon.gif b/Products/Photo/dtml/File_icon.gif similarity index 100% rename from dtml/File_icon.gif rename to Products/Photo/dtml/File_icon.gif diff --git a/dtml/Image_icon.gif b/Products/Photo/dtml/Image_icon.gif similarity index 100% rename from dtml/Image_icon.gif rename to Products/Photo/dtml/Image_icon.gif diff --git a/dtml/addPhotoForm.dtml b/Products/Photo/dtml/addPhotoForm.dtml similarity index 100% rename from dtml/addPhotoForm.dtml rename to Products/Photo/dtml/addPhotoForm.dtml diff --git a/dtml/fileEdit.dtml b/Products/Photo/dtml/fileEdit.dtml similarity index 100% rename from dtml/fileEdit.dtml rename to Products/Photo/dtml/fileEdit.dtml diff --git a/dtml/imageAdd.dtml b/Products/Photo/dtml/imageAdd.dtml similarity index 100% rename from dtml/imageAdd.dtml rename to Products/Photo/dtml/imageAdd.dtml diff --git a/dtml/imageEdit.dtml b/Products/Photo/dtml/imageEdit.dtml similarity index 100% rename from dtml/imageEdit.dtml rename to Products/Photo/dtml/imageEdit.dtml diff --git a/dtml/imageView.dtml b/Products/Photo/dtml/imageView.dtml similarity index 100% rename from dtml/imageView.dtml rename to Products/Photo/dtml/imageView.dtml diff --git a/dtml/photoEdit.dtml b/Products/Photo/dtml/photoEdit.dtml similarity index 100% rename from dtml/photoEdit.dtml rename to Products/Photo/dtml/photoEdit.dtml diff --git a/dtml/photoView.dtml b/Products/Photo/dtml/photoView.dtml similarity index 100% rename from dtml/photoView.dtml rename to Products/Photo/dtml/photoView.dtml diff --git a/dtml/photo_icon.gif b/Products/Photo/dtml/photo_icon.gif similarity index 100% rename from dtml/photo_icon.gif rename to Products/Photo/dtml/photo_icon.gif diff --git a/dtml/testMenu.dtml b/Products/Photo/dtml/testMenu.dtml similarity index 100% rename from dtml/testMenu.dtml rename to Products/Photo/dtml/testMenu.dtml diff --git a/exif.py b/Products/Photo/exif.py similarity index 100% rename from exif.py rename to Products/Photo/exif.py diff --git a/license.txt b/Products/Photo/license.txt similarity index 100% rename from license.txt rename to Products/Photo/license.txt diff --git a/metadata.py b/Products/Photo/metadata.py similarity index 100% rename from metadata.py rename to Products/Photo/metadata.py diff --git a/migration/__init__.py b/Products/Photo/migration/__init__.py similarity index 100% rename from migration/__init__.py rename to Products/Photo/migration/__init__.py diff --git a/migration/from2to3.py b/Products/Photo/migration/from2to3.py similarity index 100% rename from migration/from2to3.py rename to Products/Photo/migration/from2to3.py diff --git a/migration/toblob.py b/Products/Photo/migration/toblob.py similarity index 100% rename from migration/toblob.py rename to Products/Photo/migration/toblob.py diff --git a/ppm.py b/Products/Photo/ppm.py similarity index 100% rename from ppm.py rename to Products/Photo/ppm.py diff --git a/readme.txt b/Products/Photo/readme.txt similarity index 100% rename from readme.txt rename to Products/Photo/readme.txt diff --git a/standards/__init__.py b/Products/Photo/standards/__init__.py similarity index 100% rename from standards/__init__.py rename to Products/Photo/standards/__init__.py diff --git a/standards/bridges/__init__.py b/Products/Photo/standards/bridges/__init__.py similarity index 100% rename from standards/bridges/__init__.py rename to Products/Photo/standards/bridges/__init__.py diff --git a/standards/bridges/_bridges.py b/Products/Photo/standards/bridges/_bridges.py similarity index 100% rename from standards/bridges/_bridges.py rename to Products/Photo/standards/bridges/_bridges.py diff --git a/standards/bridges/xmp_exif.csv b/Products/Photo/standards/bridges/xmp_exif.csv similarity index 100% rename from standards/bridges/xmp_exif.csv rename to Products/Photo/standards/bridges/xmp_exif.csv diff --git a/standards/exif/0thIFDExifPrivateTags.csv b/Products/Photo/standards/exif/0thIFDExifPrivateTags.csv similarity index 100% rename from standards/exif/0thIFDExifPrivateTags.csv rename to Products/Photo/standards/exif/0thIFDExifPrivateTags.csv diff --git a/standards/exif/0thIFDGPSInfoTags.csv b/Products/Photo/standards/exif/0thIFDGPSInfoTags.csv similarity index 100% rename from standards/exif/0thIFDGPSInfoTags.csv rename to Products/Photo/standards/exif/0thIFDGPSInfoTags.csv diff --git a/standards/exif/0thIFDInteroperabilityTag.csv b/Products/Photo/standards/exif/0thIFDInteroperabilityTag.csv similarity index 100% rename from standards/exif/0thIFDInteroperabilityTag.csv rename to Products/Photo/standards/exif/0thIFDInteroperabilityTag.csv diff --git a/standards/exif/0thIFDTIFFTags.csv b/Products/Photo/standards/exif/0thIFDTIFFTags.csv similarity index 100% rename from standards/exif/0thIFDTIFFTags.csv rename to Products/Photo/standards/exif/0thIFDTIFFTags.csv diff --git a/standards/exif/1stIFDTIFFTag.csv b/Products/Photo/standards/exif/1stIFDTIFFTag.csv similarity index 100% rename from standards/exif/1stIFDTIFFTag.csv rename to Products/Photo/standards/exif/1stIFDTIFFTag.csv diff --git a/standards/exif/__init__.py b/Products/Photo/standards/exif/__init__.py similarity index 100% rename from standards/exif/__init__.py rename to Products/Photo/standards/exif/__init__.py diff --git a/standards/exif/_exif_tags.py b/Products/Photo/standards/exif/_exif_tags.py similarity index 100% rename from standards/exif/_exif_tags.py rename to Products/Photo/standards/exif/_exif_tags.py diff --git a/standards/exif/gpsA.csv b/Products/Photo/standards/exif/gpsA.csv similarity index 100% rename from standards/exif/gpsA.csv rename to Products/Photo/standards/exif/gpsA.csv diff --git a/standards/exif/hand_added.csv b/Products/Photo/standards/exif/hand_added.csv similarity index 100% rename from standards/exif/hand_added.csv rename to Products/Photo/standards/exif/hand_added.csv diff --git a/standards/exif/ifdA.csv b/Products/Photo/standards/exif/ifdA.csv similarity index 100% rename from standards/exif/ifdA.csv rename to Products/Photo/standards/exif/ifdA.csv diff --git a/standards/exif/ifdB.csv b/Products/Photo/standards/exif/ifdB.csv similarity index 100% rename from standards/exif/ifdB.csv rename to Products/Photo/standards/exif/ifdB.csv diff --git a/standards/exif/ifdC.csv b/Products/Photo/standards/exif/ifdC.csv similarity index 100% rename from standards/exif/ifdC.csv rename to Products/Photo/standards/exif/ifdC.csv diff --git a/standards/exif/ifdD.csv b/Products/Photo/standards/exif/ifdD.csv similarity index 100% rename from standards/exif/ifdD.csv rename to Products/Photo/standards/exif/ifdD.csv diff --git a/standards/exif/ifdE.csv b/Products/Photo/standards/exif/ifdE.csv similarity index 100% rename from standards/exif/ifdE.csv rename to Products/Photo/standards/exif/ifdE.csv diff --git a/standards/exif/ifdF.csv b/Products/Photo/standards/exif/ifdF.csv similarity index 100% rename from standards/exif/ifdF.csv rename to Products/Photo/standards/exif/ifdF.csv diff --git a/standards/exif/ifdG.csv b/Products/Photo/standards/exif/ifdG.csv similarity index 100% rename from standards/exif/ifdG.csv rename to Products/Photo/standards/exif/ifdG.csv diff --git a/standards/exif/ifdH.csv b/Products/Photo/standards/exif/ifdH.csv similarity index 100% rename from standards/exif/ifdH.csv rename to Products/Photo/standards/exif/ifdH.csv diff --git a/standards/exif/tiffA.csv b/Products/Photo/standards/exif/tiffA.csv similarity index 100% rename from standards/exif/tiffA.csv rename to Products/Photo/standards/exif/tiffA.csv diff --git a/standards/exif/tiffB.csv b/Products/Photo/standards/exif/tiffB.csv similarity index 100% rename from standards/exif/tiffB.csv rename to Products/Photo/standards/exif/tiffB.csv diff --git a/standards/exif/tiffC.csv b/Products/Photo/standards/exif/tiffC.csv similarity index 100% rename from standards/exif/tiffC.csv rename to Products/Photo/standards/exif/tiffC.csv diff --git a/standards/exif/tiffD.csv b/Products/Photo/standards/exif/tiffD.csv similarity index 100% rename from standards/exif/tiffD.csv rename to Products/Photo/standards/exif/tiffD.csv diff --git a/standards/xmp/__init__.py b/Products/Photo/standards/xmp/__init__.py similarity index 100% rename from standards/xmp/__init__.py rename to Products/Photo/standards/xmp/__init__.py diff --git a/standards/xmp/_namespaces.py b/Products/Photo/standards/xmp/_namespaces.py similarity index 100% rename from standards/xmp/_namespaces.py rename to Products/Photo/standards/xmp/_namespaces.py diff --git a/standards/xmp/accessors.csv b/Products/Photo/standards/xmp/accessors.csv similarity index 100% rename from standards/xmp/accessors.csv rename to Products/Photo/standards/xmp/accessors.csv diff --git a/version.txt b/Products/Photo/version.txt similarity index 100% rename from version.txt rename to Products/Photo/version.txt diff --git a/xmp.py b/Products/Photo/xmp.py similarity index 100% rename from xmp.py rename to Products/Photo/xmp.py diff --git a/xmp_jpeg.py b/Products/Photo/xmp_jpeg.py similarity index 100% rename from xmp_jpeg.py rename to Products/Photo/xmp_jpeg.py diff --git a/xmputils.py b/Products/Photo/xmputils.py similarity index 100% rename from xmputils.py rename to Products/Photo/xmputils.py diff --git a/xslt/xmp_merge_descriptions.xsl b/Products/Photo/xslt/xmp_merge_descriptions.xsl similarity index 100% rename from xslt/xmp_merge_descriptions.xsl rename to Products/Photo/xslt/xmp_merge_descriptions.xsl diff --git a/Products/__init__.py b/Products/__init__.py new file mode 100644 index 0000000..d407605 --- /dev/null +++ b/Products/__init__.py @@ -0,0 +1,5 @@ +try: + __import__('pkg_resources').declare_namespace(__name__) +except ImportError: + from pkgutil import extend_path + __path__ = extend_path(__path__, __name__) diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..0c8d0ba --- /dev/null +++ b/setup.py @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- +from setuptools import setup, find_packages + + +setup(name='Products.Photo', + version='3.0', + description='Photo management for Zope', + url='http://plinn.org', + author="Benoît Pin – MINES ParisTech – Armines", + author_email="benoit.pin@mines-paristech.fr", + license="GPL", + packages=find_packages(), + include_package_data=True, + namespace_packages=['Products'], + zip_safe=False, + install_requires=[] #TODO + ) -- 2.20.1