Per the Satchmo documentation, I've added a custom product module
using a config.py file and this line:

PRODUCT_TYPES.add_choice(('site::Media', _('Media')))

Within satchmo.apps.product.models's get_subtypes function, it loops
over PRODUCT_TYPES (line 1003). It splits each key on "::" into two
variables: app and subtype. Then it gets weird. It tries to access the
subtype as an attribute of the Product:

subclass = getattr(self, subtype.lower())

In my case, it tries to look for product.media and I get an
AttributeError thrown saying Product has no attribute "media" (which
makes perfect sense). This code is inside a try/except, but the except
is only looking for models.ObjectDoesNotExist errors.

This looks to me like a bug and I'll file a bug report if it looks the
same to others too.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to