*** alga has quit IRC | 00:01 | |
*** febb has quit IRC | 00:12 | |
*** febb has joined #zope3-dev | 00:12 | |
*** _srichter has joined #zope3-dev | 00:14 | |
*** jfroche has joined #zope3-dev | 00:14 | |
*** lurker has quit IRC | 00:23 | |
*** RaFromBRC|nick has quit IRC | 00:30 | |
*** strichter has quit IRC | 00:30 | |
*** benji has quit IRC | 00:31 | |
*** Ariel_Calzada has quit IRC | 00:33 | |
*** RaFromBRC has joined #zope3-dev | 00:33 | |
*** cursor has quit IRC | 00:41 | |
*** greenman has joined #zope3-dev | 00:45 | |
*** greenman has quit IRC | 00:46 | |
*** harobed has joined #zope3-dev | 00:49 | |
*** aclark is now known as aclark|away | 00:56 | |
*** jodok has quit IRC | 00:56 | |
*** rcrafton has quit IRC | 01:03 | |
*** replicant has quit IRC | 01:05 | |
*** philiKON has quit IRC | 01:18 | |
*** harobed has quit IRC | 01:21 | |
*** philiKON has joined #zope3-dev | 01:23 | |
*** Ariel_Calzada has joined #zope3-dev | 01:32 | |
*** greenman has joined #zope3-dev | 01:32 | |
*** timte has quit IRC | 01:39 | |
*** fcorrea has joined #zope3-dev | 01:47 | |
*** deo has quit IRC | 01:49 | |
*** jsadjohnson has joined #zope3-dev | 01:53 | |
*** jsadjohnson has left #zope3-dev | 01:54 | |
*** strichter has joined #zope3-dev | 01:57 | |
*** ksmith99 has joined #zope3-dev | 01:59 | |
*** febb has quit IRC | 02:00 | |
*** febb has joined #zope3-dev | 02:01 | |
*** _srichter has quit IRC | 02:01 | |
*** ksmith99 has left #zope3-dev | 02:04 | |
*** _srichter has joined #zope3-dev | 02:04 | |
*** hazmat has joined #zope3-dev | 02:06 | |
*** ChanServ sets mode: +o hazmat | 02:06 | |
*** philiKON has quit IRC | 02:11 | |
*** ccomb has quit IRC | 02:11 | |
*** Jell-O-Fishi has quit IRC | 02:12 | |
*** nathany has quit IRC | 02:13 | |
*** philiKON has joined #zope3-dev | 02:13 | |
*** spython has quit IRC | 02:15 | |
*** Jell-O-Fishi has joined #zope3-dev | 02:17 | |
*** strichter has quit IRC | 02:17 | |
*** deo has joined #zope3-dev | 02:18 | |
*** philiKON has quit IRC | 02:20 | |
*** fdrake has quit IRC | 02:31 | |
*** MrTopf has joined #zope3-dev | 02:35 | |
*** strichter has joined #zope3-dev | 03:08 | |
*** J1m has quit IRC | 03:09 | |
*** _srichter has quit IRC | 03:26 | |
*** fcorrea has quit IRC | 03:47 | |
*** malthe has quit IRC | 03:53 | |
*** jfroche has quit IRC | 03:59 | |
*** febb has quit IRC | 04:01 | |
*** RaFromBRC has quit IRC | 04:02 | |
*** hazmat has quit IRC | 04:04 | |
*** hexsprite has joined #zope3-dev | 04:05 | |
*** tjs has joined #zope3-dev | 04:05 | |
tjs | having trouble with the egg for zope.security 3.4.0b5 | 04:06 |
---|---|---|
tjs | failing to compile _proxy.c | 04:06 |
tjs | just trying out zopeproject, is anyone responsible for that around? | 04:07 |
strichter | tjs: linux? | 04:10 |
*** strichter is now known as srichter | 04:10 | |
*** ChanServ sets mode: +o srichter | 04:10 | |
tjs | yep, feisty | 04:11 |
tjs | can pastebin the error if that helps | 04:11 |
tjs | http://rafb.net/p/9vp0Zk83.html | 04:21 |
tjs | nm I'm an idiot | 04:25 |
*** niemeyer has quit IRC | 04:28 | |
*** tjs has left #zope3-dev | 04:41 | |
*** deo has quit IRC | 04:47 | |
*** deo has joined #zope3-dev | 04:48 | |
*** MrTopf has quit IRC | 04:51 | |
*** fcorrea has joined #zope3-dev | 04:58 | |
*** run|home has joined #zope3-dev | 05:08 | |
*** ousado has joined #zope3-dev | 05:17 | |
*** ousado_ has quit IRC | 05:19 | |
*** ousado_ has joined #zope3-dev | 05:29 | |
*** povbot` has joined #zope3-dev | 05:46 | |
*** ruda_porto has joined #zope3-dev | 05:48 | |
*** stub has joined #zope3-dev | 05:53 | |
*** povbot has quit IRC | 06:12 | |
*** deo has quit IRC | 06:22 | |
*** ruda_porto has quit IRC | 06:28 | |
*** Ariel_Calzada has quit IRC | 06:36 | |
*** Ariel_Calzada has joined #zope3-dev | 07:21 | |
*** naro has joined #zope3-dev | 07:23 | |
*** dobee has joined #zope3-dev | 07:24 | |
*** Jell-O-Fishi has quit IRC | 07:40 | |
*** ktwilight_ has joined #zope3-dev | 07:45 | |
*** b52lap has quit IRC | 07:48 | |
*** baijum has joined #zope3-dev | 07:51 | |
*** ktwilight has quit IRC | 07:58 | |
*** afd_ has joined #zope3-dev | 08:02 | |
*** afd_ has quit IRC | 08:10 | |
*** run|home has quit IRC | 08:26 | |
baijum | srichter, ayt ? | 08:31 |
baijum | srichter, Can you bump version number in trunk for the package you released recently ? http://wiki.zope.org/zope3/StabilizeEggPackages | 08:32 |
*** cursor has joined #zope3-dev | 08:33 | |
baijum | srichter, If release is '3.4.0', use '3.4.1dev' as next version | 08:33 |
*** jukart has joined #zope3-dev | 08:38 | |
*** jodok has joined #zope3-dev | 08:44 | |
*** greenman has quit IRC | 08:53 | |
*** davidstryker has joined #zope3-dev | 08:59 | |
*** ghendi has joined #zope3-dev | 08:59 | |
*** jpcw2002 has joined #zope3-dev | 09:01 | |
*** sorin has joined #zope3-dev | 09:07 | |
*** sorin is now known as sorindregan | 09:08 | |
*** timte has joined #zope3-dev | 09:13 | |
*** pelle_ has joined #zope3-dev | 09:18 | |
*** afd_ has joined #zope3-dev | 09:26 | |
*** yvl has joined #zope3-dev | 09:26 | |
*** sorin_ has joined #zope3-dev | 09:28 | |
*** hdima has joined #zope3-dev | 09:29 | |
*** davidstryker has left #zope3-dev | 09:31 | |
*** sorin_ has quit IRC | 09:31 | |
*** sorindregan has quit IRC | 09:34 | |
*** sorin_ has joined #zope3-dev | 09:35 | |
*** sorin_ is now known as sorindregan | 09:35 | |
*** schwendinger has joined #zope3-dev | 10:05 | |
*** agroszer has joined #zope3-dev | 10:11 | |
*** jfroche has joined #zope3-dev | 10:16 | |
*** sorindregan has quit IRC | 10:28 | |
*** davidstryker has joined #zope3-dev | 10:34 | |
*** sorindregan has joined #zope3-dev | 10:35 | |
*** Ariel_Calzada has quit IRC | 10:35 | |
*** davidstryker has left #zope3-dev | 10:36 | |
*** greenman has joined #zope3-dev | 10:41 | |
*** ccomb has joined #zope3-dev | 10:44 | |
*** povbot has joined #zope3-dev | 10:48 | |
*** agroszer has quit IRC | 10:52 | |
*** zagy has joined #zope3-dev | 10:53 | |
*** povbot` has quit IRC | 11:06 | |
*** yvl has quit IRC | 11:06 | |
*** sorin_ has joined #zope3-dev | 11:13 | |
*** yvl has joined #zope3-dev | 11:13 | |
*** Aiste has joined #zope3-dev | 11:17 | |
*** malthe has joined #zope3-dev | 11:18 | |
*** cursor has quit IRC | 11:22 | |
*** cursor has joined #zope3-dev | 11:22 | |
*** harobed has joined #zope3-dev | 11:23 | |
*** pelle_ has quit IRC | 11:26 | |
*** pelle_ has joined #zope3-dev | 11:27 | |
*** sorindregan has quit IRC | 11:28 | |
*** yvl has quit IRC | 11:37 | |
*** pyqwer has joined #zope3-dev | 11:47 | |
*** sorin_ has quit IRC | 11:53 | |
*** sorin_ has joined #zope3-dev | 11:58 | |
*** thruflo has joined #zope3-dev | 12:03 | |
* wiggy ponders adding an Ipv4 field to zope.schema | 12:06 | |
*** romanofski has joined #zope3-dev | 12:08 | |
*** cursor has quit IRC | 12:21 | |
*** sorin_ is now known as sorindregan | 12:25 | |
*** yvl has joined #zope3-dev | 12:32 | |
*** jukart_ has joined #zope3-dev | 12:43 | |
*** yvl has quit IRC | 12:46 | |
*** sorin_ has joined #zope3-dev | 12:50 | |
*** sorin_ has quit IRC | 12:52 | |
*** sorin_ has joined #zope3-dev | 12:56 | |
*** sorindregan has quit IRC | 12:57 | |
*** jukart has quit IRC | 13:00 | |
*** sorin_ is now known as sorindregan | 13:00 | |
*** ktwilight has joined #zope3-dev | 13:12 | |
*** b52laptop has joined #zope3-dev | 13:12 | |
*** ignas has joined #zope3-dev | 13:17 | |
*** ktwilight_ has quit IRC | 13:27 | |
*** ktwilight_ has joined #zope3-dev | 13:34 | |
*** afd_ has quit IRC | 13:35 | |
*** jfroche has quit IRC | 13:36 | |
*** sorindregan has quit IRC | 13:38 | |
*** sorindregan has joined #zope3-dev | 13:38 | |
*** ktwilight has quit IRC | 13:48 | |
*** ktwilight has joined #zope3-dev | 13:52 | |
*** sorindregan has quit IRC | 13:54 | |
*** sorindregan has joined #zope3-dev | 13:57 | |
*** ktwilight_ has quit IRC | 14:08 | |
*** gstratton_ has joined #zope3-dev | 14:08 | |
*** ktwilight_ has joined #zope3-dev | 14:08 | |
*** ktwilight has quit IRC | 14:09 | |
*** greenman has quit IRC | 14:12 | |
*** ktwilight has joined #zope3-dev | 14:13 | |
*** rocky has quit IRC | 14:13 | |
*** ktwilight_ has quit IRC | 14:28 | |
*** rocky has joined #zope3-dev | 14:29 | |
*** mkerrin has joined #zope3-dev | 14:30 | |
*** ktwilight has quit IRC | 14:32 | |
*** ktwilight has joined #zope3-dev | 14:34 | |
*** sorindregan has quit IRC | 14:34 | |
*** ktwilight_ has joined #zope3-dev | 14:36 | |
*** markusleist has joined #zope3-dev | 14:45 | |
*** ktwilight has quit IRC | 14:51 | |
*** Jell-O-Fishi has joined #zope3-dev | 14:52 | |
*** ktwilight has joined #zope3-dev | 14:53 | |
*** sorin has joined #zope3-dev | 15:00 | |
*** sorin is now known as sorindregan | 15:03 | |
*** jsadjohnson has joined #zope3-dev | 15:06 | |
*** ktwilight_ has quit IRC | 15:07 | |
*** jsadjohnson has quit IRC | 15:10 | |
*** ktwilight has quit IRC | 15:12 | |
*** ktwilight has joined #zope3-dev | 15:12 | |
*** benji has joined #zope3-dev | 15:16 | |
*** Aiste has quit IRC | 15:19 | |
*** niemeyer has joined #zope3-dev | 15:20 | |
*** jfroche has joined #zope3-dev | 15:25 | |
*** ktwilight_ has joined #zope3-dev | 15:33 | |
*** sorindregan has quit IRC | 15:33 | |
*** jsadjohnson has joined #zope3-dev | 15:33 | |
*** sorindregan has joined #zope3-dev | 15:35 | |
*** romanofs1i has joined #zope3-dev | 15:44 | |
*** J1m has joined #zope3-dev | 15:44 | |
*** hexsprite has quit IRC | 15:44 | |
*** ktwilight has quit IRC | 15:48 | |
*** ktwilight has joined #zope3-dev | 15:53 | |
*** romanofski has quit IRC | 15:56 | |
*** stub has quit IRC | 15:59 | |
*** MrTopf has joined #zope3-dev | 16:00 | |
*** ktwilight_ has quit IRC | 16:00 | |
*** stub has joined #zope3-dev | 16:01 | |
*** rcrafton has joined #zope3-dev | 16:01 | |
*** malthe has quit IRC | 16:05 | |
*** afd_ has joined #zope3-dev | 16:10 | |
baijum | srichter, ping ? | 16:11 |
*** fdrake has joined #zope3-dev | 16:11 | |
*** ktwilight has quit IRC | 16:12 | |
srichter | baijum: pong | 16:12 |
baijum | srichter, Can you please bump version number in trunk for the package you released recently ? | 16:12 |
baijum | srichter, If release is '3.4.0', use '3.4.1dev' as next version | 16:12 |
srichter | baijum: why? there was no consensus last week, and I Find version bumping totally stupid | 16:13 |
*** sorindregan has quit IRC | 16:13 | |
srichter | you cannot anticipate the next release | 16:13 |
*** sorindregan has joined #zope3-dev | 16:14 | |
baijum | srichter, hmm.. but we need a consensus ... | 16:14 |
*** ktwilight has joined #zope3-dev | 16:14 | |
srichter | baijum: of course we do; I check the tags in SVN anyways to amke sure | 16:15 |
srichter | baijum: what I really want is a tool | 16:16 |
baijum | srichter, I agree, a tool would be good | 16:16 |
srichter | baijum: then it is totally irrelevant what the trunk setup.py version is | 16:16 |
srichter | baijum: and then, ... I want a Zope 3 something that let's me define a stable set :-) | 16:21 |
*** sorindregan has quit IRC | 16:22 | |
*** sorindregan has joined #zope3-dev | 16:22 | |
baijum | srichter, if you are using buildout, you can use versions option to pin down versions | 16:23 |
srichter | baijum: yep, I know; I need this for the releases already :-( | 16:24 |
srichter | baijum: I just need to create some sort of Zope 3 meta-egg or whatever you want to call it and set versions on them | 16:25 |
srichter | and figure out a way I can run all the tests for every package in that configuration | 16:25 |
baijum | you can use zc.recipe.testrunner recipe for that, just list all eggs you want there | 16:26 |
srichter | baijum: right, that's just very tedious; it would be nice, if it would build that buildout.cfg for me from the dependencies | 16:27 |
baijum | you want to test only dependencies or all packages in Zope 3 ? | 16:28 |
*** afd_ has quit IRC | 16:29 | |
*** afd_ has joined #zope3-dev | 16:29 | |
baijum | If you want to test all packages, you can use extends option along with testrunner in which extends points to a url which lists all packages to be tested | 16:30 |
srichter | baijum: I want to create a set of packages (with their version numbers) that resemble a classic Zope 3 release | 16:31 |
srichter | baijum: I want to be able to run all tests in that set to ensure they work together well | 16:31 |
baijum | hmm...may be another recipe might be the way to go ... | 16:32 |
srichter | baijum: yeah, I have not thought about it very hard | 16:32 |
srichter | but basically, I want a package manifest, which then generates pretty much everything for me | 16:33 |
*** ktwilight_ has joined #zope3-dev | 16:33 | |
*** ktwilight has quit IRC | 16:37 | |
*** MrTopf has quit IRC | 16:42 | |
srichter | baijum: do you know how I can setup a global egg cache for buildout, so that it does not constantly store the same package again | 16:44 |
ignas | srichter: eggs-directory = /home/ignas/.buildout-eggs in [buildout] section works for me | 16:45 |
baijum | srichter, You mean eggs-directory option in buildout ? | 16:45 |
ignas | not sure what's the right way though | 16:45 |
srichter | baijum: ignas can I have this entry in my .buildout.cfg as well? | 16:46 |
ignas | hmm, what's .buildout.cfg ? | 16:46 |
srichter | I meant /.buildout/default.cfg | 16:47 |
* ignas goes to try out | 16:47 | |
ignas | cool it works :D | 16:48 |
ignas | thanks | 16:48 |
srichter | great! | 16:48 |
ignas | i guess i should move my .buildout-eggs to .buildout/eggs now :) | 16:49 |
baijum | srichter, may be you can also use newest = false option | 16:49 |
*** Jell-O-Fishi has quit IRC | 16:49 | |
srichter | baijum: for what? | 16:50 |
baijum | srichter, from buildout doc: With this setting, buildout will not seek | 16:50 |
baijum | new distributions if installed distributions satisfy it's | 16:50 |
baijum | requirements. | 16:50 |
srichter | baijum: right, newest = false generically is a bit dangerous though | 16:51 |
srichter | I prefer the explicit -N option | 16:51 |
ignas | a question | 16:52 |
*** ktwilight has joined #zope3-dev | 16:53 | |
ignas | importing ZopeMessageFactory from the old location | 16:53 |
ignas | is giving deprecation warnings | 16:53 |
ignas | that tell you to import it from zope.i18n | 16:53 |
ignas | though philikon told me that it's a bad idea | 16:53 |
ignas | should the warning be fixed? | 16:53 |
*** stub has quit IRC | 16:54 | |
baijum | ignas, where was the old location of ZopeMessageFactory ? | 16:54 |
srichter | ignas: I don't think it is a bad idea at all | 16:54 |
srichter | baijum: it was in zope.app.i18n | 16:55 |
srichter | which pulled ina alot of stuff | 16:55 |
srichter | I think we moved it to zope.i18nmessageid | 16:55 |
baijum | now it is in zope.i18nmessageid, is it ? | 16:55 |
srichter | because any package worrying about i18n uses zope.i18nmessgeid | 16:55 |
baijum | ah. ok | 16:55 |
srichter | it was a compromize to massively reduce inter-dependencies | 16:55 |
ignas | srichter: the point is that zope.i18nmessageid only has that factory since 3.4.2 | 16:56 |
ignas | and most people do not update dependencies | 16:56 |
ignas | and such "fix" for the warning | 16:56 |
ignas | is not really backwards compatible | 16:56 |
srichter | why not? | 16:56 |
srichter | we do this all the time | 16:56 |
srichter | remove from one location and move it to another | 16:56 |
srichter | and provide a warning in the old location | 16:57 |
*** pelle_ has quit IRC | 16:57 | |
ignas | yes, but every package that starts using the new location, should at least explicitly state that it need the version of the new location package | 16:57 |
ignas | that is new enough | 16:57 |
srichter | yep, you are probably right :-( | 16:58 |
srichter | oh man, this all sucks | 16:58 |
ignas | and when you download zope.app.catalog 3.5.0a3 for example you suddenly realise that it does not work with your | 16:58 |
ignas | zope.i18nmessageid 3.4.0 | 16:59 |
ignas | that's not a hypothetical example ;) | 17:00 |
srichter | oh, I know | 17:00 |
*** J1m has quit IRC | 17:01 | |
srichter | this is the perfect example, why we need to keep track of a stable set | 17:01 |
srichter | the situation will not get better, just worse | 17:01 |
ignas | in my very humble opinion | 17:01 |
srichter | the more development diverges from the trunk the worse the issue will get | 17:01 |
ignas | the assumption that everyone who can commit, should have the right to release | 17:02 |
ignas | is a bit flawed :( | 17:02 |
srichter | I don't think so | 17:02 |
ignas | everyone who has right to commit should be able to release N.N.Ndev eggs | 17:02 |
srichter | I think we are blaming people, where we should blame the lack of tools | 17:03 |
ignas | i think releasing is inherently complex | 17:03 |
ignas | in svn | 17:03 |
srichter | I have already spent at least 15 working days dealing with eggs; if we would have one large Zope trunk, this is the time I would spent for 3 full release cycles (including alphas and betas) | 17:03 |
ignas | you can revert a wrong commit | 17:03 |
ignas | you can't unrelease an egg | 17:04 |
srichter | the problem is that we lack man-power | 17:04 |
srichter | I pointed out the issue back when eggs started and was ignored | 17:04 |
baijum | srichter, I agree | 17:04 |
srichter | we effectively have something like a Linux distribution now | 17:05 |
ignas | a bad one :( | 17:05 |
srichter | there are a lot of people trying to get a Linux distribution right | 17:05 |
srichter | ignas: yep | 17:05 |
srichter | looking at Linux distros I realize we need some staging mechanism | 17:06 |
srichter | I think a Zope 3 meta-egg (or whatever form it would take) that tracks a stable set would be a first good step | 17:06 |
* baijum leaving, bye all | 17:07 | |
ignas | yes, otherwise done the right way an egg release is way too difficult to be left to everyone, i mean - every egg must be tested with all the eggs in it's "dependency range" | 17:07 |
*** baijum has quit IRC | 17:07 | |
*** ktwilight_ has quit IRC | 17:08 | |
ignas | i don't even know how to do that, but releasing an new version of an egg so i would be sure i won't break schooltool, without having access to schooltool code seems very hard to do | 17:08 |
ignas | though that's what should be done when releasing a "stable" 3.4.2 or 3.4.3 for example egg | 17:09 |
srichter | yep, exactely | 17:09 |
srichter | this was exactely Roger's complaint | 17:10 |
ignas | i am wondering how you will resolve evolution issues | 17:12 |
srichter | ignas: manually by slowly updating a stable set | 17:12 |
ignas | you see i think - evolution scripts will have to be split up among packages | 17:12 |
ignas | and if that happens | 17:12 |
ignas | you won't have control over the order of execution of evolution scripts anymore | 17:13 |
srichter | absolutely, they have to be split up | 17:13 |
srichter | I agree | 17:13 |
srichter | it is very sad to see that none of those issues were worked out before | 17:13 |
*** ktwilight_ has joined #zope3-dev | 17:14 | |
*** sorindregan has quit IRC | 17:15 | |
*** aclark|away is now known as aclark | 17:15 | |
*** Jell-O-Fishi has joined #zope3-dev | 17:15 | |
wiggy | how do you test for a permission? | 17:16 |
ignas | canAccess and canWrite | 17:17 |
wiggy | custom permission | 17:17 |
ignas | yes | 17:18 |
ignas | it's for custom permissions | 17:18 |
ignas | look at the signature | 17:18 |
ignas | hmm, ok, maybe not | 17:18 |
ignas | well - it is not checking for a permission | 17:18 |
wiggy | looks like I have to use checkPermission | 17:19 |
ignas | it is checking whether you have access to the attribute | 17:19 |
*** whit has joined #zope3-dev | 17:21 | |
*** jfroche has quit IRC | 17:23 | |
wiggy | what permission does canAccess check? | 17:25 |
*** ktwilight has quit IRC | 17:28 | |
*** fdrake has left #zope3-dev | 17:29 | |
*** ghendi has quit IRC | 17:30 | |
ignas | wiggy: it's a capability based check | 17:31 |
*** hazmat has joined #zope3-dev | 17:31 | |
*** ChanServ sets mode: +o hazmat | 17:31 | |
wiggy | but what manages that capability? | 17:31 |
ignas | it checks whatever permission was required to "read" that attribute was set in zcml | 17:31 |
ignas | look at class directives | 17:31 |
ignas | so if you set that to access "title" of an object you need "my-package.read" permission | 17:32 |
* wiggy has zalchemy objects here, non-ZODB | 17:32 | |
ignas | there is no difference | 17:32 |
wiggy | and I need to combine dynamic locales roles into that | 17:32 |
ignas | you still have <class > directives | 17:32 |
ignas | it will check if currently logged in principal | 17:32 |
wiggy | hm | 17:32 |
ignas | has this permission | 17:32 |
wiggy | where is that stuff defined? | 17:33 |
ignas | so it will translate into "check what permission is needed to read this attribute" and checkPermission("permission", object) | 17:33 |
ignas | which stuff? | 17:33 |
wiggy | the <class> stuff which control this | 17:33 |
ignas | zcml | 17:33 |
wiggy | so I can look up the right syntax to us | 17:33 |
ignas | oh, zcml directives | 17:33 |
*** ktwilight has joined #zope3-dev | 17:34 | |
ignas | http://apidoc.zope.org/++apidoc++/ZCML/http_co__sl__sl_namespaces.zope.org_sl_zope/class/index.html | 17:34 |
*** hdima has quit IRC | 17:34 | |
*** RaFromBRC has joined #zope3-dev | 17:35 | |
* wiggy suspects that breaks with grok stripping security proxies | 17:36 | |
ignas | yes canAccess will break | 17:36 |
wiggy | but I can sort that out | 17:37 |
ignas | because the first step is performed by security proxy | 17:37 |
ignas | or maybe not, hmm | 17:37 |
wiggy | now.. if you would also happen to know how local roles work :) | 17:37 |
ignas | you should try it | 17:37 |
*** nathany has joined #zope3-dev | 17:37 | |
ignas | wiggy: no idea, sorry, i am using a custom security policy for more than a year already | 17:37 |
wiggy | ah | 17:38 |
* wiggy is hoping for an adapter that returns a list of local roles for a principal | 17:38 | |
ignas | and roles come in the checkPermission step | 17:38 |
ignas | principal has an attribute that lists all the ids for roles he has iirc | 17:38 |
wiggy | no, only groups | 17:38 |
ignas | oh, yes | 17:39 |
ignas | just saw that | 17:39 |
*** schwendinger has quit IRC | 17:39 | |
ignas | wiggy: the logic for checking roles is described in the class ZopeSecurityPolicy | 17:42 |
ignas | but it's a bit convoluted | 17:42 |
ignas | for very high values of a bit ;) | 17:42 |
wiggy | the trick seems to be IPrincipalRoleMap(parent, None) | 17:43 |
wiggy | which is queried in cached_principal_roles | 17:43 |
ignas | yes, indeed | 17:44 |
ignas | if you will be modifying it in a running application | 17:45 |
ignas | and storing roles <-> principal pairs in the database | 17:45 |
ignas | do not forget to clean it up when a principal is removed ;) | 17:46 |
*** ktwilight_ has quit IRC | 17:46 | |
*** MJ has joined #zope3-dev | 17:46 | |
*** Ariel_Calzada has joined #zope3-dev | 17:47 | |
wiggy | I'm not storing anything | 17:47 |
*** schwendinger has joined #zope3-dev | 17:52 | |
*** ktwilight_ has joined #zope3-dev | 17:53 | |
*** rmarianski has joined #zope3-dev | 18:01 | |
*** ktwilight has quit IRC | 18:08 | |
*** hazmat has quit IRC | 18:10 | |
*** timte has quit IRC | 18:11 | |
*** ktwilight has joined #zope3-dev | 18:14 | |
*** jsadjohnson has quit IRC | 18:20 | |
*** whit has quit IRC | 18:23 | |
*** TresEquis has joined #zope3-dev | 18:26 | |
*** ktwilight_ has quit IRC | 18:28 | |
*** jfroche has joined #zope3-dev | 18:35 | |
*** jsadjohnson has joined #zope3-dev | 18:41 | |
*** hazmat has joined #zope3-dev | 18:45 | |
*** ChanServ sets mode: +o hazmat | 18:45 | |
*** jukart_ has quit IRC | 18:45 | |
*** ktwilight has quit IRC | 18:48 | |
*** afd__ has joined #zope3-dev | 18:54 | |
*** Ariel_Calzada has left #zope3-dev | 18:59 | |
*** harobed has quit IRC | 19:03 | |
*** afd_ has quit IRC | 19:09 | |
*** schwendinger has quit IRC | 19:16 | |
*** pyqwer has quit IRC | 19:16 | |
*** ignas has quit IRC | 19:23 | |
*** MJ is now known as MJ|dinner | 19:24 | |
*** RaFromBRC has quit IRC | 19:26 | |
*** replicant has joined #zope3-dev | 19:26 | |
*** schwendinger has joined #zope3-dev | 19:29 | |
*** jodok has quit IRC | 19:34 | |
*** hazmat has quit IRC | 19:35 | |
*** redir has joined #zope3-dev | 19:35 | |
wiggy | how does one grant a role to a group through python? | 19:38 |
wiggy | I was expecting a IPrincipalRoleManager utility, but that isn't there | 19:39 |
*** markusleist has quit IRC | 19:41 | |
*** naro has quit IRC | 19:41 | |
*** agroszer has joined #zope3-dev | 19:42 | |
TresEquis | wiggy: you could look at what the ZCML handlers do | 19:57 |
wiggy | finally figured it out | 19:57 |
wiggy | took me 5 hours to implement user management and security for a grok app | 19:57 |
wiggy | the pain of learning a new environment | 19:57 |
*** whit has joined #zope3-dev | 19:58 | |
*** jodok has joined #zope3-dev | 20:02 | |
redir | wiggy I feel your pain | 20:09 |
*** davidstryker has joined #zope3-dev | 20:18 | |
*** davidstryker has left #zope3-dev | 20:18 | |
*** jukart has joined #zope3-dev | 20:24 | |
*** MrTopf has joined #zope3-dev | 20:25 | |
*** redir has quit IRC | 20:30 | |
*** ktwilight has joined #zope3-dev | 20:31 | |
*** RaFromBRC has joined #zope3-dev | 20:33 | |
*** ktwilight_ has joined #zope3-dev | 20:33 | |
*** ruda_porto has joined #zope3-dev | 20:34 | |
*** ktwilight_ has quit IRC | 20:37 | |
*** sm has quit IRC | 20:38 | |
*** redir has joined #zope3-dev | 20:39 | |
*** RaFromBRC has quit IRC | 20:42 | |
*** pelle_ has joined #zope3-dev | 20:47 | |
*** thruflo has quit IRC | 20:47 | |
*** ktwilight has quit IRC | 20:48 | |
*** MrTopf has quit IRC | 20:50 | |
*** MrTopf has joined #zope3-dev | 20:51 | |
*** salfield has joined #zope3-dev | 21:00 | |
*** mkerrin has quit IRC | 21:10 | |
*** dobee has quit IRC | 21:13 | |
rocky | anyone know the traditional way to feed the "extra" information into a menuItem or subMenuItem ? | 21:29 |
rocky | doesn't look to be a zcml attribute | 21:29 |
*** ktwilight has joined #zope3-dev | 21:31 | |
*** mgedmin has joined #zope3-dev | 21:32 | |
wiggy | it's a dictionary passed in as a parameter to the constructor | 21:32 |
*** ktwilight_ has joined #zope3-dev | 21:34 | |
*** spython has joined #zope3-dev | 21:34 | |
rocky | wiggy: indeed, but that means there's no way to use zcml to include or somehow generate the "extra" information which seems odd since the directive callbacks take it as an argument | 21:34 |
*** ktwilight_ has quit IRC | 21:34 | |
*** jukart_ has joined #zope3-dev | 21:35 | |
*** mgedmin has quit IRC | 21:35 | |
*** jukart has quit IRC | 21:36 | |
wiggy | no idea | 21:36 |
*** zagy has quit IRC | 21:36 | |
wiggy | for some reason we can't use that zcml in plone 3 anyway | 21:36 |
spython | Hi, I'm have a zopecomponent in which you add stuff via a function "setMessage(...)" how do I create an "addform" for this? | 21:38 |
spython | I can't use AddForm because no object is actually created, right? | 21:38 |
wiggy | wrong | 21:38 |
wiggy | just use a custom save method | 21:38 |
spython | ah | 21:39 |
spython | just override create ? | 21:39 |
spython | and return None in it | 21:39 |
spython | and run setMessage(...) in it.. | 21:39 |
*** ktwilight has quit IRC | 21:48 | |
*** philiKON has joined #zope3-dev | 21:49 | |
*** replicant is now known as hazmat | 22:01 | |
*** ChanServ sets mode: +o hazmat | 22:01 | |
*** philiKON has quit IRC | 22:01 | |
*** philiKON has joined #zope3-dev | 22:04 | |
*** MJ|dinner is now known as MJ | 22:09 | |
spython | hmm, this isn't working | 22:10 |
spython | wiggy: can you be a bit more specific? :O | 22:10 |
wiggy | just look at what zope.formlib does | 22:10 |
spython | ah found the error...AddForm.nextURL is accessing self.context.nextURL ... which doesn't exist | 22:12 |
spython | yeah, need to read the source some more | 22:12 |
WebMaven | srichter: ping | 22:15 |
*** wreutz has joined #zope3-dev | 22:16 | |
*** wreutz has left #zope3-dev | 22:19 | |
*** jukart_ has quit IRC | 22:20 | |
*** greenman has joined #zope3-dev | 22:21 | |
*** rmarianski has quit IRC | 22:33 | |
*** rmarianski has joined #zope3-dev | 22:39 | |
*** ksmith99 has joined #zope3-dev | 22:47 | |
*** wreutz_____ has joined #zope3-dev | 22:58 | |
*** wreutz_____ has left #zope3-dev | 22:59 | |
*** spython has quit IRC | 23:22 | |
*** rlo has joined #zope3-dev | 23:33 | |
*** harobed has joined #zope3-dev | 23:37 | |
*** MJ has quit IRC | 23:39 | |
*** redir has quit IRC | 23:44 | |
*** redir has joined #zope3-dev | 23:44 | |
*** ktwilight has joined #zope3-dev | 23:47 | |
*** philiKON has quit IRC | 23:48 | |
*** philiKON has joined #zope3-dev | 23:48 | |
*** jfroche has quit IRC | 23:50 | |
*** rlo has quit IRC | 23:51 | |
*** ousado_ has quit IRC | 23:53 | |
*** ousado_ has joined #zope3-dev | 23:54 | |
*** ruda_porto has quit IRC | 23:57 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!