[Python-modules-commits] r10217 - in packages/formalchemy/trunk/debian/patches (1 file)

chaica-guest at users.alioth.debian.org chaica-guest at users.alioth.debian.org
Tue Oct 27 22:06:48 UTC 2009


    Date: Tuesday, October 27, 2009 @ 22:06:48
  Author: chaica-guest
Revision: 10217

* debian/patches/switching_locale_path
  - patching upstream templates.py

Modified:
  packages/formalchemy/trunk/debian/patches/switching_locale_path

Modified: packages/formalchemy/trunk/debian/patches/switching_locale_path
===================================================================
--- packages/formalchemy/trunk/debian/patches/switching_locale_path	2009-10-27 17:27:49 UTC (rev 10216)
+++ packages/formalchemy/trunk/debian/patches/switching_locale_path	2009-10-27 22:06:48 UTC (rev 10217)
@@ -1,8 +1,8 @@
 Set internationalization in the Debian way
 Index: FormAlchemy-1.3/formalchemy/i18n.py
 ===================================================================
---- FormAlchemy-1.3.orig/formalchemy/i18n.py	2009-10-26 19:43:23.000000000 +0100
-+++ FormAlchemy-1.3/formalchemy/i18n.py	2009-10-26 19:46:33.000000000 +0100
+--- FormAlchemy-1.3.orig/formalchemy/i18n.py	2009-10-27 21:40:41.000000000 +0100
++++ FormAlchemy-1.3/formalchemy/i18n.py	2009-10-27 21:42:03.000000000 +0100
 @@ -6,7 +6,8 @@
  import os
  from gettext import GNUTranslations
@@ -15,9 +15,9 @@
      from pylons.i18n import get_lang
 Index: FormAlchemy-1.3/setup.py
 ===================================================================
---- FormAlchemy-1.3.orig/setup.py	2009-10-26 21:38:53.000000000 +0100
-+++ FormAlchemy-1.3/setup.py	2009-10-27 00:08:25.000000000 +0100
-@@ -28,11 +28,14 @@
+--- FormAlchemy-1.3.orig/setup.py	2009-10-27 21:40:41.000000000 +0100
++++ FormAlchemy-1.3/setup.py	2009-10-27 22:43:31.000000000 +0100
+@@ -28,11 +28,13 @@
        download_url='http://code.google.com/p/formalchemy/downloads/list',
        install_requires=['SQLAlchemy', 'Tempita'],
        packages=find_packages(),
@@ -25,7 +25,7 @@
 +      package_data={'formalchemy': ['*.tmpl',
                                      'ext/pylons/*.mako', 'ext/pylons/resources/*.css', 'ext/pylons/resources/*.png',
                                      'tests/data/mako/*.mako', 'tests/data/genshi/*.html',
-                                     'paster_templates/pylons_fa/+package+/*/*_tmpl',
+-                                    'paster_templates/pylons_fa/+package+/*/*_tmpl',
                                      ]},
 +      data_files=[(os.path.join('share','locale','fr','LC_MESSAGES'), ['formalchemy/i18n_resources/fr/LC_MESSAGES/formalchemy.mo']),
 +                  (os.path.join('share','locale','en','LC_MESSAGES'), ['formalchemy/i18n_resources/en/LC_MESSAGES/formalchemy.mo']),
@@ -35,11 +35,27 @@
            'Development Status :: 5 - Production/Stable',
 Index: FormAlchemy-1.3/MANIFEST.in
 ===================================================================
---- FormAlchemy-1.3.orig/MANIFEST.in	2009-10-26 22:21:50.000000000 +0100
-+++ FormAlchemy-1.3/MANIFEST.in	2009-10-27 00:07:38.000000000 +0100
-@@ -11,4 +11,5 @@
+--- FormAlchemy-1.3.orig/MANIFEST.in	2009-10-27 21:40:42.000000000 +0100
++++ FormAlchemy-1.3/MANIFEST.in	2009-10-27 22:45:59.000000000 +0100
+@@ -10,5 +10,6 @@
+ recursive-include formalchemy *tmpl
  recursive-include formalchemy *mako
  recursive-include formalchemy *png
- recursive-include formalchemy/i18n_resources *
-+recursive-exclude formalchemy/i18n_resources *mo
+-recursive-include formalchemy/i18n_resources *
++recursive-exclude formalchemy/i18n_resources *
++recursive-exclude formalchemy/paster_templates *
  recursive-include formalchemy/tests/data *
+Index: FormAlchemy-1.3/formalchemy/templates.py
+===================================================================
+--- FormAlchemy-1.3.orig/formalchemy/templates.py	2009-10-27 21:55:41.000000000 +0100
++++ FormAlchemy-1.3/formalchemy/templates.py	2009-10-27 21:55:58.000000000 +0100
+@@ -20,7 +20,8 @@
+     HAS_GENSHI = False
+ 
+ MAKO_TEMPLATES = os.path.join(
+-        os.path.dirname(__file__),
++#        os.path.dirname(__file__),
++        '/usr/share',
+         'paster_templates','pylons_fa','+package+','templates', 'forms')
+ 
+ class TemplateEngine(object):




More information about the Python-modules-commits mailing list