Skip to content

Commit

Permalink
primo commit
Browse files Browse the repository at this point in the history
  • Loading branch information
federicadelia committed Aug 23, 2010
1 parent 118f0db commit 0f3c51b
Show file tree
Hide file tree
Showing 11 changed files with 535 additions and 0 deletions.
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
=========

0.1.0dev (unreleased)
---------------------

- Initial release
52 changes: 52 additions & 0 deletions docs/INSTALL.txt
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.
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 @@
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.
6 changes: 6 additions & 0 deletions rer/__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__)
4 changes: 4 additions & 0 deletions rer/sitesearch/__init__.py
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."""
11 changes: 11 additions & 0 deletions rer/sitesearch/configure.zcml
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>
55 changes: 55 additions & 0 deletions rer/sitesearch/tests.py
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')
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[zopeskel]
template = plone

38 changes: 38 additions & 0 deletions setup.py
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"],
)

0 comments on commit 0f3c51b

Please sign in to comment.