I was looking through the custom-product.txt documentation for making
custom product modules. I did succeed in making custom product modules
using the instructions at 
http://www.satchmoproject.com/docs/svn/custom-product.html

Here was my quick idea for a fast book product module.

Download django basic apps at:
svn checkout http://django-basic-apps.googlecode.com/svn/trunk/ basic

put the 'books' and 'people' apps in your python path

edit books/models.py
from satchmo.product.models import Product

add to Book model in books/models.py:
product = models.OneToOneField(Product, verbose_name=_('Product'),
primary_key=True)

def _get_subtype(self):
    return 'Book'

def __unicode__(self):
    return u"Book: %s" % self.product.name

add this into the meta for Book
class Meta:
    db_table = 'books'
    ordering = ('title',)
    verbose_name = _('Book')
    verbose_name_plural = _('Books')

Make a config.py following the directions in the earlier link in the
books directory.

A quick start to your own satchmo book custom product module.
If anyone tries this and has trouble, post here.

-Steve
--~--~---------~--~----~------------~-------~--~----~
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