-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
118f0db
commit 0f3c51b
Showing
11 changed files
with
535 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,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 | ||
========= | ||
|
||
0.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,52 @@ | ||
rer.sitesearch Installation | ||
--------------------------- | ||
|
||
To install rer.sitesearch into the global Python environment (or a workingenv), | ||
using a traditional Zope 2 instance, you can do this: | ||
|
||
* When you're reading this you have probably already run | ||
``easy_install rer.sitesearch``. Find out how to install setuptools | ||
(and EasyInstall) here: | ||
http://peak.telecommunity.com/DevCenter/EasyInstall | ||
|
||
* If you are using Zope 2.9 (not 2.10), get `pythonproducts`_ and install it | ||
via:: | ||
|
||
python setup.py install --home /path/to/instance | ||
|
||
into your Zope instance. | ||
|
||
* Create a file called ``rer.sitesearch-configure.zcml`` in the | ||
``/path/to/instance/etc/package-includes`` directory. The file | ||
should only contain this:: | ||
|
||
<include package="rer.sitesearch" /> | ||
|
||
.. _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 ``rer.sitesearch`` to the list of eggs to install, e.g.: | ||
|
||
[buildout] | ||
... | ||
eggs = | ||
... | ||
rer.sitesearch | ||
|
||
* Tell the plone.recipe.zope2instance recipe to install a ZCML slug: | ||
|
||
[instance] | ||
recipe = plone.recipe.zope2instance | ||
... | ||
zcml = | ||
rer.sitesearch | ||
|
||
* 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 @@ | ||
rer.sitesearch is copyright RedTurtle Technology | ||
|
||
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,4 @@ | ||
# -*- extra stuff goes here -*- | ||
|
||
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,11 @@ | ||
<configure | ||
xmlns="http://namespaces.zope.org/zope" | ||
xmlns:five="http://namespaces.zope.org/five" | ||
xmlns:i18n="http://namespaces.zope.org/i18n" | ||
i18n_domain="rer.sitesearch"> | ||
|
||
<five:registerPackage package="." initialize=".initialize" /> | ||
|
||
<!-- -*- extra stuff goes here -*- --> | ||
|
||
</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,55 @@ | ||
import unittest | ||
|
||
#from zope.testing import doctestunit | ||
#from zope.component import testing | ||
from Testing import ZopeTestCase as ztc | ||
|
||
from Products.Five import fiveconfigure | ||
from Products.PloneTestCase import PloneTestCase as ptc | ||
from Products.PloneTestCase.layer import PloneSite | ||
ptc.setupPloneSite() | ||
|
||
import rer.sitesearch | ||
|
||
|
||
class TestCase(ptc.PloneTestCase): | ||
|
||
class layer(PloneSite): | ||
|
||
@classmethod | ||
def setUp(cls): | ||
fiveconfigure.debug_mode = True | ||
ztc.installPackage(rer.sitesearch) | ||
fiveconfigure.debug_mode = False | ||
|
||
@classmethod | ||
def tearDown(cls): | ||
pass | ||
|
||
|
||
def test_suite(): | ||
return unittest.TestSuite([ | ||
|
||
# Unit tests | ||
#doctestunit.DocFileSuite( | ||
# 'README.txt', package='rer.sitesearch', | ||
# setUp=testing.setUp, tearDown=testing.tearDown), | ||
|
||
#doctestunit.DocTestSuite( | ||
# module='rer.sitesearch.mymodule', | ||
# setUp=testing.setUp, tearDown=testing.tearDown), | ||
|
||
|
||
# Integration tests that use PloneTestCase | ||
#ztc.ZopeDocFileSuite( | ||
# 'README.txt', package='rer.sitesearch', | ||
# test_class=TestCase), | ||
|
||
#ztc.FunctionalDocFileSuite( | ||
# 'browser.txt', package='rer.sitesearch', | ||
# 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,3 @@ | ||
[zopeskel] | ||
template = plone | ||
|
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,38 @@ | ||
from setuptools import setup, find_packages | ||
import os | ||
|
||
version = '0.1.0' | ||
|
||
setup(name='rer.sitesearch', | ||
version=version, | ||
description="", | ||
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='', | ||
author='RedTurtle Technology', | ||
author_email='[email protected]', | ||
url='http://svn.plone.org/svn/collective/', | ||
license='GPL', | ||
packages=find_packages(exclude=['ez_setup']), | ||
namespace_packages=['rer'], | ||
include_package_data=True, | ||
zip_safe=False, | ||
install_requires=[ | ||
'setuptools', | ||
# -*- Extra requirements: -*- | ||
], | ||
entry_points=""" | ||
# -*- Entry points: -*- | ||
[z3c.autoinclude.plugin] | ||
target = plone | ||
""", | ||
setup_requires=["PasteScript"], | ||
paster_plugins=["ZopeSkel"], | ||
) |