From b521f0db73266a7bd6b69e6a9891046a03c482ee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Fri, 19 Dec 2014 17:51:14 +0100 Subject: [PATCH] eggification --- Products/__init__.py | 5 +++++ __init__.py => Products/photoprint/__init__.py | 0 .../photoprint/_utils}/import_printing_list.py | 0 cart.py => Products/photoprint/cart.py | 0 .../photoprint/compile-i18n.sh | 0 .../photoprint/configure.zcml | 0 .../photoprint/exceptions.py | 0 .../photoprint/graphics}/tampon.psd | Bin .../photoprint/interfaces.py | 0 .../locales}/en/LC_MESSAGES/photoprint.mo | Bin .../locales}/en/LC_MESSAGES/photoprint.po | 0 .../locales}/fr/LC_MESSAGES/photoprint.mo | Bin .../locales}/fr/LC_MESSAGES/photoprint.po | 0 .../photoprint/locales}/photoprint-manual.pot | 0 .../photoprint/locales}/photoprint.pot | 0 order.py => Products/photoprint/order.py | 0 .../photoprint/permissions.py | 0 .../photoprint/permissions.zcml | 0 price.py => Products/photoprint/price.py | 0 .../photoprint/skins}/confirm_join_template.pt | 0 .../photoprint/skins}/customer_add_control.py | 0 .../photoprint/skins}/customer_join_form.py | 0 .../skins}/customer_join_template.pt | 0 .../photoprint/skins}/customer_login_form.pt | 0 .../skins}/get_photo_print_order_template.pt | 0 .../photoprint/skins}/my_orders.py | 0 .../photoprint/skins}/my_orders_template.pt | 0 .../photoprint/skins}/order_cancel_form.pt | 0 .../photoprint/skins}/order_list.py | 0 .../photoprint/skins}/order_list_template.pt | 0 .../skins}/order_manual_payment_form.pt | 0 .../skins}/order_notify_done_form.pt | 0 .../skins}/order_notify_sent_form.pt | 0 .../skins}/order_payment_template.pt | 0 .../photoprint/skins}/order_pplog.pt | 0 .../photoprint/skins}/order_printing_list.py | 0 .../skins}/order_printing_list_template.pt | 0 .../skins}/order_printing_list_template_xml.pt | 0 .../skins}/order_states/canceled-en.gif | Bin .../skins}/order_states/canceled-fr.gif | Bin .../photoprint/skins}/order_states/done-en.gif | Bin .../photoprint/skins}/order_states/done-fr.gif | Bin .../photoprint/skins}/order_states/paid-en.gif | Bin .../photoprint/skins}/order_states/paid-fr.gif | Bin .../skins}/order_states/recorded-en.gif | Bin .../skins}/order_states/recorded-fr.gif | Bin .../skins}/order_states/refused-en.gif | Bin .../skins}/order_states/refused-fr.gif | Bin .../photoprint/skins}/order_states/sent-en.gif | Bin .../photoprint/skins}/order_states/sent-fr.gif | Bin .../photoprint/skins}/order_view.py | 0 .../photoprint/skins}/order_view_template.pt | 0 .../photoprint/skins}/paypal-button.png | Bin .../photoprint/skins}/personalize_form.pt | 0 .../skins}/photoprint_order_cancel.py | 0 .../skins}/photoprint_order_confirm.py | 0 .../skins}/photoprint_templates_edit_form.py | 0 .../photoprint_templates_edit_template.pt | 0 .../photoprint/skins}/validatePrivateAccess.py | 0 tool.gif => Products/photoprint/tool.gif | Bin tool.py => Products/photoprint/tool.py | 0 .../photoprint/update_i18n.sh | 0 utils.py => Products/photoprint/utils.py | 0 setup.py | 17 +++++++++++++++++ 64 files changed, 22 insertions(+) create mode 100644 Products/__init__.py rename __init__.py => Products/photoprint/__init__.py (100%) rename {_utils => Products/photoprint/_utils}/import_printing_list.py (100%) rename cart.py => Products/photoprint/cart.py (100%) rename compile-i18n.sh => Products/photoprint/compile-i18n.sh (100%) rename configure.zcml => Products/photoprint/configure.zcml (100%) rename exceptions.py => Products/photoprint/exceptions.py (100%) rename {graphics => Products/photoprint/graphics}/tampon.psd (100%) rename interfaces.py => Products/photoprint/interfaces.py (100%) rename {locales => Products/photoprint/locales}/en/LC_MESSAGES/photoprint.mo (100%) rename {locales => Products/photoprint/locales}/en/LC_MESSAGES/photoprint.po (100%) rename {locales => Products/photoprint/locales}/fr/LC_MESSAGES/photoprint.mo (100%) rename {locales => Products/photoprint/locales}/fr/LC_MESSAGES/photoprint.po (100%) rename {locales => Products/photoprint/locales}/photoprint-manual.pot (100%) rename {locales => Products/photoprint/locales}/photoprint.pot (100%) rename order.py => Products/photoprint/order.py (100%) rename permissions.py => Products/photoprint/permissions.py (100%) rename permissions.zcml => Products/photoprint/permissions.zcml (100%) rename price.py => Products/photoprint/price.py (100%) rename {skins => Products/photoprint/skins}/confirm_join_template.pt (100%) rename {skins => Products/photoprint/skins}/customer_add_control.py (100%) rename {skins => Products/photoprint/skins}/customer_join_form.py (100%) rename {skins => Products/photoprint/skins}/customer_join_template.pt (100%) rename {skins => Products/photoprint/skins}/customer_login_form.pt (100%) rename {skins => Products/photoprint/skins}/get_photo_print_order_template.pt (100%) rename {skins => Products/photoprint/skins}/my_orders.py (100%) rename {skins => Products/photoprint/skins}/my_orders_template.pt (100%) rename {skins => Products/photoprint/skins}/order_cancel_form.pt (100%) rename {skins => Products/photoprint/skins}/order_list.py (100%) rename {skins => Products/photoprint/skins}/order_list_template.pt (100%) rename {skins => Products/photoprint/skins}/order_manual_payment_form.pt (100%) rename {skins => Products/photoprint/skins}/order_notify_done_form.pt (100%) rename {skins => Products/photoprint/skins}/order_notify_sent_form.pt (100%) rename {skins => Products/photoprint/skins}/order_payment_template.pt (100%) rename {skins => Products/photoprint/skins}/order_pplog.pt (100%) rename {skins => Products/photoprint/skins}/order_printing_list.py (100%) rename {skins => Products/photoprint/skins}/order_printing_list_template.pt (100%) rename {skins => Products/photoprint/skins}/order_printing_list_template_xml.pt (100%) rename {skins => Products/photoprint/skins}/order_states/canceled-en.gif (100%) rename {skins => Products/photoprint/skins}/order_states/canceled-fr.gif (100%) rename {skins => Products/photoprint/skins}/order_states/done-en.gif (100%) rename {skins => Products/photoprint/skins}/order_states/done-fr.gif (100%) rename {skins => Products/photoprint/skins}/order_states/paid-en.gif (100%) rename {skins => Products/photoprint/skins}/order_states/paid-fr.gif (100%) rename {skins => Products/photoprint/skins}/order_states/recorded-en.gif (100%) rename {skins => Products/photoprint/skins}/order_states/recorded-fr.gif (100%) rename {skins => Products/photoprint/skins}/order_states/refused-en.gif (100%) rename {skins => Products/photoprint/skins}/order_states/refused-fr.gif (100%) rename {skins => Products/photoprint/skins}/order_states/sent-en.gif (100%) rename {skins => Products/photoprint/skins}/order_states/sent-fr.gif (100%) rename {skins => Products/photoprint/skins}/order_view.py (100%) rename {skins => Products/photoprint/skins}/order_view_template.pt (100%) rename {skins => Products/photoprint/skins}/paypal-button.png (100%) rename {skins => Products/photoprint/skins}/personalize_form.pt (100%) rename {skins => Products/photoprint/skins}/photoprint_order_cancel.py (100%) rename {skins => Products/photoprint/skins}/photoprint_order_confirm.py (100%) rename {skins => Products/photoprint/skins}/photoprint_templates_edit_form.py (100%) rename {skins => Products/photoprint/skins}/photoprint_templates_edit_template.pt (100%) rename {skins => Products/photoprint/skins}/validatePrivateAccess.py (100%) rename tool.gif => Products/photoprint/tool.gif (100%) rename tool.py => Products/photoprint/tool.py (100%) rename update_i18n.sh => Products/photoprint/update_i18n.sh (100%) rename utils.py => Products/photoprint/utils.py (100%) create mode 100644 setup.py 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/__init__.py b/Products/photoprint/__init__.py similarity index 100% rename from __init__.py rename to Products/photoprint/__init__.py diff --git a/_utils/import_printing_list.py b/Products/photoprint/_utils/import_printing_list.py similarity index 100% rename from _utils/import_printing_list.py rename to Products/photoprint/_utils/import_printing_list.py diff --git a/cart.py b/Products/photoprint/cart.py similarity index 100% rename from cart.py rename to Products/photoprint/cart.py diff --git a/compile-i18n.sh b/Products/photoprint/compile-i18n.sh similarity index 100% rename from compile-i18n.sh rename to Products/photoprint/compile-i18n.sh diff --git a/configure.zcml b/Products/photoprint/configure.zcml similarity index 100% rename from configure.zcml rename to Products/photoprint/configure.zcml diff --git a/exceptions.py b/Products/photoprint/exceptions.py similarity index 100% rename from exceptions.py rename to Products/photoprint/exceptions.py diff --git a/graphics/tampon.psd b/Products/photoprint/graphics/tampon.psd similarity index 100% rename from graphics/tampon.psd rename to Products/photoprint/graphics/tampon.psd diff --git a/interfaces.py b/Products/photoprint/interfaces.py similarity index 100% rename from interfaces.py rename to Products/photoprint/interfaces.py diff --git a/locales/en/LC_MESSAGES/photoprint.mo b/Products/photoprint/locales/en/LC_MESSAGES/photoprint.mo similarity index 100% rename from locales/en/LC_MESSAGES/photoprint.mo rename to Products/photoprint/locales/en/LC_MESSAGES/photoprint.mo diff --git a/locales/en/LC_MESSAGES/photoprint.po b/Products/photoprint/locales/en/LC_MESSAGES/photoprint.po similarity index 100% rename from locales/en/LC_MESSAGES/photoprint.po rename to Products/photoprint/locales/en/LC_MESSAGES/photoprint.po diff --git a/locales/fr/LC_MESSAGES/photoprint.mo b/Products/photoprint/locales/fr/LC_MESSAGES/photoprint.mo similarity index 100% rename from locales/fr/LC_MESSAGES/photoprint.mo rename to Products/photoprint/locales/fr/LC_MESSAGES/photoprint.mo diff --git a/locales/fr/LC_MESSAGES/photoprint.po b/Products/photoprint/locales/fr/LC_MESSAGES/photoprint.po similarity index 100% rename from locales/fr/LC_MESSAGES/photoprint.po rename to Products/photoprint/locales/fr/LC_MESSAGES/photoprint.po diff --git a/locales/photoprint-manual.pot b/Products/photoprint/locales/photoprint-manual.pot similarity index 100% rename from locales/photoprint-manual.pot rename to Products/photoprint/locales/photoprint-manual.pot diff --git a/locales/photoprint.pot b/Products/photoprint/locales/photoprint.pot similarity index 100% rename from locales/photoprint.pot rename to Products/photoprint/locales/photoprint.pot diff --git a/order.py b/Products/photoprint/order.py similarity index 100% rename from order.py rename to Products/photoprint/order.py diff --git a/permissions.py b/Products/photoprint/permissions.py similarity index 100% rename from permissions.py rename to Products/photoprint/permissions.py diff --git a/permissions.zcml b/Products/photoprint/permissions.zcml similarity index 100% rename from permissions.zcml rename to Products/photoprint/permissions.zcml diff --git a/price.py b/Products/photoprint/price.py similarity index 100% rename from price.py rename to Products/photoprint/price.py diff --git a/skins/confirm_join_template.pt b/Products/photoprint/skins/confirm_join_template.pt similarity index 100% rename from skins/confirm_join_template.pt rename to Products/photoprint/skins/confirm_join_template.pt diff --git a/skins/customer_add_control.py b/Products/photoprint/skins/customer_add_control.py similarity index 100% rename from skins/customer_add_control.py rename to Products/photoprint/skins/customer_add_control.py diff --git a/skins/customer_join_form.py b/Products/photoprint/skins/customer_join_form.py similarity index 100% rename from skins/customer_join_form.py rename to Products/photoprint/skins/customer_join_form.py diff --git a/skins/customer_join_template.pt b/Products/photoprint/skins/customer_join_template.pt similarity index 100% rename from skins/customer_join_template.pt rename to Products/photoprint/skins/customer_join_template.pt diff --git a/skins/customer_login_form.pt b/Products/photoprint/skins/customer_login_form.pt similarity index 100% rename from skins/customer_login_form.pt rename to Products/photoprint/skins/customer_login_form.pt diff --git a/skins/get_photo_print_order_template.pt b/Products/photoprint/skins/get_photo_print_order_template.pt similarity index 100% rename from skins/get_photo_print_order_template.pt rename to Products/photoprint/skins/get_photo_print_order_template.pt diff --git a/skins/my_orders.py b/Products/photoprint/skins/my_orders.py similarity index 100% rename from skins/my_orders.py rename to Products/photoprint/skins/my_orders.py diff --git a/skins/my_orders_template.pt b/Products/photoprint/skins/my_orders_template.pt similarity index 100% rename from skins/my_orders_template.pt rename to Products/photoprint/skins/my_orders_template.pt diff --git a/skins/order_cancel_form.pt b/Products/photoprint/skins/order_cancel_form.pt similarity index 100% rename from skins/order_cancel_form.pt rename to Products/photoprint/skins/order_cancel_form.pt diff --git a/skins/order_list.py b/Products/photoprint/skins/order_list.py similarity index 100% rename from skins/order_list.py rename to Products/photoprint/skins/order_list.py diff --git a/skins/order_list_template.pt b/Products/photoprint/skins/order_list_template.pt similarity index 100% rename from skins/order_list_template.pt rename to Products/photoprint/skins/order_list_template.pt diff --git a/skins/order_manual_payment_form.pt b/Products/photoprint/skins/order_manual_payment_form.pt similarity index 100% rename from skins/order_manual_payment_form.pt rename to Products/photoprint/skins/order_manual_payment_form.pt diff --git a/skins/order_notify_done_form.pt b/Products/photoprint/skins/order_notify_done_form.pt similarity index 100% rename from skins/order_notify_done_form.pt rename to Products/photoprint/skins/order_notify_done_form.pt diff --git a/skins/order_notify_sent_form.pt b/Products/photoprint/skins/order_notify_sent_form.pt similarity index 100% rename from skins/order_notify_sent_form.pt rename to Products/photoprint/skins/order_notify_sent_form.pt diff --git a/skins/order_payment_template.pt b/Products/photoprint/skins/order_payment_template.pt similarity index 100% rename from skins/order_payment_template.pt rename to Products/photoprint/skins/order_payment_template.pt diff --git a/skins/order_pplog.pt b/Products/photoprint/skins/order_pplog.pt similarity index 100% rename from skins/order_pplog.pt rename to Products/photoprint/skins/order_pplog.pt diff --git a/skins/order_printing_list.py b/Products/photoprint/skins/order_printing_list.py similarity index 100% rename from skins/order_printing_list.py rename to Products/photoprint/skins/order_printing_list.py diff --git a/skins/order_printing_list_template.pt b/Products/photoprint/skins/order_printing_list_template.pt similarity index 100% rename from skins/order_printing_list_template.pt rename to Products/photoprint/skins/order_printing_list_template.pt diff --git a/skins/order_printing_list_template_xml.pt b/Products/photoprint/skins/order_printing_list_template_xml.pt similarity index 100% rename from skins/order_printing_list_template_xml.pt rename to Products/photoprint/skins/order_printing_list_template_xml.pt diff --git a/skins/order_states/canceled-en.gif b/Products/photoprint/skins/order_states/canceled-en.gif similarity index 100% rename from skins/order_states/canceled-en.gif rename to Products/photoprint/skins/order_states/canceled-en.gif diff --git a/skins/order_states/canceled-fr.gif b/Products/photoprint/skins/order_states/canceled-fr.gif similarity index 100% rename from skins/order_states/canceled-fr.gif rename to Products/photoprint/skins/order_states/canceled-fr.gif diff --git a/skins/order_states/done-en.gif b/Products/photoprint/skins/order_states/done-en.gif similarity index 100% rename from skins/order_states/done-en.gif rename to Products/photoprint/skins/order_states/done-en.gif diff --git a/skins/order_states/done-fr.gif b/Products/photoprint/skins/order_states/done-fr.gif similarity index 100% rename from skins/order_states/done-fr.gif rename to Products/photoprint/skins/order_states/done-fr.gif diff --git a/skins/order_states/paid-en.gif b/Products/photoprint/skins/order_states/paid-en.gif similarity index 100% rename from skins/order_states/paid-en.gif rename to Products/photoprint/skins/order_states/paid-en.gif diff --git a/skins/order_states/paid-fr.gif b/Products/photoprint/skins/order_states/paid-fr.gif similarity index 100% rename from skins/order_states/paid-fr.gif rename to Products/photoprint/skins/order_states/paid-fr.gif diff --git a/skins/order_states/recorded-en.gif b/Products/photoprint/skins/order_states/recorded-en.gif similarity index 100% rename from skins/order_states/recorded-en.gif rename to Products/photoprint/skins/order_states/recorded-en.gif diff --git a/skins/order_states/recorded-fr.gif b/Products/photoprint/skins/order_states/recorded-fr.gif similarity index 100% rename from skins/order_states/recorded-fr.gif rename to Products/photoprint/skins/order_states/recorded-fr.gif diff --git a/skins/order_states/refused-en.gif b/Products/photoprint/skins/order_states/refused-en.gif similarity index 100% rename from skins/order_states/refused-en.gif rename to Products/photoprint/skins/order_states/refused-en.gif diff --git a/skins/order_states/refused-fr.gif b/Products/photoprint/skins/order_states/refused-fr.gif similarity index 100% rename from skins/order_states/refused-fr.gif rename to Products/photoprint/skins/order_states/refused-fr.gif diff --git a/skins/order_states/sent-en.gif b/Products/photoprint/skins/order_states/sent-en.gif similarity index 100% rename from skins/order_states/sent-en.gif rename to Products/photoprint/skins/order_states/sent-en.gif diff --git a/skins/order_states/sent-fr.gif b/Products/photoprint/skins/order_states/sent-fr.gif similarity index 100% rename from skins/order_states/sent-fr.gif rename to Products/photoprint/skins/order_states/sent-fr.gif diff --git a/skins/order_view.py b/Products/photoprint/skins/order_view.py similarity index 100% rename from skins/order_view.py rename to Products/photoprint/skins/order_view.py diff --git a/skins/order_view_template.pt b/Products/photoprint/skins/order_view_template.pt similarity index 100% rename from skins/order_view_template.pt rename to Products/photoprint/skins/order_view_template.pt diff --git a/skins/paypal-button.png b/Products/photoprint/skins/paypal-button.png similarity index 100% rename from skins/paypal-button.png rename to Products/photoprint/skins/paypal-button.png diff --git a/skins/personalize_form.pt b/Products/photoprint/skins/personalize_form.pt similarity index 100% rename from skins/personalize_form.pt rename to Products/photoprint/skins/personalize_form.pt diff --git a/skins/photoprint_order_cancel.py b/Products/photoprint/skins/photoprint_order_cancel.py similarity index 100% rename from skins/photoprint_order_cancel.py rename to Products/photoprint/skins/photoprint_order_cancel.py diff --git a/skins/photoprint_order_confirm.py b/Products/photoprint/skins/photoprint_order_confirm.py similarity index 100% rename from skins/photoprint_order_confirm.py rename to Products/photoprint/skins/photoprint_order_confirm.py diff --git a/skins/photoprint_templates_edit_form.py b/Products/photoprint/skins/photoprint_templates_edit_form.py similarity index 100% rename from skins/photoprint_templates_edit_form.py rename to Products/photoprint/skins/photoprint_templates_edit_form.py diff --git a/skins/photoprint_templates_edit_template.pt b/Products/photoprint/skins/photoprint_templates_edit_template.pt similarity index 100% rename from skins/photoprint_templates_edit_template.pt rename to Products/photoprint/skins/photoprint_templates_edit_template.pt diff --git a/skins/validatePrivateAccess.py b/Products/photoprint/skins/validatePrivateAccess.py similarity index 100% rename from skins/validatePrivateAccess.py rename to Products/photoprint/skins/validatePrivateAccess.py diff --git a/tool.gif b/Products/photoprint/tool.gif similarity index 100% rename from tool.gif rename to Products/photoprint/tool.gif diff --git a/tool.py b/Products/photoprint/tool.py similarity index 100% rename from tool.py rename to Products/photoprint/tool.py diff --git a/update_i18n.sh b/Products/photoprint/update_i18n.sh similarity index 100% rename from update_i18n.sh rename to Products/photoprint/update_i18n.sh diff --git a/utils.py b/Products/photoprint/utils.py similarity index 100% rename from utils.py rename to Products/photoprint/utils.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..a5bb425 --- /dev/null +++ b/setup.py @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- +from setuptools import setup, find_packages + + +setup(name='Products.photoprint', + version='3.0', + description='Photo prints and sales management for Plinn CMS', + 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