diff --git a/README.txt b/README.txt
index 6f0cd06..4ffa7e6 100644
--- a/README.txt
+++ b/README.txt
@@ -1,7 +1,7 @@
-experimental.shoppingbehavior
+collective.shoppingbehavior
=============================
-This document contains design notes for the ``experimental.shoppingbehavior``
+This document contains design notes for the ``collective.shoppingbehavior``
package.
Introduction
diff --git a/experimental/__init__.py b/collective/__init__.py
similarity index 100%
rename from experimental/__init__.py
rename to collective/__init__.py
diff --git a/experimental/shoppingbehavior/__init__.py b/collective/shoppingbehavior/__init__.py
similarity index 83%
rename from experimental/shoppingbehavior/__init__.py
rename to collective/shoppingbehavior/__init__.py
index 369f4a9..86b7630 100644
--- a/experimental/shoppingbehavior/__init__.py
+++ b/collective/shoppingbehavior/__init__.py
@@ -3,4 +3,4 @@
# Define a message factory for when this product is internationalised.
# This will be imported with the special name "_" in most modules. Strings
# like _(u"message") will then be extracted by i18n tools for translation.
-_ = MessageFactory("experimental.shoppingbehavior")
+_ = MessageFactory("collective.shoppingbehavior")
diff --git a/experimental/shoppingbehavior/behaviors.py b/collective/shoppingbehavior/behaviors.py
similarity index 95%
rename from experimental/shoppingbehavior/behaviors.py
rename to collective/shoppingbehavior/behaviors.py
index 28eaced..8f2d7b6 100644
--- a/experimental/shoppingbehavior/behaviors.py
+++ b/collective/shoppingbehavior/behaviors.py
@@ -2,7 +2,7 @@
from zope import schema
from plone.directives import form
-from experimental.shoppingbehavior import _
+from collective.shoppingbehavior import _
class IPotentiallyPriced(zif.Interface):
diff --git a/experimental/shoppingbehavior/behaviors.zcml b/collective/shoppingbehavior/behaviors.zcml
similarity index 93%
rename from experimental/shoppingbehavior/behaviors.zcml
rename to collective/shoppingbehavior/behaviors.zcml
index 29dd128..c6c427c 100644
--- a/experimental/shoppingbehavior/behaviors.zcml
+++ b/collective/shoppingbehavior/behaviors.zcml
@@ -3,7 +3,7 @@
xmlns:plone="http://namespaces.plone.org/plone"
xmlns:grok="http://namespaces.zope.org/grok"
xmlns:browser="http://namespaces.zope.org/browser"
- i18n_domain="experimental.shoppingbehavior">
+ i18n_domain="collective.shoppingbehavior">
diff --git a/experimental/shoppingbehavior/cart.py b/collective/shoppingbehavior/cart.py
similarity index 98%
rename from experimental/shoppingbehavior/cart.py
rename to collective/shoppingbehavior/cart.py
index a9329df..289c8c5 100644
--- a/experimental/shoppingbehavior/cart.py
+++ b/collective/shoppingbehavior/cart.py
@@ -10,7 +10,7 @@
from groundwire.checkout.utils import get_cart
from groundwire.checkout.utils import redirect_to_checkout
-from experimental.shoppingbehavior import behaviors
+from collective.shoppingbehavior import behaviors
class ICallbackLineItem(IPayableLineItem):
diff --git a/collective/shoppingbehavior/config.py b/collective/shoppingbehavior/config.py
new file mode 100644
index 0000000..b4b7655
--- /dev/null
+++ b/collective/shoppingbehavior/config.py
@@ -0,0 +1,3 @@
+# Globals and constants
+
+PRICE_BEHAVIOR_KEY = 'collective.shoppingbehavior.pricebehavior'
diff --git a/experimental/shoppingbehavior/configure.zcml b/collective/shoppingbehavior/configure.zcml
similarity index 79%
rename from experimental/shoppingbehavior/configure.zcml
rename to collective/shoppingbehavior/configure.zcml
index fecfe88..4cd1bf9 100644
--- a/experimental/shoppingbehavior/configure.zcml
+++ b/collective/shoppingbehavior/configure.zcml
@@ -4,7 +4,7 @@
xmlns:i18n="http://namespaces.zope.org/i18n"
xmlns:grok="http://namespaces.zope.org/grok"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
- i18n_domain="experimental.shoppingbehavior">
+ i18n_domain="collective.shoppingbehavior">
@@ -16,9 +16,9 @@
diff --git a/experimental/shoppingbehavior/portlets/__init__.py b/collective/shoppingbehavior/portlets/__init__.py
similarity index 100%
rename from experimental/shoppingbehavior/portlets/__init__.py
rename to collective/shoppingbehavior/portlets/__init__.py
diff --git a/experimental/shoppingbehavior/portlets/configure.zcml b/collective/shoppingbehavior/portlets/configure.zcml
similarity index 88%
rename from experimental/shoppingbehavior/portlets/configure.zcml
rename to collective/shoppingbehavior/portlets/configure.zcml
index 492c29a..92c1e15 100644
--- a/experimental/shoppingbehavior/portlets/configure.zcml
+++ b/collective/shoppingbehavior/portlets/configure.zcml
@@ -5,7 +5,7 @@
\ No newline at end of file
diff --git a/experimental/shoppingbehavior/testing.py b/collective/shoppingbehavior/testing.py
similarity index 81%
rename from experimental/shoppingbehavior/testing.py
rename to collective/shoppingbehavior/testing.py
index 809cc11..eb490be 100644
--- a/experimental/shoppingbehavior/testing.py
+++ b/collective/shoppingbehavior/testing.py
@@ -18,12 +18,12 @@ class ExpShopping(PloneSandboxLayer):
def setUpZope(self, app, configurationContext):
# Load ZCML
- import experimental.shoppingbehavior
- xmlconfig.file('configure.zcml', experimental.shoppingbehavior,
+ import collective.shoppingbehavior
+ xmlconfig.file('configure.zcml', collective.shoppingbehavior,
context=configurationContext)
def setUpPloneSite(self, portal):
- applyProfile(portal, 'experimental.shoppingbehavior:default')
+ applyProfile(portal, 'collective.shoppingbehavior:default')
EXP_SHOPPING_FIXTURE = ExpShopping()
EXP_SHOPPING_INTEGRATION_TESTING = IntegrationTesting(
diff --git a/experimental/shoppingbehavior/tests/__init__.py b/collective/shoppingbehavior/tests/__init__.py
similarity index 100%
rename from experimental/shoppingbehavior/tests/__init__.py
rename to collective/shoppingbehavior/tests/__init__.py
diff --git a/experimental/shoppingbehavior/tests/test_cart.py b/collective/shoppingbehavior/tests/test_cart.py
similarity index 88%
rename from experimental/shoppingbehavior/tests/test_cart.py
rename to collective/shoppingbehavior/tests/test_cart.py
index a4c4451..7b6c1d6 100644
--- a/experimental/shoppingbehavior/tests/test_cart.py
+++ b/collective/shoppingbehavior/tests/test_cart.py
@@ -1,13 +1,13 @@
import unittest2 as unittest
import fudge
from zope.publisher.browser import TestRequest
-from experimental.shoppingbehavior import cart
+from collective.shoppingbehavior import cart
class TestCart(unittest.TestCase):
- @fudge.patch('experimental.shoppingbehavior.cart.get_cart')
- @fudge.patch('experimental.shoppingbehavior.cart.queryMultiAdapter')
+ @fudge.patch('collective.shoppingbehavior.cart.get_cart')
+ @fudge.patch('collective.shoppingbehavior.cart.queryMultiAdapter')
def testAdd(self, fake_get_cart, queryMultiAdapter):
# set up a fake cart
(fake_get_cart.expects_call()
@@ -35,7 +35,7 @@ class TestCartView(unittest.TestCase):
isolation.
"""
- @fudge.patch('experimental.shoppingbehavior.cart.Cart')
+ @fudge.patch('collective.shoppingbehavior.cart.Cart')
def testCartViewCallsWithZeroQtyByDefault(self, Cart):
context = object()
fakeCartInstance = (fudge.Fake()
@@ -47,7 +47,7 @@ def testCartViewCallsWithZeroQtyByDefault(self, Cart):
view = cart.CartView(context, TestRequest())
view.update()
- @fudge.patch('experimental.shoppingbehavior.cart.Cart')
+ @fudge.patch('collective.shoppingbehavior.cart.Cart')
def testCartViewCallsWithQtyFromRequest(self, Cart):
context = object()
testQty = '3'
@@ -61,7 +61,7 @@ def testCartViewCallsWithQtyFromRequest(self, Cart):
view = cart.CartView(context, request)
view.update()
- @fudge.patch('experimental.shoppingbehavior.cart.Cart')
+ @fudge.patch('collective.shoppingbehavior.cart.Cart')
def testOnlyCallsCheckoutIfAddSucceeds(self, Cart):
context = object()
testQty = '3'
diff --git a/experimental/shoppingbehavior/tests/test_pricing.py b/collective/shoppingbehavior/tests/test_pricing.py
similarity index 93%
rename from experimental/shoppingbehavior/tests/test_pricing.py
rename to collective/shoppingbehavior/tests/test_pricing.py
index 9da5ffc..81966e4 100644
--- a/experimental/shoppingbehavior/tests/test_pricing.py
+++ b/collective/shoppingbehavior/tests/test_pricing.py
@@ -7,18 +7,18 @@
from plone.behavior.interfaces import IBehaviorAssignable
from plone.behavior.interfaces import IBehavior
-from experimental.shoppingbehavior import behaviors
-from experimental.shoppingbehavior.testing import StubContext
+from collective.shoppingbehavior import behaviors
+from collective.shoppingbehavior.testing import StubContext
from plone.testing.zca import UNIT_TESTING
configuration = """\
+ i18n_domain="collective.shoppingbehavior">
diff --git a/experimental/shoppingbehavior/tests/test_setup.py b/collective/shoppingbehavior/tests/test_setup.py
similarity index 75%
rename from experimental/shoppingbehavior/tests/test_setup.py
rename to collective/shoppingbehavior/tests/test_setup.py
index 0f56441..783fcf5 100644
--- a/experimental/shoppingbehavior/tests/test_setup.py
+++ b/collective/shoppingbehavior/tests/test_setup.py
@@ -4,7 +4,7 @@
from plone.behavior.interfaces import IBehavior
from zope.annotation.interfaces import IAttributeAnnotatable
-from experimental.shoppingbehavior.testing import EXP_SHOPPING_INTEGRATION_TESTING
+from collective.shoppingbehavior.testing import EXP_SHOPPING_INTEGRATION_TESTING
class SomeContext(object):
@@ -17,11 +17,11 @@ class TestConfiguration(unittest.TestCase):
def testBehaviorInRegistry(self):
priced = queryUtility(IBehavior,
- name='experimental.shoppingbehavior.behaviors.IPriced')
+ name='collective.shoppingbehavior.behaviors.IPriced')
self.failUnless(priced is not None)
def testBehaviorProvidesFields(self):
from plone.directives.form import IFormFieldProvider
priced = queryUtility(IBehavior,
- name='experimental.shoppingbehavior.behaviors.IPriced')
+ name='collective.shoppingbehavior.behaviors.IPriced')
self.assertTrue(IFormFieldProvider.providedBy(priced.interface))
diff --git a/docs/INSTALL.txt b/docs/INSTALL.txt
index 5af8c55..d39bdac 100644
--- a/docs/INSTALL.txt
+++ b/docs/INSTALL.txt
@@ -1,31 +1,31 @@
-experimental.shoppingbehavior Installation
+collective.shoppingbehavior Installation
------------------------------------------
-To install experimental.shoppingbehavior into the global Python environment (or a workingenv),
+To install collective.shoppingbehavior 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 experimental.shoppingbehavior``. Find out how to install setuptools
+ ``easy_install collective.shoppingbehavior``. Find out how to install setuptools
(and EasyInstall) here:
http://peak.telecommunity.com/DevCenter/EasyInstall
-* Create a file called ``experimental.shoppingbehavior-configure.zcml`` in the
+* Create a file called ``collective.shoppingbehavior-configure.zcml`` in the
``/path/to/instance/etc/package-includes`` directory. The file
should only contain this::
-
+
Alternatively, if you are using zc.buildout and the plone.recipe.zope2instance
recipe to manage your project, you can do this:
-* Add ``experimental.shoppingbehavior`` to the list of eggs to install, e.g.:
+* Add ``collective.shoppingbehavior`` to the list of eggs to install, e.g.:
[buildout]
...
eggs =
...
- experimental.shoppingbehavior
+ collective.shoppingbehavior
* Tell the plone.recipe.zope2instance recipe to install a ZCML slug:
@@ -33,7 +33,7 @@ recipe to manage your project, you can do this:
recipe = plone.recipe.zope2instance
...
zcml =
- experimental.shoppingbehavior
+ collective.shoppingbehavior
* Re-run buildout, e.g. with:
diff --git a/docs/LICENSE.txt b/docs/LICENSE.txt
index 4ade68e..4314f7f 100644
--- a/docs/LICENSE.txt
+++ b/docs/LICENSE.txt
@@ -1,4 +1,4 @@
- experimental.shoppingbehavior is copyright Jesse Snyder
+ collective.shoppingbehavior is copyright Jesse Snyder
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
diff --git a/experimental/shoppingbehavior/config.py b/experimental/shoppingbehavior/config.py
deleted file mode 100644
index 677017b..0000000
--- a/experimental/shoppingbehavior/config.py
+++ /dev/null
@@ -1,3 +0,0 @@
-# Globals and constants
-
-PRICE_BEHAVIOR_KEY = 'experimental.shoppingbehavior.pricebehavior'
diff --git a/setup.py b/setup.py
index 3de80b0..5695fc4 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@
version = '1.0'
-setup(name='experimental.shoppingbehavior',
+setup(name='collective.shoppingbehavior',
version=version,
description="Plone behavior to support price assignment on dexterity content",
long_description=open("README.txt").read() + "\n" +
@@ -17,10 +17,10 @@
keywords='',
author='Jesse Snyder',
author_email='jsnyder@wesleyan.edu',
- url='https://github.com/jessesnyder/experimental.shoppingbehavior',
+ url='https://github.com/jessesnyder/collective.shoppingbehavior',
license='GPL',
packages=find_packages(exclude=['ez_setup']),
- namespace_packages=['experimental'],
+ namespace_packages=['collective'],
include_package_data=True,
zip_safe=False,
install_requires=[