0:01 AM
Cavedude joined the channel
0:03 AM
djapo
foo: charfield inherits from Field, which means the **kwarg is there so it doesn't need to explicitly name the kwargs that Field would expect
0:04 AM
Leeds joined the channel
0:04 AM
raijin has quit
0:07 AM
foo
[redacted]
0:09 AM
jmelloy
what are people using for asynchronous tasks these days?
0:09 AM
djapo
0:10 AM
jmelloy: asyncio
0:10 AM
jmelloy
really?
0:11 AM
djapo
I am
0:11 AM
FunkyBob
jmelloy: you mean job queues?
0:11 AM
mattmcc
jmelloy: Celery?
0:11 AM
jmelloy
yes, job queues
0:11 AM
we've used celery before but i'm hoping there's some new hotness I don't know about
0:11 AM
djapo
asyncio has queues too :D
0:11 AM
mattmcc
If it ain't broke..
0:12 AM
FunkyBob
jmelloy: what is it about celery doesn't fit your needs?
0:12 AM
that will shape the solutiolns
0:12 AM
-l
0:12 AM
djapo
0:12 AM
jmelloy
I've found it likes to back up without warning or hang and freeze
0:12 AM
FunkyBob
I recently found an interesting one based on AWS SQS
0:12 AM
bayman joined the channel
0:12 AM
jmelloy: which broker did you use?
0:12 AM
jmelloy
rabbitmq
0:13 AM
what's the one that uses SQS?
0:13 AM
i've used mrq a bit and it seems fine
0:14 AM
foo
[redacted]
0:15 AM
[redacted]
0:15 AM
jmelloy
but in celery's defense, I do like their api
0:15 AM
foo
[redacted]
0:15 AM
[redacted]
0:17 AM
bayman has quit
0:17 AM
[redacted]
0:17 AM
[redacted]
0:17 AM
foo [redacted]
0:17 AM
jessamynsmith has quit
0:17 AM
djapo
yes
0:18 AM
foo
[redacted]
0:19 AM
[redacted]
0:19 AM
foo [redacted]
0:20 AM
djapo
foo: try doing that in __call__
0:21 AM
foo
[redacted]
0:22 AM
djapo
you still have line 20
0:22 AM
the_rat joined the channel
0:23 AM
is line 34 right
0:23 AM
foo
[redacted]
0:23 AM
[redacted]
0:24 AM
djapo
ah i see, you could do that with a JsonField no?
0:25 AM
foo
[redacted]
0:25 AM
djapo
0:25 AM
foo
[redacted]
0:26 AM
kyern has quit
0:27 AM
the_rat has quit
0:27 AM
jmelloy
I still think Luigi has an excellent name
0:27 AM
djapo
foo: did the call work?
0:28 AM
foo
[redacted]
0:28 AM
[redacted]
0:28 AM
[redacted]
0:30 AM
krisd has quit
0:32 AM
[redacted]
0:33 AM
djapo
foo: are you getting any errors
0:33 AM
foo
[redacted]
0:34 AM
jhfisc joined the channel
0:34 AM
djapo
foo: pretty sure init is called before call
0:34 AM
not sure, let me check
0:35 AM
theWhisper_ joined the channel
0:35 AM
krisd joined the channel
0:35 AM
wreed has quit
0:36 AM
ezarowny has quit
0:37 AM
jhfisc has quit
0:37 AM
ezarowny joined the channel
0:37 AM
yup, ok so if setting the attribute like i said by doing [somefield].widget.attr than you should already have an instance of a widget associated to the field, so __init__ has already been called before the attr was set
0:38 AM
foo
[redacted]
0:38 AM
bradfordli123 joined the channel
0:39 AM
jhfisc joined the channel
0:40 AM
djapo
foo: self.fields['name_of_the_field'].widget = CustomWidget(kwarg=value)
0:40 AM
how about something like that
0:42 AM
jhfisc has quit
0:42 AM
ezarowny has quit
0:42 AM
jhfisc joined the channel
0:44 AM
foo
[redacted]
0:44 AM
shosca has quit
0:45 AM
jhfisc has quit
0:45 AM
djapo
foo: its now in the kwargs
0:46 AM
so range(kwargs.pop('..'))
0:46 AM
foo
[redacted]
0:47 AM
ionescu77 joined the channel
0:47 AM
lavalamp has quit
0:48 AM
djapo
foo: since you are now setting the widget manually, do you need line 17? how are you using MultiField?
0:49 AM
foo
[redacted]
0:49 AM
djapo
Its probably because since you set that attribute the field is trying to instantiate it
0:51 AM
eperzhand has quit
0:52 AM
ionescu77 has quit
0:52 AM
foo
[redacted]
0:53 AM
djapo
line 41
0:53 AM
the number is hardcoded as 1
0:54 AM
Argylelabcoat joined the channel
0:54 AM
foo
[redacted]
0:54 AM
[redacted]
0:54 AM
camilo100 joined the channel
0:55 AM
juiccifer has quit
0:55 AM
djapo
you need to get the value from self
0:56 AM
probably a good idea, to have a default in init, just in case the user dosn't pass one
0:57 AM
foo
[redacted]
0:58 AM
[redacted]
0:59 AM
djapo
foo: line 39, initializes a field, without passing that value
0:59 AM
I meant get that value from self in line 39
1:00 AM
or dynamicly set that field in init if it makes more sense
1:00 AM
foo
[redacted]
1:01 AM
[redacted]
1:01 AM
djapo
yeah, i caught that. It probably makes more sense to put that in init
1:01 AM
well it is available outside of init but thats a different topic
1:01 AM
foo
[redacted]
1:02 AM
djapo
yes, Initialize the field in init
1:03 AM
foo
[redacted]
1:04 AM
[redacted]
1:04 AM
djapo
foo: self.fields['name'] = field
1:05 AM
foo
[redacted]
1:06 AM
kingarmadillo joined the channel
1:06 AM
[redacted]
1:07 AM
[redacted]
1:09 AM
techno_x64 has quit
1:09 AM
djapo
np
1:10 AM
csotelo joined the channel
1:12 AM
kennethlove_ joined the channel
1:12 AM
backnforth has quit
1:14 AM
__love__ has quit
1:15 AM
religious joined the channel
1:15 AM
czart_ has quit
1:15 AM
raijin joined the channel
1:15 AM
raijin
anyone in here a modoboa or uwsgi expert?
1:19 AM
aussiejames joined the channel
1:20 AM
milardovich joined the channel
1:21 AM
h0h0h0 joined the channel
1:22 AM
Dollar has quit
1:22 AM
jessamynsmith joined the channel
1:26 AM
backnforth joined the channel
1:27 AM
tourdown_ joined the channel
1:30 AM
tourdownunder has quit
1:35 AM
theWhisper_ has quit
1:36 AM
jhfisc joined the channel
1:37 AM
ezarowny joined the channel
1:38 AM
jhfisc has quit
1:41 AM
aussiejames has quit
1:41 AM
camilo100 has left the channel
1:41 AM
ezarowny has quit
1:44 AM
johanneshk has quit
1:47 AM
jhfisc joined the channel
1:48 AM
ionescu77 joined the channel