IRC log of #zope3-dev for Saturday, 2006-12-16

*** opetznick has quit IRC00:00
*** flox has joined #zope3-dev00:02
*** dobee has quit IRC00:09
*** batlogg has quit IRC00:18
*** batlogg has joined #zope3-dev00:21
*** faassen has joined #zope3-dev00:29
*** jhauser has joined #zope3-dev00:34
*** waa has quit IRC00:52
*** alecm has joined #zope3-dev01:01
timteTypeError: [] is not JSON serializable01:34
timtehow odd, I get this error in my browser page, but not when using the regular python prompt01:35
faassentimte: where's the JSON coming in/01:36
faassendidn't know Zope 3 had built-in JSON support.01:36
timteit hasn't, I use simplejson01:37
projekt01timte, use jsonserver from jim washington01:37
projekt01timte, you can find it here:
timteI just want a dictionary be returned as json, should just need simplejson.dumps(dict)01:41
faassentimte: anyway, what when you do your test in the browser..01:42
faassentimte: have you tried the debugger? import pdb; pdb.set_trace() just before it tries to make that dumps?01:42
*** RaFromBRC has joined #zope3-dev01:43
faassenit might be your dictionary contains empty lists as values and it appears simplejson thinks those cannot be serialized to JSOn.01:43
projekt01timte, how do you define a list in javascript?01:44
timteit can if I use the prompt01:44
timteprojekt01: I define it in python01:45
faassentimte: 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
projekt01timte, ok01:45
timtefaassen: 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 true01:47
faassenanyway, good luck..I'm out of here for now!01:53
timtethere must be some difference between msgs and{'messages': [], 'last_id': 0} , but have no idea what01:53
faassensee you!01:53
*** faassen has quit IRC01:53
*** jhauser has quit IRC01:56
*** natea has quit IRC01:59
*** natea has joined #zope3-dev01:59
*** batlogg has quit IRC02:10
timteprojekt01: it must be because my list is security proxied02:12
timteyep, it was02:16
timteproxies are good at hiding they are proxies02:18
projekt01You can use type([]) or isProxy([])02:19
*** timte has quit IRC02:21
*** yota has quit IRC02:38
*** RaFromBRC has quit IRC02:49
*** J1m_ has left #zope3-dev02:54
*** reco has quit IRC02:57
*** pelle_ has quit IRC03:05
*** niemeyer_ has quit IRC04:36
*** tgkuo has joined #zope3-dev04:38
alecmIsn't there an IString interface somewhere, I can't seem to find it05:04
projekt01alecm, you can register adapter for classes like: for="str"05:05
alecmprojekt01: yeah, but I want an adapter that provides it :-)05:05
alecmI guess I want IBytes IText and friends though05:06
projekt01you can use alsoProvides(str, IString) if you realy like that05:07
alecmprojekt01: I think I'm ok now, thanks05:08
projekt01But I'm not shure if this has sideeffects05:08
alecmstr should really be providing IBytes by default  and unicode should be providion IText, I think05:09
projekt01I'm not sure if this is a good idea by default, but you can easy implement that05:10
*** deo has quit IRC05:24
*** projekt01 has quit IRC06:50
*** WebMaven has joined #zope3-dev06:57
*** MiUlEr has joined #zope3-dev07:58
*** edgordon_ has joined #zope3-dev09:01
*** tgkuo has left #zope3-dev09:06
*** edgordon has quit IRC09:07
*** tarek1976 has quit IRC09:09
*** pelle_ has joined #zope3-dev09:24
*** dobee has joined #zope3-dev09:26
*** dobee_ has joined #zope3-dev09:29
*** dobee has quit IRC09:29
*** dobee has joined #zope3-dev09:32
*** dobee has quit IRC09:41
*** dobee has joined #zope3-dev09:42
*** dobee_ has quit IRC09:42
*** dobee_ has joined #zope3-dev09:51
*** oferw has joined #zope3-dev09:52
*** pelle_ has quit IRC09:53
*** dobee has quit IRC09:54
*** dobee has joined #zope3-dev09:55
*** dobee_ has quit IRC09:57
*** opetznick has joined #zope3-dev10:07
*** opetznick has quit IRC10:12
*** opetznick has joined #zope3-dev10:18
*** MiUlEr_ has joined #zope3-dev10:20
*** opetznick has quit IRC10:20
*** MiUlEr has quit IRC10:22
*** romanofski has joined #zope3-dev10:23
*** jhauser has joined #zope3-dev10:27
*** pelle_ has joined #zope3-dev10:50
*** MiUlEr_ is now known as MiUlEr_out10:57
*** pelle_ has quit IRC10:57
*** jhauser has quit IRC10:59
*** oferw_ has joined #zope3-dev11:04
*** oferw has quit IRC11:11
*** HakTom has joined #zope3-dev11:21
*** MiUlEr_out has quit IRC11:25
*** itsme has joined #zope3-dev11:38
*** itsme has left #zope3-dev11:42
*** itsme has joined #zope3-dev11:43
*** yota has joined #zope3-dev12:00
*** zagy has joined #zope3-dev12:11
*** batlogg has joined #zope3-dev12:19
*** batlogg has quit IRC12:20
*** zagy has quit IRC12:26
*** jhauser has joined #zope3-dev12:39
*** romanofski has quit IRC12:41
*** yota has quit IRC12:41
*** yota has joined #zope3-dev12:42
*** romanofski has joined #zope3-dev12:43
*** zagy has joined #zope3-dev12:58
*** itsme has left #zope3-dev13:45
*** jhauser has quit IRC13:47
*** Aiste has quit IRC13:57
*** waa has joined #zope3-dev14:03
*** jhauser has joined #zope3-dev14:24
*** oferw__ has joined #zope3-dev14:40
*** oferw__ is now known as oferw14:40
*** oferw has quit IRC14:42
*** oferw_ has quit IRC14:47
*** dobee_ has joined #zope3-dev14:52
*** dobee has quit IRC14:52
*** jhauser has quit IRC14:57
*** dobee_ has quit IRC15:04
*** pelle_ has joined #zope3-dev15:06
*** jhauser has joined #zope3-dev15:07
*** BjornT has quit IRC15:11
*** srichter has joined #zope3-dev15:41
*** ChanServ sets mode: +o srichter15:42
*** jinty has joined #zope3-dev16:37
*** alecm has quit IRC16:56
*** oferw has joined #zope3-dev17:37
*** dobee has joined #zope3-dev17:39
*** natea_ has joined #zope3-dev18:00
*** natea has quit IRC18:09
*** batlogg has joined #zope3-dev18:13
*** mohsen has joined #zope3-dev18:15
*** LittleFireCracke has quit IRC18:18
*** HakTom has quit IRC18:58
*** batlogg_ has joined #zope3-dev19:11
*** batlogg has quit IRC19:11
*** oferw has quit IRC19:12
*** jinty has quit IRC19:19
*** dobee has quit IRC19:19
*** timte has joined #zope3-dev19:36
*** mohsen has quit IRC20:03
*** batlogg_ has quit IRC20:08
*** batlogg has joined #zope3-dev20:09
timtethe damn proxies are everywhere  :)20:29
*** timte has quit IRC20:58
*** Londo_ has joined #zope3-dev21:43
*** pelle_ has quit IRC22:02
*** pelle_ has joined #zope3-dev22:10
*** waa has quit IRC22:36
*** oferw has joined #zope3-dev22:55
*** jinty has joined #zope3-dev22:58
*** batlogg is now known as jodok23:37
*** andres has joined #zope3-dev23:44
*** oferw has quit IRC23:53

Generated by 2.15.1 by Marius Gedminas - find it at!