IRC log of #zope3-dev for Sunday, 2006-12-17

*** alecm has joined #zope3-dev00:26
*** yota has quit IRC01:13
*** jodok has quit IRC01:49
*** batlogg has joined #zope3-dev01:50
*** yota has joined #zope3-dev01:53
*** itsme has joined #zope3-dev01:56
*** jhauser has quit IRC02:06
*** reco has joined #zope3-dev02:23
*** yota has quit IRC02:35
*** dunny has joined #zope3-dev02:58
*** Aiste has joined #zope3-dev03:20
*** reco has quit IRC03:33
*** Aiste has quit IRC03:45
*** jinty has quit IRC03:47
*** itsme has quit IRC05:38
*** natea has joined #zope3-dev06:27
*** MiUlEr has joined #zope3-dev06:28
*** natea_ has quit IRC06:35
*** MiUlEr has quit IRC08:01
*** zagy has quit IRC08:13
*** romanofski has quit IRC08:13
*** __mac__ has quit IRC08:13
*** andrew_m has quit IRC08:13
*** guruz has quit IRC08:13
*** edgordon_ has quit IRC08:13
*** redir has quit IRC08:13
*** jkakar has quit IRC08:13
*** natea has quit IRC08:13
*** batlogg has quit IRC08:13
*** nouri has quit IRC08:13
*** dunny has quit IRC08:13
*** danfairs has quit IRC08:13
*** d2m has quit IRC08:13
*** dokai has quit IRC08:13
*** SteveA has quit IRC08:13
*** Londo_ has quit IRC08:13
*** SmokeyD has quit IRC08:13
*** rocky has quit IRC08:13
*** Theuni has quit IRC08:13
*** tonico|away has quit IRC08:13
*** natea has joined #zope3-dev08:13
*** dunny has joined #zope3-dev08:13
*** batlogg has joined #zope3-dev08:13
*** Londo_ has joined #zope3-dev08:13
*** romanofski has joined #zope3-dev08:13
*** edgordon_ has joined #zope3-dev08:13
*** danfairs has joined #zope3-dev08:13
*** d2m has joined #zope3-dev08:13
*** redir has joined #zope3-dev08:13
*** SmokeyD has joined #zope3-dev08:13
*** rocky has joined #zope3-dev08:13
*** Theuni has joined #zope3-dev08:13
*** __mac__ has joined #zope3-dev08:13
*** jkakar has joined #zope3-dev08:13
*** tonico|away has joined #zope3-dev08:13
*** guruz has joined #zope3-dev08:13
*** andrew_m has joined #zope3-dev08:13
*** nouri has joined #zope3-dev08:13
*** dokai has joined #zope3-dev08:13
*** SteveA has joined #zope3-dev08:13
*** zagy has joined #zope3-dev08:14
*** danfairs has quit IRC09:09
*** danfairs has joined #zope3-dev09:10
*** baijum has joined #zope3-dev09:15
*** baijum has quit IRC09:58
*** oferw has joined #zope3-dev10:32
*** opetznick has joined #zope3-dev11:31
*** dunny has quit IRC11:36
*** BjornT has joined #zope3-dev11:52
*** oferw has quit IRC11:53
*** timte has joined #zope3-dev11:55
*** batlogg has quit IRC12:02
*** batlogg has joined #zope3-dev12:02
*** batlogg_ has joined #zope3-dev12:16
*** batlogg has quit IRC12:16
*** Aiste has joined #zope3-dev12:17
*** jhauser has joined #zope3-dev12:19
timteI have an IChat interface with the line "messages = Attribute('...')". Shouldn't set_schema=".interfaces.IChat" in configure.zcml allow messages to be changed?12:23
*** andres has quit IRC12:24
timtecanAccess(chatObj, 'messages') returns true while canAccess(chatObj, 'messages') returns false12:25
*** BjornT has quit IRC12:44
*** batlogg_ is now known as jodok13:07
timteI guess there isn't an interface for persistent.list.PersistentList?13:15
*** projekt01 has joined #zope3-dev13:20
*** Aiste has quit IRC13:39
timteshouldn't I be able to do .append on an object that is declared being a List ?14:16
timtegrrrr14:16
*** yota has joined #zope3-dev14:27
*** jhauser has quit IRC14:33
*** jodok has quit IRC15:09
*** dobee has joined #zope3-dev15:30
*** batlogg has joined #zope3-dev15:56
*** jinty has joined #zope3-dev16:08
*** projekt01 has quit IRC16:19
*** edgordon_ has quit IRC16:52
*** batlogg has quit IRC17:18
*** jinty has quit IRC17:24
*** b_52Centos has joined #zope3-dev17:33
rockyis there a utility function/api i can use to set the "current" skin?17:34
*** b_52Free has joined #zope3-dev17:44
*** b_52Centos has quit IRC17:50
*** Londo_ has quit IRC17:56
timterocky: perhaps zope.publisher.browser.setDefaultSkins()18:03
timte-s18:04
rockyah right, thank18:06
rocky+s18:06
*** b_52Centos has joined #zope3-dev18:20
*** b_52Free has quit IRC18:37
*** batlogg has joined #zope3-dev18:43
*** b_52Centos has quit IRC18:50
*** b_52Centos has joined #zope3-dev18:51
*** opetznick has quit IRC18:53
*** opetznick has joined #zope3-dev19:21
*** opetznick has quit IRC19:21
*** sureshvv has joined #zope3-dev19:29
*** oferw_ has joined #zope3-dev19:31
*** ignas has joined #zope3-dev19:37
*** andres has joined #zope3-dev20:05
*** dunny has joined #zope3-dev20:16
*** opetznick has joined #zope3-dev20:31
*** oferw_ has quit IRC20:48
*** opetznick has quit IRC20:56
*** reco has joined #zope3-dev21:05
*** b_52Free has joined #zope3-dev21:13
*** sureshvv has left #zope3-dev21:18
timteCan I prevent an attribute from being security proxied?21:24
dobeetimte: from zope.security import removeSecurityProxy21:27
*** oferw_ has joined #zope3-dev21:27
dobeeups i guess its zope.security.proxy21:27
timtethat will remove the proxy only in this traversal, right?21:28
dobeeyou get a new reference21:28
dobeeit doesnt modify the orginal21:29
dobeejust a tip, in most cases when you need this function, its a design problem21:30
timteyeah, I'd rather not use it, but it's in my way  :)21:31
timteI have an object with an attribute that is a list. I'm not allowed to append stuff to that list.21:31
dobeeist this a subclass of list?21:32
timteno, just list21:32
timteor PersistentList, I tried both21:32
dobeeyou get the ForbittenAttribute on __setitem__ ?21:32
timteno, on append21:32
dobeeok, this is a bug in zope then21:33
dobeemaybe the append method is not defined in the interface21:33
timtebut what interface should the append be in?21:33
*** b_52Centos has quit IRC21:34
dobeethere are interfaces defined for builtin python types21:34
timteoh, where?21:34
dobeezope.interface.common.sequence IUniqueMemberWriteSequence21:36
dobeeits not a zope problem then21:37
timteprobably not, I just didn't know how to do it correctly21:37
dobeedid you define the attribut as a schema.List in your interface?21:38
timteI tried that as well.21:38
timteBut List didn21:38
timteBut List didn't have append.21:38
dobeeschema.List is just for the interface declaration, it doesnt need append21:39
timteisn't the security declarations based on the interface?21:40
timteI get ForbiddenAttribute on append, so append needs a security declaration.21:40
dobeei am not shure, but if you define set_schema="IYourIFace" in your class directive it should work21:41
dobeeattrName = schema.List(title="blah")21:42
timtedoesn't append not to be mentioned anywhere? should attrName get security declarations for all its methods automatically? I thought set_schema="IYourFace" only put security declarations on that particular object, not its attributes?21:44
timtes/not/need/21:44
dobeeyes but the list is a builitn type, the declaration for the append method is in zope core21:44
*** philiKON has joined #zope3-dev21:47
timtedobee: I have attrName = List(value_type=Object(schema=IMessage)), but I get ForbiddenAttribute still21:48
dobeeand you have defined set_schema?21:50
timteyes on the Chat object which contains the 'messages' attribute21:50
dobeeok, i nevert tried this21:51
dobeelook if this works21:51
*** romanofs1i has joined #zope3-dev21:52
dobeeself.messages = self.messages + [message]21:52
*** Jan_pt has joined #zope3-dev21:52
dobeebut you should use persistentlist21:52
timteI tried that actually, after adding removeSecurityProxy(message) like that I got an Unpickable error instead21:53
dobeeafter removeSecurityProxy you get an unpicklabel error?21:54
dobeethats odd21:54
dobeeyou cannot pickle proxies21:54
timteI think I got it when zope commited the transaction21:54
timteI know, that's why I used removeSecurityProxy21:55
dobeemaybe you should implement an addMessage method on your content object21:56
timtethere's probably a simple solution, when you know it...21:56
timtebut I will still have the same problem21:56
timteI need to use the list methods anyway21:57
dobeeyes but i think the list is not proxied then, because i think you are trusted on self21:57
timteuhm21:57
timtebut all attributes on content objects are proxied, aren't they?21:58
timtemy 'messages' attribute is proxied21:58
timteI sent an email to the zope3-users list, I'll wait and see if someone answers21:59
dobeei jus saw that append is not defined in zope on persistent list21:59
timteoh22:00
dobeemake your own subclass of persistentlist22:00
dobeezope/app/security/_protections.zcml22:00
dobeethen declare a permission on your custom list class22:00
dobeeIWriteSequence22:01
timteis it a bug or why is append not there?22:02
dobeeonly the read attributes are defined22:02
dobeeotherwise the attribute would be mutable by everybody22:02
timteI'll try this, thank you.22:03
dobeenow that i thought about this, i am shure, that you have to do it this way22:04
*** romanofs1i has quit IRC22:06
*** b_52GM has joined #zope3-dev22:35
*** oferw_ has quit IRC22:51
*** b_52Free has quit IRC22:52
*** dobee has quit IRC23:19
*** pelle_ has joined #zope3-dev23:20
*** b_52Free has joined #zope3-dev23:22
*** andres has quit IRC23:31
*** andres has joined #zope3-dev23:32
*** dobee has joined #zope3-dev23:38
*** b_52GM has quit IRC23:40
*** batlogg has quit IRC23:57

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