12:08 delijati #pylons
12:16 enoch
12:23 andref_dias
12:27 vhost-
12:30 ignas #pylons
12:44 THC4k #pylons
12:51 sameerthahir
12:54 vhost- #pylons
13:02 btami #pylons
13:07 relo_san
13:08 relo_san #pylons
13:12 nosklo #pylons
13:15 asabil
13:40 loxs #pylons
13:51 mnemoc
13:53 elyphas #pylons
13:54 mnemoc #pylons
13:59 mnemoc
14:01 mnemoc #pylons
14:08 THC4k
14:13 mattmtl #pylons
14:16 delijati #pylons
14:19 carl-
14:21 btami
14:24 jeansch #pylons
14:25 Ergo^ " (B) The default encoding of
    ``literal()`` is "ascii" instead of "utf-8"."
14:25 mindey_ #pylons
14:25 Ergo^ why in the world literal would be ascii now ?
14:29 Inyuki
14:35 whit #pylons
14:39 LPhas #pylons
14:45 whit
14:46 LPhas hello, i've a problem. i'm writing a sort of cms and i need to handle image upload. when someone uploads a file i store the mime type (got by a magic number library) and the file itself on the filesystem in a file named as the sha hash of the image. then the file is statically served by apache. problem here is that apache (and paster in developing enviroment) doesn't serve it with the correct mime/type and the browser complains. Problem is that
    uses file extensions to know what mime/type he will use to serve the request and i don't trust user files' crappy extensios (so the magi number library). I'd like to have that from the mime-type gives me a valid extension, mimetypes library seems to do that, but it'll often return a strange, not really common, extension (such as .jpe) as preferred one and the whole thing seems to be not very trustworthy to give always the same result on differen
    systems. any hints about this problem?
14:50 SomberDove #pylons
14:51 loxs
14:52 SomberDove[Taff]
14:55 MadRobot
15:00 bfrog #pylons
15:01 bfrog so I mean, whats really the deal with this wsgi and py3k fiasco
    like, where is it
15:01 LPhas py3k fiasco? O_O
15:02 mage__ #pylons
15:04 bfrog no like, where is wsgi for py3k
15:04 whubr_ #pylons
15:04 bfrog I'm one of those crazies that actually wants to use py3k
15:05 bfrog cause you know, I think they really did fix a few language blunders
15:05 mage_
15:05 whubr
15:05 bfrog yet every few months I poke around looking for a wsgi implementation on py3k, its like... nada
    I mean, numpy is ported now... numpy
    its not like py3k is some mythical unused language now
15:06 inklesspen bfrog: apparently the spec isn't nailed down yet
15:06 LPhas bfrog: oh, i see your point
15:07 LPhas well, big language improvements require time
15:07 mengu_
15:07 bfrog yet meanwhile numpy has been ported
    the lib I thought would be one of the last big libs to be ported...
15:07 LPhas uuuh numpy
15:08 bfrog like I had a list of libs right, that I need to use py3k, numpy was the last on the list I thought would get done
    yet here's the list, and the last one left to check off is a decent wsgi framework
15:08 LPhas sqlalchemy
15:08 bfrog sqla works fine with py3k
15:08 LPhas oh, ok
15:09 LPhas i don't know, i always heard talking about sqlalchemy code more or less like "Finnegans Wake" of j. Joice
15:15 whubr_ #pylons
15:21 skrul #pylons
15:26 Thorn #pylons
15:27 raydeo #pylons
15:33 marianom
15:36 ignas
15:40 mengu_ #pylons
15:40 marianom #pylons
15:44 benbangert #pylons
15:47 laggo #pylons
15:48 hacked
15:49 yekinabud #pylons
15:50 vinces_ #pylons
15:51 vinces_ #pylons
15:52 hacked #pylons
15:53 MadRobot #pylons
15:54 hacked
15:57 Bonaparte
16:00 jeffszusz_ #pylons
16:00 jeffszusz
  jeffszusz #pylons
16:01 jeffszusz_
16:05 MadRobot
16:12 petermanser petermanser_
16:19 harobed
16:20 emanuel #pylons
16:22 vinces_ #pylons
16:23 vinces_ #pylons
16:23 hacked #pylons
16:25 SomberDove
16:28 RaFromBRC #pylons
16:28 jeansch
16:32 mgedmin
  mgedmin #pylons
16:32 robbyoconnor #pylons
16:41 THC4k #pylons
16:41 LPhas
16:48 bencc #pylons
16:55 mengu_
17:05 YGingras
17:07 nosklo
17:07 Bonaparte #pylons
17:14 dialtone #pylons
  dialtone
  dialtone #pylons
17:20 pipoun
17:26 blaflamme #pylons
17:27 emanuel
17:35 gronky #pylons
17:36 anderbubble #pylons
17:37 anderbubble Can someone point me to documentation for serving static content from outside the public folder?
17:38 mgedmin ln -s?
17:39 mgedmin or you can look into middleware.py, where StaticURLParser is set up, and hook something like that with a different url prefix and directory path
17:39 anderbubble mgedmin, That's more what I'm looking for. Thanks.
17:40 mgedmin hm, on second though you probably don't want to overlay all of them into the same namespace, so instead of CascadingApp you'd use, what was it, paste's URLMap, probably
17:40 Migaaresno I can talk!
17:41 mgedmin or do it all in apache/ngnix, and put it in front of your paster app
17:41 jaywink
17:42 gronky
17:46 Migaaresno http://pylonshq.com/docs/en/1.0/forms/#validation-the-quick-way reports "Validation only occurs on POST requests". I checked it and its false. Good, otherwise its a security hole.
17:47 plantian ?
    Oh validate().
