IRC log of #zope3-dev for Monday, 2008-12-01

*** davisagli_ has quit IRC00:05
*** nyo has quit IRC00:05
*** thruflo has joined #zope3-dev00:06
*** timte has quit IRC00:17
thrufloHi, I've allocated a role to a principal for an object, ala:00:17
thruflorole_manager = IPrincipalRoleManager(self.context)00:17
thruflorole_manager.assignRoleToPrincipal('clipstream.Viewer', principal_id)00:17
thrufloi have a trivial <div>Hello</div> view exposed on it with a zope.Public permission00:17
afd__thruflo: ...00:18
thrufloI've successfully allocated the role to a user00:18
thruflo>>> rm7 = interfaces.IPrincipalRoleManager(root['airbus']['campaign7'])00:18
thruflo>>> rm7.getPrincipalsAndRoles()00:18
thruflo[('clipstream.Viewer', u'clipstream.campaign7', PermissionSetting: Allow)]00:18
thruflobut I get an unauthorized00:18
afd__a traceback would help00:18
thrufloif I allocate the same role to the same user for the parent object in the traversal heirarchy00:19
thrufloI can access it00:19
thrufloie: not unauthorised00:19
* thruflo nods to afd__ - I'm afraid the only traceback I get is a bit misleading, ala http://article.gmane.org/gmane.comp.web.zope.zope3.user/728200:19
lisppaste6thruflo pasted "unauthorized" at http://paste.lisp.org/display/7127400:20
*** JaRoel|4D has joined #zope3-dev00:21
thruflodoes the security / traversal machinery work like this, i.e.: I have to have a certain permission on a parent object to have it on a child?!00:21
afd__thruflo: check that __name__ is covered by the security declarations (maybe you should specifically declare security settings for ILocation), check that the object where you assign roles is annotatable (probably it is)00:23
afd__that's what I can think of00:23
thrufloto be clear: if I allocate my role, clipstream.Viewer, to the parent / container object, I can access the test view on all of the children.  If I allocate the role directly to a child, I get unauthorised when accessing my trivial test view.00:23
afd__although I wonder, if you don't have permissions to view parent object, what would happen when trying to calculate, for example, absolute_url on the child00:24
* thruflo nods - that seems to be the error that the error handler is hitting in the traceback00:24
thrufloi just wondered is that was default / desired behaviour or not00:25
thruflos/is/if00:25
afd__if that is your setup (parent is not readable by the user that accesses the child object), then you might have problems. absolute_url for certain is calculated by traversing parents00:26
* thruflo nods oh well, one for the morning...00:31
thruflotx for the help00:31
*** thruflo has quit IRC00:32
*** nyo has joined #zope3-dev00:40
*** norro has quit IRC00:47
*** thetet has joined #zope3-dev00:48
*** yota has quit IRC00:50
*** thetet has left #zope3-dev00:54
*** nyo has quit IRC00:55
*** harobed has joined #zope3-dev00:55
*** davisagli has joined #zope3-dev01:17
*** JaRoel|4D has quit IRC01:31
*** _srichter has joined #zope3-dev01:40
*** lisppaste6 has quit IRC01:47
*** lisppaste6 has joined #zope3-dev01:47
*** flox has left #zope3-dev01:48
*** strichter has quit IRC01:56
*** strichter has joined #zope3-dev01:56
*** _srichter has quit IRC02:00
*** dunny has quit IRC02:02
*** aaronv has quit IRC02:05
*** jfkw has quit IRC02:06
*** jfkw has joined #zope3-dev02:11
*** davisagli has quit IRC02:18
*** greenman_ has joined #zope3-dev02:20
*** greenman has quit IRC02:21
*** harobed has quit IRC02:25
*** afd__ has quit IRC02:27
*** davisagli has joined #zope3-dev02:27
*** binbrain has joined #zope3-dev02:41
*** jsadjohnson has joined #zope3-dev02:52
*** davisagli has quit IRC02:52
*** greenman_ has quit IRC02:59
*** davisagli has joined #zope3-dev03:00
*** binbrain has quit IRC03:02
*** redir has joined #zope3-dev03:07
*** redir has quit IRC03:07
*** fmail has joined #zope3-dev03:11
*** fmail has left #zope3-dev03:11
*** jfkw has quit IRC03:27
*** greenman has joined #zope3-dev03:39
*** davisagli has quit IRC04:16
*** davisagli has joined #zope3-dev04:24
*** alga has quit IRC04:35
*** davisagli has quit IRC05:29
*** binbrain has joined #zope3-dev05:34
*** davisagli has joined #zope3-dev05:43
*** binseer has joined #zope3-dev06:13
*** dunny has joined #zope3-dev06:31
*** fairwinds has quit IRC06:38
*** tarek has joined #zope3-dev06:39
*** tarek has quit IRC06:43
*** baijum has joined #zope3-dev06:49
*** strichter has quit IRC06:52
*** tarek has joined #zope3-dev06:55
*** tarek has quit IRC07:04
*** binbrain has quit IRC07:06
*** binbrain has joined #zope3-dev07:49
*** TresEquis has quit IRC07:50
*** jayaraj has joined #zope3-dev08:02
*** kursor has joined #zope3-dev08:08
*** karthik has joined #zope3-dev08:18
*** jukart has joined #zope3-dev08:22
*** kursor has quit IRC08:23
*** karthik has quit IRC08:24
*** kursor has joined #zope3-dev08:24
*** karthiks has joined #zope3-dev08:24
*** davisagli has left #zope3-dev08:27
*** karthiks has quit IRC08:27
*** karthiks has joined #zope3-dev08:27
*** kursor has quit IRC08:29
*** kursor has joined #zope3-dev08:30
*** philiKON_ has joined #zope3-dev08:31
*** kaeru has quit IRC08:36
*** philiKON has quit IRC08:40
*** afd__ has joined #zope3-dev08:42
*** kursor has quit IRC08:43
*** basti has joined #zope3-dev08:43
*** zagy has joined #zope3-dev08:54
*** binbrain has quit IRC08:59
*** agroszer has joined #zope3-dev09:00
*** philiKON_ has quit IRC09:02
*** __mac__ has joined #zope3-dev09:02
*** quodt has joined #zope3-dev09:12
*** yotaff has joined #zope3-dev09:15
*** greenman has quit IRC09:15
*** greenman has joined #zope3-dev09:17
*** JaRoel|4D has joined #zope3-dev09:54
*** agroszer has quit IRC09:56
*** Theuni has joined #zope3-dev09:56
*** JaRoel|4_ has joined #zope3-dev09:57
*** MrTopf has joined #zope3-dev09:58
*** pyqwer has joined #zope3-dev10:00
*** agroszer has joined #zope3-dev10:02
*** mkerrin has joined #zope3-dev10:08
*** MrTopf has quit IRC10:09
*** MrTopf has joined #zope3-dev10:16
*** iham|away has quit IRC10:19
*** JaRoel|4D has quit IRC10:20
*** iham has joined #zope3-dev10:21
imgreymorning #zope3-dev10:21
*** kursor has joined #zope3-dev10:21
imgreysomething horrible happened with ZODB during test, which tried to insert 1M of objects10:21
imgreyhttp://dpaste.com/94981/10:21
imgreydoes someone have a comment ?10:22
*** jhauser has joined #zope3-dev10:22
*** jayaraj has quit IRC10:23
*** pelle_ has joined #zope3-dev10:24
*** kursor has joined #zope3-dev10:24
*** jayaraj has joined #zope3-dev10:27
*** malthe has joined #zope3-dev10:27
*** MJ has joined #zope3-dev10:40
imgreywhat is the correct way to run zeo ?10:41
imgreyI see that zope.conf has <zodb> definition10:41
*** ccomb has joined #zope3-dev10:48
*** jhauser has joined #zope3-dev10:53
*** JaRoel|4_ is now known as JaRoel|4D10:55
*** MrTopf has quit IRC10:57
*** philiKON has joined #zope3-dev10:57
*** romanofski has joined #zope3-dev10:58
*** regebro has joined #zope3-dev11:00
*** toutpt has joined #zope3-dev11:08
*** jpcw has joined #zope3-dev11:12
*** sawdog has joined #zope3-dev11:15
*** ktwilight has quit IRC11:37
*** ktwilight has joined #zope3-dev11:40
*** nyo has joined #zope3-dev11:42
*** markusleist has left #zope3-dev11:44
*** markusleist has joined #zope3-dev11:44
*** jayaraj_ has joined #zope3-dev11:49
*** karthiks_ has joined #zope3-dev11:49
*** binseer_ has joined #zope3-dev11:51
*** jayaraj_ has quit IRC11:52
*** jayaraj_ has joined #zope3-dev11:52
*** MrTopf has joined #zope3-dev11:55
*** goschtl has joined #zope3-dev11:57
*** junkafarian has joined #zope3-dev12:03
*** binseer has quit IRC12:04
*** jayaraj has quit IRC12:04
*** harobed has joined #zope3-dev12:06
*** karthiks has quit IRC12:07
*** jayaraj_ has quit IRC12:13
*** jayaraj has joined #zope3-dev12:14
*** afd__ has quit IRC12:15
*** kiorky has quit IRC12:17
*** kiorky has joined #zope3-dev12:17
*** afd_ has joined #zope3-dev12:18
*** harobed_ has joined #zope3-dev12:33
*** dunny has quit IRC12:34
*** fairwinds has joined #zope3-dev13:04
*** binseer__ has joined #zope3-dev13:07
*** karthik_s has joined #zope3-dev13:07
*** binseer_ has quit IRC13:14
*** greenman has quit IRC13:15
*** jayaraj_ has joined #zope3-dev13:25
*** jayaraj has quit IRC13:28
*** karthiks_ has quit IRC13:28
*** alga has joined #zope3-dev13:37
*** alga_ has joined #zope3-dev13:39
*** jhauser has quit IRC13:40
*** baijum has quit IRC13:40
*** ccomb has left #zope3-dev13:50
*** jhauser has joined #zope3-dev14:01
*** basti has quit IRC14:09
imgreywtf: http://dpaste.com/95027/14:10
imgreyconnection was with localhost14:13
*** jpcw has quit IRC14:13
*** ignas has joined #zope3-dev14:22
*** mintsauce has joined #zope3-dev14:23
*** goschtl has quit IRC14:28
*** ccomb has joined #zope3-dev14:31
*** iham has quit IRC14:33
*** sunew has joined #zope3-dev14:38
*** zagy has quit IRC14:39
*** zagy has joined #zope3-dev14:40
*** romanofs1i has joined #zope3-dev14:43
*** jpcw has joined #zope3-dev14:43
*** pelle_ has quit IRC14:50
*** pelle_ has joined #zope3-dev14:51
*** goschtl has joined #zope3-dev14:51
*** romanofski has quit IRC14:55
*** mintsauce has quit IRC14:56
*** harobed__ has joined #zope3-dev15:09
*** harobed__ has quit IRC15:14
*** yotaff has quit IRC15:23
*** yotaff has joined #zope3-dev15:26
*** philiKON has quit IRC15:33
*** benji has joined #zope3-dev15:52
*** lurkymclurkleton has joined #zope3-dev15:58
*** lurkymclurkleton has quit IRC15:58
*** lurkymclurkleton has joined #zope3-dev15:59
*** jamur2 has joined #zope3-dev16:02
*** aaronv has joined #zope3-dev16:13
*** J1m has joined #zope3-dev16:13
*** srichter has joined #zope3-dev16:13
*** binseer_ has joined #zope3-dev16:16
*** jayaraj__ has joined #zope3-dev16:16
*** karthiks has joined #zope3-dev16:16
*** jayaraj_ has quit IRC16:18
*** binseer_ has quit IRC16:18
*** binseer_ has joined #zope3-dev16:19
*** jamur2 has quit IRC16:19
*** jamur2 has joined #zope3-dev16:21
*** sp0cksbeard has joined #zope3-dev16:25
*** kursor has quit IRC16:27
*** karthik_s has quit IRC16:31
*** binseer__ has quit IRC16:31
*** binbrain has joined #zope3-dev16:36
*** jayaraj_ has joined #zope3-dev16:43
*** binseer__ has joined #zope3-dev16:43
*** karthiks_ has joined #zope3-dev16:43
*** karthiks_ has quit IRC16:45
*** iham has joined #zope3-dev16:46
*** srichter has quit IRC16:49
*** srichter has joined #zope3-dev16:49
*** menesis has joined #zope3-dev16:51
*** lucielejard has joined #zope3-dev16:52
*** yotaff has quit IRC16:53
*** srichter has quit IRC16:57
*** srichter has joined #zope3-dev16:57
*** yotaff has joined #zope3-dev16:59
*** binseer_ has quit IRC17:07
*** karthiks has quit IRC17:08
*** jayaraj__ has quit IRC17:10
*** strichter has joined #zope3-dev17:13
*** binseer__ has quit IRC17:18
*** jayaraj_ has quit IRC17:20
*** reco has joined #zope3-dev17:25
*** projekt01 has joined #zope3-dev17:30
*** whit has joined #zope3-dev17:31
*** srichter has quit IRC17:34
*** elro has joined #zope3-dev17:36
*** mintsauce has joined #zope3-dev17:39
mintsauceI'm creating an object using formlib17:39
*** MJ has quit IRC17:39
mintsauceby default it seems to display the zmi style @@content page after submission17:40
mintsaucehow do i (a) change what page is shown after submission?17:40
mintsauce(b) make sure people cant browse via the address bar to @@content (as it has rename and delete functions)17:40
goschtlmintsauce: you can add a handler in your form action17:40
goschtlyou can add in your handler an redirect...17:41
ignasmintsauce: i think zmi views and menus are sensitive to permissions17:41
ignasmintsauce: so if you don't have the permission to do something, you won't see the view or at least won't be able to delete anything17:41
mintsauceignas: true17:41
andresmintsauce: but I semantically its not nice to have delete and rename in @@content ;-)17:42
andres+think17:42
ignasandres: it's default in rotterdam/ZMI i think17:42
ignasandres: so it's not mintsauce's decision17:42
mintsaucegoschtl: so is there a 'nexturl' function in formlib, or do i literally need to override the flow and redirect myself....?17:43
mintsauceim using a custom skin - can i 'turn off' rotterdam elements?17:43
ignasmintsauce: i think there was some way to set a default view for a content object in ZMI17:43
ignasbut I can't recall what :/17:43
mintsauceignas: now you mention it - so do i ... hmmm17:43
mintsaucebrowser:defaultView in zcml?17:43
*** whit has quit IRC17:44
andresmintsauce: yes, theres nextURL or similar in formlib17:44
goschtlmintsauce: add an response.redirect('yoururl') add the end of your handler..17:44
*** runyaga has quit IRC17:45
ignasmintsauce: maybe17:45
mintsauce(actually - i have the browser:defaultView set already - its the after form submit thats the issue)17:45
mintsaucesoooo assuming my redirect works - can i 'turn off' that @@contents.html view in my skin?17:45
ignasmintsauce: if your skin will not inherit from Rotterdam skin17:46
ignasmintsauce: but then you will have to register everything that you *need* for your skin manually17:46
mintsauceugg17:47
ignasmintsauce: other way is to uze z3c. or zc. something17:47
ignasthat disables zcml files you don't want17:47
ignasor you can register a contents.html17:47
ignasthat is blank/empty17:47
ignasfor your skin17:47
ignasand thus overlay the default one17:47
mintsauceregistering a contents.html is empty might be a (quick) idea round it - yeah17:47
ignasmintsauce: and anyway - don't use ZMI17:47
ignasit's ugly17:47
mintsauceignas: i dont - its just that some pages are still browsable17:48
andresmintsauce: why do you use rotterdamm in your skin then?17:48
* mintsauce having a day of paranoia about clued in zope users using his site.17:48
*** jsadjohnson has quit IRC17:48
mintsauceandres: i *think* i use some of the default elements - will try removing it and finding out what happens ...17:49
benjithe exclude directive is provided by zc.configuration (http://pypi.python.org/pypi/zc.configuration)17:49
mintsaucewill response.redirecting before a return <object>  break the submission?17:52
*** benji has quit IRC17:52
ignasmintsauce: nope, it should not17:52
ignasmintsauce: redirect just tels Zope3 what to "render" it does not affect the flow of your application17:53
ignasso you can redirect like 5 times in the same view ;) (only the last one will count)17:53
mintsauceignas: good .. thanks17:53
*** benji has joined #zope3-dev17:53
*** sunew has quit IRC18:01
*** sunew has joined #zope3-dev18:01
*** nyo has quit IRC18:01
*** dvschramm has joined #zope3-dev18:04
*** sunew has quit IRC18:04
*** philiKON has joined #zope3-dev18:06
*** jukart has quit IRC18:06
*** harobed has quit IRC18:07
mintsauceputting a response redirect before the return doesnt work - formlib handlers still take over and forward me off elsewhere :(18:09
mintsauceignas: the last one is counting ;)18:09
ignashmm?18:12
ignasyeah18:13
ignasnow I understand what you said18:13
ignaswhich is why nextUrl18:13
*** nyo has joined #zope3-dev18:14
*** pelle_ has quit IRC18:16
mintsauceself.context.nextURL()18:18
mintsaucehow do i change it?18:18
*** yotaff has quit IRC18:19
ignascontext.nextUrl ?18:20
ignasi thought it was a method on a form18:20
ignasthat you could override18:20
*** danfairs has joined #zope3-dev18:21
andresmintsauce: just override the nextURL method in your addform18:22
mintsauceandres: yup - like so? http://mail.zope.org/pipermail/zope3-users/2006-September/004376.html18:23
*** davisagli has joined #zope3-dev18:23
andresyes18:23
mintsauceandres: just got it working in my code :)18:25
mintsaucethanks guys18:25
*** harobed_ has quit IRC18:29
*** goschtl has quit IRC18:33
*** pcardune has joined #zope3-dev18:45
*** JaRoel|4D has quit IRC18:45
*** zagy has quit IRC18:47
*** __mac__ has quit IRC18:47
*** bigkevmcd has joined #zope3-dev18:52
*** ignas has quit IRC18:54
*** mintsauce has quit IRC18:55
*** pyqwer has quit IRC19:01
*** timte has joined #zope3-dev19:07
*** binbrain has quit IRC19:16
*** Theuni has quit IRC19:18
*** toutpt has quit IRC19:20
*** redir has joined #zope3-dev19:22
*** sawdog has quit IRC19:31
*** quodt has quit IRC19:31
imgreyhow to store references on object  ?19:34
imgreywith weakref ?19:34
junkafarianIf i have got rid of an interface attribute which was storing large amounts of binary data can I pack the ZODB to reduce the size of the Data.fs?19:37
*** malthe has quit IRC19:38
*** pcardune_ has joined #zope3-dev19:40
ccombimgrey: yes you can try persistent.wref.WeakRef19:40
ccombjunkafarian: you have to remove the attribute in every instance stored in the zodb19:41
*** projekt01 has quit IRC19:41
junkafarianccomb: will that pack the size automatically?19:41
ccombyou can pack after removing the attributes19:42
ccombthat will reduce the size19:42
junkafarianrighto19:42
junkafarianso how do i pack? :D19:42
ccombyou can do that from the ZMI19:43
imgreyccomb, is presistent.wref.WeakRef is described somewhere ? because doc strings contain ery briev description19:43
imgreys/briev/brief19:43
ccombit should work like Python weakrefs19:43
imgreyccomb, python weakrefs is related to garbage collector19:44
imgreyso object which pointed by another object with weakref may be removed from memory19:45
imgreyhow WeakRef behaves ?19:46
*** yota has joined #zope3-dev19:47
imgreyand how to get objects which referring to certain object ?19:49
*** pcardune has quit IRC19:58
*** brandon_rhodes has joined #zope3-dev20:00
*** agroszer has quit IRC20:00
*** agroszer has joined #zope3-dev20:01
junkafarianccomb: sorry i dont see it in the ZMI20:01
junkafarianis it somewhere in ++etc++site/20:01
ccombjunkafarian: In the root, "manage process"20:02
ccomb/++etc++process/20:02
ccombotherwise you can do it offline in debug mode with pack()20:02
junkafarian40420:02
junkafarianok20:02
*** andycat has quit IRC20:06
junkafariancheers ccomb20:10
*** nyo has quit IRC20:10
ccomb /++bye++/ :)20:11
*** thetet has joined #zope3-dev20:19
*** dunny has joined #zope3-dev20:23
*** flox has joined #zope3-dev20:27
*** thetet has left #zope3-dev20:37
*** tomislav- has quit IRC20:37
*** tomislav- has joined #zope3-dev20:41
*** dvschramm has quit IRC20:42
*** MrTopf has quit IRC20:48
*** mkerrin has quit IRC20:49
*** andycat has joined #zope3-dev20:54
*** andycat has joined #zope3-dev20:55
*** fairwinds has quit IRC20:57
*** iham is now known as iham|away21:10
*** quodt has joined #zope3-dev21:18
*** ccomb has left #zope3-dev21:30
*** nyo has joined #zope3-dev21:32
*** greenman has joined #zope3-dev21:33
*** JaRoel|4D has joined #zope3-dev21:34
*** fairwinds has joined #zope3-dev21:43
*** greenman has quit IRC21:43
*** afd_ has quit IRC21:51
*** reco has quit IRC22:01
*** elro has quit IRC22:34
*** Theuni has joined #zope3-dev22:34
*** JaRoel|4D has quit IRC22:39
*** tomislav- has quit IRC22:42
*** tomislav- has joined #zope3-dev22:43
*** strichter is now known as trichter22:47
*** trichter is now known as srichter22:47
*** TresEquis has joined #zope3-dev22:51
*** reco has joined #zope3-dev23:06
*** faassen has joined #zope3-dev23:08
*** faassen has quit IRC23:08
*** agroszer has quit IRC23:22
*** JaRoel|4D has joined #zope3-dev23:22
*** greenman has joined #zope3-dev23:33
*** pcardune has joined #zope3-dev23:37
*** danfairs has joined #zope3-dev23:40
*** jhauser has quit IRC23:47
*** aaronv has quit IRC23:53
*** pcardune_ has quit IRC23:55
*** romanofs1i has quit IRC23:58

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