Hi,

I, for one, will be quite interested in seeing your shopping cart.  
The one I'm using now is pretty awful. (It is, at least, reliable...  
otherwise I would've dumped it by now.)

TG 1.1 will definitely make it a lot easier to just drop in an  
external TG project. I don't think the extension mechanism is really  
what you need (ideally). What you need is the ability to configure  
multiple apps, which is what TG 1.1 is all about. Elvelind has done  
some work on this, but I don't think he's checked any of it in yet.

Kevin

On Oct 10, 2006, at 4:13 PM, Ian Charnas wrote:

>
> Hello!  I just finished writing a beta version of a shopping cart
> system for TurboGears called TGMart, and am now using it with one  
> of my
> clients to test it out in the real world.  The client has OK-ed me to
> open-source it, which leaves me the task of packaging it up somehow so
> it can easily be installed by someone else running their own  
> TurboGears
> site....
>
> HOW DO I PACKAGE MY PRODUCT SO IT'S EASY TO INTEGRATE WITH AN EXISTING
> SITE?
>
> I've kept the TGMart turbogears project separate from the turbogears
> project that holds the site templates and content only by doing some
> serious customizations.  If I had to write an "INSTALL HOWTO" right
> now, it would be like this:
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> 1. Make your project for your site (ex. MyTGSite)
>
> 2. Download the TGMart project and do a "python setup.py develop"
> inside the project directory
>
> 3. In MyTGSite, do the following:
>
> a) make a symlink inside the 'static' directory to:
> TGMart/tgmart/static/tgmstatic
>
> b) make a symlink inside the 'templates' directory to
> TGMart/tgmart/templates/tgmtemplates
>
> c) make a symlink inside the 'config' directory to:
> TGMart/tgmart/config/tgm.cfg
>
> d) We need to allow tgmart to directly use our master.kid file, so  
> edit
> 'start-mytgsite.py' and put this right after the imports:
> # CONFIGURE TGMART BASETEMPLATE
> # allow tgmart to use our template
> turbogears.view.baseTemplates.append('mysite.templates.master')
> config.update 
> ({'tgmart.config.sitetemplate':'mysite.templates.master'})
>
> e) edit your master.kid file to include the appropriate TGMart pieces:
>        * above the <html> tag, put some python to import some TGMart
> templates:
>          <?python import tgmart.templates.pieces as tgmpieces ?>
>        * in the <html> tag, there should be an attribute like this:
>              py:extends="sitetemplate"
>          change this to look like this:
>              py:extends="sitetemplate, tgmpieces"
>        * somewhere between <head> and </head>, insert:
>              <!-- TGMart CSS -->
>              <link id="tgmCSSLink" />
>        * optionally, if you would like the Summary Box (shows shopping
> cart info) to appear
>          on all your pages, put this somewhere in your master.kid:
>          <div id="tgmShoppingCartSimpleSummaryBox" />
>
> f) We need to make it so if you do a "tg-admin sql create" in mysite,
> it will add the necessary tgmart tables into your database).. so edit
> MyTGSite/MyTGSite.egg-info/sqlobject and change db_module to read:
> db_module=mysite.model, tgmart.model
>
> g) We need to make it so tg-admin shell will know about the tgmart
> model, so edit your 'model.py' file and put this in with the imports:
> from tgmart.model import *
>
> h) Now we set up our "manage my store" controller.  In your controller
> file, put the StoreAdmin controller somewhere like so:
> from tgmart.controllers.storeadmin import StoreAdmin
> admin = StoreAdmin()
>
> i) Finally do a "tg-admin sql create" to create the database tables.
>
> 4. Now we're ready to add our products.  Restart turbogears and visit
> http://yoursite/admin (or wherever you put the admin controller), and
> follow the directions there to add your product.
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
> Now this is *way* too much to expect anyone to do to install a  
> product.
>  I need all of step 3 (a-i) to be automated.  This is the step where I
> integrate the templates, the model, static files, and the config for
> TGMart into the existing application.  Isn't there an easier way to do
> this, while still keeping TGMart in its own project directory?
>
> please help!  I'd like to also release the photo gallery and CMS I'm
> working on, but only if they can be self-contained easy-to-install
> products.  Any tips?  Should I ask more specific questions?
>
> much appreciated!
> -Ian Charnas
> [EMAIL PROTECTED]
>
>
> >


--
Kevin Dangoor
TurboGears / Zesty News

email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to