0:15 AM
singularity joined the channel
0:16 AM
jhauser has quit
0:20 AM
dalazx has quit
0:20 AM
fabiobatalha joined the channel
0:25 AM
fabiobatalha has quit
0:26 AM
driti joined the channel
0:27 AM
digitalsatori has quit
0:27 AM
digitalsatori joined the channel
0:29 AM
singularity has quit
0:44 AM
fabiobatalha joined the channel
0:48 AM
fabiobatalha has quit
1:09 AM
zupo joined the channel
1:21 AM
zupo has quit
1:22 AM
digitalsatori has quit
1:22 AM
webmaven has quit
1:23 AM
abourget has quit
1:47 AM
blusteal has quit
1:50 AM
driti has quit
1:58 AM
digitalsatori joined the channel
2:03 AM
otter768 joined the channel
2:07 AM
otter768 has quit
2:15 AM
cjoke has quit
2:16 AM
zepolen_ has quit
2:23 AM
Swambo has quit
2:34 AM
otter768 joined the channel
2:38 AM
cjoke joined the channel
2:49 AM
evilbungle has quit
3:08 AM
abourget joined the channel
3:15 AM
pyeek has quit
3:18 AM
rickmak joined the channel
3:21 AM
thomi has quit
3:30 AM
Swambo joined the channel
4:01 AM
Swambo has quit
4:18 AM
stangeland joined the channel
4:19 AM
blaflamme has quit
4:19 AM
c0le joined the channel
4:21 AM
stangeland
hello...i am trying to use event subscriber to enforce user to have a key called 'current_job' in the session dict...if its not there, user is redirected to '/'. This should only happen for logged in users. I have this code:
http://pastebin.ubuntu.com/9278116/ For some reason i get an error
4:21 AM
pyramid.httpexceptions.HTTPForbidden: Unauthorized: redirect_jobless failed permission check
4:23 AM
iShming joined the channel
4:26 AM
blaflamme joined the channel
4:26 AM
blaflamme has quit
4:26 AM
abourget has quit
4:35 AM
Swambo joined the channel
4:38 AM
iShming has quit
4:39 AM
digitalsatori has quit
4:39 AM
digitalsatori joined the channel
4:57 AM
driti joined the channel
5:15 AM
rickmak has quit
5:15 AM
driti has quit
5:40 AM
frispete_ joined the channel
5:44 AM
frispete has quit
5:53 AM
Swambo has quit
5:55 AM
digitalsatori has quit
5:56 AM
digitalsatori joined the channel
6:02 AM
ramteid joined the channel
6:14 AM
digitalsatori has quit
6:14 AM
cguardia has quit
6:15 AM
rickmak joined the channel
6:17 AM
digitalsatori joined the channel
6:46 AM
iShming joined the channel
7:06 AM
wiggy joined the channel
7:06 AM
stangeland has quit
7:08 AM
sirex joined the channel
7:09 AM
yeukhon has quit
7:11 AM
MrTango joined the channel
7:15 AM
hpeter has quit
7:19 AM
wiggy
morning
7:20 AM
dalazx joined the channel
7:22 AM
Adniel has quit
7:23 AM
singularity joined the channel
7:27 AM
Paradisee has quit
7:29 AM
digitalsatori1 joined the channel
7:29 AM
rickmak has quit
7:30 AM
wiggy has quit
7:30 AM
hpeter joined the channel
7:31 AM
digitalsatori has quit
7:32 AM
wiggy joined the channel
7:40 AM
malthe has quit
7:41 AM
rickmak joined the channel
7:46 AM
Adniel joined the channel
7:48 AM
Paradisee joined the channel
7:49 AM
otter768 joined the channel
7:53 AM
malthe joined the channel
7:55 AM
stangeland joined the channel
7:56 AM
plamut joined the channel
8:00 AM
mlechner joined the channel
8:00 AM
shredding joined the channel
8:01 AM
otter768 has quit
8:02 AM
El_Rolando joined the channel
8:02 AM
sirex has quit
8:04 AM
morning
8:18 AM
bosim joined the channel
8:18 AM
stevepiercy
morning
8:21 AM
Zart joined the channel
8:23 AM
singularity has quit
8:23 AM
jhauser joined the channel
8:26 AM
stangeland
morning
8:27 AM
does anybody know what i need to ask pyramid to do if i want to stream an image? like if i have a data buffer, and i want to do sth. like: response.write(200, 'OK', headers, data) where headers contain: headers = {'Content-Type': 'image/png','Content-Length': len(data)} ?
8:29 AM
frkout_ joined the channel
8:30 AM
tbenita joined the channel
8:31 AM
Zart
stangeland, return pyramid.response.Response(data, content_type='image/png')
8:31 AM
stevepiercy
stream an image? why not just serve it? i mean, i perceive streaming is better for very large files
8:32 AM
stangeland
stevepiercy, yes ok i meant serve it :)
8:32 AM
stevepiercy
whereas a png is typically not that big
8:32 AM
Zart
he probably meant serving dynamically generated one from memory
8:32 AM
stangeland
Zart, ah ok...do i have to route that resource in a special way?
8:32 AM
stevepiercy
ok, then what zart said
8:32 AM
stangeland
Zart, so it dont need to know the length of the buffer?
8:32 AM
Zart
8:32 AM
Charlie_X joined the channel
8:33 AM
frkout has quit
8:33 AM
webob is able to fill some headers automatically
8:34 AM
if you truly streaming, you have to provide content-length manually
8:34 AM
stangeland
Zart, ok...and in the view_config, what do i set there? just @view_config(route_name='my_img_resource',request_method=('GET')) ?
8:34 AM
Zart
but not every wsgi adapter/server is able to use chunked encoding
8:35 AM
something like that..
8:35 AM
routing is orthogonal here
8:38 AM
agroszer joined the channel
8:39 AM
Charlie_X
Good morning.
8:40 AM
goodwill looks at Charlie_X
8:40 AM
Charlie_X looks at goodwill
8:40 AM
goodwill looks at Charlie_X some more
8:41 AM
I watched Frozen the other day. Are you Olaf, the Snowman?
8:41 AM
yleclanche joined the channel
8:42 AM
Chocolat has quit
8:42 AM
goodwill
oh sure .. just cause I am russian
8:42 AM
you sir, are snowis
8:42 AM
you sir, are snowist
8:42 AM
Charlie_X
It's just that he likes warm hugs
8:43 AM
Paradisee has quit
8:44 AM
stangeland
Zart, thank you :) It works
8:44 AM
Zart
weird
8:47 AM
witsch joined the channel
8:49 AM
davidjb has quit
8:49 AM
Chocolat joined the channel
8:50 AM
8:51 AM
Charlie_X
We could make a mug like that for goodwill
8:57 AM
Chocolat has quit
8:58 AM
Ergo joined the channel
9:01 AM
MGiberius34 joined the channel
9:01 AM
rickmak has quit
9:05 AM
slav0nic has quit
9:09 AM
Chocolat joined the channel
9:13 AM
nouri joined the channel
9:16 AM
rickmak joined the channel
9:19 AM
Adniel has quit
9:19 AM
joules has quit
9:23 AM
Chocolat has quit
9:23 AM
Adniel joined the channel
9:31 AM
tbenita_ joined the channel