IRC log of #zope3-dev for Friday, 2007-01-12

*** deo has quit IRC00:05
*** faassen has quit IRC00:19
*** dobee has quit IRC00:21
*** tarek has joined #zope3-dev00:27
*** tarek has left #zope3-dev00:29
*** rmarianski has quit IRC00:30
*** marcin_ant has joined #zope3-dev00:31
*** rmarianski has joined #zope3-dev00:35
*** jkakar has joined #zope3-dev00:35
*** timte has quit IRC00:36
*** philiKON has joined #zope3-dev00:40
*** RaFromBRC has quit IRC00:43
*** d2m has quit IRC00:43
*** ofer has joined #zope3-dev00:52
*** sureshvv has left #zope3-dev00:54
*** alecm has quit IRC01:23
*** alecm has joined #zope3-dev01:24
*** rocky is now known as rocky|Zzz01:41
*** ofer has quit IRC01:48
*** yota has quit IRC02:05
*** J1m has quit IRC02:08
*** jfroche has quit IRC02:13
*** marcin_ant has quit IRC02:28
*** CSWookie has joined #zope3-dev02:34
*** b_52Free has joined #zope3-dev02:43
*** jkakar has quit IRC02:55
*** b_52Centos has quit IRC02:59
*** wrobel has quit IRC03:22
WebMavenSteveA: can I ask a bit about Launchpad's setup?03:23
*** b_52GM has joined #zope3-dev03:26
*** b_52Centos has joined #zope3-dev03:34
*** ksmith99 has quit IRC03:35
*** jodok has joined #zope3-dev03:42
*** b_52Free has quit IRC03:43
*** b_52Free has joined #zope3-dev03:44
*** b_52GM has quit IRC03:51
*** batlogg has joined #zope3-dev03:52
*** jodok has quit IRC03:52
*** batlogg has quit IRC03:54
*** b_52GM has joined #zope3-dev03:56
*** b_52Free has quit IRC03:57
*** b_52Centos has quit IRC04:04
*** baijum has joined #zope3-dev04:12
*** philiKON has quit IRC04:27
*** opetznick has quit IRC04:37
*** RaFromBRC has joined #zope3-dev04:41
*** b_52Free has joined #zope3-dev04:55
*** whit has quit IRC04:57
*** stub has joined #zope3-dev05:20
*** b_52GM has quit IRC05:22
*** oferw has joined #zope3-dev05:38
*** dobee has joined #zope3-dev06:14
*** alecm has quit IRC06:35
*** b_52GM has joined #zope3-dev06:42
*** stub has quit IRC06:42
*** dobee has quit IRC06:46
*** RaFromBRC has quit IRC06:54
*** dobee has joined #zope3-dev06:57
*** b_52Centos has joined #zope3-dev07:01
*** b_52Free has quit IRC07:08
*** b_52GM has quit IRC07:22
*** b_52Centos has quit IRC07:23
*** b_52Centos has joined #zope3-dev07:24
*** b_52Free has joined #zope3-dev07:32
*** oferw has quit IRC07:42
*** philiKON has joined #zope3-dev07:45
*** b_52Centos has quit IRC07:49
*** b_52GM has joined #zope3-dev07:58
*** eins has joined #zope3-dev08:13
*** b_52Centos has joined #zope3-dev08:19
*** b_52Free has quit IRC08:27
*** b_52GM has quit IRC08:35
*** philiKON has quit IRC08:38
*** b_52Free has joined #zope3-dev08:53
*** b_52Free has quit IRC09:10
*** b_52Centos has quit IRC09:10
*** eins has quit IRC09:10
*** baijum has quit IRC09:10
*** tonico|away has quit IRC09:10
*** timte has joined #zope3-dev09:10
*** b_52Free has joined #zope3-dev09:10
*** b_52Centos has joined #zope3-dev09:10
*** eins has joined #zope3-dev09:10
*** baijum has joined #zope3-dev09:10
*** tonico|away has joined #zope3-dev09:10
*** stub has joined #zope3-dev09:13
*** b_52Centos has quit IRC09:16
*** b_52GM has joined #zope3-dev09:20
*** jkakar has joined #zope3-dev09:22
*** HakTom has joined #zope3-dev09:24
*** b_52Centos has joined #zope3-dev09:33
*** dlk has joined #zope3-dev09:34
*** jkakar has quit IRC09:36
romanofskimoin09:37
*** b_52Free has quit IRC09:37
*** povbot has joined #zope3-dev09:43
*** jodok has joined #zope3-dev09:48
*** opetznick has joined #zope3-dev09:48
*** b_52Free has joined #zope3-dev09:50
*** wrobel has joined #zope3-dev09:50
*** opetznick has quit IRC09:52
*** srichter has joined #zope3-dev09:53
*** ChanServ sets mode: +o srichter09:53
*** d2m has joined #zope3-dev09:56
*** b_52GM has quit IRC09:58
*** b_52Centos has quit IRC10:07
*** schwendinger has joined #zope3-dev10:07
*** dl1 has joined #zope3-dev10:09
*** dlk has quit IRC10:09
*** jodok has quit IRC10:11
*** WebMaven has quit IRC10:12
*** dl1 has left #zope3-dev10:12
*** WebMaven has joined #zope3-dev10:13
*** b_52GM has joined #zope3-dev10:13
*** matthewrevell has joined #zope3-dev10:23
*** jamesh has quit IRC10:36
*** tarek has joined #zope3-dev10:37
*** b_52Free has quit IRC10:37
*** b_52GM has quit IRC10:41
*** b_52GM has joined #zope3-dev10:42
*** stub has quit IRC10:48
*** stub has joined #zope3-dev10:49
*** b_52Free has joined #zope3-dev11:02
*** jinty has joined #zope3-dev11:07
*** henri_ has joined #zope3-dev11:08
*** dunny has quit IRC11:09
*** b_52GM has quit IRC11:19
*** b_52Free has quit IRC11:29
*** b_52Free has joined #zope3-dev11:30
*** ignas has joined #zope3-dev11:31
*** tonico|away is now known as tonico11:31
*** kobold has joined #zope3-dev11:35
*** b_52Free has quit IRC11:45
*** b_52Free has joined #zope3-dev11:45
*** ktwilight_ has joined #zope3-dev11:52
*** torkel_ has joined #Zope3-Dev11:52
*** opetznick has joined #zope3-dev12:03
*** ktwilight has quit IRC12:07
*** torkel_ has quit IRC12:14
*** niemeyer has quit IRC12:21
*** niemeyer has joined #zope3-dev12:23
*** mkerrin has joined #zope3-dev12:28
*** b_52GM has joined #zope3-dev12:43
*** jodok has joined #zope3-dev12:45
*** b_52Free has quit IRC13:00
dobeesrichter: ayt?13:00
*** jodok has quit IRC13:01
*** b_52GM has quit IRC13:02
*** b_52GM has joined #zope3-dev13:03
srichterdobee: yeah13:05
dobeehi13:06
dobeequestion about z3c.configurator13:06
srichtershoot13:06
dobeewe have a  problem there with the data armgument13:06
srichterwhat about it?13:06
dobeewhen 2 plugins share the same attribte names13:07
srichterright, then you have a problem13:07
dobeewe cannot distinct those attribtues in data13:07
dobeeso i want to change data to a dictionary of dictionaries13:07
srichteror implement a namespace13:07
srichterie: pluginName.attrName13:07
dobee{pluginname: {},}13:07
srichterI think that would be okay too13:08
srichteroh, hold on13:08
dobeeit breaks existing implementations13:08
dobeei am currently working on the configurator to allow to call specific named ones13:08
dobeeTTW13:08
srichterthe main idea originally was that the data attribute is totally informal13:08
srichterand now we require the user/programmer to know the names of the plugins13:09
dobeehm13:09
srichterwhich we didn't before13:09
srichterdobee: btw, I am surprised you use configurator over sampledata13:09
srichteranyways, I think I would be opkay13:10
dobeethis is the first step to a merge13:10
srichterdobee: but please create a branch/tag before starting, so we can change code later13:10
dobeeok, you mean i should create a branch for my changes?13:11
srichterI have noticed this week again, how simple the configurator is to use and to explain; I would hate to loose that simplicity13:11
srichterdobee: no, a brnach for the old code13:11
srichterso we can switch to that13:11
dobeethe data thing is the only incompatible change at all13:11
srichtermaybe a heads up to the zope3-users mailing lsit too13:11
dobeeok, i'll create a 1.0 branch for the old code, or is that number to hight13:12
dobeehigh13:12
srichterinterestingly enough, in the training example, I need to access one piece of data in two different plugins13:12
srichterthis is certainly a use case to consider13:12
srichterand I do not even care about the schemas13:12
srichterno, that number is ok13:13
dobeei think we should care about schemas, if we use the schema based configurator plugin13:13
srichtermaybe we should support both use cases13:13
srichterwhat about: if you have a schema plugin, you use your suggestion, but in general also allow a simple data dict13:14
dobeemaybe we should add a keyword argument ala 'namespaces'13:14
dobeeuseNameSpaces=False13:14
dobeein configure13:14
*** b_52GM has quit IRC13:14
dobeeso we are completly backward compatible13:14
srichterI think this is a good idea13:14
dobeeme too, ok i'll gonna implement this13:15
srichterI like the sound of being backward compatible :-)13:15
dobeeyeah13:15
*** b_52GM has joined #zope3-dev13:15
srichtercool, have fun13:15
*** b_52GM has quit IRC13:18
*** b_52GM has joined #zope3-dev13:19
ignassrichter: can one make a title attribute in a viewlet zcml declaration translatable? in schooltool the navigation menu is being set up through viewlets in zcml, and i don't really want to move all that into python code ...13:23
ignasi can translate the string for users, but it is not being picked up by i18n extraction factilities13:24
srichteryou need to move the code into Python or write your own special directive (not that bad)13:24
ignashmm, any examples of such a directive in Zope3 or some other open source code ?13:24
srichterin my projects I create the Python objects13:24
srichteroftentimes you want to do more with the menu item anyways13:25
ignashmm, kind of makes sense13:25
ignasjust thought that there might be some magical zcml attribute like in tal that makes attributes translatable13:25
srichterignas: simply extend the IViewlet directive by a title attribute that is a MessageId field, write a new handler that only calls the original one and register the directive13:26
srichterit's pretty easy13:26
srichterbut I think Python code is okay here13:26
srichterI usually stick everything into a menu.py file13:26
ignasthanks13:27
*** torkel__ has joined #Zope3-dev13:27
*** ChrisW has joined #zope3-dev13:27
ChrisWhi all, if http://www.zope.org/Products/Zope3 the definitive place for Zope 3 downloads?13:28
*** jfroche has joined #zope3-dev13:28
*** b_52Free has joined #zope3-dev13:30
*** henri_ has left #zope3-dev13:37
*** b_52Centos has joined #zope3-dev13:38
*** dlk has joined #zope3-dev13:40
*** J1m has joined #zope3-dev13:42
*** kobold has quit IRC13:45
*** b_52GM has quit IRC13:47
*** b_52GM has joined #zope3-dev13:48
*** dlk has left #zope3-dev13:51
*** b_52Free has quit IRC13:58
*** b_52Centos has quit IRC14:00
*** rocky|Zzz is now known as rocky14:05
rockygood morning14:10
*** J1m has quit IRC14:11
*** tiredbones has quit IRC14:23
*** baijum has quit IRC14:23
*** b_52Free has joined #zope3-dev14:24
ChrisWmornin ' rocky14:27
ChrisWyou might know:14:27
ChrisWhi all, if http://www.zope.org/Products/Zope3 the definitive place for Zope 3 downloads?14:27
rockyi thought it was14:27
ChrisWcool14:27
ChrisWjust wanted to check, I've been running off svn for years ;-)14:28
rocky;)14:28
*** timte has quit IRC14:31
*** timte has joined #zope3-dev14:31
*** ktwilight_ has quit IRC14:38
*** ktwilight_ has joined #zope3-dev14:39
*** b_52GM has quit IRC14:41
*** b_52Free has quit IRC14:50
*** b_52Free has joined #zope3-dev14:50
*** b_52GM has joined #zope3-dev14:58
*** b_52Free has quit IRC15:22
*** faassen has joined #zope3-dev15:23
*** kobold has joined #zope3-dev15:35
*** mgedmin has joined #zope3-dev15:39
*** ccomb has joined #zope3-dev15:40
*** dobee has quit IRC15:54
*** eins has quit IRC15:56
*** philiKON has joined #zope3-dev16:00
mgedminphiliKON: love for your ezmerge.py once again16:09
mgedminI did some more hacking: added the ability to find out the branch point (with svn log --stop-on-copy) so that I can merge the whole branch to trunk with "ezmerge.py ALL branchname"16:10
ChrisWezmerg.py? where?16:10
mgedminChrisW: http://codespeak.net/svn/user/philikon/ezmerge.py16:10
mgedminplus I wrote ezswitch.py for switching the working dir between branches without having to copy and paste the long svn+ssh://.../ prefixes16:11
philiKONmgedmin: nice16:11
mgedminthis is where a distributed version control system would be useful: I could expose my branch and let you pull the changes if you like them16:12
*** philiKON_ has joined #zope3-dev16:13
*** philiKON has quit IRC16:13
philiKON_mgedmin: i still haven't looked at your mods :(16:14
philiKON_i like some, i don't like others16:14
mgedminI'll put my svn online so you can pick and choose16:15
mgedminfirst I need to extract it out of my home directory svn repo16:16
mgedminsvndumpfilter, here I come16:16
*** philiKON has joined #zope3-dev16:17
*** philiKON_ has quit IRC16:17
*** philiKON_ has joined #zope3-dev16:21
*** philiKON has quit IRC16:21
*** philiKON_ has quit IRC16:21
*** philiKON has joined #zope3-dev16:25
*** HakTom has quit IRC16:26
*** dobee has joined #zope3-dev16:30
*** jodok has joined #zope3-dev16:32
*** J1m has joined #zope3-dev16:33
*** philiKON has quit IRC16:34
ignasis there a way to disable a view through zcml overrides ?16:37
ChrisWah, the old disabling-stuff-through zcml conundrum16:38
ChrisWI wonder if the answer is still "no" :-S16:38
*** natea is now known as natea|breakfast16:39
mgedminignas: you could write a view class that raises NotFoundError in its __call__ and register it as an override16:39
ignasmgedmin: hmm, and what about a a menu item added by <page directive?16:39
mgedminoverride it too, with <browser:menuItem ... condition="nothing" />16:40
*** whit has joined #zope3-dev16:40
ChrisW:-(16:40
ChrisWyuck16:40
mgedminyeah16:40
ChrisWwhat about removing a permission?16:40
ignasremoving a permission ?16:41
ChrisWas in undoing the action of a grant16:41
ignaswon't do, we're using a custom security policy16:41
*** batlogg has joined #zope3-dev16:45
ChrisWI want one of them :-)16:55
ignasone of what ? policies ? :)16:56
ChrisWcustom policies16:56
ignasit's open source, you can have it :D16:56
ChrisWI'll come pick your brain when I get to writing it16:56
ChrisWyeah, but yours will be wrong, of course, as it Zope 3's default, that's why I want my custom one :-)16:56
*** harobed has joined #zope3-dev16:56
ChrisWanyway, how's Vilnius? :-)16:56
*** matthewrevell has quit IRC16:57
ignasChrisW: http://source.schooltool.org/trac/browser/trunk/schooltool/src/schooltool/securitypolicy/16:57
*** matthewrevell has joined #zope3-dev16:57
ignasVilnius is getting colder again, had it quite warm last days16:57
ChrisWcool :-)16:58
ChrisWwell, cold weather wise, cool code wise :-)16:58
ignas:)16:58
ChrisWhave you guys, or anyone else, made progress on the zope3-without-zodb?16:59
*** norro has joined #zope3-dev17:00
ignasChrisW: haven't needed that yet17:00
ChrisWI want it :-)17:00
faassenwith a rdb backend?17:00
ChrisWyep17:01
ChrisWthat's one project17:01
faassenwhat's the other project?17:01
ChrisWbut I'm also interested in just publishing an object from a class, without having to have a zodb, rdb, or anything else17:01
ChrisWthere are many projects ;-)17:01
faassenwell, you can hook it off traversal machinery, I think.17:02
ChrisWyeah, but I want no zodb to even be opened17:02
*** natea|breakfast is now known as natea|away17:02
*** jodok has quit IRC17:02
ChrisWJ1m pointed me in the right direction, just need to find some time and have a dig :-)17:02
*** alecm has joined #zope3-dev17:05
*** dobee has quit IRC17:20
*** batlogg has quit IRC17:20
*** romanofski has quit IRC17:21
*** alga has joined #zope3-dev17:22
mgedminphiliKON, http://mg.pov.lt/eazysvn/17:22
mgedminoh, he left already17:22
*** rmarianski has joined #zope3-dev17:28
*** b_52Free has joined #zope3-dev17:32
*** b_52Centos has joined #zope3-dev17:38
mgedminsvn.zope.org seems to be rather slow today for me17:45
faassenmaybe everybody is checking out grokproject? :)17:46
faassenthat is, typing 'grokproject foo' and causing a zope 3 checkout to happen.17:46
faassenfanciful hope. :)17:46
ChrisWheh17:47
ChrisWI should really give grok a spin17:47
faasseneasy_install grokproject17:48
faassenthen 'grokproject myproject' :)17:48
faassenlet us know if that doesn't work.17:48
ChrisWit won't right now17:48
ChrisWI don't have easy_install ;-)17:48
*** b_52Centos has quit IRC17:49
ChrisWwhat do I need to do that on Windows?17:49
*** b_52Centos has joined #zope3-dev17:50
*** dobee has joined #zope3-dev17:50
*** b_52GM has quit IRC17:50
faassenChrisW: okay, I don't know. :)17:50
faassenChrisW: the buildout will likely fail on windows right now.17:51
faassenChrisW: buildout can be made to work on windows but this needs more of a story.17:51
ChrisWwell, LEMME KNOW WHEN YA DUN AND I'LL GIVE IT A GO17:52
ChrisW(I'm a windows cave man, remember ;-) )17:52
ChrisWand cavemen, sadly, aren't brave or clever enough to put Ubuntu on their laptops :-S17:53
* ignas SMASH windows laptop!17:53
ChrisW*snivvle*17:53
*** b_52Free has quit IRC17:55
faassenME GROK NEED SMASH WINDOWS18:00
ChrisW:'(18:01
faassenME GROK MEAN SUPPORT WINDOWS18:01
ChrisWleave my windows alone, they keep the draught out18:01
faassenME GROK PET NICE WINDO18:01
*** b_52Free has joined #zope3-dev18:02
*** zagy has quit IRC18:06
mgedminonly when they're closed :)18:07
*** torkel__ has quit IRC18:18
*** b_52Centos has quit IRC18:20
*** b_52Free has quit IRC18:30
*** b_52Free has joined #zope3-dev18:31
*** rocky is now known as rocky|away18:33
*** deo has joined #zope3-dev18:34
*** opetznick has quit IRC18:43
*** b_52GM has joined #zope3-dev18:43
*** rmarianski_ has joined #zope3-dev18:44
*** grahal has joined #zope3-dev18:49
*** tarek has left #zope3-dev18:56
*** b_52Free has quit IRC18:58
*** ignas has quit IRC19:00
*** dobee has quit IRC19:10
*** zagy has joined #zope3-dev19:11
*** BjornT_ has quit IRC19:12
WebMavenI need some adapter help.19:17
ChrisWshoot19:17
WebMavenOk, I am making an app with ZAlchemy, so I am working on a dublin core adapter.19:17
ChrisWjoy19:18
WebMavenI have a RelationalDC class that stores title, description, and the two dates19:18
WebMavenNo, I'm unsure how to adapt my content class to it19:19
WebMavenSorrw, meant *now* I am unsure.19:19
ChrisWyou can't be wanting to adapt to it19:19
ChrisWit sounds like you want to adapt and instance of it and your content object to give your something that implements the dublin core interface19:20
WebMavenMmm. Probabaly.19:21
*** b_52Free has joined #zope3-dev19:21
WebMavenI actually have to instantiate it once during the content class creation to get a unique id.19:22
WebMavenbut they get instantiated on the fly from the DB.19:22
*** BjornT has joined #zope3-dev19:23
WebMavenSo, what do I need to do?19:23
ChrisWno idea I'm afraid19:23
WebMavenif you're getting hung up on the rdb stuff, just ignore it. Assume you have an alternate DC class you need to use.19:24
WebMavenDoes that help?19:26
*** alga has quit IRC19:29
WebMavenChrisW: hello?19:29
ChrisWyou're assuming I have time to sit and read this channel ;-)19:33
WebMaven:-) well, you did offer to help19:33
ChrisWno, I commented on your question...19:33
ChrisWthat's not a promise to stay here and hand hold you until your problems is solved ;)19:33
WebMavenWell, no, I suppose not.19:34
*** jkakar has joined #zope3-dev19:37
*** b_52GM has quit IRC19:38
*** faassen has quit IRC19:39
*** ChrisW has left #zope3-dev19:40
*** rmarianski__ has joined #zope3-dev19:42
*** rmarianski_ has quit IRC19:42
*** b_52GM has joined #zope3-dev19:47
*** philiKON has joined #zope3-dev19:54
*** harobed has quit IRC19:55
*** matthewrevell has quit IRC19:56
*** rmarianski_ has joined #zope3-dev19:58
*** rmarianski__ has quit IRC19:59
*** mkerrin has quit IRC20:10
*** b_52Free has quit IRC20:13
*** RaFromBRC has joined #zope3-dev20:15
*** schwendinger has quit IRC20:20
*** b_52Free has joined #zope3-dev20:21
*** rocky|away is now known as rocky20:24
*** b_52GM has quit IRC20:29
*** schwendinger has joined #zope3-dev20:33
*** schwendinger_ has joined #zope3-dev20:34
*** philiKON has quit IRC20:37
*** philiKON has joined #zope3-dev20:39
*** rmarianski__ has joined #zope3-dev20:43
*** rmarianski_ has quit IRC20:45
*** schwendinger has quit IRC20:54
*** kobold has left #zope3-dev20:59
*** yota has joined #zope3-dev21:10
*** schwendinger_ has quit IRC21:12
*** oferw has joined #zope3-dev21:15
*** schwendinger has joined #zope3-dev21:17
*** schwendinger_ has joined #zope3-dev21:18
*** rmarianski__ has quit IRC21:22
*** rmarianski__ has joined #zope3-dev21:25
*** b_52GM has joined #zope3-dev21:25
*** opetznick has joined #zope3-dev21:27
*** rmarianski has quit IRC21:29
*** rmarianski__ has left #zope3-dev21:29
*** natea|away is now known as natea21:31
*** schwendinger has quit IRC21:33
*** romanofski has joined #zope3-dev21:36
*** sureshvv has joined #zope3-dev21:37
*** lamike has joined #zope3-dev21:41
*** zagy_ has joined #zope3-dev21:48
*** lamike has quit IRC21:49
*** deo has quit IRC21:51
*** oferw has quit IRC21:51
*** b_52Free has quit IRC21:52
*** zagy has quit IRC21:54
WebMavenAdaptation is giving me a headache. This should be simple.21:59
ccombI also have a headache, but because of vocabularies and sources22:01
mgedminI once learned a way of using vocabularies that works, and just keep using it22:01
mgedminI'm a bit afraid to learn sources ;)22:01
ccombthat's exactly what I'm trying to do22:02
*** mgedmin has quit IRC22:04
WebMavenSo, I'm trying to adapt an RDB-persistent class to provide another class with Dublin Core.22:05
WebMavenAs far as I can tell, only the actual adaptation isn't working, and I'm too tired to see why.22:06
WebMavenSo, any assistance would be appreciated.22:06
WebMavenccomb have you seen csvvocabularies ?22:07
*** dunny has joined #zope3-dev22:08
*** opetznick_ has joined #zope3-dev22:09
*** opetznick has quit IRC22:09
ccombno22:12
*** whit has quit IRC22:13
ccombok I've read the readme, thanks.22:14
ccombbut I'm generating dynamic vocabularies22:14
*** b_52Free has joined #zope3-dev22:16
ccombI'm currently learning zope3 by playing with zblog, and I'm implementing category management for the blog entries.22:17
ccombbut anyone knows if category management already exists somewhere ? I guess yes ?22:17
*** HakTom has joined #zope3-dev22:19
ccomb(because I'm trying to make it completely independant from zblog and it could be used for any object.)22:21
*** jinty has quit IRC22:23
*** whit has joined #zope3-dev22:25
*** srichter has quit IRC22:28
*** sureshvv has left #zope3-dev22:30
*** whit has quit IRC22:37
*** grahal has quit IRC22:39
*** b_52Free has quit IRC22:41
*** b_52GM has quit IRC22:42
*** b_52Free has joined #zope3-dev22:42
*** rocky is now known as rocky|away22:44
*** stub has quit IRC22:47
*** deo has joined #zope3-dev22:50
*** b_52Free has quit IRC22:50
*** ignas has joined #zope3-dev22:50
*** b_52Free has joined #zope3-dev22:51
*** whit has joined #zope3-dev22:54
*** zagy_ has quit IRC22:54
WebMavenCan someone tell me what this means:22:55
WebMavenForbiddenAttribute: ('c', <rogue.za_example_4.message.HelloWorldMessage object at 0xb64cf28c>)22:55
*** zagy_ has joined #zope3-dev22:55
WebMavenwhen it comes from within an adapter22:55
timteis HelloWorldMessage an adapter?22:56
*** whit has quit IRC22:56
WebMaventhe HelloWorldMessage is the adpated object.22:56
ccombmaybe add   self.__parent__=context  ?22:56
WebMavento the adapter?22:57
ccombyes22:57
WebMavenOK.22:57
ccombI've solved a similar thing like that22:57
timtedoes HelloWorldMessage have any security declarations?22:57
*** jkakar has quit IRC22:57
timtelike <class class="...HelloWorldMessage"><require permission=".." ...> </class>22:58
WebMavenccomb: that didn't do anything.22:59
WebMaventimte: yes22:59
WebMaven    <require23:00
WebMaven      permission="zope.View"23:00
WebMaven      interface=".interfaces.IHelloWorldMessage"23:00
WebMaven      />23:00
WebMaven    <require23:00
WebMaven        permission="zope.ManageContent"23:00
WebMaven        set_schema=".interfaces.IHelloWorldMessage"23:00
WebMaven        />23:00
WebMavenWhat do you suggest?23:01
ccombthis is the declaration on the adapter HelloWorldMessage class ?23:02
WebMavenHelloWorldMessage is not an adapter23:02
timteDoes the interface include c?23:02
*** vlado has joined #zope3-dev23:02
*** whit has joined #zope3-dev23:03
WebMaventimte: no, c is a generated attribute23:03
timtegenerated?23:03
ccombWhen an attribute does not exist,  you generally get ForbiddenAttribute before  being warned that the attribute does not exist23:03
WebMaven(represents the db columns)23:03
ccombso this is a method ?23:04
WebMavenbut it exists.23:04
ccombis it also declared in the interface ?23:04
WebMavenHelloWorldMessage is a class that is mapped by SQLAlchemy to a table.23:04
WebMavenno, it is not declared.23:05
*** HakTom has quit IRC23:05
ccombThe security declaration tells set_schema=".interfaces.IHelloWorldMessage"23:05
WebMavenHmm.23:05
ccombyou have either to add c into the schema23:06
ccombor add a security declaration for c23:06
WebMavenI see.23:06
timteone could perhaps add a getColumn(col) method to the interface and then call that with c?23:07
timteif an object uses attributes on itself, does it check for security declerations then as well?23:07
WebMavenWell, actually the code is calling context.c.id23:08
WebMavenso I really just need access to id23:08
WebMavenI will explore thr SQLAlchemy API and find the most appropriate way to get that id and add a security declaration.23:08
WebMavenThanks.23:08
timteWebMaven: or use grok which doesn't use these nasty security declarations  ;)23:11
WebMavenheh.23:12
WebMavenOK, is there an opposite in schema definitions to required?23:25
WebMavencan I make a field forbidden?23:26
ccomb ¿ what for ?23:26
ccombto display it, but not modify it ?23:27
WebMavenensure it is never edited or passed as a parameter.23:27
WebMavenyes.23:27
WebMavenWell, no.23:27
WebMavenI don't even want to display it.23:27
WebMavenit's an internal value.23:27
ccombso it is an attribute, not a schema field23:27
WebMavenUh, yes.23:28
WebMavendoes that mean I can say id=0 in the interface?23:29
WebMavenin IHelloWorldMessage ?23:29
ccombid=Attribute(...23:29
WebMavenAh!23:29
WebMaventhx.23:29
*** redir has joined #zope3-dev23:34
*** RaFromBRC is now known as RaFromBRC|lunch23:45
*** schwendinger_ has quit IRC23:50
*** jodok has joined #zope3-dev23:56
*** timte has quit IRC23:57

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