22:56 PM
SmileyChris
Ohmnivore: you're right that you don't need the explicit id autofield though, it'd be the default anyway
22:56 PM
malgorath
FunkyBob: Stock tracking and shipping would be a perk
22:56 PM
Ohmnivore
yay!
22:57 PM
print imagesForm.save() gives [] uh oh
22:57 PM
but print imagesForm.forms[0].save() returns AdImage Object
22:57 PM
dafuq
22:57 PM
SmileyChris
so did it save to the db that time?
22:58 PM
schinckel
Ohmnivore: What does the FormSet look like?
22:58 PM
SmileyChris
22:58 PM
niki_ has quit
22:58 PM
mekhami_ joined the channel
22:58 PM
Ohmnivore
lol i thought you wanted a screenshot
22:59 PM
schinckel
Ohmnivore: AdImageFormSet?
22:59 PM
Ariel_Calzada joined the channel
22:59 PM
Ohmnivore
yup imagesForm.forms[0].save() saved to db
22:59 PM
schinckel
Ah, missed that at the start.
22:59 PM
Hmm. Can't remember what an inline formset returns.
22:59 PM
(when you save it)
22:59 PM
niki_ joined the channel
23:00 PM
malgorath
FunkyBob: did I stump ya? (first time for everything I guess)
23:00 PM
SmileyChris
schinckel: return self.save_existing_objects(commit) + self.save_new_objects(commit)
23:00 PM
schinckel
Yeah, just got to that.
23:01 PM
Ohmnivore: Can you drop into a debugger before the formset.save(), and step through that?
23:01 PM
SmileyChris
Ohmnivore: step into formset.save this time
23:02 PM
and step into save_new_objects
23:02 PM
limbera
is there a reindent.py equivalent for HTML
23:02 PM
FunkyBob
malgorath: not really...
23:02 PM
FunkyBob points at kogan.com
23:02 PM
I've done what you want, but not as an app
23:02 PM
skylite has quit
23:02 PM
have you looked at django-oscar ?
23:03 PM
malgorath
FunkyBob: a bit, seems a bit complicated but I'll consider it further
23:03 PM
Ohmnivore
schinckel: sure
23:03 PM
limbera
malgorath: not the answer to you question, but don't use paypal
23:03 PM
stripe is far better
23:03 PM
i hate grappling with paypal, although braintree is a step in the right direction
23:04 PM
Ohmnivore
schinckel: well actually form.save() saves to db as expected
23:04 PM
FunkyBob
malgorath: if you can, avoid anything to do with paypal
23:04 PM
Ohmnivore
schinckel: imagesForm.save() doesn't do anything it seems
23:04 PM
malgorath
limbera: been using paypal since it came out, done probably over $300K in transactions with them with no issues
23:04 PM
FunkyBob
malgorath: for instance... their sandbox does not behave the same as production
23:04 PM
geetar joined the channel
23:04 PM
malgorath
FunkyBob: Why do you say that? Just curious as I have heard some people not like them
23:04 PM
limbera
malgorath: i'm not saying you can't use it well
23:04 PM
stripe is just incredibly easy to use
23:04 PM
FunkyBob
their docs are fucking atrocious
23:05 PM
limbera
and i'd suggest you might have done over 300k if you had used someone else!
23:05 PM
:P
23:05 PM
malgorath
yeah when I made a php shopping cart I had to 'fix' some things to interact with PP properly
23:05 PM
limbera
their customer support is atrocious too
23:05 PM
geetar has left the channel
23:05 PM
23:06 PM
malgorath
I'm in canada so I don't know if stripe is even available up here for me
23:06 PM
FunkyBob
if it's available in AU, surely it's in Canada?
23:06 PM
schinckel
malgorath: More likely available for you than those of us over here in AU/NZ.
23:07 PM
djm- joined the channel
23:07 PM
limbera
stripe.js is amazing
23:07 PM
although i think braintree has implemented similar features
23:08 PM
SmileyChris
23:08 PM
Ohmnivore
schinckel: if u want i can dump the whole thing into a git repo
23:09 PM
malgorath
looking at the comparison though, seems for my volume per month strip is more expensive as I tend to do 5-8K per month through online payments and if I have a shopping cart that will likely double or triple
23:10 PM
meisth0th has quit
23:10 PM
opnchaudhary_ joined the channel
23:10 PM
limbera
yeah but you're talking losing $100 or so dollars
23:11 PM
for the benefit of not being on paypal
23:11 PM
ahahah
23:11 PM
rogue_michael has quit
23:11 PM
i suppose to the user they don't care who you use, as long as it works
23:11 PM
malgorath
yeah I guess that balances with good CSR and good documentaion
23:11 PM
limbera
and if you like paypal and understand it deeply then no point changing
23:11 PM
malgorath
IDK, righ tnow I'd be happy with a shopping cart then I'll worry about payment gateways later
23:12 PM
Threedee joined the channel
23:12 PM
SmileyChris
schinckel: ps, only AU not AU/NZ :'(
23:12 PM
telex joined the channel
23:13 PM
FunkyBob
what's a good music player for macos?
23:14 PM
malgorath
Decibel
23:14 PM
Does almost all the formats
23:14 PM
FunkyBob
almost all? does it do flac?
23:15 PM
johnraz joined the channel
23:15 PM
malgorath
Yup
23:15 PM
does not do some DSD, SACDs, and .iso images
23:17 PM
Jellydog has quit
23:17 PM
Ohmnivore
23:17 PM
brxs joined the channel
23:18 PM
the issue is that imagesForm.save_new_objects() returns an empty list
23:18 PM
SmileyChris
Ohmnivore: so did you step through that tooo?
23:19 PM
Ohmnivore
SmileyChris: yup
23:19 PM
SmileyChris
Ohmnivore: is it iterating self.extra_forms ?
23:21 PM
Ohmnivore
hmm how do i check that
23:21 PM
SmileyChris
Ohmnivore: when you stepped into save_new_objects, what was the flow?
23:21 PM
Ohmnivore: as you step through it you would have seen it looping these
23:22 PM
Ohmnivore
uhm it just printed []
23:23 PM
SmileyChris
Ohmnivore: what did?
23:24 PM
kanja
So I just deployed my site to two servers - CachedFileStorage is creating a different fingerprint for the base css file on the two servers
23:24 PM
Ohmnivore
SmileyChris: print imagesForm.save_new_objects()
23:25 PM
FunkyBob
malgorath: decibel doesn't react to the media control keys when it's not in focus... a bit annoying :/
23:25 PM
SmileyChris
Ohmnivore: so use pdb to step into it and see what is happening
23:25 PM
atlasloewenherz joined the channel
23:25 PM
malgorath
I don't use them ever FunkyBob sorry
23:25 PM
bjb has quit
23:25 PM
kanja
I'm deploying from git and git comais that every file is exact -
23:25 PM
FunkyBob
wonder what it'd take to port Rhytmbox :P
23:25 PM
kanja
what could be causing a different hash for the files OTHER than the file contents?
23:26 PM
malgorath
FunkyBob: IDK, is it in python or TK?
23:26 PM
kanja
there's a ton of different files - all of them EXEPCT the main css file (the most important one of course) are working perfectly
23:26 PM
bjb joined the channel
23:26 PM
malgorath
FunkyBob: if you can find the source, maybe try to compile it manually and se if it works :D
23:27 PM
yassine joined the channel
23:27 PM
Ohmnivore
SmileyChris: hmm now im getting an '[u'ManagementForm data is missing or has been tampered with']' error
23:27 PM
atlasloewenherz has quit
23:27 PM
malgorath
I really wish Mezzanine was using 1.7, it would make my life so much more easier. Wife could edit her own pages and leave me alone.
23:27 PM
djapo joined the channel
23:27 PM
Ohmnivore
SmileyChris: ill sort that out brb in 5 min
23:27 PM
codeme joined the channel
23:28 PM
NBhosting joined the channel
23:28 PM
hillaj joined the channel
23:28 PM
FunkyBob
malgorath: heh... what's why I wrote gnocchi-cms... so my wife could do her own sites
23:29 PM
malgorath: and now I'm trying to find a front-end person to commit to helping mw with my next CMS
23:29 PM
NBhosting
is it possible to post a form contents to a url instead of opening a view with form that redirect there
23:29 PM
malgorath
FunkyBob: I seem to only do Frontend work now a days even though I think I'm horrible at it, I get good reviews on stuff
23:29 PM
23:30 PM
FunkyBob
gah... FUCK YOU GOOGLE! DON'T RETURN SEARCH RESULTS THAT HAVE NONE OF MY SEARCH TERMS!
23:30 PM
schinckel
"But I'm smarter than you, FunkyBob" --Google
23:30 PM
NBhosting
so from form = IdealPaymentsForm(initial=newideal) to urllib post
23:30 PM
FunkyBob
*ahem*
23:31 PM
malgorath
I think our website looks horrible but the wife wont let me change it now
23:31 PM
FunkyBob
malgorath: it's more JS magicks that I need
23:32 PM
malgorath
23:33 PM
Ohmnivore
SmileyChris: how do i step through it?
23:33 PM
s?
23:35 PM
limbera
in my template i am calling model methods that return numeric values
23:35 PM
NBhosting
any easy way to convert form = IdealPaymentsForm(initial=newideal) to a list name/values
23:35 PM
limbera
is there a short hand in the template to say "if value is None - display a "--""
23:35 PM
or does that logic need to happen in the model method
23:36 PM
schinckel
{{ variable|defaultnone:"--" }}
23:36 PM
NBhosting
i gues its not very common what i wanna do, but i wanna keep the form between it
23:36 PM
limbera
thank you schneider
23:37 PM
schinckel
Sorry, {{ variable|default_if_none:"--" }}
23:37 PM
limbera
schinckel: even
23:37 PM
schneider
you're welcome limbera
23:37 PM
fof has quit
23:37 PM
NBhosting
something like form.list would be handy :P
23:37 PM
schinckel
NBhosting: You want validated data from that form? form.cleaned_data
23:37 PM
limbera
schinckel: turns out it's actually {{ value|default_if_none:"nothing" }}
23:38 PM
NBhosting
no i wanna post the contents of that form with urllib, so i need a list
23:38 PM
limbera
(y)
23:38 PM
hillaj has quit
23:38 PM
sargas joined the channel
23:38 PM
schinckel
NBhosting: Don't use urllib. Use requests.
23:38 PM
And IIRC you'll want a dict for your data structure to POST anyway.