IRC log of #zope3-dev for Tuesday, 2008-02-05

*** amit_am has left #zope3-dev00:06
*** b52laptop has quit IRC00:08
*** b52laptop has joined #zope3-dev00:09
*** rock1 has joined #zope3-dev00:18
*** rocky has quit IRC00:20
*** rock1 is now known as rocky00:20
*** reco has joined #zope3-dev00:20
*** harobed has quit IRC00:31
*** niemeyer has joined #zope3-dev00:45
*** norro has quit IRC01:00
*** benji has quit IRC01:01
*** sp0cksbeard has quit IRC01:08
*** danielblackburn has joined #zope3-dev01:15
*** J1m has quit IRC01:41
*** rmarianski has quit IRC01:43
*** rocky has quit IRC02:02
*** ChrisW has joined #zope3-dev02:15
ChrisWhey all - where do the zodb tools such as fsrefs, fstest, etc exist nowadays?02:15
*** greenman has joined #zope3-dev02:24
*** mcdonc has joined #zope3-dev02:45
*** yvl has joined #zope3-dev02:48
*** salfield has quit IRC02:56
*** supton has quit IRC02:59
*** danielblackburn has quit IRC03:00
*** yvl has quit IRC03:09
*** danielblackburn has joined #zope3-dev03:37
*** rcrafton has quit IRC04:04
*** rcrafton has joined #zope3-dev04:28
*** alecm has quit IRC04:29
*** sm has quit IRC04:32
*** greenman has quit IRC04:40
*** stub has joined #zope3-dev04:43
*** sm has joined #zope3-dev04:45
*** niemeyer has quit IRC04:51
*** bigkevmcd has quit IRC04:52
*** lisppaste6 has quit IRC05:24
*** whit has quit IRC05:39
*** rcrafton has quit IRC05:43
*** hexsprite has quit IRC06:10
*** [1]Doc_Dan has joined #zope3-dev06:39
*** povbot has joined #zope3-dev06:57
*** reco_ has joined #zope3-dev07:00
*** Doc_Dan has joined #zope3-dev07:00
*** stub has joined #zope3-dev07:00
*** danielblackburn has joined #zope3-dev07:00
*** mcdonc has joined #zope3-dev07:00
*** ChrisW has joined #zope3-dev07:00
*** reco has joined #zope3-dev07:00
*** b52laptop has joined #zope3-dev07:00
*** CSWookie has joined #zope3-dev07:00
*** BjornT has joined #zope3-dev07:00
*** jukart has joined #zope3-dev07:00
*** ateoh211 has joined #zope3-dev07:00
*** quodt has joined #zope3-dev07:00
*** jodok has joined #zope3-dev07:00
*** philiKON_ has joined #zope3-dev07:00
*** kobold has joined #zope3-dev07:00
*** Aiste has joined #zope3-dev07:00
*** jeffk has joined #zope3-dev07:00
*** foodels has joined #zope3-dev07:00
*** SteveA has joined #zope3-dev07:00
*** dokai has joined #zope3-dev07:00
*** pan_ has joined #zope3-dev07:00
*** tlotze has joined #zope3-dev07:00
*** srichter has joined #zope3-dev07:01
*** baijum has joined #zope3-dev07:01
*** ccomb has joined #zope3-dev07:01
*** pyqwer has joined #zope3-dev07:01
*** acsr has joined #zope3-dev07:01
*** romanofski has joined #zope3-dev07:01
*** zagy has joined #zope3-dev07:01
*** vod has joined #zope3-dev07:01
*** vahur has joined #zope3-dev07:01
*** jfroche has joined #zope3-dev07:01
*** irc.freenode.net sets mode: +o srichter07:01
*** reco has quit IRC07:09
*** reco_ has quit IRC07:10
*** kursor has joined #zope3-dev07:23
*** reco has joined #zope3-dev07:24
*** vod has quit IRC07:38
*** philiKON has joined #zope3-dev08:09
*** philiKON_ has quit IRC08:18
*** greenman has joined #zope3-dev08:19
*** greenman has quit IRC08:21
*** natea_ has joined #zope3-dev08:33
*** afd_ has joined #zope3-dev08:39
*** reco has quit IRC08:41
*** nathany_ has joined #zope3-dev08:43
*** hdima has joined #zope3-dev08:50
*** sorindregan has joined #zope3-dev08:51
*** d2m has joined #zope3-dev08:55
*** sorindregan has quit IRC08:58
*** dunny has joined #zope3-dev09:02
*** sorin has joined #zope3-dev09:03
*** sorin is now known as sorindregan09:03
*** nathany_ has quit IRC09:05
*** stub has quit IRC09:21
*** greenman has joined #zope3-dev09:29
*** __mac__ has joined #zope3-dev09:32
*** __mac__ has left #zope3-dev09:33
*** toutpt has joined #zope3-dev09:34
*** philiKON has quit IRC09:34
*** greenman has quit IRC09:35
*** greenman has joined #zope3-dev09:41
*** jpcw2002 has joined #zope3-dev09:59
*** __mac__ has joined #zope3-dev10:08
*** natea_ has quit IRC10:20
*** tarek has joined #zope3-dev10:30
*** jodok has quit IRC10:32
*** BjornT has quit IRC10:32
*** __mac__ has left #zope3-dev10:34
*** dobee has joined #zope3-dev10:34
*** pelle_ has joined #zope3-dev10:37
*** pelle_ has joined #zope3-dev10:38
*** jodok has joined #zope3-dev10:38
*** MJ has joined #zope3-dev10:44
*** jukart has quit IRC11:05
*** Theuni has quit IRC11:05
*** romanofs1i has joined #zope3-dev11:06
*** romanofski has quit IRC11:06
*** zagy has quit IRC11:10
*** maurits has joined #zope3-dev11:14
*** zagy has joined #zope3-dev11:15
*** ChrisW has quit IRC11:18
*** thruflo has joined #zope3-dev11:20
*** yvl has joined #zope3-dev11:20
*** thruflo has quit IRC11:22
*** thruflo has joined #zope3-dev11:22
*** maurits has quit IRC11:23
*** dunny has quit IRC11:23
*** maurits has joined #zope3-dev11:26
*** stub has joined #zope3-dev11:35
*** goschtl has joined #zope3-dev11:39
*** markusleist has joined #zope3-dev11:41
*** ghendi has joined #zope3-dev11:44
*** agroszer has joined #zope3-dev12:00
*** yvl has quit IRC12:03
*** goschtl_ has joined #zope3-dev12:07
*** __mac__ has joined #zope3-dev12:09
*** __mac__ has left #zope3-dev12:09
*** quodt has quit IRC12:15
*** toutpt has quit IRC12:15
*** goschtl has quit IRC12:23
*** Doc_Dan has quit IRC12:31
*** malthe has joined #zope3-dev12:34
pyqwerHi, does someone know if a class protected by some permission is still protected when a view access it?12:52
pyqwerI have here a view that modifies an attribute of a content object without having permissions, so I'd assume Zope should raise an error - but it does not...12:53
srichteryes, a view receives the context with security proxy around it12:57
pyqwersrichter: Strange, so it seems, there's either no proxy or something's wrong with my permissions...12:58
srichteryep12:58
srichterpyqwer: you might want to have a look at z3c.securitytool; it should be pretty helpful12:59
pyqwersrichter: Ah, interesting - never heard of that but I'll have a look.12:59
*** mkerrin has joined #zope3-dev12:59
srichterpyqwer: Daniel does not want to publicize it yet too much, because he is not quiet done with it yet12:59
srichterhttp://pypi.python.org/pypi/z3c.securitytool13:00
pyqwerAnother short question: Do you know how to get all views for a content object and filter out all views that are not accessible (no permission)?13:00
pyqwerI'd like to display some menu links based on that info.13:01
pyqwerProbably it's some queryUtility() thing - but of what interface?13:01
srichterpyqwer: a content object has many more views than you realize13:01
srichterI would strongly suggest registering menu items explicitely13:02
pyqwerOk, that's the other option I currently do now.13:02
srichterbut you can use getAdapters((IContent, IMyLayer), zope.interface.Interface))13:02
srichterresult will be a list of two-tuples: ('name', adapter)13:03
malthepyqwer: you could also just do the lookup without calling the factories.13:03
srichterpyqwer: use apidoc to see how many views are registered for any type of content interface13:03
malthei.e. globalsitemanager.adapters.lookup(13:03
pyqwermalthe: Ah, interesting.13:04
srichter(you spend more time filtering out the ones you do not want than anything else)13:04
pyqwersrichter: Ok, didn't think of apidoc, but that's a good option.13:04
pyqwerBut you made a point with the filtering issue, so perhaps, I'll do the menu by hand as it may not really save time.13:05
pyqwersrichter: Btw., I read that you're somehow frustrated about your role in the Zope3 release cycle - I just wanted to personally say thank you for your work and effort. :-)13:06
pyqwerI appreciate that a lot.13:06
srichterpyqwer: well, I am not even supposed to be involved in the release cycle anymore ;-) I am just doing it, so it gets done.13:07
srichterpyqwer: how do you use Zope 3 these days? tar ball or eggs (KGS or just PPIX or pinned versions)13:07
pyqwersrichter: Ummm, well, I have to admit - tarball as I'm facing still some difficulties and don't want to take the next burden with Eggs...13:08
pyqwerAlthough it may be easier in the end...13:09
*** MJ is now known as MJ|lunch13:25
*** ignas has joined #zope3-dev13:25
*** jodok has quit IRC13:32
*** salfield has joined #zope3-dev13:37
afd_is there some tool that shows the contents of the catalog like the z2 catalog? I'm interested in seeing what gets indexed for each object...13:39
goschtl_Hi i got a error see here -->  http://paste.lisp.org/display/55414. I think this is dead simple but i donĀ“t see it.13:43
srichterpyqwer: fair answer; you prove my point that more people than the most core developers know still use the tar ball and depend on it13:46
pyqwersrichter: Yes, and I expect to stay it that way until there's a webpage that describes how to install Zope the "Egg-Way".13:48
srichterpyqwer: you shuld send those comments to the zope-dev list as user feedback13:49
pyqwerI'm no core developer but I can't really make out the "best" way to install zope (buildout (complicated), zopeproject, well etc.) Therefore I just download it from the Zope.org page...13:50
pyqwersrichter: Yes, I can post that comment to the mailing list.13:50
srichterthx13:51
pyqwerBtw - things are strange here: I deleted all my <class class=...> statements and my application continues to work - how can that happen?13:51
pyqwergoschtl_: Did you really look at the right configuration? (I think auth/configure.zcml)?13:53
pyqwergoschtl_: I can't see any error in that, too.13:55
goschtl_pyqwer: yes i pasted the configure in my auth dir.13:55
afd_pyqwer: <class> statements are about security declarations and extra interface implementations... some parts of your app might work without these, but not all (probably)13:56
*** MJ|lunch is now known as MJ13:59
*** greenman has quit IRC14:01
*** norro has joined #zope3-dev14:02
*** malthe has quit IRC14:19
*** danielblackburn has quit IRC14:28
*** regebro has joined #zope3-dev14:43
*** malthe has joined #zope3-dev14:45
*** mkerrin has quit IRC14:46
*** hexsprite has joined #zope3-dev15:06
*** stub has quit IRC15:09
*** toutpt has joined #zope3-dev15:10
*** hexsprite_ has joined #zope3-dev15:15
*** benji has joined #zope3-dev15:18
*** hexsprite has quit IRC15:23
pyqwerHmmm, I need to simulate a request for authentication via z3c.form, looking like this: pau.authenticate(TestRequest(form.widget.login='admin', form.widget.password='falsch'))15:24
pyqwerBut this does not work as Python thinks, I have a class "form" with 2 subclasses (form.widget.login) - how would I handle that?15:24
pyqwerAh, got it myself, I simply need to give **{'form.widgets.login' : 'admin'} as a parameter...15:28
*** baijum has quit IRC15:31
*** danielblackburn has joined #zope3-dev15:35
*** alga has joined #zope3-dev15:37
*** rocky has joined #zope3-dev15:37
pyqwerafd_: Thanks for the hint - I found out that my content is not proxied at all - when I do a "canAccess(context, name)", it works.15:48
pyqwerIs there something I need to do to let Zope3 proxy my objects?15:48
afd_pyqwer: that usually happens automatically15:48
afd_you're probably dealing with a proxy and not know it15:49
afd_usually when you try dir(obj) in pdb for a proxied object you get an empty list15:49
pyqwerNo, I don't. Because (according to philikons book) a type(myobj) should return something like "zope.security._proxy._Proxy", but in my Case it returns "MyClass".15:49
afd_I understand15:50
pyqwerMaybe I did something wrong in the authentication?15:50
afd_what do you mean?15:50
srichteryeah, check whether you are authenticated15:50
srichterrequest.principal will tell you that15:50
pyqwerWell, I'm not authenticated. (at least, request.principal provides IUnauthenticated...).15:51
srichterok15:51
pyqwerWhen I'm authenticated, objects are still not proxied, but it works, as canAccess() tells me.15:52
pyqwerSo, maybe I have to somehow configure a default checker?15:52
CSWookiepyqwer: What permission do they require?  Are they trusted adapters?15:58
pyqwerCSWookie: Hmmm, don't understand, what is "they"?15:58
CSWookiepyqwer: The objects that are not being proxied.15:59
pyqwerMy objects? They are quite simple objects, in my special case it's a site object.15:59
CSWookiepyqwer: That you want to be proxied.15:59
pyqwerRight, it's a site object, which I retrieve with getSite().15:59
CSWookiehuh.16:00
pyqwerMy site has some attributes which should be protected.16:00
pyqwerIt is defined like this: class FYMSite(SiteManagerContainer, BTreeContainer)16:01
pyqwerAh, perhaps when using getSite() my object is not proxied?16:01
pyqwerAnd the only object that is proxied is my "context" object?16:02
CSWookiepyqwer: I'm not sure.  I know just enough about the security machinery to be dangerous at this point.16:03
pyqwer;-)16:03
*** rcrafton has joined #zope3-dev16:07
*** reco has joined #zope3-dev16:07
pyqwerBut, no, that's not the reason: I tried a simple "<span tal:replace="python:type(view.context)" /> in my index.html-view of my site and it shows me that my site is not proxied here, too.16:07
pyqwerThe whole <class class=...> definitions are completely ignored, I can delete them and the behaviour of my app does not change at all.16:08
pyqwerI'll try to install zope-3.4.0c1, maybe that helps...16:09
*** J1m has joined #zope3-dev16:16
pyqwerHmmm, it did not help. Can someone give me a hint where to start digging into the Zope3 souce code?16:20
srichterpyqwer: I would look into zope.traversal first, since most of the security proxy wrapping happens there16:25
pyqwersrichter: Ok, thanks, I'll dig into that at first.16:25
*** kursor has quit IRC16:28
*** ghendi_ has joined #zope3-dev16:40
*** ghendi has quit IRC16:41
*** nathany_ has joined #zope3-dev16:58
*** Theuni has joined #zope3-dev17:02
*** BjornT has joined #zope3-dev17:02
*** dobee has quit IRC17:16
*** dobee has joined #zope3-dev17:21
*** rmarianski has joined #zope3-dev17:22
*** sorindregan has quit IRC17:24
*** MJ has quit IRC17:26
*** nathany_ has quit IRC17:28
*** hdima has quit IRC17:34
*** rmarianski has quit IRC17:36
*** rmarianski has joined #zope3-dev17:36
*** b52laptop has left #zope3-dev17:36
*** b52laptop has joined #zope3-dev17:37
*** danielblackburn has quit IRC17:38
*** reco has quit IRC17:40
*** whit has joined #zope3-dev17:47
*** mgedmin has joined #zope3-dev17:53
*** afd_ has quit IRC17:55
*** afd_ has joined #zope3-dev17:55
*** ignas has quit IRC17:55
*** whit has quit IRC17:59
*** ccomb has quit IRC18:04
*** pelle_ has quit IRC18:05
*** pelle_ has joined #zope3-dev18:05
*** pelle_ has quit IRC18:06
*** MJ has joined #zope3-dev18:08
*** danielblackburn has joined #zope3-dev18:09
*** zagy has quit IRC18:11
*** malthe has quit IRC18:11
*** nathany_ has joined #zope3-dev18:13
*** malthe has joined #zope3-dev18:15
*** benji has quit IRC18:21
*** ghendi_ has quit IRC18:22
*** salfield has quit IRC18:23
*** goschtl_ has quit IRC18:27
*** whit has joined #zope3-dev18:28
*** benji has joined #zope3-dev18:28
*** mkerrin has joined #zope3-dev18:31
*** rocky is now known as rocky|away18:37
*** harobed has joined #zope3-dev18:44
*** jinty has joined #zope3-dev18:49
*** dobee has quit IRC18:52
*** niemeyer has joined #zope3-dev18:54
*** pyqwer has quit IRC18:55
*** jinty_ has joined #zope3-dev18:59
*** harobed has quit IRC19:00
*** Subdino has joined #zope3-dev19:00
*** dobee has joined #zope3-dev19:06
*** jinty has quit IRC19:07
*** jpcw2002 has left #zope3-dev19:08
Subdinohi19:10
*** rocky|away has quit IRC19:10
SubdinoI've triggered a bug in zope 2.8.8 transaction._transaction19:11
Subdinofirst of all, yes my code is not considered as "normal" zope usage, but transaction does not behave in a reasonable way19:12
Subdinothe bug is triggered when trying to register an instance inheriting from TM class after an exception was raised in _commitResources19:13
SubdinoTM._register calls transaction's register, which appends the TM instance before calling join19:14
Subdinojoin raises, but the raise is caught in TM._register19:14
Subdinonext call to TM._register does not cause any more call to join, so it does not raise, so "self._registered = 1" is executed19:15
Subdinoand at this point, there is a TM instance which thinks it's registered (so it won't be registered untill self._registered is set to 0)19:15
Subdinobut no transaction knows about this TM instance19:15
SubdinoI believe that 2 things must be done:19:16
Subdinofirst, either transaction's register must check transaction status before doing anything, or it must call join before doing anything19:17
Subdinosecond, either it must be advised to check _registered value after a call to TM._register, or it must not catch exceptions19:18
Subdino(or at the very least, it must not catch TransactionFailedError)19:18
*** tarek has quit IRC19:20
*** tarek has joined #zope3-dev19:22
*** bigkevmcd has joined #zope3-dev19:23
*** tarek has quit IRC19:23
*** maurits has quit IRC19:23
*** bigkevmcd has quit IRC19:27
*** vod has joined #zope3-dev19:28
*** niemeyer has quit IRC19:28
*** bigkevmcd has joined #zope3-dev19:31
*** toutpt has quit IRC19:33
*** niemeyer has joined #zope3-dev19:35
*** acsr has quit IRC19:37
*** rmarianski has quit IRC19:40
*** pbugni has joined #zope3-dev19:41
*** rocky has joined #zope3-dev19:43
*** ignas has joined #zope3-dev19:44
ignasJ1m: by the way - the buildout-source-release apparently fails, because it thinks that the installation of setuptools on ubuntu is a "development version" of setuptools, so it does not download the egg into the eggs-dir ...19:46
*** rmarianski has joined #zope3-dev19:46
ignasJ1m: manually easy_installing setuptools>=0.6c7 works around the problem19:46
*** jinty_ has quit IRC19:47
*** rmarianski has quit IRC20:00
*** rmarianski has joined #zope3-dev20:01
J1mignas, interesting. :(20:02
*** rmarianski_ has joined #zope3-dev20:07
*** rmarianski has quit IRC20:09
*** alga has quit IRC20:14
*** rmarianski_ is now known as rmarianski20:16
*** alecm has joined #zope3-dev20:21
*** sp0cksbeard has joined #zope3-dev20:41
*** sp0cksbeard has quit IRC20:42
*** MJ has quit IRC20:43
*** mkerrin has quit IRC20:48
*** lisppaste6 has joined #zope3-dev20:53
*** pcardune has joined #zope3-dev20:54
*** junkafarian has joined #zope3-dev21:01
* junkafarian waves21:01
*** dunny has joined #zope3-dev21:01
*** jfroche has quit IRC21:03
*** afd_ has quit IRC21:22
*** ignas has quit IRC21:23
*** agroszer has quit IRC21:25
*** pelle_ has joined #zope3-dev21:25
*** mgedmin has quit IRC21:30
*** pelle_ has quit IRC21:32
*** pelle_ has joined #zope3-dev21:32
*** thruflo has quit IRC21:32
*** greenman has joined #zope3-dev21:39
*** greenman has quit IRC21:40
*** reco has joined #zope3-dev21:50
*** junkafarian has quit IRC21:55
*** malthe has quit IRC21:56
*** MJ has joined #zope3-dev22:02
*** MJ has quit IRC22:03
*** pelle_ has quit IRC22:04
*** harobed has joined #zope3-dev22:06
*** pelle_ has joined #zope3-dev22:11
*** rocky has quit IRC22:14
*** rocky has joined #zope3-dev22:14
*** pelle_ has quit IRC22:17
*** rmarianski has quit IRC22:18
*** ignas has joined #zope3-dev22:20
*** rmarianski has joined #zope3-dev22:20
*** pelle_ has joined #zope3-dev22:24
*** Subdino has quit IRC22:28
CSWookiesrichter: Are you there?22:44
CSWookiesrichter: I've got a change I'm planning on releasing to zope.app.security, and J1m said you had some reccommended procedures for updating a core package vs. a regular one.22:45
*** pelle_ has quit IRC22:48
*** bigkevmcd has quit IRC23:04
*** niemeyer has quit IRC23:05
*** junkafarian has joined #zope3-dev23:10
*** projekt01 has joined #zope3-dev23:24
*** jfroche has joined #zope3-dev23:29
*** malthe has joined #zope3-dev23:30
*** projekt01 has left #zope3-dev23:38
*** whit is now known as whit|out23:41
*** whit|out has quit IRC23:41
ignasJ1m: it seems that zc.sourcerelease does not work with eggs installed in the site-packages of a virtualenv python installation :/23:50
ignasJ1m: I have tried installing zc.sourcerelease zopeproject and zc.buildout into my sandbox created using virtualenv.py23:52
ignasand then using buildout-source-release on my project, and the final tarball lacked zc.recipe.egg :/23:52
ignasI assume it's because the recipe was available in the site-packages of the virtual python created by virtualenv.py23:53
*** dobee has quit IRC23:54
*** dobee has joined #zope3-dev23:54

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