IRC log of #zope3-dev for Tuesday, 2008-10-21

*** toutpt has quit IRC00:01
*** yota has quit IRC00:05
*** pelle_ has quit IRC00:05
*** timte has quit IRC00:16
*** dobee has quit IRC00:17
*** benji has quit IRC00:17
*** redir has quit IRC00:23
*** sunew has quit IRC00:25
*** greenman has joined #zope3-dev00:30
*** nyo has quit IRC00:34
*** rmarianski has quit IRC00:42
*** kaeru has joined #zope3-dev00:43
*** rmarianski has joined #zope3-dev00:44
*** mcdonc has quit IRC00:58
*** davisagli_ has joined #zope3-dev01:02
*** lucielejard has quit IRC01:05
*** harobed has quit IRC01:06
*** mcdonc has joined #zope3-dev01:08
*** malthe|out is now known as malthe01:17
*** davisagli has quit IRC01:22
*** pelle_ has joined #zope3-dev01:30
*** LordOSipan has quit IRC01:36
*** quodt has quit IRC01:36
*** jamur2 has quit IRC01:37
*** lurkymclurkleton has quit IRC01:37
*** whit has quit IRC01:54
*** aaronv has joined #zope3-dev01:55
*** MiUlEr has joined #zope3-dev01:58
*** MiUlEr has left #zope3-dev01:59
*** jukart has joined #zope3-dev02:00
*** aaronv has quit IRC02:04
*** whit has joined #zope3-dev02:05
*** replaceafill has quit IRC02:06
*** davisagli_ is now known as davisagli02:07
*** stub has quit IRC02:07
*** J1m has quit IRC02:08
*** whit has quit IRC02:11
*** faassen has quit IRC02:22
*** natea_ has quit IRC02:25
*** natea_ has joined #zope3-dev02:26
*** rmarianski has quit IRC02:27
*** projekt01 has joined #zope3-dev02:29
*** nathany has quit IRC02:30
*** malthe is now known as malthe|Zzz02:30
*** seletz has quit IRC02:36
*** pelle_ has quit IRC02:39
*** jukart_ has joined #zope3-dev02:40
*** aaronv has joined #zope3-dev02:44
*** kaeru has quit IRC02:46
*** jukart__ has joined #zope3-dev02:52
*** romanofski has quit IRC02:55
*** jukart has quit IRC03:02
*** Vq^ has quit IRC03:05
*** jukart_ has quit IRC03:12
*** redir has joined #zope3-dev03:28
*** jukart__ has quit IRC03:32
*** jukart has joined #zope3-dev03:33
*** kaeru has joined #zope3-dev03:42
*** redir_ has joined #zope3-dev03:43
*** jukart_ has joined #zope3-dev03:52
*** redir has quit IRC03:53
*** davisagli_ has joined #zope3-dev04:02
*** natea_ has quit IRC04:02
*** natea_ has joined #zope3-dev04:02
*** jukart has quit IRC04:11
*** davisagli has quit IRC04:22
*** aaronv has quit IRC04:30
*** davisagli_ has left #zope3-dev04:34
*** jukart_ has quit IRC04:37
*** Bravedaun1 has joined #zope3-dev04:41
*** jukart has joined #zope3-dev04:51
*** jukart_ has joined #zope3-dev04:59
*** baijum has joined #zope3-dev05:02
*** davisagli has joined #zope3-dev05:04
*** jukart has quit IRC05:06
*** whit has joined #zope3-dev05:14
*** jukart has joined #zope3-dev05:15
*** Bravedaun1 has left #zope3-dev05:15
*** jukart_ has quit IRC05:16
*** whit has quit IRC05:28
*** projekt01 has quit IRC05:48
*** jukart_ has joined #zope3-dev05:50
*** jukart has quit IRC05:51
*** jukart_ has quit IRC05:56
*** jukart has joined #zope3-dev06:10
*** philiKON_ has joined #zope3-dev06:12
*** jukart_ has joined #zope3-dev06:19
*** philiKON has quit IRC06:20
*** jukart__ has joined #zope3-dev06:35
*** jukart has quit IRC06:37
*** jukart__ has quit IRC06:43
*** alecm has quit IRC06:47
*** jukart has joined #zope3-dev06:49
*** baijum has quit IRC06:52
*** jukart_ has quit IRC06:55
*** kursor has joined #zope3-dev06:58
*** greenman has quit IRC07:04
*** binseer has joined #zope3-dev07:06
*** jukart has quit IRC07:14
*** fairwinds has quit IRC07:15
*** Theuni1 has joined #zope3-dev07:25
*** jpcw has quit IRC07:29
*** afd_ has joined #zope3-dev07:34
*** jukart has joined #zope3-dev07:36
*** basti__ has joined #zope3-dev08:16
*** harobed has joined #zope3-dev08:22
*** thekryz has joined #zope3-dev08:22
*** jukart has quit IRC08:24
*** redir_ has quit IRC08:28
*** Theuni1 has quit IRC08:32
*** runyaga_ has joined #zope3-dev08:32
*** jayaraj has joined #zope3-dev08:36
*** runyaga has quit IRC08:48
*** dobee has joined #zope3-dev08:59
*** zagy has quit IRC08:59
*** davisagli has left #zope3-dev09:04
*** dobee has quit IRC09:05
*** afd_ has quit IRC09:06
*** dobee has joined #zope3-dev09:08
*** Theuni1 has joined #zope3-dev09:20
*** __mac__ has joined #zope3-dev09:23
*** b52lap has quit IRC09:27
*** natea_ has quit IRC09:27
*** Aiste has quit IRC09:27
*** nyo has joined #zope3-dev09:27
*** natea_ has joined #zope3-dev09:27
*** b52lap has joined #zope3-dev09:28
*** zagy has joined #zope3-dev09:29
*** __mac__ has quit IRC09:29
*** basti___ has joined #zope3-dev09:30
*** __mac__ has joined #zope3-dev09:30
*** Aiste has joined #zope3-dev09:31
*** agroszer has joined #zope3-dev09:32
*** philiKON_ has quit IRC09:36
*** natea_ has quit IRC09:36
*** natea_ has joined #zope3-dev09:36
*** nyo has quit IRC09:43
*** alecm has joined #zope3-dev09:43
*** romanofski has joined #zope3-dev09:44
*** afd_ has joined #zope3-dev09:47
*** nyo has joined #zope3-dev09:47
*** baijum has joined #zope3-dev09:47
*** basti__ has quit IRC09:49
*** Theuni2 has joined #zope3-dev09:50
*** mustap has joined #zope3-dev09:50
*** Theuni1 has quit IRC09:52
*** philiKON has joined #zope3-dev09:52
*** srichter has quit IRC09:55
*** toutpt has joined #zope3-dev10:06
*** kursor has quit IRC10:08
*** jukart has joined #zope3-dev10:08
*** srichter has joined #zope3-dev10:16
*** Vq^ has joined #Zope3-dev10:20
*** srichter has quit IRC10:23
*** srichter has joined #zope3-dev10:23
*** mkerrin has joined #zope3-dev10:33
*** seletz has joined #zope3-dev10:36
*** mgedmin has quit IRC10:37
*** quodt has joined #zope3-dev10:45
*** jukart has quit IRC10:49
*** jpcw has joined #zope3-dev10:51
*** srichter has quit IRC10:51
*** jukart has joined #zope3-dev10:53
*** jukart_ has joined #zope3-dev10:56
*** jukart has quit IRC10:56
*** alecm has quit IRC10:56
*** mkerrin has quit IRC11:08
*** mkerrin has joined #zope3-dev11:11
*** mintsauce has joined #zope3-dev11:36
*** mustap has quit IRC11:46
*** mustap has joined #zope3-dev11:49
*** natea__ has joined #zope3-dev12:09
*** natea_ has quit IRC12:09
*** greenman has joined #zope3-dev12:12
*** pyqwer has joined #zope3-dev12:15
*** afd__ has joined #zope3-dev12:20
*** afd_ has quit IRC12:36
*** kaeru has quit IRC12:49
*** stub has joined #zope3-dev12:59
*** MJ has joined #zope3-dev13:02
*** aaronv has joined #zope3-dev13:05
*** dobee has quit IRC13:12
*** kursor has joined #zope3-dev13:15
*** regebro has joined #zope3-dev13:18
*** afd___ has joined #zope3-dev13:19
*** kursor has quit IRC13:29
mintsauceHow would i check for the existence of an annotation?13:30
afd___mintsauce: you could look for the annotation key in the IAnnotations for that object13:31
*** afd__ has quit IRC13:33
*** alga has joined #zope3-dev13:37
*** tarek has joined #zope3-dev13:41
mintsaucetrying annotations = IAnnotations(principal)13:41
mintsauceif annotations.get(key) is None: print 'bang'13:42
mintsaucebut get a NameError: name 'annotations' is not defined error13:42
afd___mintsauce: could you paste full tb?13:43
afd___plus source...13:43
mintsaucesure13:43
*** baijum has quit IRC13:45
lisppaste6mintsauce pasted "code" at http://paste.lisp.org/display/6892813:46
afd___where's the traceback? :)13:47
mintsauceafd___: hold your horses :P13:48
lisppaste6mintsauce annotated #68928 with "traceback" at http://paste.lisp.org/display/68928#113:49
mintsauceafd___: the error appears when the user has no annotation/memberinfo13:50
afd___isn't that what you're trying to achieve? detect when the user doesn't have that annotation?13:50
mintsauceyeah13:50
afd___try with .get()13:51
*** kaeru has joined #zope3-dev13:52
mintsauceTypeError: 'get() takes at least 2 arguments (1 given)'13:52
afd___you should know better... give it the key as argument13:53
afd___you've already tried that13:53
*** greenman has quit IRC13:53
ARiKAsuper afd___ in action...13:56
* mintsauce feels suitably chastised ;)13:57
mintsauceafd___: im not quite sure what you mean I've tried: annotations.get(key) which fails - as does annotations.get(sandbox.memberinfo)13:58
afd___did you try with a string?: annotations.get("sandbox.memberinfo")13:59
*** tarek has quit IRC14:00
* mintsauce should know better14:00
mintsaucethats trapped it, thanks afd___14:01
afd___np14:01
afd___mintsauce: the canonical way is to define that key as a "constant" and import that variable and use it as a key14:02
afd___see for example zope.dublincore.annotatableadapter.DCkey14:03
mintsaucek, taking a look, thanks14:04
*** J1m has joined #zope3-dev14:09
*** MrTopf has joined #zope3-dev14:14
*** kursor has joined #zope3-dev14:15
*** tarek has joined #zope3-dev14:25
*** fairwinds has joined #zope3-dev14:25
*** aaronv has quit IRC14:28
*** mrevoir has joined #zope3-dev14:32
*** ignas has joined #zope3-dev14:41
*** mrevoir_ has quit IRC14:47
*** mrevoir has quit IRC14:49
*** mustap has quit IRC14:49
*** projekt01 has joined #zope3-dev14:50
*** mustap has joined #zope3-dev14:52
*** dobee has joined #zope3-dev14:58
*** alga has quit IRC15:07
*** redir has joined #zope3-dev15:09
*** malthe|Zzz is now known as malthe15:10
*** benji has joined #zope3-dev15:29
*** stub has quit IRC15:33
*** MrTopf has quit IRC15:41
*** whit has joined #zope3-dev15:42
*** redir has quit IRC15:42
*** zagy has quit IRC15:43
*** zagy has joined #zope3-dev15:44
*** malthe is now known as malthe|away15:45
*** tarek has quit IRC15:49
*** tarek has joined #zope3-dev15:50
*** tarek has quit IRC15:54
*** tarek has joined #zope3-dev15:55
*** jhauser has joined #zope3-dev15:55
*** lurkymclurkleton has joined #zope3-dev15:56
*** stub has joined #zope3-dev15:56
*** tarek has quit IRC15:57
*** tarek has joined #zope3-dev15:58
*** jamur2 has joined #zope3-dev16:00
*** stub1 has joined #zope3-dev16:04
*** stub has quit IRC16:04
*** stub1 is now known as stub16:04
*** nyo has quit IRC16:09
*** nyo has joined #zope3-dev16:12
*** dunny has quit IRC16:22
*** nyo has quit IRC16:25
*** alga has joined #zope3-dev16:25
mintsauceI have a container class that allows me to add folders to my zope site, via the zmi, but how would I do this in python? I've got as far as something like currentlocation.[newfoldername]  = folder.NewTestFolder() - But I'm a little stuck now ... for instance how would i find my current location?16:31
*** redir has joined #zope3-dev16:34
J1mTheuni2, ayt?16:35
mintsauceI've tried dir(self.context) on the folder im in via pdb, but just get []16:40
*** zagy has quit IRC16:40
J1mmintsauce, currentlocation[newfoldername]  = folder.NewTestFolder()16:41
J1mcontainers are just python mapping objects.16:41
*** zagy has joined #zope3-dev16:41
*** regebro has quit IRC16:45
*** thekryz has quit IRC16:46
*** thekryz has joined #zope3-dev16:46
mintsauceJ1m, thanks, reassured I was on the right track i tried to add a folder and found the cause of my problems, the code is trying to run in the PAU folder (im adding a folder as part of the signup process) - im guessing i can just add to site root instead16:48
*** MrTopf has joined #zope3-dev16:49
*** __mac__ has quit IRC16:52
*** lucielejard has joined #zope3-dev16:53
*** MJ is now known as MJ|lunch16:55
* mintsauce looks for way to get parent ISite16:58
afd___mintsauce: zope.app.component.hooks.getSite()17:01
*** aaronv has joined #zope3-dev17:01
*** basti___ has quit IRC17:01
mintsauceafd___: will give that a try - what about zope.app.folder import rootFolder?17:01
afd___nope17:02
Theuni2J1m: here.17:04
*** thekryz has quit IRC17:04
J1mTheuni2, recently. you changed ZEO to try to copy interface declarations from the storage in the storage server to the client storage.17:04
*** thekryz has joined #zope3-dev17:04
J1mThis is problematic on multiple levels.17:05
* Theuni2 listens17:05
J1mWhat makes you think you want this?17:05
J1mOK, the levels:17:05
J1m1. Interfaces implemented by the storage on the storage server might not even be imporable on the client.17:05
J1m2. An interface implemented by a storage on the storage server is not necessarily implemented by the client storage.17:06
J1mso17:06
J1mWhat makes you think you want this?17:06
J1mI'm inclined to remove this feature.17:06
Theuni2I wanted to stop sniffing for abilities.17:07
Theuni2We discussed it briefly on the sprint at Haufe.17:07
Theuni2The direct requirement was for blobs AFAIK17:08
Theuni2s/AFAIK/IIRC/17:08
*** davisagli has joined #zope3-dev17:09
Theuni2The checkin correlates that with the cleanup of the storage iteration API.17:10
Theuni2So, two use cases currently are: detect correct iteration ability and a blob implementation17:13
*** seletz has quit IRC17:17
*** MrTopf_ has joined #zope3-dev17:24
*** jukart_ has quit IRC17:27
*** davisagli has left #zope3-dev17:27
*** natea__ has quit IRC17:29
J1mTheuni2, I don't think this could have had anything to do with blobs.17:30
J1msince blobs worked before.17:30
*** sp0cksbeard has joined #zope3-dev17:31
J1manyway, this approach isn't going to work, as I pointed out.17:31
*** davisagli has joined #zope3-dev17:31
*** aaronv has quit IRC17:34
* mintsauce head -> table17:37
mintsaucefoo = zope.app.component.hooks.getSite()17:38
*** davisagli has left #zope3-dev17:38
mintsaucelist(foo.keys()) ---> Error in argument: '(foo.keys())'17:38
afd___mintsauce: you're trying that in pdb17:38
afd___try17:38
afd___p list(foo.keys())17:38
mintsaucefoo.keys() ----> <OOBTreeItems object at 0x462c00>17:38
afd___with the p in front, to print the list17:39
*** MrTopf has quit IRC17:39
mintsauceafd___: thats it!17:39
mintsaucedoh17:39
* mintsauce could kiss afd___ sometimes17:39
*** povbot` has joined #zope3-dev17:43
*** povbot has quit IRC17:43
*** seletz has joined #zope3-dev17:44
*** mustap has left #zope3-dev17:45
*** binseer has quit IRC17:46
*** nyo has joined #zope3-dev17:49
*** davisagli has quit IRC17:49
*** jayaraj has quit IRC17:50
*** thekryz has quit IRC17:54
*** MJ|lunch is now known as MJ18:02
*** d2m has quit IRC18:02
*** __mac__ has joined #zope3-dev18:04
*** sp0cksbeard has left #zope3-dev18:06
*** J1m has quit IRC18:07
*** nathany has joined #zope3-dev18:07
*** rmarianski has joined #zope3-dev18:12
*** nyo has quit IRC18:14
*** aaronv has joined #zope3-dev18:23
mintsauceis there such a thing as a zope.Owner permission?18:24
*** davisagli has joined #zope3-dev18:24
*** projekt01 has quit IRC18:25
*** hexsprite has quit IRC18:29
bigkevmcdthat's a role, not a permission18:34
*** J1m has joined #zope3-dev18:34
mintsaucebigkevmcd: is there a zope.Owner role? i.e. is there any easy easy way to give owners of folders/objects edit permissions?18:40
afd___mintsauce: make yourself such a role, assign this role in the IPrincipalRoleMap for their folder and give them this role18:41
afd___then grant the zope.ManageContent or whatever permission to the new role18:42
*** srichter has joined #zope3-dev18:43
mintsauceafd___: ok, thanks18:43
afd___you should read IPrincipalRoleMap interface, it helps understanding the whole concept18:43
*** norro has joined #zope3-dev18:44
bigkevmcdand read http://wiki.zope.org/zope3/secureobjects.html18:44
afd___yeah... too bad the book hasn't been updated in a while :(18:45
bigkevmcdstill fairly accurate18:47
bigkevmcd(that bit)18:47
mintsauceGreat, thanks for extra info as always guys18:54
*** toutpt has quit IRC19:04
*** philiKON has quit IRC19:06
*** whit has left #zope3-dev19:08
*** __mac__ has quit IRC19:13
*** quodt has quit IRC19:26
*** mintsauce has quit IRC19:28
*** Theuni2 has quit IRC19:29
*** mcdonc has quit IRC19:41
*** srichter has quit IRC19:43
*** Sidnei has joined #zope3-dev19:46
*** srichter has joined #zope3-dev19:53
*** alecm has joined #zope3-dev19:55
*** alecm has joined #zope3-dev19:57
*** dobee has quit IRC20:01
*** pyqwer has quit IRC20:05
*** philiKON has joined #zope3-dev20:05
*** afd___ has quit IRC20:08
*** agroszer has quit IRC20:10
*** agroszer_ has joined #zope3-dev20:10
*** agroszer has joined #zope3-dev20:12
*** agroszer_ has quit IRC20:12
algaJ1m: AYT?20:14
algaWe have a problem with the component registry20:14
algaAfter an evolution script it appears that VerifyingAdapterLookup's cache contains an entry that says that Section opjects do not have any adapters20:15
algaSo, adapter lookup fails20:16
algaAfter restarting Zope everything's fine again20:16
*** __mac__ has joined #zope3-dev20:20
*** harobed has quit IRC20:27
*** mkerrin has quit IRC20:34
*** seletz has quit IRC20:35
*** timte has joined #zope3-dev20:42
*** MrTopf_ has quit IRC20:58
*** quodt has joined #zope3-dev21:01
*** junkafarian__ has quit IRC21:12
*** harobed has joined #zope3-dev21:16
*** yota has joined #zope3-dev21:23
*** kursor has quit IRC21:32
*** whitmo has joined #zope3-dev21:43
*** ignas has quit IRC21:44
*** stub has quit IRC21:45
*** tarek has quit IRC21:48
*** rmarianski has quit IRC22:02
*** greenman has joined #zope3-dev22:06
*** Theuni1 has joined #zope3-dev22:09
*** whitmo has quit IRC22:11
*** whit has joined #zope3-dev22:12
*** rmarianski has joined #zope3-dev22:12
*** agroszer has quit IRC22:12
*** flox has joined #zope3-dev22:26
*** sunew has joined #zope3-dev22:49
*** alga has quit IRC22:50
*** dobee has joined #zope3-dev22:56
*** nyo has joined #zope3-dev22:58
*** Theuni1 has quit IRC22:59
*** __mac__ has quit IRC23:03
*** dunny has joined #zope3-dev23:03
*** __mac__ has joined #zope3-dev23:03
*** whit has quit IRC23:07
*** MJ has quit IRC23:08
*** dobee has quit IRC23:10
*** nyo has quit IRC23:14
*** whit has joined #zope3-dev23:18
*** greenman has quit IRC23:21
*** __mac__ has quit IRC23:27
*** hexsprite has joined #zope3-dev23:31
*** MJ has joined #zope3-dev23:40
*** whit has quit IRC23:44
*** whit has joined #zope3-dev23:46
*** sunew has quit IRC23:53

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!