Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed unnecessary modules and some cosmetics.

  • Loading branch information...
commit 330f483fee4fd5ad6b5266a4cfabd0d487f46b2e 1 parent 7c5b0dd
@taito taito authored
View
2  src/collective/cart/core/interfaces/__init__.py → src/collective/cart/core/interfaces.py
@@ -36,8 +36,6 @@ class ICart(form.Schema):
class ICartArticle(form.Schema):
"""Schema for CartArticle content type."""
- # orig_uuid = Attribute('Original UUID')
-
class IShoppingSiteRoot(form.Schema):
"""Marker interface for Shopping Site Root."""
View
18 src/collective/cart/core/interfaces/marker.py
@@ -1,18 +0,0 @@
-# from zope.annotation.interfaces import IAttributeAnnotatable
-# from zope.interface import Interface
-
-
-# class IPotentiallyAddableToCart(Interface):
-# """Marker interface to content type instance to make potentially addable to cart."""
-
-
-# class IAddableToCart(IPotentiallyAddableToCart, IAttributeAnnotatable):
-# """Marker interface to content type instance which is made addable to cart."""
-
-
-# class IProductAnnotations(Interface):
-# """Marker interface for product information stored in annotation."""
-
-
-# class ICartAware(Interface):
-# """Marker interface for content types to make cart aware."""
View
6 src/collective/cart/core/locales/collective.cart.core.pot
@@ -4,7 +4,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2013-03-11 13:53+0000\n"
+"POT-Creation-Date: 2013-03-20 08:57+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -75,7 +75,7 @@ msgstr ""
msgid "Delete"
msgstr ""
-#: ./interfaces/__init__.py:32
+#: ./interfaces.py:32
msgid "Description"
msgstr ""
@@ -100,7 +100,7 @@ msgstr ""
msgid "Name"
msgstr ""
-#: ./interfaces/__init__.py:17
+#: ./interfaces.py:17
msgid "Next Cart ID"
msgstr ""
View
6 src/collective/cart/core/locales/fi/LC_MESSAGES/collective.cart.core.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2013-03-11 13:53+0000\n"
+"POT-Creation-Date: 2013-03-20 08:57+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -72,7 +72,7 @@ msgstr "Luotu"
msgid "Delete"
msgstr "Poista"
-#: ./interfaces/__init__.py:32
+#: ./interfaces.py:32
msgid "Description"
msgstr "Kuvaus"
@@ -97,7 +97,7 @@ msgstr "Tee tästä konteinerista kauppa."
msgid "Name"
msgstr "Nimi"
-#: ./interfaces/__init__.py:17
+#: ./interfaces.py:17
msgid "Next Cart ID"
msgstr "Seuraava ostoskoritunnus"
View
19 src/collective/cart/core/tests/test_CartAdapter.py
@@ -26,40 +26,33 @@ def test_provides(self):
from collective.cart.core.interfaces import ICartAdapter
self.assertEqual(getattr(CartAdapter, 'grokcore.component.directive.provides'), ICartAdapter)
- def create_cart(self):
- """Create cart."""
- cart = createContentInContainer(self.portal, 'collective.cart.core.Cart', id='1',
- checkConstraints=False)
- modified(cart)
- return cart
-
def test_instance(self):
from collective.cart.core.adapter.cart import CartAdapter
from collective.cart.core.interfaces import ICartAdapter
- cart = self.create_cart()
+ cart = self.create_content('collective.cart.core.Cart', id='1')
self.assertIsInstance(ICartAdapter(cart), CartAdapter)
def test_instance__context(self):
from collective.cart.core.interfaces import ICart
from collective.cart.core.interfaces import ICartAdapter
- cart = self.create_cart()
+ cart = self.create_content('collective.cart.core.Cart', id='1')
self.assertEqual(getattr(ICartAdapter(cart), 'grokcore.component.directive.context'), ICart)
def test_instance__provides(self):
from collective.cart.core.interfaces import ICartAdapter
- cart = self.create_cart()
+ cart = self.create_content('collective.cart.core.Cart', id='1')
self.assertEqual(getattr(ICartAdapter(cart), 'grokcore.component.directive.provides'), ICartAdapter)
def test_articles__None(self):
"""Test property: articles when there are no articles in the cart."""
from collective.cart.core.interfaces import ICartAdapter
- cart = self.create_cart()
+ cart = self.create_content('collective.cart.core.Cart', id='1')
self.assertEqual(len(ICartAdapter(cart).articles), 0)
def test_articles__Two(self):
"""Test property: articles when there are two articles in the cart."""
from collective.cart.core.interfaces import ICartAdapter
- cart = self.create_cart()
+ cart = self.create_content('collective.cart.core.Cart', id='1')
article1 = createContentInContainer(cart, 'collective.cart.core.CartArticle',
id='1', checkConstraints=False)
modified(article1)
@@ -70,7 +63,7 @@ def test_articles__Two(self):
def test_get_article(self):
from collective.cart.core.interfaces import ICartAdapter
- cart = self.create_cart()
+ cart = self.create_content('collective.cart.core.Cart', id='1')
self.assertIsNone(ICartAdapter(cart).get_article('1'))
article1 = createContentInContainer(cart, 'collective.cart.core.CartArticle',
View
1  travis.cfg
@@ -18,7 +18,6 @@ package-name = collective.cart.core
versions = versions
[versions]
-Pillow = 1.7.8
collective.base = 0.3
collective.behavior.salable = 0.4
five.pt = 2.2.1
Please sign in to comment.
Something went wrong with that request. Please try again.