Permalink
Browse files

package boilerplate

  • Loading branch information...
0 parents commit 751feb0842d670e9de32bc95f7b71af13ca1b371 @vipod vipod committed Jan 31, 2012
@@ -0,0 +1,4 @@
+recursive-include collective *
+recursive-include docs *
+global-exclude *pyc
+global-exclude *mo
@@ -0,0 +1,4 @@
+Introduction
+============
+
+Displays scaled plone content images inside Thickbox.
@@ -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__)
@@ -0,0 +1,3 @@
+# -*- extra stuff goes here -*-
+
+
@@ -0,0 +1,18 @@
+<configure
+ xmlns="http://namespaces.zope.org/zope"
+ xmlns:five="http://namespaces.zope.org/five"
+ xmlns:i18n="http://namespaces.zope.org/i18n"
+ xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
+ i18n_domain="collective.imageinbox">
+
+
+ <genericsetup:registerProfile
+ name="default"
+ title="collective.imageinbox"
+ directory="profiles/default"
+ description="Installs the collective.imageinbox package"
+ provides="Products.GenericSetup.interfaces.EXTENSION"
+ />
+ <!-- -*- extra stuff goes here -*- -->
+
+</configure>
@@ -0,0 +1,4 @@
+<?xml version="1.0"?>
+<metadata>
+ <version>1000</version>
+</metadata>
@@ -0,0 +1,57 @@
+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 collective.imageinbox
+
+
+class TestCase(ptc.PloneTestCase):
+
+ class layer(PloneSite):
+
+ @classmethod
+ def setUp(cls):
+ fiveconfigure.debug_mode = True
+ zcml.load_config('configure.zcml',
+ collective.imageinbox)
+ fiveconfigure.debug_mode = False
+
+ @classmethod
+ def tearDown(cls):
+ pass
+
+
+def test_suite():
+ return unittest.TestSuite([
+
+ # Unit tests
+ #doctestunit.DocFileSuite(
+ # 'README.txt', package='collective.imageinbox',
+ # setUp=testing.setUp, tearDown=testing.tearDown),
+
+ #doctestunit.DocTestSuite(
+ # module='collective.imageinbox.mymodule',
+ # setUp=testing.setUp, tearDown=testing.tearDown),
+
+
+ # Integration tests that use PloneTestCase
+ #ztc.ZopeDocFileSuite(
+ # 'README.txt', package='collective.imageinbox',
+ # test_class=TestCase),
+
+ #ztc.FunctionalDocFileSuite(
+ # 'browser.txt', package='collective.imageinbox',
+ # test_class=TestCase),
+
+ ])
+
+if __name__ == '__main__':
+ unittest.main(defaultTest='test_suite')
@@ -0,0 +1,7 @@
+Changelog
+=========
+
+1.0dev (unreleased)
+-------------------
+
+- Initial release
@@ -0,0 +1,43 @@
+collective.imageinbox Installation
+----------------------------------
+
+To install collective.imageinbox 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 collective.imageinbox``. Find out how to install setuptools
+ (and EasyInstall) here:
+ http://peak.telecommunity.com/DevCenter/EasyInstall
+
+* Create a file called ``collective.imageinbox-configure.zcml`` in the
+ ``/path/to/instance/etc/package-includes`` directory. The file
+ should only contain this::
+
+ <include package="collective.imageinbox" />
+
+
+Alternatively, if you are using zc.buildout and the plone.recipe.zope2instance
+recipe to manage your project, you can do this:
+
+* Add ``collective.imageinbox`` to the list of eggs to install, e.g.:
+
+ [buildout]
+ ...
+ eggs =
+ ...
+ collective.imageinbox
+
+* Tell the plone.recipe.zope2instance recipe to install a ZCML slug:
+
+ [instance]
+ recipe = plone.recipe.zope2instance
+ ...
+ zcml =
+ collective.imageinbox
+
+* 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.
Oops, something went wrong.

0 comments on commit 751feb0

Please sign in to comment.