forked from plone/plone.formwidget.recurrence
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tom Gross
committed
Oct 30, 2010
0 parents
commit 0ac332f
Showing
13 changed files
with
528 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.egg-info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Introduction | ||
============ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Changelog | ||
========= | ||
|
||
1.0dev (unreleased) | ||
------------------- | ||
|
||
- Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
""", | ||
) |