2012-02-08T00:04:43 *** mindlogger has joined #pocoo 2012-02-08T00:05:17 *** gagarine has quit IRC 2012-02-08T00:05:20 I have been on Flask for +48 hours , no sleep ... 2012-02-08T00:07:28 sounds fairly similar to something a meth addict might say 2012-02-08T00:09:20 *** sunoano has quit IRC 2012-02-08T00:10:02 that's pocoo's secret goal 2012-02-08T00:11:53 becoming a leading distributor in mentally enhancing drugs for software developers 2012-02-08T00:12:13 sounds like a good business strategy 2012-02-08T00:16:32 *** skot has joined #pocoo 2012-02-08T00:21:50 *** mcgp has quit IRC 2012-02-08T00:22:22 *** blaflamme has quit IRC 2012-02-08T00:23:46 *** mcgp has joined #pocoo 2012-02-08T00:23:58 hello, Im having problems with testing a flask app, I see the flaskr exmaple is seting up a db_fd consiting of the config DATABASE and a tempfile, but later it performs init_db which sets up the usualy db? my app does the same, and when its running I see its affecting the "real" database and not the test one 2012-02-08T00:25:00 oh, now that I read what I wrote I see where my problem is. nevermind 2012-02-08T00:25:07 *** blaflamme has joined #pocoo 2012-02-08T00:32:45 *** GrizzLyCRO has quit IRC 2012-02-08T00:43:01 *** seanc_ has quit IRC 2012-02-08T00:44:37 *** fomatin has quit IRC 2012-02-08T00:47:25 *** GrizzLyCRO has joined #pocoo 2012-02-08T00:50:49 *** Anomareh has joined #pocoo 2012-02-08T00:51:33 *** Eftarjin1 has joined #pocoo 2012-02-08T00:53:25 *** damjan has quit IRC 2012-02-08T00:54:38 *** damjan has joined #pocoo 2012-02-08T01:08:25 *** cybertoast has quit IRC 2012-02-08T01:09:03 *** kukulissimo has quit IRC 2012-02-08T01:09:59 *** Eftarjin1 has quit IRC 2012-02-08T01:16:08 *** whitebook has joined #pocoo 2012-02-08T01:17:50 I have flask installed in customized version of python. I was wondering if I can still deploy it into production -- apache/wsgi 2012-02-08T01:18:13 Led_Zeppelin: Define 'customized'. 2012-02-08T01:19:30 sure. non standard python. I have my own version of python -- are more recent version (2.7.1). There isn anything special on it just that flask is installed there 2012-02-08T01:20:07 *** elliott1 has joined #pocoo 2012-02-08T01:26:15 *** iElectric has quit IRC 2012-02-08T01:26:18 *** iElectric has joined #pocoo 2012-02-08T01:27:05 Led_Zeppelin: do "python --version" please 2012-02-08T01:27:46 2.7.1 + 2012-02-08T01:28:24 my question was more geared towards deplying it into production. Do I need to do anything sepcial with apache so it will use a particular version of Python? 2012-02-08T01:29:01 Led_Zeppelin: It would be best to compile mod_wsgi from source code against your custom version. 2012-02-08T01:29:07 Led_Zeppelin: i personally wouldnt run apache if at all possible 2012-02-08T01:29:15 apache works just fine -.- 2012-02-08T01:29:15 KeepSafe, same here! 2012-02-08T01:29:28 I prefer running my own webserver on port 8080 2012-02-08T01:29:29 scumbag python users don tknow anything about apache, say its slow 2012-02-08T01:29:30 davidcramer: You will never stop the hate. 2012-02-08T01:29:41 heh 2012-02-08T01:30:00 davidcramer: no, i prefer using twisted much more, its simpler and easier, and its python... 2012-02-08T01:30:00 i prefer the java way. Similar to tomcat, just deploy a war file and boom and done 2012-02-08T01:30:10 did you just say twisted is more simple than apache 2012-02-08T01:30:18 * Led_Zeppelin not a strong python programmer 2012-02-08T01:30:18 :) 2012-02-08T01:30:23 Led_Zeppelin, I agree ;) 2012-02-08T01:30:25 thats why I choose flask. Its simple and easy 2012-02-08T01:30:37 Led_Zeppelin, you can use something like gevent/eventlet and write a 5 line webserver 2012-02-08T01:30:56 how does it scale davidcramer ? Over 100 requests per min hit my pages 2012-02-08T01:31:02 it scales just fine 2012-02-08T01:31:06 davidcramer: ill give you that...but in terms of python-based webservers with virtualhosts 2012-02-08T01:31:08 it'll handle 100 req/s just fine 2012-02-08T01:31:40 i just dont like the idea of speaking with my system admin to get access to httpd.conf files. 2012-02-08T01:31:49 I want to deploy everything as my self, and run it as :8080 2012-02-08T01:32:09 Led_Zeppelin: where do you host? 2012-02-08T01:32:47 intranet. local 2012-02-08T01:33:19 Led_Zeppelin: so you have a physical system then...what os is running? 2012-02-08T01:33:37 yes. physical system. Linux 2.6.38 2012-02-08T01:33:43 (and is apache used for anything other than this site)? 2012-02-08T01:33:50 Led_Zeppelin: sorry, i meant distro 2012-02-08T01:33:55 distro is RH 2012-02-08T01:35:25 i can use whatever webserver. 2012-02-08T01:35:52 personally, I want something easy to deploy. I was thinking fast cgi + light httpd 2012-02-08T01:35:53 *** mindlogger has quit IRC 2012-02-08T01:36:03 *** seanc_ has joined #pocoo 2012-02-08T01:36:38 *** whitebook has quit IRC 2012-02-08T01:46:34 *** aboudreault has quit IRC 2012-02-08T01:48:38 *** thwest has quit IRC 2012-02-08T01:57:57 *** Fandekasp has joined #pocoo 2012-02-08T02:03:51 *** ShadeTornado has quit IRC 2012-02-08T02:04:22 *** darinm has quit IRC 2012-02-08T02:04:30 *** whitebook has joined #pocoo 2012-02-08T02:04:38 *** derdon has quit IRC 2012-02-08T02:06:15 *** darinm has joined #pocoo 2012-02-08T02:09:08 *** gonz_ has joined #pocoo 2012-02-08T02:09:26 *** gonz has quit IRC 2012-02-08T02:11:19 *** whitebook has quit IRC 2012-02-08T02:23:08 *** N30N has quit IRC 2012-02-08T02:25:13 *** N30N has joined #pocoo 2012-02-08T02:26:37 *** retornam has quit IRC 2012-02-08T02:34:36 *** dorisabayon has joined #pocoo 2012-02-08T02:35:18 *** blast_hardcheese has quit IRC 2012-02-08T02:37:15 *** dorisabayon has quit IRC 2012-02-08T02:41:27 *** fomatin has joined #pocoo 2012-02-08T02:43:57 *** thwest has joined #pocoo 2012-02-08T02:53:51 *** ch0wn has joined #pocoo 2012-02-08T02:57:03 *** uggedal has quit IRC 2012-02-08T02:57:03 *** kakashi has quit IRC 2012-02-08T02:57:03 *** dotplus has quit IRC 2012-02-08T02:57:03 *** tizoc has quit IRC 2012-02-08T02:57:03 *** billy has quit IRC 2012-02-08T02:57:03 *** lohness has quit IRC 2012-02-08T02:57:03 *** zarf has quit IRC 2012-02-08T02:57:03 *** bhlir has quit IRC 2012-02-08T02:57:03 *** AfterShock has quit IRC 2012-02-08T02:57:03 *** plaes has quit IRC 2012-02-08T02:57:03 *** JStoker has quit IRC 2012-02-08T02:59:10 *** zarf has joined #pocoo 2012-02-08T02:59:10 *** uggedal has joined #pocoo 2012-02-08T02:59:10 *** kakashi has joined #pocoo 2012-02-08T02:59:10 *** dotplus has joined #pocoo 2012-02-08T02:59:10 *** tizoc has joined #pocoo 2012-02-08T02:59:10 *** billy has joined #pocoo 2012-02-08T02:59:10 *** lohness has joined #pocoo 2012-02-08T02:59:10 *** bhlir has joined #pocoo 2012-02-08T02:59:10 *** AfterShock has joined #pocoo 2012-02-08T02:59:10 *** plaes has joined #pocoo 2012-02-08T02:59:10 *** JStoker has joined #pocoo 2012-02-08T03:00:06 *** NorthIsUp has quit IRC 2012-02-08T03:00:51 *** nivardus has quit IRC 2012-02-08T03:02:09 *** N30N has quit IRC 2012-02-08T03:04:15 *** N30N has joined #pocoo 2012-02-08T03:05:37 *** ch0wn has quit IRC 2012-02-08T03:06:31 *** blast_hardcheese has joined #pocoo 2012-02-08T03:07:38 *** eka has quit IRC 2012-02-08T03:07:38 *** proppy has quit IRC 2012-02-08T03:07:38 *** johtso has quit IRC 2012-02-08T03:07:38 *** nopz has quit IRC 2012-02-08T03:07:38 *** bikcmp has quit IRC 2012-02-08T03:07:38 *** steevel_ has quit IRC 2012-02-08T03:07:38 *** ivaldi has quit IRC 2012-02-08T03:07:38 *** kdj has quit IRC 2012-02-08T03:07:38 *** jerQ has quit IRC 2012-02-08T03:07:38 *** goosemo has quit IRC 2012-02-08T03:07:38 *** m1sc has quit IRC 2012-02-08T03:07:39 *** maotkg has quit IRC 2012-02-08T03:07:39 *** mattdawson has quit IRC 2012-02-08T03:07:39 *** ktenney has quit IRC 2012-02-08T03:07:39 *** davidcramer__ has quit IRC 2012-02-08T03:07:39 *** welterde has quit IRC 2012-02-08T03:07:39 *** mfandreas has quit IRC 2012-02-08T03:08:31 *** eka has joined #pocoo 2012-02-08T03:08:31 *** proppy has joined #pocoo 2012-02-08T03:08:31 *** ktenney has joined #pocoo 2012-02-08T03:08:31 *** johtso has joined #pocoo 2012-02-08T03:08:31 *** nopz has joined #pocoo 2012-02-08T03:08:31 *** davidcramer__ has joined #pocoo 2012-02-08T03:08:31 *** welterde has joined #pocoo 2012-02-08T03:08:31 *** bikcmp has joined #pocoo 2012-02-08T03:08:31 *** steevel_ has joined #pocoo 2012-02-08T03:08:31 *** ivaldi has joined #pocoo 2012-02-08T03:08:31 *** kdj has joined #pocoo 2012-02-08T03:08:31 *** jerQ has joined #pocoo 2012-02-08T03:08:31 *** goosemo has joined #pocoo 2012-02-08T03:08:31 *** m1sc has joined #pocoo 2012-02-08T03:08:31 *** mfandreas has joined #pocoo 2012-02-08T03:08:31 *** maotkg has joined #pocoo 2012-02-08T03:08:31 *** mattdawson has joined #pocoo 2012-02-08T03:08:57 *** eka has quit IRC 2012-02-08T03:12:13 *** gonz_ has quit IRC 2012-02-08T03:12:13 *** Fandekasp has quit IRC 2012-02-08T03:12:13 *** Holocaine has quit IRC 2012-02-08T03:12:13 *** bradwright has quit IRC 2012-02-08T03:12:13 *** zoobab has quit IRC 2012-02-08T03:12:13 *** mcdonc has quit IRC 2012-02-08T03:12:13 *** birkenfeld has quit IRC 2012-02-08T03:12:13 *** dwi has quit IRC 2012-02-08T03:12:13 *** mitsuhiko has quit IRC 2012-02-08T03:12:13 *** aa_ has quit IRC 2012-02-08T03:12:14 *** Y0Gi has quit IRC 2012-02-08T03:12:14 *** Henoxek has quit IRC 2012-02-08T03:12:14 *** Daroth has quit IRC 2012-02-08T03:12:14 *** mariorz has quit IRC 2012-02-08T03:12:14 *** zorzar has quit IRC 2012-02-08T03:12:14 *** djbrown has quit IRC 2012-02-08T03:12:14 *** pazz has quit IRC 2012-02-08T03:12:49 *** gonz_ has joined #pocoo 2012-02-08T03:12:49 *** Fandekasp has joined #pocoo 2012-02-08T03:12:49 *** Holocaine has joined #pocoo 2012-02-08T03:12:49 *** bradwright has joined #pocoo 2012-02-08T03:12:49 *** zoobab has joined #pocoo 2012-02-08T03:12:49 *** mcdonc has joined #pocoo 2012-02-08T03:12:49 *** mitsuhiko has joined #pocoo 2012-02-08T03:12:49 *** birkenfeld has joined #pocoo 2012-02-08T03:12:49 *** dwi has joined #pocoo 2012-02-08T03:12:49 *** aa_ has joined #pocoo 2012-02-08T03:12:49 *** Y0Gi has joined #pocoo 2012-02-08T03:12:49 *** Henoxek has joined #pocoo 2012-02-08T03:12:49 *** Daroth has joined #pocoo 2012-02-08T03:12:49 *** mariorz has joined #pocoo 2012-02-08T03:12:49 *** pazz has joined #pocoo 2012-02-08T03:12:49 *** zorzar has joined #pocoo 2012-02-08T03:12:49 *** djbrown has joined #pocoo 2012-02-08T03:16:15 *** fomatin has quit IRC 2012-02-08T03:16:16 *** craigzheng has quit IRC 2012-02-08T03:16:16 *** Reisen has quit IRC 2012-02-08T03:16:16 *** DarkSector has quit IRC 2012-02-08T03:16:16 *** GrahamDumpleton has quit IRC 2012-02-08T03:16:16 *** mvt has quit IRC 2012-02-08T03:16:16 *** ffn_mleung has quit IRC 2012-02-08T03:16:16 *** grncdr_ has quit IRC 2012-02-08T03:16:16 *** vladan has quit IRC 2012-02-08T03:16:16 *** jperras has quit IRC 2012-02-08T03:16:17 *** Led_Zeppelin has quit IRC 2012-02-08T03:16:17 *** TheSheep has quit IRC 2012-02-08T03:16:17 *** Hukka has quit IRC 2012-02-08T03:16:17 *** Ammller has quit IRC 2012-02-08T03:16:17 *** jeverling has quit IRC 2012-02-08T03:16:17 *** ThiefMaster` has quit IRC 2012-02-08T03:16:17 *** peper has quit IRC 2012-02-08T03:16:17 *** lahwran has quit IRC 2012-02-08T03:16:54 *** fomatin has joined #pocoo 2012-02-08T03:16:54 *** craigzheng has joined #pocoo 2012-02-08T03:16:54 *** Reisen has joined #pocoo 2012-02-08T03:16:54 *** DarkSector has joined #pocoo 2012-02-08T03:16:54 *** GrahamDumpleton has joined #pocoo 2012-02-08T03:16:54 *** mvt has joined #pocoo 2012-02-08T03:16:54 *** vladan has joined #pocoo 2012-02-08T03:16:54 *** ffn_mleung has joined #pocoo 2012-02-08T03:16:54 *** Hukka has joined #pocoo 2012-02-08T03:16:54 *** Led_Zeppelin has joined #pocoo 2012-02-08T03:16:54 *** Ammller has joined #pocoo 2012-02-08T03:16:54 *** grncdr_ has joined #pocoo 2012-02-08T03:16:54 *** jperras has joined #pocoo 2012-02-08T03:16:54 *** TheSheep has joined #pocoo 2012-02-08T03:16:54 *** jeverling has joined #pocoo 2012-02-08T03:16:54 *** ThiefMaster` has joined #pocoo 2012-02-08T03:16:54 *** lahwran has joined #pocoo 2012-02-08T03:16:54 *** peper has joined #pocoo 2012-02-08T03:17:24 *** craigzheng has quit IRC 2012-02-08T03:17:33 *** N30N has quit IRC 2012-02-08T03:17:33 *** thwest has quit IRC 2012-02-08T03:17:33 *** GrizzLyCRO has quit IRC 2012-02-08T03:17:33 *** tian2992 has quit IRC 2012-02-08T03:17:33 *** craigkerstiens has quit IRC 2012-02-08T03:17:34 *** tonfa has quit IRC 2012-02-08T03:17:34 *** jokey has quit IRC 2012-02-08T03:17:34 *** ahaerpfer has quit IRC 2012-02-08T03:17:34 *** seanc has quit IRC 2012-02-08T03:17:34 *** [Arfrever] has quit IRC 2012-02-08T03:17:34 *** dreimark has quit IRC 2012-02-08T03:17:34 *** coderanger has quit IRC 2012-02-08T03:17:34 *** metoo has quit IRC 2012-02-08T03:17:35 *** bhearsum has quit IRC 2012-02-08T03:17:35 *** dev has quit IRC 2012-02-08T03:17:35 *** doobeh has quit IRC 2012-02-08T03:17:35 *** sente` has quit IRC 2012-02-08T03:17:35 *** jayd3e has quit IRC 2012-02-08T03:17:35 *** nick125 has quit IRC 2012-02-08T03:17:35 *** raydeo has quit IRC 2012-02-08T03:17:35 *** woremacx has quit IRC 2012-02-08T03:17:35 *** hongminhee has quit IRC 2012-02-08T03:17:35 *** Kaelten has quit IRC 2012-02-08T03:17:35 *** yaMatt has quit IRC 2012-02-08T03:17:47 *** peper has joined #pocoo 2012-02-08T03:18:30 *** N30N has joined #pocoo 2012-02-08T03:18:30 *** thwest has joined #pocoo 2012-02-08T03:18:30 *** GrizzLyCRO has joined #pocoo 2012-02-08T03:18:30 *** tian2992 has joined #pocoo 2012-02-08T03:18:30 *** craigkerstiens has joined #pocoo 2012-02-08T03:18:30 *** tonfa has joined #pocoo 2012-02-08T03:18:30 *** jokey has joined #pocoo 2012-02-08T03:18:30 *** ahaerpfer has joined #pocoo 2012-02-08T03:18:30 *** seanc has joined #pocoo 2012-02-08T03:18:30 *** [Arfrever] has joined #pocoo 2012-02-08T03:18:30 *** dreimark has joined #pocoo 2012-02-08T03:18:30 *** coderanger has joined #pocoo 2012-02-08T03:18:30 *** metoo has joined #pocoo 2012-02-08T03:18:30 *** bhearsum has joined #pocoo 2012-02-08T03:18:30 *** dev has joined #pocoo 2012-02-08T03:18:30 *** doobeh has joined #pocoo 2012-02-08T03:18:30 *** sente` has joined #pocoo 2012-02-08T03:18:30 *** jayd3e has joined #pocoo 2012-02-08T03:18:30 *** nick125 has joined #pocoo 2012-02-08T03:18:30 *** woremacx has joined #pocoo 2012-02-08T03:18:30 *** raydeo has joined #pocoo 2012-02-08T03:18:30 *** hongminhee has joined #pocoo 2012-02-08T03:18:30 *** Kaelten has joined #pocoo 2012-02-08T03:18:30 *** yaMatt has joined #pocoo 2012-02-08T03:18:35 *** MoMo has quit IRC 2012-02-08T03:19:37 *** craigzheng has joined #pocoo 2012-02-08T03:22:46 *** remyroy1 has joined #pocoo 2012-02-08T03:28:00 *** leo2007 has joined #pocoo 2012-02-08T03:30:48 *** kennethreitz has quit IRC 2012-02-08T03:33:13 *** craigkerstiens has quit IRC 2012-02-08T03:43:29 *** N30N has quit IRC 2012-02-08T03:45:15 *** N30N has joined #pocoo 2012-02-08T03:51:32 *** kennethreitz has joined #pocoo 2012-02-08T03:55:30 *** fomatin has quit IRC 2012-02-08T03:56:48 *** arg0s has joined #pocoo 2012-02-08T03:59:13 *** kennethreitz has quit IRC 2012-02-08T04:17:47 *** remyroy1 has left #pocoo 2012-02-08T04:19:08 *** dous has quit IRC 2012-02-08T04:22:16 *** dous has joined #pocoo 2012-02-08T04:27:48 *** caseymcg has joined #pocoo 2012-02-08T04:34:33 *** kvda has joined #pocoo 2012-02-08T04:34:58 *** NamNT has joined #pocoo 2012-02-08T04:35:28 *** craigzheng has quit IRC 2012-02-08T04:38:54 *** shiver has quit IRC 2012-02-08T04:42:52 *** leo2007 has quit IRC 2012-02-08T04:43:12 *** craigkerstiens has joined #pocoo 2012-02-08T04:45:46 *** avidal has joined #pocoo 2012-02-08T04:46:22 Hrm. Any opinions on the peewee ORM vs Flask-SQLAlchemy 2012-02-08T04:46:22 ? 2012-02-08T04:48:44 nevermind, I need to answer this question for myself 2012-02-08T04:53:15 avidal: I have an opinion, but it's not a very polite one. 2012-02-08T04:53:32 Haha. Which way do you lean if you don't want to be impolite? 2012-02-08T04:54:03 Oh, AFAICS peewee is very immature and ill-tested. 2012-02-08T04:54:15 sqlalchemy is great :D 2012-02-08T04:54:17 And so I wouldn't even consider using it over a more fully-fledged thing like SQLA. 2012-02-08T04:55:08 did the sqlalchemy docs get an overhaul recently? 2012-02-08T04:55:34 they seem much nicer than I remember, anyhow. 2012-02-08T04:55:36 I've used SQLAlchemy a few times in the past 2012-02-08T04:55:42 Never much usage though 2012-02-08T04:58:01 It's just an opinion of course, and I also haven't played with pewee, but sqlalchemy does everything I need, declarative layer to keep it simple and easy enough to dive deeper for more complex expressions 2012-02-08T05:10:08 *** whitebook has joined #pocoo 2012-02-08T05:13:33 *** mahmoudimus has quit IRC 2012-02-08T05:14:59 *** ibk has joined #pocoo 2012-02-08T05:15:17 *** mahmoudimus has joined #pocoo 2012-02-08T05:19:44 *** caseymcg has quit IRC 2012-02-08T05:23:20 *** kennethreitz has joined #pocoo 2012-02-08T05:29:08 *** seanc_ has quit IRC 2012-02-08T05:39:38 *** cybertoast has joined #pocoo 2012-02-08T05:40:20 *** N30N has quit IRC 2012-02-08T05:41:34 *** N30N has joined #pocoo 2012-02-08T05:42:43 *** avidal has left #pocoo 2012-02-08T05:50:51 *** caseymcg has joined #pocoo 2012-02-08T05:53:07 *** OmidRaha has joined #pocoo 2012-02-08T05:55:47 *** whitebook has quit IRC 2012-02-08T06:04:07 *** paroneayea has quit IRC 2012-02-08T06:05:05 *** paroneayea has joined #pocoo 2012-02-08T06:06:38 *** cybertoast has quit IRC 2012-02-08T06:13:58 *** lohness has quit IRC 2012-02-08T06:14:03 *** lohness has joined #pocoo 2012-02-08T06:19:19 *** darinm has quit IRC 2012-02-08T06:19:19 *** MarkusH has quit IRC 2012-02-08T06:19:19 *** JdpB42 has quit IRC 2012-02-08T06:19:19 *** binaryfever has quit IRC 2012-02-08T06:19:19 *** gcmalloc has quit IRC 2012-02-08T06:19:19 *** Jochem has quit IRC 2012-02-08T06:21:18 *** gcmalloc has joined #pocoo 2012-02-08T06:21:49 *** jbwiv_ has quit IRC 2012-02-08T06:22:52 mitsuhiko: I just got mail from a professor looking for open source projects, re Flask. did you get it? looks like bac'n not spam. 2012-02-08T06:24:51 *** Jochem has joined #pocoo 2012-02-08T06:25:34 *** nullie has joined #pocoo 2012-02-08T06:26:18 *** darinm has joined #pocoo 2012-02-08T06:26:18 *** MarkusH has joined #pocoo 2012-02-08T06:26:18 *** JdpB42 has joined #pocoo 2012-02-08T06:26:18 *** binaryfever has joined #pocoo 2012-02-08T06:29:40 *** darinm has quit IRC 2012-02-08T06:29:40 *** MarkusH has quit IRC 2012-02-08T06:29:40 *** JdpB42 has quit IRC 2012-02-08T06:29:40 *** binaryfever has quit IRC 2012-02-08T06:32:57 *** blast_hardcheese has quit IRC 2012-02-08T06:32:57 *** uggedal has quit IRC 2012-02-08T06:33:05 *** JStoker has quit IRC 2012-02-08T06:34:13 *** AftrShock has joined #pocoo 2012-02-08T06:34:27 *** cofi has joined #pocoo 2012-02-08T06:35:10 *** darinm has joined #pocoo 2012-02-08T06:35:10 *** MarkusH has joined #pocoo 2012-02-08T06:35:10 *** JdpB42 has joined #pocoo 2012-02-08T06:35:10 *** binaryfever has joined #pocoo 2012-02-08T06:35:11 *** AfterShock has quit IRC 2012-02-08T06:37:41 *** bhlir_ has joined #pocoo 2012-02-08T06:37:57 *** dotplus_ has joined #pocoo 2012-02-08T06:37:57 *** dotplus_ has joined #pocoo 2012-02-08T06:39:01 *** bhlir has quit IRC 2012-02-08T06:39:01 *** zarf has quit IRC 2012-02-08T06:39:01 *** plaes has quit IRC 2012-02-08T06:39:01 *** dotplus has quit IRC 2012-02-08T06:39:01 *** uggedal has joined #pocoo 2012-02-08T06:40:00 *** craigkerstiens_ has joined #pocoo 2012-02-08T06:42:06 *** plaes has joined #pocoo 2012-02-08T06:43:07 *** blast_hardcheese has joined #pocoo 2012-02-08T06:43:47 *** mytoz has joined #pocoo 2012-02-08T06:45:18 *** Leonidas_ has joined #pocoo 2012-02-08T06:45:20 *** rduplain_ has joined #pocoo 2012-02-08T06:45:49 *** bzed_ has joined #pocoo 2012-02-08T06:46:18 *** bzed has quit IRC 2012-02-08T06:46:22 *** bzed_ is now known as bzed 2012-02-08T06:46:36 *** craigkerstiens has quit IRC 2012-02-08T06:46:36 *** CrackerJackMack has quit IRC 2012-02-08T06:46:36 *** rduplain has quit IRC 2012-02-08T06:46:36 *** mytoz_ has quit IRC 2012-02-08T06:46:36 *** Leonidas has quit IRC 2012-02-08T06:46:36 *** CrackerJackMack has joined #pocoo 2012-02-08T06:46:36 *** craigkerstiens_ is now known as craigkerstiens 2012-02-08T06:47:03 *** seanc has quit IRC 2012-02-08T06:47:11 *** JStoker has joined #pocoo 2012-02-08T06:47:44 *** seanc has joined #pocoo 2012-02-08T06:48:08 *** Holocaine has quit IRC 2012-02-08T06:49:39 *** mahmoudimus has quit IRC 2012-02-08T06:58:43 *** paroneayea has quit IRC 2012-02-08T06:59:56 *** paroneayea has joined #pocoo 2012-02-08T07:10:23 *** thwest has quit IRC 2012-02-08T07:10:59 *** thwest has joined #pocoo 2012-02-08T07:13:20 is there some way, with a wsgi middleware, to get the raw request? 2012-02-08T07:16:23 davidcramer: define raw request 2012-02-08T07:18:05 nvm 2012-02-08T07:24:23 *** MooGoo78 has joined #pocoo 2012-02-08T07:28:48 *** nullie has quit IRC 2012-02-08T07:28:49 *** seanc_ has joined #pocoo 2012-02-08T07:30:53 *** nullie has joined #pocoo 2012-02-08T07:36:21 *** thwest has quit IRC 2012-02-08T07:42:05 *** raignarok has joined #pocoo 2012-02-08T07:46:13 *** gonz_ has quit IRC 2012-02-08T07:46:48 *** __number5__ has quit IRC 2012-02-08T07:47:15 *** leo2007 has joined #pocoo 2012-02-08T07:47:49 Pygments: Leaf Corcoran default 1477:09346a13bf25 * lua lexer fix, fixes precedence of ... and .. operators * http://bit.ly/ADG26u 2012-02-08T07:47:49 Pygments: Igor Kalnitsky default 1478:3bf9bdbedad4 * Added VHDL Lexer. * http://bit.ly/yT6QQl 2012-02-08T07:47:49 Pygments: Igor Kalnitsky default 1479:b8a84c2a6ee0 * Fix some bugs in VHDL Lexer. * http://bit.ly/y0kt0N 2012-02-08T07:47:49 Pygments: Igor Kalnitsky default 1480:4bdcef9c880a * Add VHDL example file. * http://bit.ly/ADu604 2012-02-08T07:47:49 Pygments: Igor Kalnitsky default 1481:c98a35ce7004 * Merge with birkenfeld/pygments-main * http://bit.ly/yA61iU 2012-02-08T07:47:49 Pygments: Georg Brandl default 1482:3cd23d2769c6 * Add changelog entry for vhdl. * http://bit.ly/yOeGwZ 2012-02-08T07:48:16 *** cofi has quit IRC 2012-02-08T07:49:35 *** flox has quit IRC 2012-02-08T07:54:08 *** raignarok has quit IRC 2012-02-08T07:55:17 davidcramer: I see you are posting questions 2012-02-08T07:56:22 *** NorthIsUp has joined #pocoo 2012-02-08T07:57:48 :P 2012-02-08T07:58:32 davidcramer: you be trouble .... :-D 2012-02-08T07:58:40 100% serious :) 2012-02-08T07:58:44 believe you 2012-02-08T07:58:51 you are not the only one to ask for that 2012-02-08T07:58:55 ease of deployment is the big one for me 2012-02-08T07:59:00 we're almost there too 2012-02-08T07:59:01 w/ venvs/etc 2012-02-08T07:59:08 davidcramer: feel free to retweet chris tweet 2012-02-08T07:59:16 link? 2012-02-08T07:59:16 davidcramer: I hear ya 2012-02-08T07:59:46 davidcramer: http://twitter.com/chrismcdonough 2012-02-08T08:00:37 didnt realize ididnt follow him 2012-02-08T08:00:51 davidcramer: boooo 2012-02-08T08:02:44 *** dreimark has quit IRC 2012-02-08T08:02:44 *** dreimark has joined #pocoo 2012-02-08T08:08:39 *** OmidRaha has quit IRC 2012-02-08T08:09:16 WTB more beta testers: http://getsentry.com/welcome/ :) 2012-02-08T08:21:21 *** OmidRaha has joined #pocoo 2012-02-08T08:22:47 *** mahmoudimus has joined #pocoo 2012-02-08T08:29:54 *** moraes has joined #pocoo 2012-02-08T08:36:09 *** jefferai has quit IRC 2012-02-08T08:36:23 *** rmblr has joined #pocoo 2012-02-08T08:36:40 *** jefferai has joined #pocoo 2012-02-08T08:36:40 *** Ramblurr has quit IRC 2012-02-08T08:36:54 *** flox has joined #pocoo 2012-02-08T08:38:35 *** Eftarjin1 has joined #pocoo 2012-02-08T08:39:40 *** arvind_khadri has joined #pocoo 2012-02-08T08:40:52 *** GrizzLyCRO has quit IRC 2012-02-08T08:41:22 Hi, can I import python modules in templates? 2012-02-08T08:43:01 *** KeepSafe has quit IRC 2012-02-08T08:46:11 arvind_khadri: not directly, why would you? 2012-02-08T08:47:11 ronny, I wanted use quote_plus 2012-02-08T08:47:48 arvind_khadri: if you truely need it, you can pass it via the template globals 2012-02-08T08:47:56 arvind_khadri: why exactly are you actually using it? 2012-02-08T08:48:32 I wanted to encode some of the urls which will be displayed. Can I use something else? 2012-02-08T08:49:06 how do you generate the urls? 2012-02-08T08:49:25 they are stored in the database, and I fetch them. 2012-02-08T08:49:33 *** ramkrsna has joined #pocoo 2012-02-08T08:49:33 *** ramkrsna has joined #pocoo 2012-02-08T08:52:19 ronny, ? 2012-02-08T08:52:41 arvind_khadri: i see, is that a single view? 2012-02-08T08:52:51 ronny, ya 2012-02-08T08:53:07 *** GrahamDumpleton has quit IRC 2012-02-08T08:53:08 arvind_khadri: then you can just pass it to render_temlate along with the data 2012-02-08T08:53:51 ronny, so I do from foo import bar and in render_template I say mymodule = bar ? 2012-02-08T08:57:02 *** JdpB42 has quit IRC 2012-02-08T08:57:08 *** GrahamDumpleton has joined #pocoo 2012-02-08T08:57:16 arvind_khadri: yup 2012-02-08T09:00:11 ronny, thanks a lot :) 2012-02-08T09:01:57 *** rmccue has joined #pocoo 2012-02-08T09:02:41 Hi there, with Flask, what's the best way to get a route to respond to any method? 2012-02-08T09:02:48 *** Ramonster has joined #pocoo 2012-02-08T09:05:59 *** GrahamDumpleton has quit IRC 2012-02-08T09:06:13 *** GrahamDumpleton has joined #pocoo 2012-02-08T09:07:40 *** FND has joined #pocoo 2012-02-08T09:10:58 Anyone? 2012-02-08T09:12:41 *** sunoano has joined #pocoo 2012-02-08T09:12:41 *** sunoano has joined #pocoo 2012-02-08T09:12:41 *** FND has quit IRC 2012-02-08T09:12:56 mitsuhiko: ping 2012-02-08T09:17:39 *** flox has quit IRC 2012-02-08T09:20:10 *** arvind_k has joined #pocoo 2012-02-08T09:20:51 *** arvind_khadri has quit IRC 2012-02-08T09:21:00 *** arvind_k is now known as arvind_khadri 2012-02-08T09:21:18 *** arvind_khadri has quit IRC 2012-02-08T09:21:18 *** arvind_khadri has joined #pocoo 2012-02-08T09:21:20 rmccue: dont you mean it the other way round? 2012-02-08T09:21:35 like, get a method to respond to any route? 2012-02-08T09:21:36 alexex: Err, sorry, I mean HTTP method 2012-02-08T09:21:55 i dont see what you mean, sorry 2012-02-08T09:22:00 i.e. I want it to respond to GET, POST, PUT, ... without having to whitelist each one 2012-02-08T09:22:01 can you explain it? 2012-02-08T09:22:07 ah :) 2012-02-08T09:22:42 sorry, i cant help you, dont know anything about it 2012-02-08T09:23:08 rmccue: so you want to allow all of them by default? 2012-02-08T09:23:16 ronny: Yep 2012-02-08T09:23:22 in what context? 2012-02-08T09:23:30 What do you mean, sorry? 2012-02-08T09:24:00 rmccue: why do you want those views to accept all methods 2012-02-08T09:24:19 ronny: Working on http://httpbin.org/ so I need to be able to get all of them to a method 2012-02-08T09:25:09 that doesnt answer my question tho 2012-02-08T09:25:09 I'll whitelist them if I have to 2012-02-08T09:25:19 What do you mean? 2012-02-08T09:25:56 why do you need a sset of views/all views to take all methods 2012-02-08T09:26:17 So that I can respond and tell the client what method they used. 2012-02-08T09:26:17 *** Holocaine has joined #pocoo 2012-02-08T09:26:45 but why for a set of views or all of them? 2012-02-08T09:27:04 httbin has intent based paths as far as i can tell 2012-02-08T09:27:10 Only need it for individual routes 2012-02-08T09:27:49 So, say /method would return in the body which method was used 2012-02-08T09:27:49 rmccue: then whitelist for that particular view? 2012-02-08T09:28:04 ronny: That requires listing every single one, I'm trying to get all regardless 2012-02-08T09:28:25 oh, i see, so you w ant a wildcard of sorts? 2012-02-08T09:28:35 Precisely 2012-02-08T09:31:38 ronny: Any idea? 2012-02-08T09:31:51 *** joelcox has joined #pocoo 2012-02-08T09:33:53 *** Nasga has joined #pocoo 2012-02-08T09:33:53 rmccue: if you use app.add_url_rule, the method hint is not auto-generated 2012-02-08T09:34:17 ronny: Looks like it is to me 2012-02-08T09:34:40 "if the methods are not given and the view_func object knows its 2012-02-08T09:34:40 methods we can use that instead. If neither exists, we go with 2012-02-08T09:34:40 a tuple of only `GET` as default." 2012-02-08T09:34:50 (from the source) 2012-02-08T09:35:07 whops, it actually not 2012-02-08T09:35:11 i id missred the code 2012-02-08T09:37:16 rmccue: you can manually add a rule without options set i think 2012-02-08T09:38:58 Aha 2012-02-08T09:39:10 Be nice to specify it via the decorator though 2012-02-08T09:39:21 *** magicsword has joined #pocoo 2012-02-08T09:40:36 *** MaximLacrima has joined #pocoo 2012-02-08T09:41:35 *** mahmoudimus has quit IRC 2012-02-08T09:42:29 *** cofi has joined #pocoo 2012-02-08T09:43:49 *** magicsword has quit IRC 2012-02-08T09:45:52 *** felixhummel has joined #pocoo 2012-02-08T09:46:54 *** Ergo^ has joined #pocoo 2012-02-08T09:46:55 *** Eftarjin1 has quit IRC 2012-02-08T09:47:46 *** mahmoudimus has joined #pocoo 2012-02-08T09:48:19 rmccue: i suppose that would need a patch to deal with default methods for url rules being none, 2012-02-08T09:49:00 ronny: Being able to pass an empty list in would work, I think 2012-02-08T09:50:03 rmccue: well, however it will work, someone needs to implement it 2012-02-08T09:50:24 ronny: Indeed :) For now, I'll just go with whitelisting 2012-02-08T09:53:04 *** mahmoudimus has quit IRC 2012-02-08T09:53:34 *** flox has joined #pocoo 2012-02-08T09:55:35 *** ambv has joined #pocoo 2012-02-08T09:58:08 *** flox has quit IRC 2012-02-08T10:00:00 *** kennethreitz has quit IRC 2012-02-08T10:00:34 *** kukulissimo has joined #pocoo 2012-02-08T10:00:53 *** ch0wn has joined #pocoo 2012-02-08T10:11:21 *** caseymcg has quit IRC 2012-02-08T10:15:07 *** yumike has joined #pocoo 2012-02-08T10:18:23 *** __tosh has joined #pocoo 2012-02-08T10:18:54 *** CrackerJackMack has quit IRC 2012-02-08T10:19:39 *** CrackerJackMack has joined #pocoo 2012-02-08T10:25:21 *** nopz has quit IRC 2012-02-08T10:29:29 *** leo2007 has quit IRC 2012-02-08T10:36:32 *** Ergo^ has quit IRC 2012-02-08T10:42:58 *** ch0wn has quit IRC 2012-02-08T10:59:53 *** MooGoo78 has left #pocoo 2012-02-08T11:00:29 *** nopz has joined #pocoo 2012-02-08T11:01:26 *** OmidRaha has quit IRC 2012-02-08T11:02:41 *** ch0wn has joined #pocoo 2012-02-08T11:03:17 *** Fandekasp has quit IRC 2012-02-08T11:08:49 *** mahmoudimus has joined #pocoo 2012-02-08T11:13:53 *** OmidRaha has joined #pocoo 2012-02-08T11:25:11 *** derdon has joined #pocoo 2012-02-08T11:37:40 *** leo2007 has joined #pocoo 2012-02-08T11:38:54 *** cofi has quit IRC 2012-02-08T11:42:05 *** leo2007 has quit IRC 2012-02-08T11:48:01 *** yumike has quit IRC 2012-02-08T11:52:22 *** kukulissimo has quit IRC 2012-02-08T11:54:25 *** flox has joined #pocoo 2012-02-08T11:57:13 *** leo2007 has joined #pocoo 2012-02-08T11:58:28 *** efazati has joined #pocoo 2012-02-08T12:02:29 *** mahmoudimus has quit IRC 2012-02-08T12:04:33 *** NorthIsUp has quit IRC 2012-02-08T12:15:53 *** Holocaine has quit IRC 2012-02-08T12:18:58 *** arvind_khadri has quit IRC 2012-02-08T12:19:25 *** the_lalelu has quit IRC 2012-02-08T12:19:32 *** Rozza has joined #pocoo 2012-02-08T12:24:51 *** OmidRaha has quit IRC 2012-02-08T12:25:01 *** efazati_ has joined #pocoo 2012-02-08T12:25:03 *** efazati has quit IRC 2012-02-08T12:26:15 *** the_lalelu has joined #pocoo 2012-02-08T12:32:05 *** hynek has joined #pocoo 2012-02-08T12:32:16 *** arvind_khadri has joined #pocoo 2012-02-08T12:32:16 *** arvind_khadri has joined #pocoo 2012-02-08T12:35:21 *** flox has quit IRC 2012-02-08T12:35:43 *** pickels_ has joined #pocoo 2012-02-08T12:36:39 *** derdon has quit IRC 2012-02-08T12:37:30 *** OmidRaha has joined #pocoo 2012-02-08T12:37:38 *** OmidRaha has joined #pocoo 2012-02-08T12:40:46 *** efazati_ has quit IRC 2012-02-08T12:42:01 *** Rozza has quit IRC 2012-02-08T12:49:30 *** arvind_khadri has quit IRC 2012-02-08T12:49:57 *** flox has joined #pocoo 2012-02-08T12:50:22 *** Jochem has quit IRC 2012-02-08T12:51:32 *** kukulissimo has joined #pocoo 2012-02-08T12:51:43 *** TSK has joined #pocoo 2012-02-08T12:51:43 *** Ergo^ has joined #pocoo 2012-02-08T12:52:16 *** TSK has quit IRC 2012-02-08T12:52:39 *** TSK has joined #pocoo 2012-02-08T12:53:50 *** TSK has joined #pocoo 2012-02-08T12:54:14 *** TSK has quit IRC 2012-02-08T12:55:06 *** Jochem has joined #pocoo 2012-02-08T12:55:38 *** tian2992 has quit IRC 2012-02-08T12:59:37 *** efazati has joined #pocoo 2012-02-08T12:59:37 *** efazati has joined #pocoo 2012-02-08T13:06:00 *** efazati has quit IRC 2012-02-08T13:07:10 *** leo2007 has quit IRC 2012-02-08T13:07:13 *** efazati has joined #pocoo 2012-02-08T13:07:46 *** leo2007 has joined #pocoo 2012-02-08T13:08:17 *** monty` has joined #pocoo 2012-02-08T13:13:42 *** yumike has joined #pocoo 2012-02-08T13:14:00 *** eka has joined #pocoo 2012-02-08T13:15:57 *** Rozza has joined #pocoo 2012-02-08T13:16:04 *** Rozza has left #pocoo 2012-02-08T13:17:44 *** rmccue has quit IRC 2012-02-08T13:20:02 *** sl33k_ has joined #pocoo 2012-02-08T13:22:32 *** scooterXL has quit IRC 2012-02-08T13:28:03 *** sl33k_ has left #pocoo 2012-02-08T13:35:26 *** cofi has joined #pocoo 2012-02-08T13:53:42 *** JdpB42 has joined #pocoo 2012-02-08T13:59:11 *** whitebook has joined #pocoo 2012-02-08T14:02:42 *** leo2007 has quit IRC 2012-02-08T14:06:26 *** pieterm has joined #pocoo 2012-02-08T14:06:39 Hello 2012-02-08T14:06:54 I have a question about the ouput Flask sends to the command line when running. 2012-02-08T14:07:06 Is it possible to silence Flask? 2012-02-08T14:07:17 And, perhaps, send the output to a file? 2012-02-08T14:13:56 *** raignarok has joined #pocoo 2012-02-08T14:14:25 pieterm: >? 2012-02-08T14:17:31 and what if I start the Flask app from within another application which is started from command line 2012-02-08T14:18:08 therefor I want to silence Flask, as my main application will output other stuff 2012-02-08T14:18:08 Flask should sort of run in the background 2012-02-08T14:21:04 *** dotplus_ is now known as dotplus 2012-02-08T14:22:23 *** remyroy has joined #pocoo 2012-02-08T14:27:13 *** tian2992 has joined #pocoo 2012-02-08T14:27:38 *** FND has joined #pocoo 2012-02-08T14:28:29 *** raignarok has quit IRC 2012-02-08T14:41:03 *** whitebook has quit IRC 2012-02-08T14:44:02 mitsuhiko: any idea? 2012-02-08T14:48:16 *** craigzheng has joined #pocoo 2012-02-08T14:58:51 *** DasIch has quit IRC 2012-02-08T15:01:56 *** kukulissimo has quit IRC 2012-02-08T15:03:05 *** DasIch has joined #pocoo 2012-02-08T15:06:00 *** obert- has joined #pocoo 2012-02-08T15:06:13 pieterm: not sure what you are trying to accomplish (app.run() is for development only), but you can take a look at app.logger and app.logger.handlers 2012-02-08T15:06:23 hello,should i dont expect flask supporting py 3.1? 2012-02-08T15:06:59 obert-: http://flask.pocoo.org/docs/foreword/#the-status-of-python-3 2012-02-08T15:07:14 rduplain_: I have a tool that allows you to run a temporary local server from your cli. But I don't want Flask to output anything to that same cli. 2012-02-08T15:07:57 pieterm: I recommend two terminal sessions, one to run the app, one to do task stuff 2012-02-08T15:08:10 *** tian2992 has quit IRC 2012-02-08T15:08:20 tsk,and i cannot use 2.7 2012-02-08T15:08:35 *** leo2007 has joined #pocoo 2012-02-08T15:08:42 rduplain_: but it should be integrated in the same tool .. anyway .. I'll look further and see what comes out. Thanks! 2012-02-08T15:09:21 thanks 2012-02-08T15:09:24 *** obert- has left #pocoo 2012-02-08T15:09:31 *** MooGoo11 has joined #pocoo 2012-02-08T15:09:45 pieterm: not sure of the status of logbook, but logbook.NullHandler might give you ideas 2012-02-08T15:09:52 ok 2012-02-08T15:10:32 also, Flask-Script 2012-02-08T15:10:47 it provides shell and server commands 2012-02-08T15:11:25 you could introduce some sort of shell+server command, disabling the DebugLogger in app.logger 2012-02-08T15:11:45 *** cybertoast has joined #pocoo 2012-02-08T15:12:32 *** FND_ has joined #pocoo 2012-02-08T15:12:42 *** rduplain_ is now known as rduplain 2012-02-08T15:13:51 pieterm: if Flask-Script doesn't provide what you need, let me know 2012-02-08T15:15:29 *** TSK has joined #pocoo 2012-02-08T15:15:58 *** FND has quit IRC 2012-02-08T15:16:05 *** FND_ is now known as FND 2012-02-08T15:16:17 *** pieterm has quit IRC 2012-02-08T15:16:59 rduplain, quick terminology question: I refer to this mapping file as "URI mapping" - I guess "route mapping" would be more in line with Flask? 2012-02-08T15:17:51 this is primarily relevant for the public repo name; I'd rather avoid having to rename that later on 2012-02-08T15:19:23 FND: both will be understood but route makes more sense because you don't have a 1:1 URI mapping 2012-02-08T15:19:41 FND: although you could argue that you are mapping a set of URIs to an endpoint 2012-02-08T15:20:27 *** efazati has quit IRC 2012-02-08T15:20:48 DasIch: yeah - I guess I'll have to think of a nicely descriptive yet concise name 2012-02-08T15:21:12 route mapper sounds a bit like a travel application :) 2012-02-08T15:21:31 FND: you don't have to find an accurate name, it just has to be short and easy to remember 2012-02-08T15:21:41 *** yumike has quit IRC 2012-02-08T15:22:35 true - though I just remembered the term rduplain used the other day: "manifest" - that seems like it might work 2012-02-08T15:22:53 *** DasIch_ has joined #pocoo 2012-02-08T15:22:53 *** DasIch has quit IRC 2012-02-08T15:22:54 *** DasIch_ is now known as DasIch 2012-02-08T15:22:56 gonna flip a coin on "URI manifest" and "route manifest" 2012-02-08T15:23:29 FND: these thoughts are good. I'll add that URI, Map, and Route are all rather overloaded. 2012-02-08T15:23:54 * FND nods 2012-02-08T15:23:54 FND: if you could capture your intent instead... something like "map spec" 2012-02-08T15:24:06 yeah, that's why I like your "manifest" 2012-02-08T15:24:40 it's evokes fist-slamming "THESE ARE MY URIS - THERE ARE MANY LIKE THEM BUT THESE ARE MINE" 2012-02-08T15:24:41 *** nivardus has joined #pocoo 2012-02-08T15:24:41 *** nivardus has joined #pocoo 2012-02-08T15:24:46 URI is very well defined, a route is a definition for a set of routes and a map, in this context, is something that associates key with a value 2012-02-08T15:25:09 FND: just call it awesome route thing 2012-02-08T15:25:37 DasIch: that's too evocative of the Rubyverse to me... (I currently work with Rails and hate it, so I'm biased) 2012-02-08T15:25:50 FND: if you want to be modest somewhat awesome route thing would work as well 2012-02-08T15:25:57 haha 2012-02-08T15:26:30 FND: a project is all about the name 2012-02-08T15:27:02 FND: once you have a good name everything else is really not that important 2012-02-08T15:27:03 looking at http://flask.pocoo.org/extensions/ most go with CamelCase - which makes URIManifest a bit awkward 2012-02-08T15:27:15 * FND takes the hint 2012-02-08T15:27:28 I'll just name it dumpster 2012-02-08T15:27:49 *** OmidRaha has quit IRC 2012-02-08T15:27:56 FND: I see your point though, at some point, you don't want to rename your repo 2012-02-08T15:28:21 if you want to hack it out, just call it "something experiment" for now :) 2012-02-08T15:28:40 *** TSK has quit IRC 2012-02-08T15:28:54 I'll just put it in a gist and migrate later 2012-02-08T15:29:37 either way, in order to get there, I gotta choke on Rails some more 2012-02-08T15:32:58 *** MatToufoutu has joined #pocoo 2012-02-08T15:34:35 *** flox has quit IRC 2012-02-08T15:35:15 *** whitebook has joined #pocoo 2012-02-08T15:36:42 *** fmerges has joined #pocoo 2012-02-08T15:46:30 *** nullie has quit IRC 2012-02-08T15:53:40 *** lhnz has joined #pocoo 2012-02-08T15:56:09 *** stp has joined #pocoo 2012-02-08T15:56:49 *** JdpB42 has quit IRC 2012-02-08T15:57:27 *** Ramonster has quit IRC 2012-02-08T15:59:32 *** __tosh has quit IRC 2012-02-08T16:01:25 *** el_bb has joined #pocoo 2012-02-08T16:05:19 *** flox has joined #pocoo 2012-02-08T16:06:04 *** stp has quit IRC 2012-02-08T16:11:28 *** ambv has quit IRC 2012-02-08T16:14:18 *** kennethreitz has joined #pocoo 2012-02-08T16:16:37 *** ch0wn has quit IRC 2012-02-08T16:21:18 *** skot has quit IRC 2012-02-08T16:25:03 *** ch0wn has joined #pocoo 2012-02-08T16:29:58 *** seanc_ has quit IRC 2012-02-08T16:36:54 *** derdon has joined #pocoo 2012-02-08T16:42:10 *** joshfinnie has joined #pocoo 2012-02-08T16:46:28 *** KeepSafe has joined #pocoo 2012-02-08T16:49:25 *** craigkerstiens has quit IRC 2012-02-08T16:49:41 *** thwest has joined #pocoo 2012-02-08T16:58:01 *** skot has joined #pocoo 2012-02-08T17:00:54 *** hoangelos has joined #pocoo 2012-02-08T17:03:21 *** bhlir_ is now known as bhlir 2012-02-08T17:05:58 *** thwest has quit IRC 2012-02-08T17:07:18 *** ch0wn has quit IRC 2012-02-08T17:07:27 *** bhlir has left #pocoo 2012-02-08T17:13:08 *** Hukka has left #pocoo 2012-02-08T17:13:52 *** blaflamme has quit IRC 2012-02-08T17:16:53 *** aboudreault has joined #pocoo 2012-02-08T17:17:12 *** ShadeTornado has joined #pocoo 2012-02-08T17:19:36 What would you use to convert HTML content that can possible contains HTML entities to text? BeatifulSoup, the undocumented HTMLParser.unescape method or something else? 2012-02-08T17:19:55 *** Ramonster has joined #pocoo 2012-02-08T17:19:58 *** nullie has joined #pocoo 2012-02-08T17:20:40 remyroy: lxml 2012-02-08T17:21:09 html5lib perhaps? 2012-02-08T17:22:12 remyroy: does it contain tags that have to be removed? 2012-02-08T17:23:18 No, just some possible entities 2012-02-08T17:23:49 remyroy: HTMLParser.unescape will probably do 2012-02-08T17:25:21 *** thwest has joined #pocoo 2012-02-08T17:25:58 I'll have a look at lxml and html5lib too. Thanks. 2012-02-08T17:31:22 *** sunoano has quit IRC 2012-02-08T17:32:43 *** MaximLacrima has quit IRC 2012-02-08T17:32:54 *** MaximLacrima has joined #pocoo 2012-02-08T17:33:24 *** MaximLacrima has joined #pocoo 2012-02-08T17:33:58 remyroy: https://bitbucket.org/abki/kkes 2012-02-08T17:34:40 remyroy: have a look at https://github.com/jsocol/bleach code it use html5lib 2012-02-08T17:35:21 kkes keeps the block nesting information whereas bleach removes every tags that is not safe... 2012-02-08T17:39:16 *** pickels_ has quit IRC 2012-02-08T17:39:44 *** jcspray has quit IRC 2012-02-08T17:46:39 *** N30N has quit IRC 2012-02-08T17:48:43 *** N30N has joined #pocoo 2012-02-08T17:49:18 *** mahmoudimus has joined #pocoo 2012-02-08T17:49:40 *** welterde has quit IRC 2012-02-08T17:56:10 *** craigkerstiens has joined #pocoo 2012-02-08T17:56:12 *** magicsword has joined #pocoo 2012-02-08T17:56:13 *** GrizzLyCRO has joined #pocoo 2012-02-08T17:56:23 MultiDict has no __delitem__() function? 2012-02-08T17:57:14 *** monty` has quit IRC 2012-02-08T17:59:24 *** mahmoudimus has quit IRC 2012-02-08T18:00:59 *** weaver has quit IRC 2012-02-08T18:01:26 *** peterschmidler has joined #pocoo 2012-02-08T18:01:50 *** hynek has quit IRC 2012-02-08T18:02:35 *** weaver has joined #pocoo 2012-02-08T18:02:44 kennethreitz: ping 2012-02-08T18:04:07 kennethreitz: i'm not sure what the channel for requests is, so I'll ask here :) 2012-02-08T18:05:06 when I say requests.post(resource, data={"foo": "bar"}) 2012-02-08T18:05:23 *** Ramonster has quit IRC 2012-02-08T18:05:26 my naive expectation is that it will jsonify the dict and set content-type: application/json 2012-02-08T18:06:22 *** felixhummel has quit IRC 2012-02-08T18:06:22 but it doesn't do the latter. is this something that you could add, or otherwise what's the proper idiom? 2012-02-08T18:06:45 *** sunoano has joined #pocoo 2012-02-08T18:06:45 *** sunoano has joined #pocoo 2012-02-08T18:06:49 *** Eftarjin has quit IRC 2012-02-08T18:10:04 weaver: why on earth would it do that? 2012-02-08T18:10:23 weaver: I want you to explain :) 2012-02-08T18:11:07 *** seanc_ has joined #pocoo 2012-02-08T18:12:43 *** gonz has joined #pocoo 2012-02-08T18:21:04 *** fmerges has quit IRC 2012-02-08T18:21:09 *** kukulissimo has joined #pocoo 2012-02-08T18:22:35 *** team9 has joined #pocoo 2012-02-08T18:22:51 *** Eftarjin has joined #pocoo 2012-02-08T18:23:21 *** adepti37 has joined #pocoo 2012-02-08T18:23:59 *** whitebook has quit IRC 2012-02-08T18:30:13 *** zarf has joined #pocoo 2012-02-08T18:31:54 *** MooGoo11 has left #pocoo 2012-02-08T18:38:00 *** peterschmidler has quit IRC 2012-02-08T18:38:12 kennethreitz: you added tons of questions to the google moderator I see :) 2012-02-08T18:38:27 goodwill: you're hilarious ;) 2012-02-08T18:38:31 *** el_bb has quit IRC 2012-02-08T18:38:41 kennethreitz: nah ... I totally see it 2012-02-08T18:38:53 kennethreitz: I believe in you 2012-02-08T18:38:57 i will :) 2012-02-08T18:38:59 kennethreitz: ;) 2012-02-08T18:39:16 we should open that up 2012-02-08T18:39:22 like tweet about it 2012-02-08T18:39:45 kennethreitz: mcdonc did ... 2012-02-08T18:40:00 kennethreitz: or you mean tweet each topic? 2012-02-08T18:41:37 i was going to ask if i could 2012-02-08T18:41:42 i'd love to get that thing filled with questions 2012-02-08T18:43:55 kennethreitz: its kinda hard to find all the people who twitt about it 2012-02-08T18:44:06 I guess the tag could be #pyweb 2012-02-08T18:44:11 I guess the tag could be #pyweb-summit 2012-02-08T18:44:14 more precises 2012-02-08T18:44:33 no need 2012-02-08T18:44:37 just need added questions ;) 2012-02-08T18:45:26 goodwill: https://twitter.com/kennethreitz/status/167302980289306625 2012-02-08T18:46:19 kennethreitz: awesome, I am pretty sure mcdonc tweeted that 2012-02-08T18:49:28 *** arg0s has quit IRC 2012-02-08T18:54:10 goodwill: woot, the psf retweeted 2012-02-08T18:56:25 *** ibk has quit IRC 2012-02-08T18:57:28 *** peterschmidler has joined #pocoo 2012-02-08T18:58:29 *** N30N has quit IRC 2012-02-08T19:00:03 *** felixhummel has joined #pocoo 2012-02-08T19:00:12 *** N30N has joined #pocoo 2012-02-08T19:00:29 *** skot has quit IRC 2012-02-08T19:02:15 *** skot has joined #pocoo 2012-02-08T19:03:03 *** Nasga has quit IRC 2012-02-08T19:03:13 *** arg0s has joined #pocoo 2012-02-08T19:03:55 *** FND has quit IRC 2012-02-08T19:05:07 *** wolan has joined #pocoo 2012-02-08T19:05:07 *** wolan has joined #pocoo 2012-02-08T19:06:00 *** arg0s has joined #pocoo 2012-02-08T19:09:24 *** ibk has joined #pocoo 2012-02-08T19:09:29 *** peterschmidler has quit IRC 2012-02-08T19:10:03 ronny: ping 2012-02-08T19:10:46 mitsuhiko: paste.pocoo is down 2012-02-08T19:15:13 *** felixhummel has quit IRC 2012-02-08T19:15:13 *** team9 has quit IRC 2012-02-08T19:15:24 *** tian2992 has joined #pocoo 2012-02-08T19:15:39 *** mahmoudimus has joined #pocoo 2012-02-08T19:15:57 *** felixhummel has joined #pocoo 2012-02-08T19:18:40 it has been 2012-02-08T19:18:42 datacenter suckage 2012-02-08T19:19:46 *** caseymcg has joined #pocoo 2012-02-08T19:19:57 *** felixhummel has quit IRC 2012-02-08T19:21:26 *** felixhummel has joined #pocoo 2012-02-08T19:25:23 *** felixhummel has quit IRC 2012-02-08T19:25:46 *** felixhummel has joined #pocoo 2012-02-08T19:28:40 *** blaflamme has joined #pocoo 2012-02-08T19:30:31 *** caseymcg has quit IRC 2012-02-08T19:30:43 *** ramkrsna has quit IRC 2012-02-08T19:32:13 *** felixhummel has quit IRC 2012-02-08T19:34:47 *** wolan has quit IRC 2012-02-08T19:35:08 *** kukulissimo has quit IRC 2012-02-08T19:36:24 *** skot has quit IRC 2012-02-08T19:40:22 *** shiver has joined #pocoo 2012-02-08T19:41:01 *** DasIch_ has joined #pocoo 2012-02-08T19:43:17 *** kukulissimo has joined #pocoo 2012-02-08T19:43:40 *** MaximLacrima has quit IRC 2012-02-08T19:43:46 *** DasIch has quit IRC 2012-02-08T19:43:46 *** DasIch_ is now known as DasIch 2012-02-08T19:45:03 *** skot has joined #pocoo 2012-02-08T19:46:33 *** \emp has joined #pocoo 2012-02-08T19:49:36 *** NorthIsUp has joined #pocoo 2012-02-08T19:50:59 *** \emp has quit IRC 2012-02-08T19:52:43 *** nullie has quit IRC 2012-02-08T19:56:34 *** whit has joined #pocoo 2012-02-08T20:04:17 *** paniq has joined #pocoo 2012-02-08T20:11:25 *** whitebook has joined #pocoo 2012-02-08T20:11:35 *** skot has quit IRC 2012-02-08T20:15:22 *** skot has joined #pocoo 2012-02-08T20:20:30 *** retornam has joined #pocoo 2012-02-08T20:27:40 *** leo2007 has quit IRC 2012-02-08T20:36:44 *** sternicus has joined #pocoo 2012-02-08T20:40:16 *** NorthIsUp has quit IRC 2012-02-08T20:41:03 *** monty` has joined #pocoo 2012-02-08T20:41:25 *** tian2992 has quit IRC 2012-02-08T20:48:29 *** magicsword has quit IRC 2012-02-08T20:51:30 *** raignarok has joined #pocoo 2012-02-08T20:53:58 *** paniq has quit IRC 2012-02-08T20:56:41 *** joelcox has quit IRC 2012-02-08T20:56:56 what is the recommended way to do authentication for a flask project for a primarily internal use site (ie: no 3rd party authenticators), but with some customer exposure. 2012-02-08T20:58:25 shiver: you might like Flask-Login 2012-02-08T20:59:21 *** nivardus has quit IRC 2012-02-08T21:01:31 *** ch0wn has joined #pocoo 2012-02-08T21:01:49 rduplain, ill check it out. thanks 2012-02-08T21:03:57 *** neataroni has joined #pocoo 2012-02-08T21:04:26 how should i structure my files so i can have a separate file for my sqlalchemy models, and a seperate file for my celery tasks? 2012-02-08T21:06:35 just put them in separate files, what's the problem? 2012-02-08T21:07:56 *** paniq has joined #pocoo 2012-02-08T21:08:49 *** welterde has joined #pocoo 2012-02-08T21:08:57 TheSheep: i think i was having trouble with circular imports, now that im thinking about it thought, it seems like i shouldnt run into trouble 2012-02-08T21:09:45 Requests to my flask app are sometimes blocked by other, long-running requests (awaiting a response from an external API). Do I need an asynchronous job queue like celery to address this? 2012-02-08T21:12:30 sternicus: yeah, celery is a good solution for this kind of problems 2012-02-08T21:12:51 sternicus: also for handling things like sending e-mails 2012-02-08T21:13:56 *** epopt37 has joined #pocoo 2012-02-08T21:15:37 *** whitebook has quit IRC 2012-02-08T21:17:38 thanks TheSheep. Do you know if I'd need to run a datastore for celery, or is does it provide a simple, in-memory one? 2012-02-08T21:20:22 *** mindlogger has joined #pocoo 2012-02-08T21:21:29 ^ neataroni: any idea? 2012-02-08T21:21:51 you need a datastore 2012-02-08T21:21:57 you can use sqlite if you want to be really ghetto 2012-02-08T21:21:59 *** skot1 has joined #pocoo 2012-02-08T21:22:18 sternicus: but the best ones are rabbitmq and redis 2012-02-08T21:22:33 sternicus: we use redis because we don't care about losing the tasks on reboot 2012-02-08T21:22:46 *** arg0s has quit IRC 2012-02-08T21:22:49 sternicus: they are pretty straightforward to install 2012-02-08T21:23:25 yeah, I like both rabbitmq and redis, but I'm trying to keep additional dependencies to a minimum 2012-02-08T21:23:52 you need to run a celery worker server too, right? 2012-02-08T21:24:15 *** ch0wn has quit IRC 2012-02-08T21:24:31 *** skot has quit IRC 2012-02-08T21:30:57 sternicus: yes, that's the whole idea 2012-02-08T21:31:33 got it, thanks TheSheep 2012-02-08T21:31:50 *** apipkin has joined #pocoo 2012-02-08T21:32:08 sternicus: in my experience it doesn't pay to avoid dependencies -- better to outsource the bugfixing :) 2012-02-08T21:32:41 of course you still need to choose good libraries for that 2012-02-08T21:35:05 the biggest problem for me is convincing my client's dev team that they should install & run redis and celery 2012-02-08T21:35:31 ^ TheSheep 2012-02-08T21:36:09 sternicus: that sounds backwards 2012-02-08T21:36:31 sternicus: who is developing that, you or them? 2012-02-08T21:37:14 I'll be developing this, they'd be maintaining it 2012-02-08T21:38:09 that also sounds like a recipe for disaster 2012-02-08T21:38:33 sternicus: well, you can use mysql or sqlite as the backend for celery 2012-02-08T21:39:07 sternicus: but they are not really good for performance 2012-02-08T21:39:35 there is no getting around running at least one celery worker though 2012-02-08T21:39:51 right 2012-02-08T21:40:08 if i have an api url that returns JSON data, how would i get that within flask? 2012-02-08T21:40:56 you can use something like httplib2 2012-02-08T21:40:56 *** whitebook has joined #pocoo 2012-02-08T21:41:02 ^ apipkin 2012-02-08T21:41:04 apipkin: download it with urllib or urllib2 and decode with json 2012-02-08T21:41:43 sternicus || TheSheep: is there a benefit to one over the other? 2012-02-08T21:41:45 apipkin: flask comes with json library included in it, so you can use that even if your python is too old to have it 2012-02-08T21:42:15 apipkin: different degrees of control over things like headers, cookies, auth, etc. 2012-02-08T21:42:29 *** Recycled has joined #pocoo 2012-02-08T21:42:58 i would assume 2 would have more of control? 2012-02-08T21:43:04 or you can use the requests library 2012-02-08T21:43:33 there is also pycurl and other libraries 2012-02-08T21:43:38 lots to choose from 2012-02-08T21:43:49 haha yeah it seems like it :) 2012-02-08T21:44:13 apipkin: unless you need special auth I would just go with liburl, it's the simples 2012-02-08T21:44:16 t 2012-02-08T21:44:38 I'm having trouble running jinja2.....it works up to the point where I try and do a FOR loop to build a HTML table. Can someone help me with this? 2012-02-08T21:45:25 Recycled: pastebin the relevant fragments of code and the exception 2012-02-08T21:45:25 ah that's perfect advice. i am on day three of reading flask and working on a sample app to just learn it and python and jinja2. i'm not looking for something extensive right now 2012-02-08T21:45:25 ok 2012-02-08T21:46:01 TheSheep: is that liburl or urllib? 2012-02-08T21:46:29 apipkin: http://docs.python.org/library/urllib.html 2012-02-08T21:46:37 thanks! 2012-02-08T21:46:45 http://pastebin.com/WYw0YFWM 2012-02-08T21:47:25 Recycled: and the error? 2012-02-08T21:47:36 if I remove the for loop then it works perfect and makes a single 2012-02-08T21:48:20 data is a dict right, Recycled? 2012-02-08T21:48:23 but I want to loop and build several entries. Nothing seems to fail, I don't get any exceptions, it's just that it doesn't make anything 2012-02-08T21:48:27 Recycled: you probably want for key, value in data.iteritems() 2012-02-08T21:48:32 *** craigkerstiens has quit IRC 2012-02-08T21:49:06 or data is supposed to be a list 2012-02-08T21:49:19 Recycled: no, wait 2012-02-08T21:49:29 Recycled: you don't pass any 'data' variable 2012-02-08T21:49:31 *a list of dicts 2012-02-08T21:50:15 Recycled: you only pass 'date', 'id', 'position' and 'status' to the template, there is no 'data' 2012-02-08T21:53:30 *** _feda__ has joined #pocoo 2012-02-08T21:53:33 <_feda__> hello 2012-02-08T21:53:53 hi _feda__ 2012-02-08T21:56:11 so i need my db and app in my models file, but i need my models in my main file where db and app are made, so i get an import error- what should i do? 2012-02-08T21:56:52 neataroni: http://flask.pocoo.org/docs/patterns/packages/ 2012-02-08T21:57:07 neataroni: the trick is to put the imports at the end of the file 2012-02-08T21:57:14 thank you 2012-02-08T21:57:15 awesome 2012-02-08T21:57:53 neataroni: they do that with views in that example, but you can do the same thing with models 2012-02-08T22:01:19 *** Mantle19 has joined #pocoo 2012-02-08T22:01:26 *** Mantle19 is now known as Mantle 2012-02-08T22:01:29 *** Mantle is now known as Mantle0 2012-02-08T22:02:42 TheSheep: are you familiar with Gunicorn? 2012-02-08T22:02:43 how would i go about changing flask so it can use ujson or cjson instead of simplejson? 2012-02-08T22:03:09 sternicus: never used it in production 2012-02-08T22:03:19 sternicus: well, at least not myself 2012-02-08T22:03:51 *** neataroni has quit IRC 2012-02-08T22:04:16 *** Holocaine has joined #pocoo 2012-02-08T22:05:23 *** kruentusken has joined #pocoo 2012-02-08T22:11:46 *** tian2992 has joined #pocoo 2012-02-08T22:11:52 *** NorthIsUp has joined #pocoo 2012-02-08T22:12:26 *** Leemp has joined #pocoo 2012-02-08T22:13:11 *** tian2992 has quit IRC 2012-02-08T22:15:27 *** Mantle0 has quit IRC 2012-02-08T22:16:27 *** whitebook has quit IRC 2012-02-08T22:19:10 kennethreitz: ping 2012-02-08T22:19:43 *** skot1 has quit IRC 2012-02-08T22:20:06 weaver: hey 2012-02-08T22:20:13 ok sorry about the delay 2012-02-08T22:20:34 *** _feda__ has quit IRC 2012-02-08T22:20:46 so i'm writing an api, and it's sending json back and forth 2012-02-08T22:21:02 so I understand that in the default use case, yes, it shouldn't do what I described 2012-02-08T22:21:12 (when I say requests.post(resource, data={"foo": "bar"}) 2012-02-08T22:21:19 jsonify the dict and set content-type: application/json) 2012-02-08T22:21:20 yes, which form-encodes 2012-02-08T22:21:24 but 2012-02-08T22:21:36 which is the 95% use case ;) 2012-02-08T22:21:38 is there a concise way to fire a json request? 2012-02-08T22:22:05 data=json.dumps({'foo': 'bar'}) 2012-02-08T22:22:20 _and_ set the header 2012-02-08T22:22:53 yep 2012-02-08T22:22:53 i'm looking to make it shorter - more requesty ;) 2012-02-08T22:22:57 you could use hooks 2012-02-08T22:23:03 but explicit is better than implicit :) 2012-02-08T22:23:27 ok. maybe I'll invent post_json 2012-02-08T22:23:41 just write a function 2012-02-08T22:23:45 weaver: maybe you could use a decorator? 2012-02-08T22:23:54 *** fergus___ has joined #pocoo 2012-02-08T22:24:00 Y0Gi: that strikes me as overkill 2012-02-08T22:24:10 yeah. I'll just make a function 2012-02-08T22:24:10 *** moraes has quit IRC 2012-02-08T22:24:14 actually, jsonify should be that/has been that in implementations in pre-flask times here and there 2012-02-08T22:24:15 *** craigkerstiens has joined #pocoo 2012-02-08T22:24:45 *** skot has joined #pocoo 2012-02-08T22:24:59 weaver: why is that overkill? just return the data dict and let the decorator function serialize it and set up a response with appropriate headers 2012-02-08T22:24:59 *** apipkin has quit IRC 2012-02-08T22:25:03 Y0Gi: +1 2012-02-08T22:25:16 *** apipkin has joined #pocoo 2012-02-08T22:25:25 Y0Gi: he's talking about a client, not server 2012-02-08T22:25:38 oh. 2012-02-08T22:26:08 *** fergus___ has quit IRC 2012-02-08T22:26:12 sorry, i'm not sure which channel is appropriate for kennethreitz requests 2012-02-08T22:26:23 weaver: #python-requests 2012-02-08T22:26:25 ok 2012-02-08T22:27:50 kennethreitz: btw, what didn't you like with restkit back when you looked for urllib* alternatives? 2012-02-08T22:28:25 ronny: it was the best one, actually 2012-02-08T22:29:19 kennethreitz: so what was the issue? 2012-02-08T22:29:49 ronny: i hate the api 2012-02-08T22:30:04 kennethreitz: on a tangential question, is there a better way to parse a url string than ugliness like f = urlparse.parse_qs(urlparse.urlsplit(res.headers['Location'])[3])['f'][0] 2012-02-08T22:30:16 ronny: + c dependency, + custom http parser 2012-02-08T22:30:22 kennethreitz: no c dep 2012-02-08T22:30:30 ronny: it's optional now 2012-02-08T22:30:36 TheSheep: i wanted to be a urllib2-friendly too, but that's changed 2012-02-08T22:30:53 more precisely what i'm doing is: f = urlparse.parse_qs(urlparse.urlsplit(url)['f'][0] 2012-02-08T22:30:53 weaver: there is not 2012-02-08T22:30:55 *sigh* 2012-02-08T22:31:32 ronny: i'll have you know that benoitc is a big fan of requests, and we have been chatting about the idea of potentionally making them a bit more melded :) 2012-02-08T22:31:42 kennethreitz: i hope so 2012-02-08T22:31:44 but i appreciate your passive agressive opinions ;) 2012-02-08T22:32:29 *** clay- has joined #pocoo 2012-02-08T22:32:34 currently my stance is - never rely on the stdlib for good network protocol implementation 2012-02-08T22:32:51 httplib isn't that bad 2012-02-08T22:32:56 (cause every single damn time i tried that something broke 2012-02-08T22:33:08 urllib2 is the problem 2012-02-08T22:33:08 kennethreitz: breaks with chunked 2012-02-08T22:33:10 not httplib ;) 2012-02-08T22:33:25 don't get me started about chunked :( 2012-02-08T22:33:29 ronny: chunked is terrible anyway 2012-02-08T22:33:35 kennethreitz: no 2012-02-08T22:33:50 its practically a non-issue, if you have a reasonable parsere below 2012-02-08T22:33:50 i still haven't figured out a way to make flask not choke on chunked POST requests 2012-02-08T22:34:11 weaver, are you using cherokee as a server? 2012-02-08T22:34:23 shiver: i'm using the server flask comes with 2012-02-08T22:34:28 weaver, ah 2012-02-08T22:34:37 weaver: use gunicorn 2012-02-08T22:34:41 weaver: what are you using the chunked requests for? 2012-02-08T22:34:42 i have issues with chunked ajax request in cherokee when using chrome 2012-02-08T22:35:23 *** [clay] has quit IRC 2012-02-08T22:35:23 *** hoangelos has quit IRC 2012-02-08T22:35:23 ronny: does it matter? it's HTTP/1.1 so anyone who serves it had better know how to respond to them 2012-02-08T22:35:23 *** sunoano has quit IRC 2012-02-08T22:35:56 ronny:but assuming it's a really big file 2012-02-08T22:36:10 and i want to stream it 2012-02-08T22:36:34 actually not that, i think it works ok with files 2012-02-08T22:36:43 but an arbitrarily big post request 2012-02-08T22:36:58 TheSheep: can you please explain what you mean with "I do not pass any data" 2012-02-08T22:37:23 kennethreitz: thanks I'll try that 2012-02-08T22:37:27 I am send ing the variable "data" that is a dictionary 2012-02-08T22:37:56 weaver: basically the werkzeug server is not aware of chunked 2012-02-08T22:38:03 Recycled: no, your dictionary doesn't contain a variable 'data' 2012-02-08T22:38:29 Recycled: the fact that you put your dictionary in a variable called 'data' before you pass it into the template is irrelevant 2012-02-08T22:38:41 Recycled: the template never sees the name of that variable 2012-02-08T22:40:12 ah, ok, I see. Then how should I do it? like this: template.render(date='2012-02-8', id='123', position='here', status='Waiting') 2012-02-08T22:40:29 *** jezdez has quit IRC 2012-02-08T22:40:29 mitsuhiko: should the werkzeug server handle downgrading the connection for http 1.1 requests? 2012-02-08T22:40:57 weaver: chunked is not supported by wsgi 2012-02-08T22:47:05 *** monty` has quit IRC 2012-02-08T22:47:17 TheSheep: can you only send a dictionary or can for example send a list instead? 2012-02-08T22:47:58 Recycled: you can put a list in that dictionary 2012-02-08T22:48:10 Recycled: like {'data': [1, 2, 3], ...} 2012-02-08T22:50:08 WSGI doesn't allow the application level to influence whether responses are chunked, but the WSGI server underneath can choose to using chunked responses if no content length and HTTP/1.1. 2012-02-08T22:50:39 Chunked request content however isn't possible because of way WSGI specification is worded. 2012-02-08T22:52:09 *** __number5__ has joined #pocoo 2012-02-08T22:53:15 *** jezdez has joined #pocoo 2012-02-08T22:53:56 Ok, I'm completely lost now...... 2012-02-08T22:55:22 *** kennethreitz has quit IRC 2012-02-08T22:58:55 *** NorthIsUp has quit IRC 2012-02-08T22:58:58 *** oeginc has joined #pocoo 2012-02-08T22:59:10 *** NorthIsUp has joined #pocoo 2012-02-08T23:00:13 *** apipkin has quit IRC 2012-02-08T23:00:29 mitsuhiko: yes, I know. I'm the one who filed that issue :) 2012-02-08T23:00:38 mitsuhiko: but I need to find a workaround 2012-02-08T23:00:59 weaver: propose a fix for pep 333 2012-02-08T23:01:02 make people implement it 2012-02-08T23:01:10 *** Recycled has quit IRC 2012-02-08T23:02:08 *** kennethreitz has joined #pocoo 2012-02-08T23:03:58 *** sternicus has quit IRC 2012-02-08T23:04:10 *** arvind_khadri has joined #pocoo 2012-02-08T23:04:10 *** arvind_khadri has joined #pocoo 2012-02-08T23:07:34 *** slestak_work has joined #pocoo 2012-02-08T23:08:39 kennethreitz: got a strange issue I may be filing for tablib. everything is working up to a certain file size, then thre seems to be a meltdown and huge memory is consumed. 2012-02-08T23:09:15 I am halfplsitting my input file to determine where it is going awry 2012-02-08T23:09:45 its reproducible on py2.6.5 on aix and py2.7.1 on win64 2012-02-08T23:10:17 i thin kit is specific to the vendorized openpyxl 2012-02-08T23:15:57 *** arvind_khadri has quit IRC 2012-02-08T23:18:21 *** jezdez has quit IRC 2012-02-08T23:18:21 *** jezdez has joined #pocoo 2012-02-08T23:18:24 seems to be working at the moment, but a 43k rows x 12 col dataset consumes 900M of ram when exporting as xlsx. 2012-02-08T23:20:09 *** toothr has quit IRC 2012-02-08T23:21:46 *** sternicus has joined #pocoo 2012-02-08T23:22:08 *** toothr has joined #pocoo 2012-02-08T23:22:36 doubled my input size (85k rows x 12 cols) and 1.6g ram. 2012-02-08T23:23:23 the resulting spreadsheet is only 2.3M 2012-02-08T23:24:09 *** joshfinnie has quit IRC 2012-02-08T23:25:11 *** sternicus has quit IRC 2012-02-08T23:26:11 *** tux21b has joined #pocoo 2012-02-08T23:28:05 *** wurlitzer has quit IRC 2012-02-08T23:29:10 *** wurlitzer has joined #pocoo 2012-02-08T23:32:12 *** Eftarjin has quit IRC 2012-02-08T23:33:42 Anyone around who knows how I might be able to track paragraph-level content changes in Sphinx? 2012-02-08T23:33:51 *** wurlitzer has joined #pocoo 2012-02-08T23:34:53 ericholscher: we actually have that already for websupport and i18n 2012-02-08T23:35:11 *** kruentusken has quit IRC 2012-02-08T23:35:13 DasIch: right, I know that, just trying to figure out how to access/manipulate it 2012-02-08T23:35:17 ericholscher: it's awfully slow though 2012-02-08T23:35:45 ericholscher: it just sets an id on certain nodes in the doctree 2012-02-08T23:35:45 *** arvind_khadri has joined #pocoo 2012-02-08T23:37:04 Hrm 2012-02-08T23:37:14 Is accessing the doctree documented? or is that pure docutils? 2012-02-08T23:37:54 ericholscher: you should be able to get the doctree by listening to signals in an extension 2012-02-08T23:38:42 ericholscher: I'm not sure whether there is a signal for a change in the version id though, I expect that there isn't one 2012-02-08T23:39:17 ericholscher: the initial intention when implementing it wasn't to expose that api 2012-02-08T23:40:46 Was it supposed to be given another API, or just stay internal? 2012-02-08T23:41:18 ericholscher: I initially developed it specifically for websupport and i18n, there was no intention of exposing it at the time or changing the api long term 2012-02-08T23:42:53 Gotcha 2012-02-08T23:43:08 Excited for the i18n stuff, FWIW :) 2012-02-08T23:43:22 ericholscher: however if there is demand for it that might change, you'd have to talk to birkenfeld about that 2012-02-08T23:43:32 *** Leemp has quit IRC 2012-02-08T23:45:31 Cool, thanks 2012-02-08T23:45:32 *** TSK has joined #pocoo 2012-02-08T23:45:41 I'll poke around some more, and maybe come up with something more concrete 2012-02-08T23:47:34 ericholscher: I suppose Sphinx is not exactly nice to work with for rtfd purposes 2012-02-08T23:47:41 DasIch: :) 2012-02-08T23:48:05 It works well enough, I just need to understand the internals better 2012-02-08T23:48:19 *** queso has quit IRC 2012-02-08T23:49:08 ericholscher: it's simple once you understand that especially the BuildEnvironment part is better left untouched 2012-02-08T23:49:31 that code scares me 2012-02-08T23:49:33 *** gonz has quit IRC 2012-02-08T23:49:37 I'm wanting to build a bit deeper integration, eg. pulling TOCTrees and whatnot out of a project, so that I can do things with it, and that's where it starts to get hairy 2012-02-08T23:51:40 ericholscher: that's going to be painful 2012-02-08T23:51:50 thats what I'm discovering :) 2012-02-08T23:53:34 *** slestak_work has left #pocoo 2012-02-08T23:58:28 *** blaflamme has quit IRC