Re: satchmo paypal express checkout

2008-11-14 Thread Alessandro Ronchi
2008/11/14 Chris Moffitt [EMAIL PROTECTED]:
 This isn't for Satchmo exactly but it shows how to use with Django.
 Hopefully it helps point you in the right direction.

 http://uswaretech.com/blog/2008/11/using-paypal-with-django/

Thank you.
I have already implemented (using some python and django examples) a
payment library, but I cannot manage to insert it on my checkout flow,
because on chart I haven't the order and in the next step I have user
data request.

Maybe the best way should be to add a button on the step after cart
(where the user says how to ship and pay) and make the user data
optional, but I need to pass to paypal my order details, and I have to
create the order.



-- 
Alessandro Ronchi
Skype: aronchi
http://www.alessandroronchi.net

SOASI Soc.Coop. - www.soasi.com
Sviluppo Software e Sistemi Open Source
Sede: Via Poggiali 2/bis, 47100 Forlì (FC)
Tel.: +39 0543 798985 - Fax: +39 0543 579928

Rispetta l'ambiente: se non ti è necessario, non stampare questa mail

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Satchmo users group.
To post to this group, send email to satchmo-users@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: is there a mass import app?

2008-11-14 Thread Mike Hostetler
On Wed, Oct 29, 2008 at 11:12 AM, hugh muirhead [EMAIL PROTECTED]
 wrote:

 hi, would it be difficult to import a .csv of: product description, price,
 image, weight, dimensions, inventory, and product number, are there any
 existing scripts?, thanks.


It wouldn't be difficult at all  . . .

Our supplier has a large amount of products (~3500) in an XML file. I
studied the format a little bit, and took an hour to write a script that
parses the file, and puts in the products that we want, while creating
categories, downloading images, etc.

Surely a CSV file would be just as simple but the format would be different
for every supplier.  But the time you took converting their Excel format to
a Satchmo-specific, you could have whipped up the  custom script yourself.

That's my $0.02 . . .
-- 
Mike Hostetler
http://mike.hostetlerhome.com/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Satchmo users group.
To post to this group, send email to satchmo-users@googlegroups.com
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
-~--~~~~--~~--~--~---



HTML must die!

2008-11-14 Thread kbochert

Having got my Satchmo shop functioning, I turned my attention to
styling and was reminded how much I hate HTML and CSS.
 I found the tool 'clevercss', which seems to improve CSS a little, at
least in part by introducing Python concepts, and I thought 'why not
do the same for HTML -- introduce Python and Django concepts.

1- Use indentation to delimit blocks.
2- Quote HTML literal strings so an editor can highlight them easily
3- allow defined constants and macros.
4- inheritance like Django templates
5- indicate Django tag with a single char (reduce typing)
6- indicate Django vars with '[]' (reduce typing)
7- '#' comments like python

--- Some fragments ---

body:
h1: My Title
My Content  # indentation indicates end of h1 block

body:
h1: style = foo   #attributes are un-quoted
id = main  # attributes can also be here
My Title
My Content

.extends base.khtm   # '.' introduces (django) tag, no quotes
#  (khtm = 'kinder html')

.if [a_var]: # django var is  in brackets
content
br:  ;# use semicolon for empty block

a:
href= [besturl]
.trans Most Popular

a: href= [besturl] .trans Most Popular

.block Body:
some content

.var title = My page title
h1: [title]
content


It seems to me that this kind of thing is easily translated to Django
templates, quicker to type, easier to read, and infinitely extendable.
The syntax and names should be recognizable to a Python/Django/Html
user.

Any thoughts before I begin playing?

Karl

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Satchmo users group.
To post to this group, send email to satchmo-users@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: HTML must die!

2008-11-14 Thread Jeff Anderson
kbochert wrote:
 It seems to me that this kind of thing is easily translated to Django
 templates, quicker to type, easier to read, and infinitely extendable.
 The syntax and names should be recognizable to a Python/Django/Html
 user.
   
This seems like a good idea, and it'd be easily implemented as a
template rendering engine. I'd suggest posting to a different list
(Django-users maybe) to get more eyeballs on it.

I think it'd work well, and it's definitely easy to parse. It has the
feel of something similar to docutils, but it's closely tied to an html
document tree structure while Docutils tries to abstract the format, and
represent document elements as a tree.

I'd be willing to say that your idea is very good. It potentially could
become a total replacement for the way an html document is stored, but
it's an unrealistic possibility in practice. This is because you're
proposing what some might call a solution without a problem. Most
people don't mind html, and the ones that do would rather use a GUI html
editor. Your idea is still good, but I don't think it'd be something I'd
switch to even if it was a finished, turn-key product. I could be wrong,
and this could be the next laser. You never know.


Jeff Anderson



signature.asc
Description: OpenPGP digital signature