debian/0000755000000000000000000000000011747404737007204 5ustar debian/compat0000644000000000000000000000000211622165211010361 0ustar 8 debian/source/0000755000000000000000000000000011625374245010477 5ustar debian/source/format0000644000000000000000000000001411622165215011675 0ustar 3.0 (quilt) debian/source/options0000644000000000000000000000024311625374245012114 0ustar extend-diff-ignore = "(^|/)formalchemy/i18n_resources/[a-z]+/LC_MESSAGES/formalchemy.mo$" extend-diff-ignore = "(^|/)FormAlchemy.egg-info/.*$" single-debian-patch debian/docs0000644000000000000000000000001311623137153010035 0ustar README.txt debian/changelog0000644000000000000000000000046511747404731011055 0ustar python-formalchemy (1.4.2-1) unstable; urgency=low * New upstream release -- Shell Xu Fri, 23 Dec 2011 01:41:26 +0800 python-formalchemy (1.4.1-1) unstable; urgency=low * Initial release (Closes: 637892) -- Shell Xu Mon, 15 Aug 2011 17:03:28 +0800 debian/copyright0000644000000000000000000000260611624403614011126 0ustar Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174 Upstream-Name: Formalchemy Source: https://github.com/FormAlchemy/formalchemy Files: * Copyright: 2011 Alexandre Conrad, Jonathan Ellis, Gaël Pasgrimaud License: MIT Files: debian/* Copyright: 2011 Shell Xu License: MIT License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/watch0000644000000000000000000000021711624403614010220 0ustar version=3 http://pypi.python.org/pypi/FormAlchemy/ http://pypi.python.org/packages/source/F/FormAlchemy/FormAlchemy-(.+).tar.gz#md5=[0-9a-f]* debian/doc-base0000644000000000000000000000042611625145435010576 0ustar Document: formalchemy Title: FormAlchemy reference documentation Author: Alexandre Conrad, Jonathan Ellis, Gaël Pasgrimaud Abstract: This documentation describes FormAlchemy usage and API Section: Programming/Python Format: Text Files: /usr/share/doc/python-formalchemy/txt/* debian/patches/0000755000000000000000000000000011747277551010635 5ustar debian/patches/series0000644000000000000000000000002211630042263012021 0ustar separate-resource debian/patches/separate-resource0000644000000000000000000001040511747172455014206 0ustar Description: separate template and resources from source code. --- python-formalchemy-1.4.1.orig/setup.py +++ python-formalchemy-1.4.1/setup.py @@ -50,6 +50,14 @@ long_description = '.. contents::\n\n' + version='1.4.2' +def get_i18n_res(): + rslt = [] + for name in os.listdir('formalchemy/i18n_resources'): + if not os.path.isdir(os.path.join('formalchemy/i18n_resources', name)): + continue + rslt.append((os.path.join('share','locale',name,'LC_MESSAGES'), ['formalchemy/i18n_resources/%s/LC_MESSAGES/formalchemy.mo' % name])) + return rslt + setup(name='FormAlchemy', license='MIT License', version=version, @@ -60,11 +68,7 @@ setup(name='FormAlchemy', url='http://docs.formalchemy.org/', install_requires=['SQLAlchemy', 'Tempita', 'WebHelpers', 'WebOb'], packages=find_packages(), - package_data={'formalchemy': ['*.tmpl', 'i18n_resources/*/LC_MESSAGES/formalchemy.mo', - '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', - ]}, + data_files=get_i18n_res(), include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', --- python-formalchemy-1.4.1.orig/MANIFEST.in +++ python-formalchemy-1.4.1/MANIFEST.in @@ -7,10 +7,11 @@ exclude *.ini exclude bootstrap.py exclude RELEASE_NOTES.txt recursive-exclude pylonsapp * -recursive-include formalchemy *tmpl -recursive-include formalchemy *mako -recursive-include formalchemy *pt -recursive-include formalchemy *css -recursive-include formalchemy *png -recursive-include formalchemy/i18n_resources * +recursive-exclude formalchemy *tmpl +recursive-exclude formalchemy *mako +recursive-exclude formalchemy *pt +recursive-exclude formalchemy *css +recursive-exclude formalchemy *png +recursive-exclude formalchemy/i18n_resources * +recursive-exclude formalchemy/paster_templates * recursive-include formalchemy/tests/data * --- python-formalchemy-1.4.1.orig/formalchemy/i18n.py +++ python-formalchemy-1.4.1/formalchemy/i18n.py @@ -6,7 +6,7 @@ import os from gettext import GNUTranslations -i18n_path = os.path.join(os.path.dirname(__file__), 'i18n_resources') +i18n_path = '/usr/share/locale/' try: from pyramid.i18n import get_localizer --- python-formalchemy-1.4.1.orig/formalchemy/templates.py +++ python-formalchemy-1.4.1/formalchemy/templates.py @@ -20,8 +20,7 @@ except ImportError: HAS_GENSHI = False MAKO_TEMPLATES = os.path.join( - os.path.dirname(__file__), - 'paster_templates','pylons_fa','+package+','templates', 'forms') + '/usr/share/python-formalchemy/+package+/', 'templates', 'forms') class TemplateEngine(object): """Base class for templates engines @@ -45,7 +44,7 @@ class TemplateEngine(object): def get_filename(self, name): """return the filename for template `name`""" - for dirname in self.directories + [os.path.dirname(__file__)]: + for dirname in self.directories + [os.path.dirname(__file__), '/usr/share/python-formalchemy']: filename = os.path.join(dirname, '%s.%s' % (name, self.extension)) if os.path.isfile(filename): return filename --- python-formalchemy-1.4.1.orig/formalchemy/ext/pylons/pastertemplate.py +++ python-formalchemy-1.4.1/formalchemy/ext/pylons/pastertemplate.py @@ -7,7 +7,7 @@ except ImportError: pass else: class PylonsTemplate(Template): - _template_dir = ('formalchemy', 'paster_templates/pylons_fa') + _template_dir = ('/usr/share/python-formalchemy/') summary = 'Pylons application template with formalchemy support' required_templates = ['pylons'] template_renderer = staticmethod(paste_script_template_renderer) --- python-formalchemy-1.4.1.orig/formalchemy/ext/pylons/admin.py +++ python-formalchemy-1.4.1/formalchemy/ext/pylons/admin.py @@ -37,7 +37,7 @@ _('Create form') # templates -template_dir = os.path.dirname(__file__) +template_dir = '/usr/share/python-formalchemy/ext' static_dir = os.path.join(template_dir, 'resources') def flash(msg): debian/python-formalchemy.install0000644000000000000000000000046411630042263014404 0ustar docs/*.txt usr/share/doc/python-formalchemy/txt formalchemy/paster_templates/pylons_fa/+package+/ usr/share/python-formalchemy/ formalchemy/*.tmpl usr/share/python-formalchemy/ formalchemy/ext/pylons/*.mako usr/share/python-formalchemy/ext/ formalchemy/ext/pylons/resources usr/share/python-formalchemy/ext/ debian/rules0000755000000000000000000000013111637126045010246 0ustar #!/usr/bin/make -f # -*- makefile -*- %: dh $@ --with python2 override_dh_auto_build: debian/pydist-overrides0000644000000000000000000000014411637127130012425 0ustar sqlalchemy python-sqlalchemy tempita python-tempita webhelpers python-webhelpers webob python-webob debian/control0000644000000000000000000000206111747173014010575 0ustar Source: python-formalchemy Section: python Priority: optional Maintainer: Shell Xu Build-Depends: debhelper (>= 8), python-setuptools (>= 0.6), python-all-dev X-Python-Version: >= 2.5 Standards-Version: 3.9.3 Homepage: http://docs.formalchemy.org/ Package: python-formalchemy Architecture: any Depends: ${misc:Depends}, ${python:Depends}, python-pylons Suggests: python-beautifulsoup Description: HTML input form fields from your SQLAlchemy mapped classes FormAlchemy greatly speeds development with SQLAlchemy mapped classes (models) in a HTML forms environment. . FormAlchemy eliminates boilerplate by autogenerating HTML input fields from a given model. FormAlchemy will try to figure out what kind of HTML code should be returned by introspecting the model's properties and generate ready-to-use HTML code that will fit the developer's application. . Of course, FormAlchemy can't figure out everything, i.e, the developer might want to display only a few columns from the given model. Thus, FormAlchemy is also highly customizable.