IRC log of #zope3-dev for Tuesday, 2008-08-19

*** regebro has quit IRC00:02
*** ChrisW has left #zope3-dev00:06
*** fairwinds has quit IRC00:18
*** whit has quit IRC00:19
*** greenman_ has quit IRC00:20
*** sp0cksbeard has quit IRC00:21
*** redir has quit IRC00:31
*** oggers has joined #zope3-dev00:37
*** mgedmin has quit IRC00:37
*** ktenney has left #zope3-dev00:38
*** ChrisW has joined #zope3-dev00:39
ChrisWhey all, if I post to a zope 3 view, how do I get the body of the post in the view I post to?00:40
ChrisWdoes Zope 2 implement that interface properly?00:43
ChrisW*sigh* I bet is says it does though ;-)00:44
ChrisWI know it's OT for this channel, but how do you get the request body in Zope 2?00:44
ChrisWhmm, and bodyStream references a body attribute, but that seems to be undocumented00:46
ChrisWwhat should I use?00:46
*** timte has quit IRC00:49
*** basti_ has quit IRC00:55
*** quodt has quit IRC01:03
*** greenman_ has joined #zope3-dev01:07
*** redir|Zzzz is now known as redir01:15
*** lucielejard has quit IRC01:26
*** philiKON has quit IRC01:28
*** lurkymclurkleton has quit IRC01:28
*** malthe is now known as malthe|Zzz01:41
*** benji has quit IRC01:46
*** dbfrombrc has quit IRC01:48
*** dbfrombrc has joined #zope3-dev01:49
*** oggers has quit IRC01:53
*** jodok_ has joined #zope3-dev01:57
*** rmarianski has quit IRC02:04
*** dbfrombrc has quit IRC02:04
*** jodok has quit IRC02:07
*** dbfrombrc has joined #zope3-dev02:08
*** flox has left #zope3-dev02:11
*** srichter has quit IRC02:15
*** aaronv has joined #zope3-dev02:22
*** dbfrombrc has quit IRC02:42
*** dbfrombrc has joined #zope3-dev02:45
*** aaronv has quit IRC03:27
*** junkafarian has quit IRC03:31
*** fcorrea has quit IRC03:35
*** fcorrea has joined #zope3-dev03:48
*** aaronv has joined #zope3-dev04:09
*** aclark is now known as aclark|away04:09
*** fairwinds has joined #zope3-dev04:21
*** ktwilight has quit IRC04:21
*** run|home has joined #zope3-dev04:27
*** fairwinds has left #zope3-dev04:27
*** fairwinds has joined #zope3-dev04:27
*** jsadjohnson has quit IRC04:28
*** deo has joined #zope3-dev04:58
*** jsadjohnson has joined #zope3-dev05:00
*** aaronv has quit IRC05:03
*** lucielejard has joined #zope3-dev05:08
*** alecm has quit IRC06:02
*** srichter has joined #zope3-dev06:02
*** sm has quit IRC06:13
*** sm has joined #zope3-dev06:14
*** brandon_rhodes has quit IRC06:25
*** fcorrea has quit IRC06:31
*** fcorrea has joined #zope3-dev06:43
*** binseer has joined #zope3-dev07:04
*** dbfrombrc has quit IRC07:15
*** philiKON has joined #zope3-dev07:37
*** stub has joined #zope3-dev07:41
*** philiKON_ has joined #zope3-dev07:55
*** fairwinds has quit IRC07:57
*** philiKON has quit IRC08:02
*** kursor has joined #zope3-dev08:14
*** philiKON_ has quit IRC08:29
*** Aiste has joined #zope3-dev08:37
*** greenman_ has quit IRC08:42
*** sm has quit IRC08:45
*** afd__ has joined #zope3-dev08:46
*** philiKON has joined #zope3-dev08:47
*** harobed has joined #zope3-dev08:53
*** jayaraj has joined #zope3-dev09:02
*** __mac__ has joined #zope3-dev09:07
*** dobee has joined #zope3-dev09:14
*** mustap has joined #zope3-dev09:31
*** basti_ has joined #zope3-dev09:32
*** jodok_ has quit IRC09:34
*** basti_ has quit IRC09:44
*** run|home has quit IRC09:45
*** jodok has joined #zope3-dev09:50
*** harobed has quit IRC09:50
*** basti_ has joined #zope3-dev09:53
*** ccomb has quit IRC10:04
*** zagy has quit IRC10:04
*** tlotze has quit IRC10:04
*** jfroche has quit IRC10:04
*** Jell-O-Fishi has quit IRC10:05
*** tlotze has joined #zope3-dev10:06
*** jodok_ has joined #zope3-dev10:06
*** jodok has quit IRC10:06
*** zagy has joined #zope3-dev10:09
*** goschtl has joined #zope3-dev10:15
*** alecghica has joined #zope3-dev10:17
*** ccomb has joined #zope3-dev10:18
*** flox has joined #zope3-dev10:18
*** agroszer has joined #zope3-dev10:22
*** jfroche has joined #zope3-dev10:26
*** greenman has joined #zope3-dev10:34
*** junkafarian has joined #zope3-dev10:40
*** greenman has quit IRC10:40
*** harobed has joined #zope3-dev10:40
*** greenman has joined #zope3-dev10:45
*** ktwilight has joined #zope3-dev10:50
*** jodok_ has quit IRC10:51
*** ktwilight has quit IRC10:51
*** malthe|Zzz has quit IRC10:51
*** ktwilight has joined #zope3-dev10:52
*** jodok has joined #zope3-dev11:01
*** mintsauce has joined #zope3-dev11:17
*** timte has joined #zope3-dev11:20
*** bigkevmcd_ has joined #zope3-dev11:22
*** maurits has joined #zope3-dev11:22
*** bigkevmcd has quit IRC11:23
*** ChrisW has left #zope3-dev11:26
*** ignas has joined #zope3-dev11:30
*** jayaraj has quit IRC11:33
*** jayaraj has joined #zope3-dev11:33
mintsauceHi all. I'm having a couple of fundamental problems understanding how to retreive user annotations..11:34
lisppaste6mintsauce pasted "Annotation problems" at
mintsauceThe above attempt currently returns the error: line 68, in hasAnnotations / return in self.annotations / AttributeError: 'unicode' object has no attribute 'id'11:35
mintsaucewhich looks like im passing it the wrong type of object? or am i barking up completely the wrong tree? :D11:35
afd__mintsauce: I have never dealt with principal annotations, but I think you need an IPrincipal object11:36
afd__which is different from a principal id (which is a string)11:37
mintsauceafd__: makes sense ...... but i want to retreive the current users details, so can i pass that IPrincipal object the id?11:37
afd__mintsauce: principal =
*** junkafarian has quit IRC11:40
mintsauceafd__: will have a fiddle11:40
afd__mintsauce: looking at the, it seems what you can do with it is to have annotations on principals. Like11:41
afd__ann = IAnnotations(principal)[somekey]11:42
afd__also look through the annotations to understand what they do and how they work11:42
mintsauceits the key bit that's tripping me up i think11:43
afd__IAnnotations(something) behaves like a dictionary... you want to store some data in that annotation, and you store it at a key in that dictionary11:43
afd__your data can be a list, dict, or any persistent object11:44
afd__and the key is an arbitrary string11:44
*** sunew has joined #zope3-dev11:48
afd__also... no need to reconstruct the principal if you have the request... request.principal is ok11:51
mintsaucek, thanks :)11:55
*** ChrisW has joined #zope3-dev11:57
ChrisWwhat magic do I need to put in my packages to get buildout.cfg to be included in a sdist? I see in there, but no buildout.cfg :-S11:58
*** jodok has quit IRC11:58
*** jodok has joined #zope3-dev11:58
*** ktwilight_ has joined #zope3-dev12:04
*** MJ has joined #zope3-dev12:10
*** junkafarian_ has joined #zope3-dev12:10
*** junkafarian_ is now known as junkafarian12:10
*** ktwilight__ has joined #zope3-dev12:11
*** ktwilight has quit IRC12:16
*** ktwilight_ has quit IRC12:25
ChrisWwhy is there a ZODB3 3.9.0dev-r77011 egg around?!12:28
*** sunew has quit IRC12:31
*** jpcw2002 has joined #zope3-dev12:35
*** stub has quit IRC12:37
*** dunny has quit IRC12:40
*** afd__ has quit IRC12:44
philiKONChrisW: find-links =
philiKONthat's where that 3.9.0dev egg is12:47
*** bigkevmcd_ is now known as bigkevmcd12:49
ChrisWjust mailing the list again...12:49
ChrisWwhy is that egg there though?12:50
*** sunew has joined #zope3-dev12:50
ChrisWokay, well, both questions are up on the list now...12:52
lisppaste6mintsauce annotated #65520 with "Working user annotations view" at
mintsauceafd__: in case you are interested12:57
mintsauceoh .... gone, doh!12:57
philiKONChrisW: because somebody uploaded it...12:59
*** kursor has quit IRC13:04
ChrisWwould be nice if it went away ;-)13:05
philiKONone should never ever delete something that has been put out there13:06
philiKONi agree that this is borderline13:06
philiKONsince it's not an actual releae13:06
philiKONrelease even13:06
philiKONbut who cares, is completely useless anyweay13:06
philiKONyou can remove it from find-links13:06
philiKONanyway, i replied to your emails13:06
philiKONmost questions are answered by zc.buildout docs :)13:06
ChrisWthe zc.buildout "docs" are fucking appalling13:07
ChrisWthey are doc tests bundled into page on pypi13:07
ChrisWyeah, sure, they just about cover everything but unless you're a buildout expert, your chances of finding what you're after is pretty slim13:07
ChrisWwhy is useless?13:08
ChrisW(and if it is, how come you still include it in zopeproject? ;-) )13:08 isn't useless13:09 is13:09
philiKONbecause i haven't bothered to update zopeproject yet13:09
philiKONi'm not actively maintaining it right now13:10
ChrisWoh :-(13:10
ChrisWwow, so what should people use to get zope3 instances?13:10
philiKONhow should i know13:10
philiKONi built zopeproject because there wasn't a tool13:10
philiKONnobody seems to want to maintain it13:10
philiKONi don't give a hoot13:11
* philiKON lunch13:11
ChrisWphiliKON: is one happy bunny today ;-)13:12
ChrisWI wonder what he uses?13:12
*** kiorky_ has joined #zope3-dev13:14
*** kiorky has quit IRC13:15
*** afd__ has joined #zope3-dev13:20
mintsauceafd__: My working annotations view, in case you are interested:
afd__yes, that could work13:22
afd__but I think you can skip the line with creating a new Principal object and just reuse the one from the request13:22
*** aaronv has joined #zope3-dev13:23
mintsauce principal = Principal(request.principal) ?13:24
afd__principal = request.principal13:24
mintsauceNameError: global name 'request' is not defined13:25
mintsauceyeah just realised that13:26
mintsauceworks :)13:26
mintsauceof course it does, should of seen that  myself - self.request.principal is object already, no need to call it all over again :)13:27
mintsauceduuh  ;)13:32
*** timte has quit IRC13:35
*** sm has joined #zope3-dev13:35
*** MJ is now known as MJ|lunch13:39
*** ChrisW has left #zope3-dev13:46
*** musta1 has joined #zope3-dev13:47
*** mustap has quit IRC13:48
*** junkafarian_ has joined #zope3-dev13:50
*** fairwinds has joined #zope3-dev13:53
*** kursor has joined #zope3-dev13:56
*** b52laptop has joined #zope3-dev13:56
*** junkafarian has quit IRC14:01
*** mintsauce has quit IRC14:02
*** sunew has quit IRC14:17
*** aaronv has quit IRC14:27
*** aclark|away is now known as aclark14:31
*** MJ|lunch is now known as MJ14:35
*** benji has joined #zope3-dev14:39
*** J1m has quit IRC14:41
*** projekt01 has joined #zope3-dev14:44
*** harobed has quit IRC14:51
*** b52laptop has joined #zope3-dev15:08
*** flox has left #zope3-dev15:24
*** MrTopf has joined #zope3-dev15:24
*** greenman has quit IRC15:25
*** aclark is now known as aclark|away15:25
*** philiKON has quit IRC15:37
*** isembard has joined #zope3-dev15:38
*** sm has quit IRC15:39
isembardhi folks, trying to pull a vocabulary into a formlib form and getting an assertion error, check out lines 19 -> 26 are the problems... starting to go a wee bit crazy15:39
isembardany help would be most most appreciated15:40
afd__isembard: returning something in an __init__ doesn't do anything15:41
afd__as a general python rule...15:41
*** harobed has joined #zope3-dev15:41
isembardoops :(15:41
*** junkafarian_ is now known as junkafarian15:46
*** fcorrea has quit IRC15:47
*** ChrisW has joined #zope3-dev15:52
*** fcorrea has joined #zope3-dev15:53
*** lurkymclurkleton has joined #zope3-dev15:55
*** stub has joined #zope3-dev15:59
isembardafd__:  yeah tried it with __call__(self,context) and it was throwing an error until I put __init__(self):pass in... why the need for the __init__?16:01
*** J1m has joined #zope3-dev16:03
ChrisWwhat's the correct way to read the body of request?
*** aaronv has joined #zope3-dev16:07
afd__isembard: sorry, I don't know16:07
*** redir_ has joined #zope3-dev16:12
*** sunew has joined #zope3-dev16:16
*** stub1 has joined #zope3-dev16:22
*** stub has quit IRC16:22
*** stub1 is now known as stub16:22
*** MJ is now known as MJ|out16:23
*** ktenney has joined #zope3-dev16:27
*** junkafarian_ has joined #zope3-dev16:30
*** BjornT has quit IRC16:30
*** BjornT has joined #zope3-dev16:33
*** sm has joined #zope3-dev16:35
*** junkafarian has quit IRC16:43
*** projekt01 has quit IRC16:49
*** b52laptop has quit IRC16:52
*** kursor has quit IRC16:55
*** jsadjohnson has left #zope3-dev17:00
*** redir__ has joined #zope3-dev17:02
*** redir_ has quit IRC17:03
*** redir_ has joined #zope3-dev17:07
*** redir__ has quit IRC17:07
*** junkafarian_ is now known as junkafarian17:10
*** sunew has quit IRC17:23
*** sunew has joined #zope3-dev17:23
*** elro has quit IRC17:26
*** elro has joined #zope3-dev17:26
*** elro has quit IRC17:26
*** elro has joined #zope3-dev17:27
*** sunew has quit IRC17:29
*** __gotcha has joined #zope3-dev17:34
*** harobed has quit IRC17:35
*** gl has joined #zope3-dev17:36
*** timte has joined #zope3-dev17:37
ChrisWJ1m: ping?17:41
*** aclark|away is now known as aclark17:41
ChrisWis there any way to set eggs-directory or a download-cache for buildout in the environment rather than in the buildout.cfg?17:41
ChrisWI'd like to have a big cache of all the eggs I've downloaded, but I don't want to have to edit each project's buildout.cfg for each machine I do this on...17:42
goschtlChrisW: i think you you can  use a YOURHOMEDIR/.buildout/default.cfg for setting default values...17:45
ChrisWyeah, just trying that now...17:45
*** nathany has joined #zope3-dev17:45
*** b52laptop has joined #zope3-dev17:46
*** timte has quit IRC17:47
ChrisWug, windows explroer won't even let me create a .buildout directory, ahve to use a dos box...17:50
*** rmarianski has joined #zope3-dev17:51
*** MJ|out has quit IRC17:51
ChrisWgiven that there seems ot be more life here now, I'll try my earlier question: what's the correct way to get the boyd of a post request?17:54
ChrisWI've been trying, but this hangs with paste's server17:54
*** chaoflow has joined #zope3-dev17:55
*** lurkymclurkleton has quit IRC17:56
*** lurkymclurkleton has joined #zope3-dev17:57
*** elro has quit IRC17:57
*** elro has joined #zope3-dev17:58
*** harobed has joined #zope3-dev17:59
*** regebro has joined #zope3-dev18:02
*** gl has left #zope3-dev18:02
ChrisWhurm... okay, maybe an easier one: what's the "right" way to setup a zope 3 instance nowadays?18:06
*** elro has quit IRC18:06
*** elro has joined #zope3-dev18:07
chaoflowChrisW: I assume zopeproject18:07
ChrisWnope, philip says he's not maintaining it anymore18:07
ChrisWand it uses paste as a server, which seems to be causing me problems with bodyStream18:08
ChrisWI want to try the twisted server...18:08
chaoflowdid he say why?18:08
chaoflowI mean is it 'lack of time' or 'conceptually wrong' or 'there is something better'?18:09
*** alecm has joined #zope3-dev18:09
*** musta1 has left #zope3-dev18:10
*** stub has quit IRC18:12
*** dobee has quit IRC18:18
*** kiorky_ is now known as kiorky18:20
*** philiKON has joined #zope3-dev18:21
*** junkafarian_ has joined #zope3-dev18:23
*** lucielejard has joined #zope3-dev18:26
ignasuse = egg:zope.server#main18:29
ignasi think18:29
lisppaste6ChrisW pasted "deploy.ini" at
ignasand add [versions]\nzope.server >= 3.518:29
*** goschtl has quit IRC18:30
ChrisWthere's the deploy.ini18:30
*** isembard has left #zope3-dev18:30
ChrisWwhat do I change that to so that zope.server is used instead of paste's httpd server?18:30
* ChrisW eyes the recently returend philiKON for that one too ;-)18:30
lisppaste6ignas annotated #65531 with "this" at
philiKONChrisW: use  egg:zope.server18:31
lisppaste6ignas annotated #65531 with "and in your buildout.cfg" at
philiKONuse = egg:zope.server even18:31
ignasbecause zope.server works properly only since 3.518:32
ignaswhile KGS defaults to 3.4.218:32
philiKONah. true. i remember fixing something in there18:32
ChrisWis it a known thing that request.bodyStream doesn't work with paste.http?18:33
*** dbfrombrc has joined #zope3-dev18:33
*** junkafarian has quit IRC18:34
ignasChrisW: no idea, i'll test my own app with your code18:34
ignasChrisW: indeed, PUT - fails properly, POST - times out18:37
ignasboth time out18:37
ChrisWwhat's that using on the server side?18:37
ignaspaste:http that it18:37
ignasthat is18:37
ignasok, testing zope.server now18:39
ChrisWyeah, works for me with zope.server18:39
ignasfor me too18:39
ChrisWso, moral of the story: paste.http sucks18:40
ChrisWgrrr, now how do I get my 3 hrs wasted time back? ;-)18:41
ignasChrisW: bah, you didn't try paste.twisted ;)18:41
ignasit sucks more iirc18:41
ignasor at least - it sucks differently18:41
ChrisWis there a paste mailing list or something I can chuck a mail to about this?18:41
* ChrisW attacks the issue tracker18:42
*** jodok has quit IRC18:42
ignasChrisW: don't worry about wasted time anyway, it's all part of the rite of initiation, next step - Bullet ants18:45
*** dbfrombrc is now known as dbfrombrc|away18:45
ignasChrisW: can you post me your buildout.cfg so I could fix it the way I do it ;)18:45
ignasjust so you'd know ;)18:45
ChrisWfix what?18:45
ignaswell, make it use KGS18:46
ignasor is it using KGS by default now?18:46
ChrisWkgs is just a great big [versions] section, right?18:46
ignasyeah, or a file versions.cfg18:46
ignasthat you extend18:46
ignasor a link to versions.cfg on the internet18:46
ignasI use the internet version, because I am too lazy, and have many projects ;)18:47
ChrisWso I'd just put "extends = http://something" in my [buildout] section, right?18:47
ignasextends =
ignasversions = versions18:47
ChrisWwhat happens if I already have a versions section in my buildout?18:48
ignasyour section will extend that section18:48
ChrisWah, cool :-)18:48
ChrisWoh yes, I guess it would...18:48
ignasif you are using vi or emacs you might want to add:18:48
*** basti_ has quit IRC18:49
ignasrecipe = z3c.recipe.tag:tags18:49
ignaslike in [tags]18:49
ignaswell - if you are using a central egg directory18:49
ignasyou want tags to get generated only for eggs18:49
*** zagy has quit IRC18:49
ignasthat your application is using18:49
ignasfor specific versions etc.18:49
ignastags recipe generates a bin/tags script that generates the tags files for emacs and vi18:50
ChrisWheh, well, that went way over my head, so I guess I'll just pass for now ;-)18:50
ignasthat include all the eggs and only the eggs that you are using18:50
ChrisWI do use emacs but I'm only windows, *and* I don't know what tags are ;-)18:50
ignasoh, on windows you don't want it probably18:51
*** zagy has joined #zope3-dev18:51
*** __mac__ has quit IRC18:53
ignassee you18:57
*** ignas has quit IRC18:57
*** basti_ has joined #zope3-dev18:58
*** jayaraj has quit IRC18:58
*** sunew has joined #zope3-dev18:59
*** sunew has quit IRC18:59
*** junkafarian__ has joined #zope3-dev19:02
*** chaoflow has quit IRC19:02
*** chaoflow has joined #zope3-dev19:03
*** binseer has quit IRC19:11
*** nathany has quit IRC19:13
*** chaoflow has quit IRC19:14
*** junkafarian_ has quit IRC19:14
*** chaoflow has joined #zope3-dev19:14
*** chaoflow has quit IRC19:16
*** chaoflow has joined #zope3-dev19:18
*** chaoflow has quit IRC19:21
*** chaoflow has joined #zope3-dev19:21
*** junkafarian has joined #zope3-dev19:22
*** junkafarian__ has quit IRC19:27
*** junkafarian_ has joined #zope3-dev19:42
*** __gotcha has quit IRC19:43
*** alga has joined #zope3-dev19:43
*** ccomb_ has quit IRC19:46
*** junkafarian has quit IRC19:59
*** tarek has quit IRC19:59
*** afd__ has quit IRC20:15
*** afd__ has joined #zope3-dev20:15
*** basti_ has quit IRC20:23
*** fairwinds_ has joined #zope3-dev20:32
*** maurits has quit IRC20:37
*** fairwinds has quit IRC20:40
*** junkafarian_ has quit IRC20:47
*** quodt has joined #zope3-dev20:49
*** alga has quit IRC21:04
*** redir_ has quit IRC21:15
*** MrTopf has quit IRC21:17
*** MrTopf has joined #zope3-dev21:18
*** nathany has joined #zope3-dev21:18
*** baijum has joined #zope3-dev21:30
*** agroszer has quit IRC21:34
*** agroszer has joined #zope3-dev21:38
*** basti_ has joined #zope3-dev21:52
*** jodok has joined #zope3-dev21:56
*** nathany has quit IRC21:57
*** basti_ has quit IRC22:01
*** pcardune has joined #zope3-dev22:01
*** afd__ has quit IRC22:03
*** afd__ has joined #zope3-dev22:03
*** tarek has joined #zope3-dev22:07
*** tarek has quit IRC22:09
*** basti_ has joined #zope3-dev22:12
*** lisppaste6 has quit IRC22:17
*** lisppaste6 has joined #zope3-dev22:18
*** nathany has joined #zope3-dev22:20
*** malthe has joined #zope3-dev22:20
*** MJ|nickcollision has joined #zope3-dev22:23
*** regebro has quit IRC22:23
*** MJ|nickcollision is now known as Mj22:24
*** Mj is now known as MJ22:24
*** baijum has quit IRC22:25
*** MJ has quit IRC22:30
*** redir_ has joined #zope3-dev22:30
*** agroszer has quit IRC22:33
*** sm has quit IRC22:34
*** afd__ has quit IRC22:35
*** harobed has quit IRC22:38
*** timte has joined #zope3-dev22:39
*** greenman has joined #zope3-dev22:46
*** dunny has joined #zope3-dev22:46
*** fairwinds_ has quit IRC22:54
*** alga has joined #zope3-dev22:54
*** aclark is now known as aclark|away22:57
*** timte has quit IRC23:03
*** fairwinds has joined #zope3-dev23:12
*** nathany has quit IRC23:14
*** timte has joined #zope3-dev23:14
*** malthe has quit IRC23:31
*** __gotcha_ has joined #zope3-dev23:32
*** __gotcha_ is now known as __gotcha23:32
*** harobed has joined #zope3-dev23:41
*** pcardune has quit IRC23:44
*** __gotcha_ has joined #zope3-dev23:47
*** __gotcha has quit IRC23:47
*** __gotcha_ is now known as __gotcha23:47
*** greenman has quit IRC23:51
*** aaronv has quit IRC23:56
*** aaronv has joined #zope3-dev23:57

Generated by 2.15.1 by Marius Gedminas - find it at!