17:51 Migaaresno Completely unrelated: I get a error in email.mako on this line: "% if c.form_errors:"
    'ContextObj' object has no attribute 'form_errors'
17:52 YGingras #pylons
17:52 Migaaresno This error persist regartles if i put "config['pylons.strict_c'] = False" in environment.py
17:52 robbyoconnor
17:52 plantian Migaaresno: Using validate? I don't use it but you might need to set form_errors to {} yourself when there are no errors.
17:52 blaflamme use pylons.strict_tmpl_context
    using v1.0?
17:52 Migaaresno Im using 0.9.7
17:53 blaflamme oh
17:53 Migaaresno Upgrade?
17:53 blaflamme or use hasattr
17:54 nosklo #pylons
  nosklo
  nosklo #pylons
17:54 jaywink #pylons
17:55 plantian I think not having a strict template context is a bad idea. So you should only do it if you have to maintain backwards compatibility.
17:55 gronky #pylons
17:55 mnemoc what's the right way to integrate sqlalchemy-migrate (or equivalent) in pylons apps?
17:57 YGingras
17:58 _diana_ #pylons
17:59 mgedmin mnemoc, I'm also very interested in this question
18:00 mgedmin I rolled my own after struggling with sqlalchemy-migrate for a day
18:00 bfrog
18:00 _diana_1
18:04 YGingras #pylons
18:05 Migaaresno Upgraded to Pylons 1.0, "config['pylons.strict_c'] = False" is still ignored (file environment.py). Im going to follow plantian advice about setting everything.
18:07 blaflamme use config['pylons.strict_tmpl_context'] = False
18:07 Migaaresno Yay!\
18:07 plantian The name "c" changed to "tmpl_context" in 1.0.
18:08 Migaaresno It gives the next error! You saved another few hours!
18:08 _diana_1 #pylons
18:08 Migaaresno Thanks!
18:09 YGingras
18:10 mgedmin Migaaresno, have you seen the Pylons 1.0 "what's changed" page?
    it enumerates a few changes, including this one, IIRC
18:11 Migaaresno Im going to take a look.
18:11 _diana_
18:16 Bonaparte
  Bonaparte #pylons
18:22 YGingras #pylons
18:24 petermanser_ petermanser
18:25 emanuel #pylons
18:29 petermanser petermanser_
18:31 andref_dias #pylons
18:34 mcdonc
18:38 jeffszusz
18:45 jaywink
  jaywink #pylons
18:46 adamhutton
18:53 anderbubble
19:04 MadRobot #pylons
19:08 gronky
19:15 andref_dias
19:16 mcdonc #pylons
19:23 YGingras
19:26 gronky #pylons
19:31 afex #pylons
19:39 btami #pylons
19:46 moraes
19:50 gronky
19:52 emanuel1 #pylons
19:53 wendall911 #pylons
19:54 atomekk
19:54 YGingras #pylons
19:54 Migaaresno 0.9.7 uses "${h.text('email', value=c.form_result['email'] or '')}" so the form is populated with your previous (incorrect values). 1.0 does the same with only "${h.text('email')}". Its.. magic.
19:55 emanuel
20:03 npmap #pylons
20:03 emanuel1
20:06 gronky #pylons
20:11 beevee
20:14 anderbubble #pylons
20:15 yekinabud
20:16 btami
20:16 anderbubble
20:20 emanuel #pylons
20:21 State #pylons
  State #pylons
20:25 nosklo
20:29 YGingras
20:30 andref_dias #pylons
20:33 TheSmoke #pylons
20:33 Migaaresno
20:42 Bonaparte
20:43 skrul
20:44 skrul #pylons
20:54 emanuel
20:56 martinknyc #pylons
20:57 robbyoconnor #pylons
21:05 andref_dias
21:17 percious #pylons
21:21 mcdonc_ #pylons
21:22 mcdonc
21:27 martinknyc
21:40 emanuel #pylons
21:56 gronky
22:05 elyphas
22:07 skrul
22:10 skrul #pylons
22:19 emanuel
22:24 emanuel #pylons
22:32 wendall911
22:36 TheSmoke
22:42 afex
22:44 enoch #pylons
22:44 raydeo
22:47 marianom
22:51 blaflamme
23:05 jaywink
23:21 percious
23:30 enoch
23:37 emanuel
23:53 mindey_
00:00 percious #pylons
00:34 laggo
01:11 RaFromBRC
01:15 plantian Does anyone have any words of advice for yaml versus json ? That advice can include 'does not matter'.
01:26 mgedmin <flame>json rules yaml sucks</flame>
01:44 sirpengi depends what you're using it for
01:45 MadRobot
01:54 skrul