IRC log of #zope3-dev for Tuesday, 2007-08-28

*** norro has joined #zope3-dev00:11
*** jinty has quit IRC00:11
*** Ariel_Calzada has joined #zope3-dev00:20
*** jsadjohnson has joined #zope3-dev00:21
*** ChanServ sets mode: +o srichter00:23
*** nerdalert has quit IRC00:32
*** jodok has quit IRC00:49
*** jodok has joined #zope3-dev00:50
*** Newfie2007 has quit IRC00:52
*** spython has quit IRC00:52
*** netshade has quit IRC01:03
*** jbb666 has joined #zope3-dev01:29
*** jbb666 has quit IRC01:31
*** b52lap has joined #zope3-dev01:34
*** timte has quit IRC01:40
*** Ariel_Calzada has quit IRC01:44
*** jsadjohnson has quit IRC01:49
*** jsadjohnson has joined #zope3-dev01:50
*** srichter has quit IRC01:51
*** b52laptop has quit IRC01:52
*** b52lap is now known as b52laptop01:52
*** norro has quit IRC02:21
*** J1m has quit IRC02:23
*** jbb666 has joined #zope3-dev02:33
*** nathany has quit IRC02:39
*** deo has quit IRC02:40
*** benji has quit IRC02:46
*** alecm has quit IRC02:46
*** SteveA has quit IRC02:46
*** benji has joined #zope3-dev02:47
*** alecm has joined #zope3-dev02:47
*** SteveA has joined #zope3-dev02:47
*** jsadjohnson has quit IRC02:56
*** cbcunc is now known as __cbcunc__03:06
*** philiKON has quit IRC03:13
*** pbugni has quit IRC03:23
*** b52laptop has quit IRC03:51
*** srichter has joined #zope3-dev04:10
*** ChanServ sets mode: +o srichter04:11
*** jpfarias has joined #zope3-dev04:14
jpfariashi04:15
jpfariasgood evening04:15
jpfariasI'm having this weird hurry.query behaviour04:15
jpfariasa query is returning some objects with __parent__ being None04:15
jpfariashow is that possible?04:15
*** benji_ has joined #zope3-dev04:19
jpfariasbenji_: ping04:19
benji_jpfarias: pong04:21
jpfariashey04:21
jpfariasI'm having this problem with hurry.query04:21
jpfariasu think u can help?04:21
*** benji has quit IRC04:21
*** benji_ is now known as benji04:21
jpfariasa query is returning some objects with __parent__ being None04:21
* jpfarias using grok04:22
benjiI have never used grok or burry.query; sorry04:22
jpfarias:-(04:22
jpfariaswell04:22
jpfariasu used catalogs?04:22
benjinot enough to help someone else with them04:23
srichterhurry.query is cool :-)04:23
jpfariashow could a search return objects with no parent?04:23
benjijpfarias: srichter just volunteered to help04:23
jpfariasthat is just weird04:23
jpfariasbenji: yeah :-)04:23
srichterbe I do not knwo grok at all either04:23
jpfariaslol04:23
jpfariaswell04:24
jpfariasjust trying to figure why a search returns objects with no parent04:24
jpfariasthe search should return 293 objects04:24
jpfariasbut returns 60504:24
benjiI suspect they had no parrent to start with; I doubt the cataloging is messing with them04:24
srichterthere is no requirement in the catalog or query framework that returned objects must have parents04:24
jpfariasall others (605 - 293) have no parent04:24
srichtercatalog does absolutely nothing to objects04:25
benjigotta go guys; see you tomorrow04:25
srichterin fact it deals with ids of objects04:25
jpfariasok, c ya benji04:25
jpfariassrichter:04:25
*** benji has left #zope3-dev04:25
jpfariasso04:25
jpfariasI'm wondering04:25
jpfariashow come the query find the objects if they are not hooked to the application?04:25
jpfariasif they have no parent04:25
srichteryour subscriber probably picks up more objects than you expect04:25
jpfariasI dunno what it means if they have no parent04:26
srichterdid you check what objects are being returned?04:26
jpfariasthey don't belong to anything04:26
jpfariasjust weird04:26
jpfariasthe objects seems fine04:26
jpfariasjust don't belong to anything04:27
srichterare they of the right type04:27
jpfariasyes04:27
jpfariasand worst yet is04:28
jpfariasas they don't belong to anything04:28
jpfariasI can't remove them from zodb04:28
srichterare those object location proxied?04:28
jpfariasdunno04:28
jpfariashow do I know?04:28
jpfariasthey should not be04:28
srichterchecking the type04:28
srichtertype(obj)04:28
jpfariaslemme check04:28
jpfariasthey are of the expected class04:29
srichterok04:29
jpfariasI can't see even how they can exist04:30
jpfariaslol04:30
srichterI would put a trace at your object event subscriber that creates the int id for the object04:30
srichterthen trace back where the object is created04:31
jpfariaswell04:31
jpfariasthey were created already04:31
jpfarias:-)04:31
jpfariasso04:32
srichterok, repeat the pattern then04:32
jpfariasI did this weird thing too04:32
jpfariasI had the catalog04:32
jpfariasthen wanted to change it04:32
jpfariasso I changed it in code04:32
jpfariasthen restarted zope04:32
jpfariasand made a new app04:32
jpfariasto register the catalog04:33
jpfariasthen unregistered and deleted old catalog from old app04:33
srichterI don't know what "make new app" means04:33
jpfariaslol04:33
jpfariasok04:33
jpfariasit a grok application04:33
jpfariasit like a separate site04:33
jpfariasin same zope3 instance04:33
jpfariaswith own site manager04:34
jpfariasmakes sense now?04:34
srichterok, so you created a new instance of your site04:35
jpfariasyeah04:35
jpfariasand copied new catalog from new site04:35
jpfariasto pre-existing site04:35
jpfariasthen registered it on old site04:36
jpfariasgot it?04:36
jpfariasand finally deleted new site04:36
jpfariasthat I created just to copy the catalog04:36
jpfariasI dunno what is correct procedure to change a catalog04:36
jpfarias:-(04:37
jpfariasthat is my way04:37
jpfariaslol04:37
srichteryou should check out the configurator04:37
srichterit allows you to setup any object repeatedly04:37
jpfariaswhat is configurator?04:37
srichteralso, generations might be what you are looking for04:38
srichterhttp://svn.zope.org/z3c.configurator/trunk/src/z3c/configurator/README.txt?rev=78388&view=auto04:38
*** strichter has joined #zope3-dev05:11
*** povbot` has joined #zope3-dev05:28
*** WebMaven has quit IRC05:33
*** WebMaven has joined #zope3-dev05:34
*** Cripps has joined #zope3-dev05:39
Crippsheya folks. Who's usually around here for the next 9 hours?05:39
*** povbot has quit IRC05:40
*** alecm has joined #zope3-dev05:51
*** alecm has quit IRC06:18
WebMavenCripps: well, in a few hours the folks in EU will start getting up.06:21
*** rcrafton has quit IRC06:22
*** stub has joined #zope3-dev06:42
CrippsFXWebMaven: good to know ... I'll be ready for them ;)06:50
*** dobee has joined #zope3-dev07:50
*** greenman has quit IRC07:56
*** strichter has quit IRC07:59
*** jukart has joined #zope3-dev08:13
*** natea_ has joined #zope3-dev08:16
*** natea_ has quit IRC08:17
*** cursor has joined #zope3-dev08:18
CrippsFXgood morning Europe :P08:20
*** kleist has joined #zope3-dev08:23
*** zagy has joined #zope3-dev08:39
*** sorin has joined #zope3-dev08:46
*** sorin is now known as sorindregan08:47
*** afd has joined #zope3-dev08:47
*** afd has quit IRC08:51
*** stub has quit IRC08:59
*** jodok has quit IRC08:59
*** zagy has quit IRC09:02
*** zagy has joined #zope3-dev09:03
*** romanofski has quit IRC09:05
CrippsFXso, assuming I'm using session based authentication (instead of the cookie-based authentication outlined in Phil's book), how would I get " any ... IBrowserFormChallenger plugin to redirect to wclogin.html instead of zope's standard form" (or in my chase shiplogin.html)?09:07
*** zagy has quit IRC09:10
*** zagy has joined #zope3-dev09:11
*** afd has joined #zope3-dev09:11
*** jodok has joined #zope3-dev09:16
*** ghendi has joined #zope3-dev09:17
*** arnarl has joined #zope3-dev09:24
*** dunny has quit IRC09:24
CrippsFXhm. So apparently the way to change this via the sitemanager is to go to http://host/site/++etc++site/mypau/sessionplugin/@@edit.html   ... how would I change this programatically? doing site.getSiteManager()['mypau']['pluginName'].Loginpagename = "mylogin.html"; but this isn't reflected in the edit view for the BrowserFormChallenger.09:32
CrippsFXwow, that last sentence made no sense. I tried doing (insert the previous python command here), but it was not reflected in the aforementioned edit view.09:33
CrippsFXahh, I checked the introspector ... apparently the correct attribute name is "loginpagename" not "Loginpagename"09:42
*** greenman has joined #zope3-dev09:45
*** romanofski has joined #zope3-dev09:53
*** afd has quit IRC09:57
romanofskimoin :)09:58
CrippsFXromanofski: moin :)09:58
CrippsFXwie geht's, meinen freund?09:59
romanofski:D09:59
CrippsFXach so. Mir auch ;)09:59
romanofskiVielen Dank der Nachfrage. Gut und Dir?09:59
romanofskihahaha09:59
CrippsFX:)10:00
CrippsFXromanofski: I'm about two steps away from having a working Authentication system for a demo of the app we're working on.10:02
CrippsFXgo me!10:02
romanofskiCrippsFX: W00t! w000t!10:20
CrippsFX:)10:20
*** jinty has joined #zope3-dev10:24
CrippsFXmorning jinty10:24
jintyCrippsFX: moin10:24
*** philiKON has joined #zope3-dev10:32
CrippsFXgood morning philiKON10:32
philiKONhi10:33
CrippsFXphiliKON: I'm about 10 times closer to having the authentication completed than I was when we were chatting yesterday afternoon :)10:34
philiKONgood10:35
CrippsFXyep ... I *did* have another question, but it got answere by reading the section for the Authenticator plugin again :)10:35
*** markusleist has quit IRC10:48
CrippsFXphiliKON: I'm starting to understand the way local authentication works .. and I must say, it really is pretty slick :)10:49
*** yvl has joined #zope3-dev10:54
*** ignas has joined #zope3-dev11:07
*** ccomb has joined #zope3-dev11:46
*** ferrafox has joined #zope3-dev12:12
*** naro has joined #zope3-dev12:15
*** mkerrin has joined #zope3-dev12:16
*** ccomb has quit IRC12:16
CrippsFXokay .. I have the PasswdAuthenticator plugin registered, and I have the loginform set to shiplogin.html ... when I use site/@@shiplogin.html I am returned to shiplogin.html regardless of whether or not I enter valid login information (according to the passwd-like file). I'm pretty sure this means I am missing something. Additionally: how do I assign roles to the principals located in the passwd-like file?12:31
ignasand what happens when you enter the address of some other view that requires you to be authenticated to access it?12:36
ignasare you redirected to the login form?12:36
*** b52laptop has joined #zope3-dev12:37
*** spython has joined #zope3-dev12:40
CrippsFXignas: no, I get the popup box for global authentication.12:43
ignassomething is broken then ;) and your utility is not being used for authentication12:46
CrippsFXignas: so it would seem. I've followed (to the best of my ability) Phil's book, except instead of using cookie-based credentials, I added and registered a session-based credentials utility to my siteManager programatically on site instantiation12:47
ignasmay i suggest you doing it by the book, making sure it works and then changing it to what you need12:48
ignasso you would know which change breaks stuff12:48
CrippsFXignas: sounds reasonable.12:48
CrippsFXignas: I'll go by the letter of the book, and if I have any troubles afterwards I'll report back.12:50
CrippsFXthanks.12:51
spythonhi, I'm kind of sketching a security policy in my head here..  any ideas guidelines on achieving: "a principal is only allowed to edit a Foo if it was created by himself"..12:54
spythonI'm suspecting you need to do some check in python code as well, or maybe zcml magic? :)12:55
spythonhmm, what if i define these roles: "bar.EditOwnItem" and "bar.EditItem"..   and when a user tries to edit an item it is allowed if the principal has the EditItem role, if it has EditOwnItem i do further checks..12:59
*** MJ has joined #zope3-dev13:00
spythonbut that leaves me wondering what permission i write for the item.. meh13:00
* spython thinks out loud13:01
*** dunny has joined #zope3-dev13:02
CrippsFXspython: you *could* just use the "EditItem" role, but use annotations for the items you only want the creating user to edit ... i.e. if the user in question is the one who created the item, they're allowed to edit it, else, access denied.13:04
CrippsFXwait ... that does somewhat the opposite of what you're trying ... but a similar method could be used ... if the creating user of an item is not the current user, then the current user is not allowed to edit it.13:05
ignasspython: iirc there is such a thing called grants13:05
spythonI think I'm overcomplicating this :)13:05
ignaspersistent information stored on objects about what roles/permissions does someone have on some object13:06
ignasthough - it is not nice when you delete a principal, then create a new one with the same username, and tada he has all the permissions the old user had13:07
ignasunless you cleanup13:07
spythonoh13:07
ignasschooltool was using grants prior to migrating to a different security policy13:08
spythonok13:08
ignaswe just decided that storing access information as a state in the database is not cutting for us13:10
spythonhow does it work now?13:11
ignasshiny magic13:11
ignasand pixie dust13:12
spythonwhere can i download, or is it still beta13:12
spythonyeah, it's a joke13:13
spython:)13:13
ignasit's not packaged to work without schooltool13:13
ignasat the moment13:13
ignasthough anyone skilled with zope could do that in a day13:13
ignasand it's GPL13:13
ignashttp://source.schooltool.org/trac/browser/trunk/schooltool/src/schooltool/securitypolicy/README.txt13:13
ignasis the how it works part13:14
ignashttp://source.schooltool.org/ - info about code repository13:14
ignasif you want to try using it13:14
spythoninteresting13:16
ignascredit for the idea goes to SteveA ;)13:18
*** markusleist has joined #zope3-dev13:20
spython:)13:25
*** projekt01 has joined #zope3-dev13:48
*** Ariel_Calzada has joined #zope3-dev14:13
*** rcrafton has joined #zope3-dev14:33
*** mgedmin has joined #zope3-dev14:48
*** greenman has quit IRC14:52
*** jinty_ has joined #zope3-dev14:55
*** jinty has quit IRC14:55
*** Aiste has quit IRC15:00
*** Aiste has joined #zope3-dev15:01
*** dunny has quit IRC15:02
*** srichter has joined #zope3-dev15:14
*** reco has joined #zope3-dev15:17
*** Aiste_ has joined #zope3-dev15:20
*** Aiste has quit IRC15:21
*** Aiste_ is now known as Aiste15:22
*** rocky has quit IRC15:31
*** rocky has joined #zope3-dev15:39
*** ignas has quit IRC15:40
*** Ariel_Calzada has quit IRC15:42
*** J1m has joined #zope3-dev15:49
*** jsadjohnson has joined #zope3-dev16:02
*** afd has joined #zope3-dev16:03
*** benji has joined #zope3-dev16:03
*** ChanServ sets mode: +o srichter16:09
CrippsFXhey srichter ... did you email my boss yet?16:10
srichterCrippsFX: yes16:11
CrippsFXsrichter: how did that go ... has he replied yet?16:12
srichterno response yet16:12
CrippsFXhe may take a few weeks to even consider it ... we're coming up to the beginning of the school year, which is ├╝ber busy.16:13
*** arnarl has quit IRC16:17
CrippsFXdoes anybody know why I might be getting a system error with "ForbiddenAttribute: ('cookie_name', <ship.cookiecredentials.CookieCredentialsPlugin object at 0xb47b21ac>)" for http://host/site/++etc++site/mypau/cookie/@@edit.html when I followed the examples in chapter 22 of phil's book?16:17
CrippsFXI know it *must* be an error somewhere ... but I'm having a hard time thinking of where the error could actually be.16:18
CrippsFXmypau is the name of the PAU, and cookie is the name of the Cookie-based credentialplugin16:18
afdCrippsFX: maybe you're missing a class declaration...16:18
CrippsFXafd: any ideas where I should start looking for that missing class definition?16:19
afdor the CookieCredentialsPlugin is missing it16:19
CrippsFXafd: I copied the CookieCredentialsPlugin right out of the book.16:19
afdForbiddenAttribute usually means that you're trying to edit an attribute for a class that doesn't have security assertions for that attribute16:20
afdusually a <require> declaration inside the <class>16:20
CrippsFXthe require declaration should be inside the interface, correct?16:20
afd<class class=".app.Cookie"><require set_schema=".interfaces.ICookie" /><require interface=".interfaces.ICookie" /></class>16:21
*** arnarl has joined #zope3-dev16:21
afdsomething like that...16:21
afdups16:21
CrippsFXyeah, it's in there :/16:21
afdinside each of the requires you need a "permission='zope.Something' "16:21
afdrequire permission for attributes...16:21
afdCrippsFX: then it's odd, make sure that cookie_name is covered by those declarations16:22
CrippsFXafd: yeah the "required=True" is in the schema attribute for cookie.cookie_name16:22
CrippsFXor, rather, for CookieCredentialsPlugin.cookie_name16:22
CrippsFXafd: heh ... I'm a dumbass ... I totally missed the site-level configure.zcml ... I was too busy comparing my code to the site/browser level code ;)16:26
afd:)16:26
CrippsFXafd: although, had you not mentioned the <class> declarations, I wouldn't even have thought of it ... thanks :)16:26
afdnp16:26
*** deo has joined #zope3-dev16:34
CrippsFXalright. Now I get redirected to the login form when I try to access something I shouldn't as an unauthenticated user :)16:39
CrippsFX... now ... how do I assign roles to principals that I specify in the passwd-like file?16:39
afdCrippsFX: try to use the Grant ZMI page16:44
*** ferrafox has quit IRC16:45
*** ferrafox has joined #zope3-dev16:45
*** kleist has quit IRC16:46
*** cursor has quit IRC16:50
*** __cbcunc__ is now known as cbcunc16:54
CrippsFXafd: I'm actually looking for a way to do it programatically.16:57
instantfooisn't it done programmatically in the book?17:02
CrippsFXinstantfoo: the passwd file is populated programatically, but roles aren't assigned programatically.17:03
instantfoo22.3.6 -> row 41-4417:03
CrippsFXinstantfoo: well I'll be damned. I guess that's what I get for wanting to skip the sign-up stuff.17:04
instantfoo:)17:05
CrippsFX:/17:05
*** jbb666 has quit IRC17:12
*** ghendi has quit IRC17:22
CrippsFXhm ... there appears to be something wrong with the grant page. My traceback is located here: http://www.pastebin.ca/67353617:23
*** yvl has quit IRC17:26
*** ccom1 has joined #zope3-dev17:31
*** jpfarias has left #zope3-dev17:40
*** sorindregan has quit IRC17:46
*** ktwilight_ has joined #zope3-dev17:51
*** zagy_ has joined #zope3-dev17:53
*** zagy_ has quit IRC17:56
*** zagy_ has joined #zope3-dev17:58
*** zagy has quit IRC17:58
*** edgordon has quit IRC18:01
*** ktwilight has quit IRC18:09
*** jfroche has joined #zope3-dev18:10
*** nathany has joined #zope3-dev18:19
*** edgordon has joined #zope3-dev18:29
*** ignas has joined #zope3-dev18:31
*** pbugni has joined #zope3-dev18:34
*** rocky is now known as rocky|away18:36
*** Aiste has quit IRC18:41
*** projekt01 has quit IRC18:45
*** cursor has joined #zope3-dev18:46
*** jukart has quit IRC18:50
*** MJ has quit IRC18:52
spythonCrippsFX: did you solve it?18:52
spython"token" refers to some local var that hasn't been bound, obviously :)18:55
*** norro has joined #zope3-dev19:20
*** dobee has quit IRC19:28
*** norro has quit IRC19:39
*** romanofski has quit IRC19:40
*** reco has quit IRC19:56
*** timte has joined #zope3-dev19:57
*** alecm has joined #zope3-dev20:01
*** reco has joined #zope3-dev20:04
*** dobee has joined #zope3-dev20:11
*** ferrafox has quit IRC20:11
*** dobee has quit IRC20:14
*** norro has joined #zope3-dev20:17
*** b52laptop has quit IRC20:22
*** afd__ has joined #zope3-dev20:40
*** ignas has quit IRC20:47
*** afd has quit IRC20:55
*** Lacrymology has joined #zope3-dev20:56
*** hazmat has joined #zope3-dev21:05
*** ChanServ sets mode: +o hazmat21:05
*** Lacrymology has left #zope3-dev21:07
*** rocky|away is now known as rocky21:08
*** mgedmin has quit IRC21:12
*** cursor has quit IRC21:15
*** jinty_ has quit IRC21:18
*** jinty has joined #zope3-dev21:28
*** arnarl has quit IRC21:29
*** edgordon has quit IRC21:35
*** b52laptop has joined #zope3-dev21:40
*** pbugni has quit IRC21:43
*** benji has quit IRC21:46
*** netshade has joined #zope3-dev21:50
*** edgordon has joined #zope3-dev21:53
*** markusleist has quit IRC21:54
*** arnarl has joined #zope3-dev21:58
*** naro has left #zope3-dev22:07
*** edgordon_ has joined #zope3-dev22:17
*** edgordon has quit IRC22:18
*** mkerrin has quit IRC22:26
*** benji has joined #zope3-dev22:35
*** gumpa has joined #zope3-dev22:41
*** dunny has joined #zope3-dev22:42
*** afd__ has quit IRC23:03
*** greenman has joined #zope3-dev23:16
*** rodt_ has joined #zope3-dev23:25
*** dunny has quit IRC23:25
*** rodt_ has left #zope3-dev23:25
*** goplus has joined #zope3-dev23:26
*** goplus has left #zope3-dev23:27
*** pbugni has joined #zope3-dev23:34
*** timo_ has joined #zope3-dev23:42
*** MJ has joined #zope3-dev23:44
*** Aiste has joined #zope3-dev23:48

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