5:45 AM
kl4us joined the channel
5:45 AM
FunkyBob
it's a "potential" query which, when iterated, will yield records
5:45 AM
madprops
I thought it already had the records hmm
5:46 AM
kl4us has quit
5:46 AM
uuball_gabriel
is there any method to slice the QuerySet object?
5:47 AM
Cromulent joined the channel
5:47 AM
mattmcc
5:47 AM
moneydouble joined the channel
5:48 AM
japandroid has quit
5:49 AM
FunkyBob
5:50 AM
felix89 joined the channel
5:51 AM
jayant__
how are you guys ?
5:52 AM
estebistec has quit
5:52 AM
calvinx has quit
5:52 AM
rudedogg has quit
5:52 AM
moneydouble has quit
5:52 AM
eppa is now known as eppa|codeshop
5:53 AM
schinckel
jayant__: Not too bad. It's friday, after all!
5:53 AM
rudedogg joined the channel
5:53 AM
epicowl joined the channel
5:53 AM
jayant__
hahaha :D
5:53 AM
nice
5:54 AM
schinckel
uuball_gabriel: You can't slice it from the end, only the start.
5:54 AM
FunkyBob
schinckel: ooh.. getting close to beer o'clock
5:54 AM
schinckel
I actually had a G&T last night: first one in months.
5:54 AM
FunkyBob
uuball_gabriel: but you can reverse() it and the slice from the start
5:54 AM
mattmcc
Speaking of beer.. *heads out*
5:55 AM
eppa|codeshop
ooh
5:55 AM
jayant__
i am leaving on monday so will have to cover some time on the weekend :P
5:56 AM
anyways, i need a few answers
5:57 AM
AlbireoX joined the channel
5:57 AM
nanonyme
mattmcc, I still have one Friday exam. yay
5:58 AM
rydgel joined the channel
5:58 AM
jayant__
i have a custom registration that handles token generation and email that token to the user, i tested the registration app by writing tests script, it works good but the same doesnt work in another tests script in a different app
5:59 AM
cyong has quit
5:59 AM
McMAGIC--Copy has quit
5:59 AM
the custom registration basically acts on post_save signal of the User model
5:59 AM
rrix is now known as ddix
5:59 AM
ddix is now known as rrix
5:59 AM
rudedogg has quit
5:59 AM
McMAGIC--Copy joined the channel
6:00 AM
aladdinwang joined the channel
6:00 AM
epicowl has quit
6:00 AM
dodobas
yello
6:00 AM
twoface joined the channel
6:00 AM
jayant__
but the tests in the registration app passed, i got another app depending on the token to be generated but its not working any ideas?? or am i still unclear
6:02 AM
sudobangbang joined the channel
6:02 AM
epicowl joined the channel
6:02 AM
lightstrike has quit
6:02 AM
rydgel has quit
6:04 AM
calvinx joined the channel
6:04 AM
frequant joined the channel
6:05 AM
naro joined the channel
6:06 AM
setmeaway joined the channel
6:06 AM
sohail has quit
6:08 AM
6:08 AM
golodhrim has quit
6:09 AM
golodhrim joined the channel
6:09 AM
twoface
jayant__, your PasswordChangeForm requires an extra parameter, and thus cant be used like that in a FormView
6:10 AM
FunkyBob
you'd have to override get_form_kwargs
6:10 AM
twoface
right, that was the way
6:10 AM
jayant__
twoface: alrite, but i am using the forms in the auth app
6:10 AM
twoface will never learn to use CBVs properly
6:10 AM
golodhrim has quit
6:10 AM
twoface
even though i have a prototype app with ~30 cbvs :/
6:10 AM
jayant__
twoface: well i am not sure about me too
6:11 AM
hwrd|work has quit
6:11 AM
golodhrim joined the channel
6:11 AM
bgraham
we need IDEs where parent classes are layered behind those in the file you're looking at, like transparent overlays in a medical textbook
6:12 AM
kanja has quit
6:12 AM
twoface
not a bad idea
6:12 AM
golodhrim has quit
6:13 AM
FunkyBob
twoface: that method to override was right there in the traceback :P
6:13 AM
golodhrim joined the channel
6:13 AM
bja_
would be interesting to toggle showing inherited things in my editor
6:13 AM
possibly color coded to let me know when I'm overriding things
6:13 AM
twoface
FunkyBob, i guess i just saw CBV and gave up :)
6:14 AM
PoliticsII
Pycharm lets you break off editor tabs into their own windows, and also has an effective goto-declaration choice in the context menu
6:14 AM
bja_
actual IDEs probably alreayd do that, but I'm pretty sure python-mode doesn't do that
6:14 AM
_Codewaffle_ joined the channel
6:14 AM
PoliticsII
and has some shortcuts for going to overridden methods
6:14 AM
corehook joined the channel
6:14 AM
FunkyBob
find me an editor that will tile windows
6:14 AM
PoliticsII
I can't speak for every IDE, but PyCharm works very nicely for exploring inheritance relationships.
6:15 AM
eppa|codeshop
FunkyBob: emacs, dude
6:15 AM
jayant__
FunkyBob: twoface override the get_form_kwargs to what?
6:15 AM
FunkyBob
eppa|codeshop: bit me :P
6:15 AM
eppa|codeshop: vi does it just fine
6:15 AM
bja_
it'd be nice to say ,ca ,cA ,ci to toggle class inheritance views in vim the same way that I can toggle folding via za zA and zi
6:15 AM
FunkyBob
jayant__: to return the extra arguments the form needs, of cours
6:15 AM
jayant__: didn't you read the code in the traceback?
6:15 AM
phix
i use pydev
6:15 AM
PoliticsII
Also, PyCharm lets you split editor tabs into tiles.
6:15 AM
bja_
FunkyBob: vim will tile windows for you
6:16 AM
jayant__
FunkyBob: yes, but i cant see any extra arguments the form is expecting :(
6:16 AM
FunkyBob
bja_: as I said, vi does it fine [and, therefore, so does vim]
6:16 AM
xav joined the channel
6:16 AM
jayant__: that's where you looka t the source of the form, of course
6:16 AM
Ingraft has quit
6:17 AM
twoface
jayant__, its python - its easy to read your libraries source when you have issues like this :)
6:17 AM
FunkyBob
jayant__: it inherits from SetPassword form, which has def __init__(self, user, *args, **kwargs):
6:17 AM
MaRiNkO joined the channel
6:17 AM
Codewaffle_ has quit
6:18 AM
Cromulent has quit
6:18 AM
jayant__
FunkyBob: aaah thanks, my eyes skipped that
6:18 AM
phix
bob is too funky imo
6:18 AM
FunkyBob
in fact, help() on that form would have told you the same thing
6:18 AM
phix: I shower (almost) every day!
6:18 AM
phix
an
6:18 AM
bja_
btw, can anyone think of an ide that does inheritance toggling out of the box?
6:18 AM
phix
and ,
6:18 AM
schinckel
I think he means the music that plays when you enter a room.
6:19 AM
phix
and use deorderant?
6:19 AM
FunkyBob
schinckel: I must be more deaf than I realised...
6:19 AM
phix: of course
6:19 AM
phix
you should invest in something a bit stronger :)
6:19 AM
schinckel boom-chicka-wah-wah
6:19 AM
heh
6:20 AM
dannib has quit
6:20 AM
dannib joined the channel
6:21 AM
hexsprite has quit
6:23 AM
golodhrim has quit
6:23 AM
golodhrim joined the channel
6:24 AM
domino14 joined the channel
6:24 AM
domino14
does this make sense to anyone? I have a CharField that sometimes mysteriously seems to lose all its line breaks
6:24 AM
EyePulp has quit
6:25 AM
twoface
yes - you made a mistake somewhere :)
6:25 AM
mattmcc
Do you actually not see them in the DB? Or do you just not see them in the browser? (Browsers strip whitespace)
6:25 AM
twoface
or you are rendering it in html and expecting linebreaks to be visible
6:25 AM
passy joined the channel
6:26 AM
domino14
they disappeared from the database
6:27 AM
twoface
then you have edited it somewhere that didn't preserve them
6:27 AM
domino14
i've been switching back and forth between branches
6:27 AM
twoface
nothing in django strips your whitespaces for you
6:27 AM
domino14
the only place i modify that CharField is in profile.profile = pForm.cleaned_data['profileText'] -- maybe cleaned_data is acting weird
6:27 AM
MaRiNkO has quit
6:27 AM
MaRiNkO_ joined the channel
6:27 AM
golodhrim has quit
6:28 AM
twoface
no, nothing is acting weird!
6:28 AM
vakaras joined the channel
6:28 AM
golodhrim joined the channel
6:28 AM
perhaps your form cleans the field and does something to it
6:28 AM
tkaemming has quit
6:29 AM
domino14
my form has no cleaning code itself, plus I never hit the endpoint to activate that code
6:29 AM
profile.save() is called elsewhere, but if I haven't made any modifications to profile.profile, that value should stay.. maybe it's MySQL's fault
6:32 AM
golodhrim has quit
6:32 AM
PoliticsII
I don't suppose you're using an IDE where you can just throw a breakpoint in and inspect the data that's coming in.
6:32 AM
That really would be ideal.
6:33 AM
maZtaiR joined the channel
6:33 AM
jtiai
also using build in pdb or separate ipdb is another good options for debugging.