| *** alecm has joined #zope3-dev | 00:26 | |
| *** yota has quit IRC | 01:13 | |
| *** jodok has quit IRC | 01:49 | |
| *** batlogg has joined #zope3-dev | 01:50 | |
| *** yota has joined #zope3-dev | 01:53 | |
| *** itsme has joined #zope3-dev | 01:56 | |
| *** jhauser has quit IRC | 02:06 | |
| *** reco has joined #zope3-dev | 02:23 | |
| *** yota has quit IRC | 02:35 | |
| *** dunny has joined #zope3-dev | 02:58 | |
| *** Aiste has joined #zope3-dev | 03:20 | |
| *** reco has quit IRC | 03:33 | |
| *** Aiste has quit IRC | 03:45 | |
| *** jinty has quit IRC | 03:47 | |
| *** itsme has quit IRC | 05:38 | |
| *** natea has joined #zope3-dev | 06:27 | |
| *** MiUlEr has joined #zope3-dev | 06:28 | |
| *** natea_ has quit IRC | 06:35 | |
| *** MiUlEr has quit IRC | 08:01 | |
| *** zagy has quit IRC | 08:13 | |
| *** romanofski has quit IRC | 08:13 | |
| *** __mac__ has quit IRC | 08:13 | |
| *** andrew_m has quit IRC | 08:13 | |
| *** guruz has quit IRC | 08:13 | |
| *** edgordon_ has quit IRC | 08:13 | |
| *** redir has quit IRC | 08:13 | |
| *** jkakar has quit IRC | 08:13 | |
| *** natea has quit IRC | 08:13 | |
| *** batlogg has quit IRC | 08:13 | |
| *** nouri has quit IRC | 08:13 | |
| *** dunny has quit IRC | 08:13 | |
| *** danfairs has quit IRC | 08:13 | |
| *** d2m has quit IRC | 08:13 | |
| *** dokai has quit IRC | 08:13 | |
| *** SteveA has quit IRC | 08:13 | |
| *** Londo_ has quit IRC | 08:13 | |
| *** SmokeyD has quit IRC | 08:13 | |
| *** rocky has quit IRC | 08:13 | |
| *** Theuni has quit IRC | 08:13 | |
| *** tonico|away has quit IRC | 08:13 | |
| *** natea has joined #zope3-dev | 08:13 | |
| *** dunny has joined #zope3-dev | 08:13 | |
| *** batlogg has joined #zope3-dev | 08:13 | |
| *** Londo_ has joined #zope3-dev | 08:13 | |
| *** romanofski has joined #zope3-dev | 08:13 | |
| *** edgordon_ has joined #zope3-dev | 08:13 | |
| *** danfairs has joined #zope3-dev | 08:13 | |
| *** d2m has joined #zope3-dev | 08:13 | |
| *** redir has joined #zope3-dev | 08:13 | |
| *** SmokeyD has joined #zope3-dev | 08:13 | |
| *** rocky has joined #zope3-dev | 08:13 | |
| *** Theuni has joined #zope3-dev | 08:13 | |
| *** __mac__ has joined #zope3-dev | 08:13 | |
| *** jkakar has joined #zope3-dev | 08:13 | |
| *** tonico|away has joined #zope3-dev | 08:13 | |
| *** guruz has joined #zope3-dev | 08:13 | |
| *** andrew_m has joined #zope3-dev | 08:13 | |
| *** nouri has joined #zope3-dev | 08:13 | |
| *** dokai has joined #zope3-dev | 08:13 | |
| *** SteveA has joined #zope3-dev | 08:13 | |
| *** zagy has joined #zope3-dev | 08:14 | |
| *** danfairs has quit IRC | 09:09 | |
| *** danfairs has joined #zope3-dev | 09:10 | |
| *** baijum has joined #zope3-dev | 09:15 | |
| *** baijum has quit IRC | 09:58 | |
| *** oferw has joined #zope3-dev | 10:32 | |
| *** opetznick has joined #zope3-dev | 11:31 | |
| *** dunny has quit IRC | 11:36 | |
| *** BjornT has joined #zope3-dev | 11:52 | |
| *** oferw has quit IRC | 11:53 | |
| *** timte has joined #zope3-dev | 11:55 | |
| *** batlogg has quit IRC | 12:02 | |
| *** batlogg has joined #zope3-dev | 12:02 | |
| *** batlogg_ has joined #zope3-dev | 12:16 | |
| *** batlogg has quit IRC | 12:16 | |
| *** Aiste has joined #zope3-dev | 12:17 | |
| *** jhauser has joined #zope3-dev | 12:19 | |
| timte | I 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 IRC | 12:24 | |
| timte | canAccess(chatObj, 'messages') returns true while canAccess(chatObj, 'messages') returns false | 12:25 |
| *** BjornT has quit IRC | 12:44 | |
| *** batlogg_ is now known as jodok | 13:07 | |
| timte | I guess there isn't an interface for persistent.list.PersistentList? | 13:15 |
| *** projekt01 has joined #zope3-dev | 13:20 | |
| *** Aiste has quit IRC | 13:39 | |
| timte | shouldn't I be able to do .append on an object that is declared being a List ? | 14:16 |
| timte | grrrr | 14:16 |
| *** yota has joined #zope3-dev | 14:27 | |
| *** jhauser has quit IRC | 14:33 | |
| *** jodok has quit IRC | 15:09 | |
| *** dobee has joined #zope3-dev | 15:30 | |
| *** batlogg has joined #zope3-dev | 15:56 | |
| *** jinty has joined #zope3-dev | 16:08 | |
| *** projekt01 has quit IRC | 16:19 | |
| *** edgordon_ has quit IRC | 16:52 | |
| *** batlogg has quit IRC | 17:18 | |
| *** jinty has quit IRC | 17:24 | |
| *** b_52Centos has joined #zope3-dev | 17:33 | |
| rocky | is there a utility function/api i can use to set the "current" skin? | 17:34 |
| *** b_52Free has joined #zope3-dev | 17:44 | |
| *** b_52Centos has quit IRC | 17:50 | |
| *** Londo_ has quit IRC | 17:56 | |
| timte | rocky: perhaps zope.publisher.browser.setDefaultSkins() | 18:03 |
| timte | -s | 18:04 |
| rocky | ah right, thank | 18:06 |
| rocky | +s | 18:06 |
| *** b_52Centos has joined #zope3-dev | 18:20 | |
| *** b_52Free has quit IRC | 18:37 | |
| *** batlogg has joined #zope3-dev | 18:43 | |
| *** b_52Centos has quit IRC | 18:50 | |
| *** b_52Centos has joined #zope3-dev | 18:51 | |
| *** opetznick has quit IRC | 18:53 | |
| *** opetznick has joined #zope3-dev | 19:21 | |
| *** opetznick has quit IRC | 19:21 | |
| *** sureshvv has joined #zope3-dev | 19:29 | |
| *** oferw_ has joined #zope3-dev | 19:31 | |
| *** ignas has joined #zope3-dev | 19:37 | |
| *** andres has joined #zope3-dev | 20:05 | |
| *** dunny has joined #zope3-dev | 20:16 | |
| *** opetznick has joined #zope3-dev | 20:31 | |
| *** oferw_ has quit IRC | 20:48 | |
| *** opetznick has quit IRC | 20:56 | |
| *** reco has joined #zope3-dev | 21:05 | |
| *** b_52Free has joined #zope3-dev | 21:13 | |
| *** sureshvv has left #zope3-dev | 21:18 | |
| timte | Can I prevent an attribute from being security proxied? | 21:24 |
| dobee | timte: from zope.security import removeSecurityProxy | 21:27 |
| *** oferw_ has joined #zope3-dev | 21:27 | |
| dobee | ups i guess its zope.security.proxy | 21:27 |
| timte | that will remove the proxy only in this traversal, right? | 21:28 |
| dobee | you get a new reference | 21:28 |
| dobee | it doesnt modify the orginal | 21:29 |
| dobee | just a tip, in most cases when you need this function, its a design problem | 21:30 |
| timte | yeah, I'd rather not use it, but it's in my way :) | 21:31 |
| timte | I have an object with an attribute that is a list. I'm not allowed to append stuff to that list. | 21:31 |
| dobee | ist this a subclass of list? | 21:32 |
| timte | no, just list | 21:32 |
| timte | or PersistentList, I tried both | 21:32 |
| dobee | you get the ForbittenAttribute on __setitem__ ? | 21:32 |
| timte | no, on append | 21:32 |
| dobee | ok, this is a bug in zope then | 21:33 |
| dobee | maybe the append method is not defined in the interface | 21:33 |
| timte | but what interface should the append be in? | 21:33 |
| *** b_52Centos has quit IRC | 21:34 | |
| dobee | there are interfaces defined for builtin python types | 21:34 |
| timte | oh, where? | 21:34 |
| dobee | zope.interface.common.sequence IUniqueMemberWriteSequence | 21:36 |
| dobee | its not a zope problem then | 21:37 |
| timte | probably not, I just didn't know how to do it correctly | 21:37 |
| dobee | did you define the attribut as a schema.List in your interface? | 21:38 |
| timte | I tried that as well. | 21:38 |
| timte | But List didn | 21:38 |
| timte | But List didn't have append. | 21:38 |
| dobee | schema.List is just for the interface declaration, it doesnt need append | 21:39 |
| timte | isn't the security declarations based on the interface? | 21:40 |
| timte | I get ForbiddenAttribute on append, so append needs a security declaration. | 21:40 |
| dobee | i am not shure, but if you define set_schema="IYourIFace" in your class directive it should work | 21:41 |
| dobee | attrName = schema.List(title="blah") | 21:42 |
| timte | doesn'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 |
| timte | s/not/need/ | 21:44 |
| dobee | yes but the list is a builitn type, the declaration for the append method is in zope core | 21:44 |
| *** philiKON has joined #zope3-dev | 21:47 | |
| timte | dobee: I have attrName = List(value_type=Object(schema=IMessage)), but I get ForbiddenAttribute still | 21:48 |
| dobee | and you have defined set_schema? | 21:50 |
| timte | yes on the Chat object which contains the 'messages' attribute | 21:50 |
| dobee | ok, i nevert tried this | 21:51 |
| dobee | look if this works | 21:51 |
| *** romanofs1i has joined #zope3-dev | 21:52 | |
| dobee | self.messages = self.messages + [message] | 21:52 |
| *** Jan_pt has joined #zope3-dev | 21:52 | |
| dobee | but you should use persistentlist | 21:52 |
| timte | I tried that actually, after adding removeSecurityProxy(message) like that I got an Unpickable error instead | 21:53 |
| dobee | after removeSecurityProxy you get an unpicklabel error? | 21:54 |
| dobee | thats odd | 21:54 |
| dobee | you cannot pickle proxies | 21:54 |
| timte | I think I got it when zope commited the transaction | 21:54 |
| timte | I know, that's why I used removeSecurityProxy | 21:55 |
| dobee | maybe you should implement an addMessage method on your content object | 21:56 |
| timte | there's probably a simple solution, when you know it... | 21:56 |
| timte | but I will still have the same problem | 21:56 |
| timte | I need to use the list methods anyway | 21:57 |
| dobee | yes but i think the list is not proxied then, because i think you are trusted on self | 21:57 |
| timte | uhm | 21:57 |
| timte | but all attributes on content objects are proxied, aren't they? | 21:58 |
| timte | my 'messages' attribute is proxied | 21:58 |
| timte | I sent an email to the zope3-users list, I'll wait and see if someone answers | 21:59 |
| dobee | i jus saw that append is not defined in zope on persistent list | 21:59 |
| timte | oh | 22:00 |
| dobee | make your own subclass of persistentlist | 22:00 |
| dobee | zope/app/security/_protections.zcml | 22:00 |
| dobee | then declare a permission on your custom list class | 22:00 |
| dobee | IWriteSequence | 22:01 |
| timte | is it a bug or why is append not there? | 22:02 |
| dobee | only the read attributes are defined | 22:02 |
| dobee | otherwise the attribute would be mutable by everybody | 22:02 |
| timte | I'll try this, thank you. | 22:03 |
| dobee | now that i thought about this, i am shure, that you have to do it this way | 22:04 |
| *** romanofs1i has quit IRC | 22:06 | |
| *** b_52GM has joined #zope3-dev | 22:35 | |
| *** oferw_ has quit IRC | 22:51 | |
| *** b_52Free has quit IRC | 22:52 | |
| *** dobee has quit IRC | 23:19 | |
| *** pelle_ has joined #zope3-dev | 23:20 | |
| *** b_52Free has joined #zope3-dev | 23:22 | |
| *** andres has quit IRC | 23:31 | |
| *** andres has joined #zope3-dev | 23:32 | |
| *** dobee has joined #zope3-dev | 23:38 | |
| *** b_52GM has quit IRC | 23:40 | |
| *** batlogg has quit IRC | 23:57 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!