| *** opetznick has quit IRC | 00:00 | |
| *** flox has joined #zope3-dev | 00:02 | |
| *** dobee has quit IRC | 00:09 | |
| *** batlogg has quit IRC | 00:18 | |
| *** batlogg has joined #zope3-dev | 00:21 | |
| *** faassen has joined #zope3-dev | 00:29 | |
| *** jhauser has joined #zope3-dev | 00:34 | |
| *** waa has quit IRC | 00:52 | |
| *** alecm has joined #zope3-dev | 01:01 | |
| timte | TypeError: [] is not JSON serializable | 01:34 |
|---|---|---|
| timte | how odd, I get this error in my browser page, but not when using the regular python prompt | 01:35 |
| faassen | timte: where's the JSON coming in/ | 01:36 |
| faassen | didn't know Zope 3 had built-in JSON support. | 01:36 |
| timte | it hasn't, I use simplejson | 01:37 |
| projekt01 | timte, use jsonserver from jim washington | 01:37 |
| projekt01 | timte, you can find it here: http://codespeak.net/svn/z3/jsonserver/trunk | 01:38 |
| timte | I just want a dictionary be returned as json, should just need simplejson.dumps(dict) | 01:41 |
| timte | but... | 01:41 |
| faassen | timte: anyway, what when you do your test in the browser.. | 01:42 |
| faassen | timte: have you tried the debugger? import pdb; pdb.set_trace() just before it tries to make that dumps? | 01:42 |
| *** RaFromBRC has joined #zope3-dev | 01:43 | |
| faassen | it might be your dictionary contains empty lists as values and it appears simplejson thinks those cannot be serialized to JSOn. | 01:43 |
| projekt01 | timte, how do you define a list in javascript? | 01:44 |
| timte | it can if I use the prompt | 01:44 |
| timte | projekt01: I define it in python | 01:45 |
| faassen | timte: well, are you sure that what you put in using the pytho prompt is exactly the same structure as the one that comes out when you test in the browser? | 01:45 |
| projekt01 | timte, ok | 01:45 |
| timte | faassen: yeah, tried the debugger. msgs is my variable with the dict. if I call simplejson.dumps(msgs) I get this error. if I print msgs and do simplejson.dumps({'messages': [], 'last_id': 0}) it's ok, if I do msgs=={'messages': [], 'last_id': 0} it returns true | 01:47 |
| faassen | mysterious. | 01:50 |
| faassen | anyway, good luck..I'm out of here for now! | 01:53 |
| timte | there must be some difference between msgs and{'messages': [], 'last_id': 0} , but have no idea what | 01:53 |
| timte | goodnight | 01:53 |
| faassen | see you! | 01:53 |
| *** faassen has quit IRC | 01:53 | |
| *** jhauser has quit IRC | 01:56 | |
| *** natea has quit IRC | 01:59 | |
| *** natea has joined #zope3-dev | 01:59 | |
| *** batlogg has quit IRC | 02:10 | |
| timte | projekt01: it must be because my list is security proxied | 02:12 |
| timte | yep, it was | 02:16 |
| projekt01 | Ok | 02:16 |
| timte | proxies are good at hiding they are proxies | 02:18 |
| projekt01 | ;-) | 02:19 |
| projekt01 | You can use type([]) or isProxy([]) | 02:19 |
| *** timte has quit IRC | 02:21 | |
| *** yota has quit IRC | 02:38 | |
| *** RaFromBRC has quit IRC | 02:49 | |
| *** J1m_ has left #zope3-dev | 02:54 | |
| *** reco has quit IRC | 02:57 | |
| *** pelle_ has quit IRC | 03:05 | |
| *** niemeyer_ has quit IRC | 04:36 | |
| *** tgkuo has joined #zope3-dev | 04:38 | |
| alecm | Isn't there an IString interface somewhere, I can't seem to find it | 05:04 |
| projekt01 | alecm, you can register adapter for classes like: for="str" | 05:05 |
| alecm | projekt01: yeah, but I want an adapter that provides it :-) | 05:05 |
| alecm | I guess I want IBytes IText and friends though | 05:06 |
| projekt01 | you can use alsoProvides(str, IString) if you realy like that | 05:07 |
| alecm | projekt01: I think I'm ok now, thanks | 05:08 |
| projekt01 | But I'm not shure if this has sideeffects | 05:08 |
| alecm | str should really be providing IBytes by default and unicode should be providion IText, I think | 05:09 |
| projekt01 | I'm not sure if this is a good idea by default, but you can easy implement that | 05:10 |
| *** deo has quit IRC | 05:24 | |
| *** projekt01 has quit IRC | 06:50 | |
| *** WebMaven has joined #zope3-dev | 06:57 | |
| *** MiUlEr has joined #zope3-dev | 07:58 | |
| *** edgordon_ has joined #zope3-dev | 09:01 | |
| *** tgkuo has left #zope3-dev | 09:06 | |
| *** edgordon has quit IRC | 09:07 | |
| *** tarek1976 has quit IRC | 09:09 | |
| *** pelle_ has joined #zope3-dev | 09:24 | |
| *** dobee has joined #zope3-dev | 09:26 | |
| *** dobee_ has joined #zope3-dev | 09:29 | |
| *** dobee has quit IRC | 09:29 | |
| *** dobee has joined #zope3-dev | 09:32 | |
| *** dobee has quit IRC | 09:41 | |
| *** dobee has joined #zope3-dev | 09:42 | |
| *** dobee_ has quit IRC | 09:42 | |
| *** dobee_ has joined #zope3-dev | 09:51 | |
| *** oferw has joined #zope3-dev | 09:52 | |
| *** pelle_ has quit IRC | 09:53 | |
| *** dobee has quit IRC | 09:54 | |
| *** dobee has joined #zope3-dev | 09:55 | |
| *** dobee_ has quit IRC | 09:57 | |
| *** opetznick has joined #zope3-dev | 10:07 | |
| *** opetznick has quit IRC | 10:12 | |
| *** opetznick has joined #zope3-dev | 10:18 | |
| *** MiUlEr_ has joined #zope3-dev | 10:20 | |
| *** opetznick has quit IRC | 10:20 | |
| *** MiUlEr has quit IRC | 10:22 | |
| *** romanofski has joined #zope3-dev | 10:23 | |
| *** jhauser has joined #zope3-dev | 10:27 | |
| *** pelle_ has joined #zope3-dev | 10:50 | |
| *** MiUlEr_ is now known as MiUlEr_out | 10:57 | |
| *** pelle_ has quit IRC | 10:57 | |
| *** jhauser has quit IRC | 10:59 | |
| *** oferw_ has joined #zope3-dev | 11:04 | |
| *** oferw has quit IRC | 11:11 | |
| *** HakTom has joined #zope3-dev | 11:21 | |
| *** MiUlEr_out has quit IRC | 11:25 | |
| *** itsme has joined #zope3-dev | 11:38 | |
| *** itsme has left #zope3-dev | 11:42 | |
| *** itsme has joined #zope3-dev | 11:43 | |
| *** yota has joined #zope3-dev | 12:00 | |
| *** zagy has joined #zope3-dev | 12:11 | |
| *** batlogg has joined #zope3-dev | 12:19 | |
| *** batlogg has quit IRC | 12:20 | |
| *** zagy has quit IRC | 12:26 | |
| *** jhauser has joined #zope3-dev | 12:39 | |
| *** romanofski has quit IRC | 12:41 | |
| *** yota has quit IRC | 12:41 | |
| *** yota has joined #zope3-dev | 12:42 | |
| *** romanofski has joined #zope3-dev | 12:43 | |
| *** zagy has joined #zope3-dev | 12:58 | |
| *** itsme has left #zope3-dev | 13:45 | |
| *** jhauser has quit IRC | 13:47 | |
| *** Aiste has quit IRC | 13:57 | |
| *** waa has joined #zope3-dev | 14:03 | |
| *** jhauser has joined #zope3-dev | 14:24 | |
| *** oferw__ has joined #zope3-dev | 14:40 | |
| *** oferw__ is now known as oferw | 14:40 | |
| *** oferw has quit IRC | 14:42 | |
| *** oferw_ has quit IRC | 14:47 | |
| *** dobee_ has joined #zope3-dev | 14:52 | |
| *** dobee has quit IRC | 14:52 | |
| *** jhauser has quit IRC | 14:57 | |
| *** dobee_ has quit IRC | 15:04 | |
| *** pelle_ has joined #zope3-dev | 15:06 | |
| *** jhauser has joined #zope3-dev | 15:07 | |
| *** BjornT has quit IRC | 15:11 | |
| *** srichter has joined #zope3-dev | 15:41 | |
| *** ChanServ sets mode: +o srichter | 15:42 | |
| *** jinty has joined #zope3-dev | 16:37 | |
| *** alecm has quit IRC | 16:56 | |
| *** oferw has joined #zope3-dev | 17:37 | |
| *** dobee has joined #zope3-dev | 17:39 | |
| *** natea_ has joined #zope3-dev | 18:00 | |
| *** natea has quit IRC | 18:09 | |
| *** batlogg has joined #zope3-dev | 18:13 | |
| *** mohsen has joined #zope3-dev | 18:15 | |
| *** LittleFireCracke has quit IRC | 18:18 | |
| *** HakTom has quit IRC | 18:58 | |
| *** batlogg_ has joined #zope3-dev | 19:11 | |
| *** batlogg has quit IRC | 19:11 | |
| *** oferw has quit IRC | 19:12 | |
| *** jinty has quit IRC | 19:19 | |
| *** dobee has quit IRC | 19:19 | |
| *** timte has joined #zope3-dev | 19:36 | |
| *** mohsen has quit IRC | 20:03 | |
| *** batlogg_ has quit IRC | 20:08 | |
| *** batlogg has joined #zope3-dev | 20:09 | |
| timte | the damn proxies are everywhere :) | 20:29 |
| *** timte has quit IRC | 20:58 | |
| *** Londo_ has joined #zope3-dev | 21:43 | |
| *** pelle_ has quit IRC | 22:02 | |
| *** pelle_ has joined #zope3-dev | 22:10 | |
| *** waa has quit IRC | 22:36 | |
| *** oferw has joined #zope3-dev | 22:55 | |
| *** jinty has joined #zope3-dev | 22:58 | |
| *** batlogg is now known as jodok | 23:37 | |
| *** andres has joined #zope3-dev | 23:44 | |
| *** oferw has quit IRC | 23:53 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!