Skip to content

Commit

Permalink
initial commit of empty package
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Gross committed Oct 30, 2010
0 parents commit 0ac332f
Show file tree
Hide file tree
Showing 13 changed files with 528 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.egg-info
4 changes: 4 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Introduction
============


7 changes: 7 additions & 0 deletions docs/HISTORY.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Changelog
=========

1.0dev (unreleased)
-------------------

- Initial release
47 changes: 47 additions & 0 deletions docs/INSTALL.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
plone.formwidget.recurrence Installation
=======================

* When you're reading this you have probably already run
``easy_install plone.formwidget.recurrence``. Find out how to install setuptools
(and EasyInstall) here:
http://peak.telecommunity.com/DevCenter/EasyInstall

* Get `pythonproducts`_ and install it via::

python setup.py install --home /path/to/instance

into your Zope instance.

* Create a file called ``plone.formwidget.recurrence-configure.zcml`` in the
``/path/to/instance/etc/package-includes`` directory. The file
should only contain this::

<include package="plone.formwidget.recurrence" />

.. _pythonproducts: http://plone.org/products/pythonproducts

Alternatively, if you are using zc.buildout and the plone.recipe.zope2instance
recipe to manage your project, you can do this:

* Add ``plone.formwidget.recurrence`` to the list of eggs to install, e.g.:

[buildout]
...
eggs =
...
plone.formwidget.recurrence

* Tell the plone.recipe.zope2instance recipe to install a ZCML slug:

[instance]
recipe = plone.recipe.zope2instance
...
zcml =
plone.formwidget.recurrence

* Re-run buildout, e.g. with:

$ ./bin/buildout

You can skip the ZCML slug if you are going to explicitly include the package
from another package's configure.zcml file.
339 changes: 339 additions & 0 deletions docs/LICENSE.GPL

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions docs/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
plone.formwidget.recurrence is copyright Plone Developers

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston,
MA 02111-1307 USA.
6 changes: 6 additions & 0 deletions plone/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
6 changes: 6 additions & 0 deletions plone/formwidget/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
3 changes: 3 additions & 0 deletions plone/formwidget/recurrence/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

def initialize(context):
"""Initializer called when used as a Zope 2 product."""
8 changes: 8 additions & 0 deletions plone/formwidget/recurrence/configure.zcml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:five="http://namespaces.zope.org/five"
i18n_domain="plone.formwidget.recurrence">

<five:registerPackage package="." initialize=".initialize" />

</configure>
54 changes: 54 additions & 0 deletions plone/formwidget/recurrence/tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import unittest

from zope.testing import doctestunit
from zope.component import testing
from Testing import ZopeTestCase as ztc

from Products.Five import zcml
from Products.Five import fiveconfigure
from Products.PloneTestCase import PloneTestCase as ptc
from Products.PloneTestCase.layer import PloneSite
ptc.setupPloneSite()

import plone.formwidget.recurrence

class TestCase(ptc.PloneTestCase):
class layer(PloneSite):
@classmethod
def setUp(cls):
fiveconfigure.debug_mode = True
zcml.load_config('configure.zcml',
plone.formwidget.recurrence)
fiveconfigure.debug_mode = False

@classmethod
def tearDown(cls):
pass


def test_suite():
return unittest.TestSuite([

# Unit tests
#doctestunit.DocFileSuite(
# 'README.txt', package='plone.formwidget.recurrence',
# setUp=testing.setUp, tearDown=testing.tearDown),

#doctestunit.DocTestSuite(
# module='plone.formwidget.recurrence.mymodule',
# setUp=testing.setUp, tearDown=testing.tearDown),


# Integration tests that use PloneTestCase
#ztc.ZopeDocFileSuite(
# 'README.txt', package='plone.formwidget.recurrence',
# test_class=TestCase),

#ztc.FunctionalDocFileSuite(
# 'browser.txt', package='plone.formwidget.recurrence',
# test_class=TestCase),

])

if __name__ == '__main__':
unittest.main(defaultTest='test_suite')
1 change: 1 addition & 0 deletions plone/formwidget/recurrence/version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0
36 changes: 36 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
from setuptools import setup, find_packages
import os

version = '1.0'

setup(name='plone.formwidget.recurrence',
version=version,
description="Recurrence widgets for Plone",
long_description=open("README.txt").read() + "\n" +
open(os.path.join("docs", "HISTORY.txt")).read(),
# Get more strings from
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Framework :: Plone",
"Programming Language :: Python",
],
keywords='Plone Event Recurrence Date Time Widget Archetypes z3c.form',
author='Plone Foundation',
author_email='[email protected]',
url='http://svn.plone.org/svn/collective/',
license='GPL',
packages=find_packages(exclude=['ez_setup']),
namespace_packages=['plone', 'plone.formwidget'],
include_package_data=True,
zip_safe=False,
install_requires=[
'setuptools',
# -*- Extra requirements: -*-
],
entry_points="""
# -*- Entry points: -*-
[z3c.autoinclude.plugin]
target = plone
""",
)

0 comments on commit 0ac332f

Please sign in to comment.