Skip to content

Commit f712d76

Browse files
committedSep 9, 2012
First draft
1 parent 9c57356 commit f712d76

10 files changed

+446
-4
lines changed
 

‎CHANGES.txt

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Changelog
2+
=========
3+
4+
0.9 (unreleased)
5+
--------------------
6+
7+
- Package created using templer
8+
[Jean Jordaan]

‎CONTRIBUTORS.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Jean Jordaan

‎README.md

-4
This file was deleted.

‎README.rst

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.. contents::
2+
3+
Introduction
4+
============
5+
6+
Make Kenneth Reitz's tablib_ available to PlominoUtils.
7+
8+
.. _tablib: http://pypi.python.org/pypi/tablib

‎docs/LICENSE.GPL

+339
Large diffs are not rendered by default.

‎docs/LICENSE.txt

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
plomino.tablib Copyright 2012, <YOUR NAME HERE>
2+
3+
This program is free software; you can redistribute it and/or modify
4+
it under the terms of the GNU General Public License as published by
5+
the Free Software Foundation; either version 2 of the License, or
6+
(at your option) any later version.
7+
8+
This program is distributed in the hope that it will be useful,
9+
but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
GNU General Public License for more details.
12+
13+
You should have received a copy of the GNU General Public License
14+
along with this program; if not, write to the Free Software
15+
Foundation, Inc., 59 Temple Place, Suite 330, Boston,
16+
MA 02111-1307 USA.

‎plomino/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__import__('pkg_resources').declare_namespace(__name__)

‎plomino/tablib/__init__.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from tablib import Databook, Dataset, detect, import_set, import_book, InvalidDatasetType, InvalidDimensions, UnsupportedFormat
2+
3+
from Products.PythonScripts.Utility import allow_module
4+
allow_module('plomino.tablib')
5+
6+
class PlominoTablib:
7+
module = 'plomino.tablib'
8+
methods = ['Databook', 'Dataset', 'detect', 'import_set',
9+
'import_book', 'InvalidDatasetType', 'InvalidDimensions',
10+
'UnsupportedFormat', ]
11+
12+
def initialize(context):
13+
"""Initializer called when used as a Zope 2 product."""

‎plomino/tablib/configure.zcml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<configure
2+
xmlns="http://namespaces.zope.org/zope"
3+
xmlns:five="http://namespaces.zope.org/five"
4+
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
5+
xmlns:cmf="http://namespaces.zope.org/cmf"
6+
xmlns:i18n="http://namespaces.zope.org/i18n"
7+
i18n_domain="plomino.tablib">
8+
<five:registerPackage package="." initialize=".initialize" />
9+
<utility
10+
name="PlominoTablib"
11+
provides="Products.CMFPlomino.interfaces.IPlominoUtils"
12+
component="plomino.tablib"
13+
/>
14+
15+
</configure>

‎setup.py

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
from setuptools import setup, find_packages
2+
import os
3+
4+
version = '0.1'
5+
6+
long_description = (
7+
'\n'.join([
8+
open('README.rst').read(),
9+
'Contributors',
10+
'============',
11+
open('CONTRIBUTORS.txt').read(),
12+
open('CHANGES.txt').read()
13+
])
14+
)
15+
16+
setup(name='plomino.tablib',
17+
version=version,
18+
description="Make Tablib by Kenneth Reitz available to PlominoUtils.",
19+
long_description=long_description,
20+
# Get more strings from
21+
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
22+
classifiers=[
23+
"Programming Language :: Python",
24+
],
25+
keywords='',
26+
author='Jean Jordaan',
27+
author_email='jean.jordaan@gmail.com',
28+
url='http://github.com/jean/plomino.tablib',
29+
license='gpl',
30+
packages=find_packages('.'),
31+
namespace_packages=['plomino'],
32+
include_package_data=True,
33+
zip_safe=False,
34+
install_requires=[
35+
'setuptools',
36+
# -*- Extra requirements: -*-
37+
'Products.CMFPlomino',
38+
'tablib',
39+
],
40+
entry_points="""
41+
# -*- Entry points: -*-
42+
[z3c.autoinclude.plugin]
43+
target = plone
44+
""",
45+
)

0 commit comments

Comments
 (0)
Please sign in to comment.