21:19:20 #startmeeting Fedora Insight 21:19:20 Meeting started Fri Apr 9 21:19:20 2010 UTC. The chair is stickster. Information about MeetBot at http://wiki.debian.org/MeetBot. 21:19:22 Useful Commands: #action #agreed #halp #info #idea #link #topic. 21:19:29 #meetingname Fedora Insight 21:19:30 The meeting name has been set to 'fedora_insight' 21:19:47 #topic What we're working on 21:20:17 I have to leave now too, unfortunately; getting ride now 21:20:22 #info FI currently syncs one group membership in the following way: 21:20:27 pcalarco: Thanks! 21:20:33 * rbergeron waves to pcalarco 21:20:45 but I will close the weighting ticket as that works as expected now 21:20:59 #info If you login with your FAS account and haven't been to the CMS before: * we create an account with username=FAS_username 21:20:59 * we sync your membership of cmsadmin 21:20:59 If you have been before 21:20:59 * we check to see if you're still in cmsadmin -- if not we remove your access; * if you are and you weren't before, we add your access 21:21:06 darn, that probably didn't work 21:21:07 #undo 21:21:08 rbergeron and stickster: thanks and I will be on later 21:21:08 Removing item from minutes: 21:21:24 #info If you login with your FAS account and haven't been to the CMS before 21:21:35 #info a. we create an account with username=FAS_username 21:21:40 #info b. we sync your membership of cmsadmin 21:21:56 #info If you have been here before, we check to see if you're still in cmsadmin 21:22:01 #info a. If not, we remove your access 21:22:12 #info b. If you are now and weren't before, we add your access 21:22:18 #info We don't: 21:22:23 #info a. sync any groups other than cmsadmin 21:22:27 #info b. sync any group creation 21:22:39 #info Permissioning must be set up on the Zikula/FI side. 21:22:44 *whew* 21:22:47 so: in a nutshell - we have to hardcode any link between cmseditors and editors group in zikula 21:22:57 rbergeron: Basically 21:23:00 and any link between cmsusers and users in zikula 21:23:30 editors i don't think is as important - but we (hopefully) will have too many content writers to want to do all that account creation manually 21:23:36 rogjt 21:23:41 I mean, "right" 21:23:45 or roger. :) 21:24:03 but if we can add one, we should be able to add both 21:24:05 if we can figure it out 21:24:21 if we go down the manual road we'll never go back, and we should do it right 21:25:07 rbergeron: Manual sucks, I agree 21:25:29 * stickster looking at the PHP code itbegins pointed us to 21:25:48 #link /usr/share/zikula/modules/AuthFAS/pnuserapi.php <-- where comparison and work is done 21:29:44 * rbergeron reads and ohhhhhhhh boy 21:29:44 :D 21:29:48 OK, I think I see what to change 21:29:53 * rbergeron nods 21:30:39 * rbergeron would volunteer but figures we might want FI done before 2014 21:30:40 ;D 21:34:27 so - here's a question 21:34:44 we also have the "designers" group on here - which allows designers access to themes and blocks, etc 21:34:53 and an ambassadors group 21:35:01 what are we doing with those? 21:35:11 just bumping designers up to the admin group? 21:35:23 deleting the ambassadors group? I'm not seeing what the ambassadors group is for 21:35:40 i'm just wondering if those are separate other groups we need as well - or if we just want designers to have the same persmissions as cmsadmin 21:35:52 not to throw more wrenches in the works or anything :) 21:35:52 That's the only thing we can do right now -- those groups are not meaningful unless we use them, and if we want to use them with FAS, we have to have a FAS group that matters, and then the syncing function has to support syncing them 21:36:13 The only thing Zikula currently does is figure out whether you're in FAS, and if so, are you in cmsadmin. 21:36:14 well - 21:36:18 you and i are the only people in designers 21:36:35 so 21:36:36 heh 21:36:58 now that i'm actually looking at it 21:37:59 well - in FAS, or signed cla 21:38:02 or are those one and the same 21:38:14 because i think you can still log into fas even without a signed cla 21:38:16 just can't do anything 21:38:30 rbergeron: I don't understand 21:38:34 What are you asking? 21:38:46 you said zikula figures out if you're in fas 21:38:56 and i'm wondering if it figures out if you're in FAS 21:38:57 Oh sorry, that was my kludgy warning 21:39:05 or if it figures out if you've signed the cla 21:39:06 It figures out if you're in FAS *and* have cla_done 21:39:09 the script looks like cla 21:39:09 ok 21:39:24 * rbergeron just making sure she's not on another planet... 21:39:41 or rather, if one basically meant the other 21:39:58 * rbergeron will let stickster tinker now ;) 21:40:19 rbergeron: Yeah, one does not mean the other automaticaaly 21:40:35 First you have to exist in FAS, of course... but then you also have to have cla_done, which is a separate question 21:40:38 right 21:40:51 * stickster looks for something with line numbering, hang on 21:40:54 * rbergeron feels a wee bit wiser for the day. :) 21:42:03 Oh here we go 21:42:09 OK, if you're looking at that code 21:43:07 lines 44-59 are the checks 21:43:10 line 48 has the cla_done business 21:43:11 right 21:43:14 Right 21:43:20 And it also records a flag called $admin 21:43:34 We would want to add flags there for other stuff like $writer and $editor 21:43:39 Then, down to line... 151 or so 21:43:56 yes... does that tie to "administrators" group in zikula? 21:43:59 In the AuthFAS_userapi_syncgroups() area 21:44:06 and if so... where does that $admin to administrator... 21:44:10 oh, i bet that's where you're going 21:44:12 rbergeron: Right 21:44:42 It finds out first $is_users_member (are you a member of users group) 21:44:52 then $is_admin_member (are you a member of admin group) 21:45:18 stickster: yeah, that stuff in the 151-164 area is a little greyer to me 21:45:34 so is the users group basically anyone who has signed cla_done? 21:45:42 rbergeron: Correct! 21:45:53 do we want to even mess with that? 21:45:58 If you are in that group in FAS, and you haven't a user account yet on Zikula, it makes one. 21:46:06 and even have a cmswriters group? 21:46:07 Then you get authenticated and you're in 21:46:36 rbergeron: Yes, because people who can *write* content for publishing are different from people who are users that just arrange their own content, or respond to posts, or rate them, or stuff like that 21:46:43 ahhh 21:46:48 good point. 21:47:04 OK, so this isn't as bad as I was thinking 21:47:24 I can add a few stanzas here for determining "writer" and "editor" 21:47:32 The "writers" would use the News group on Zikula 21:47:38 and the "editors" would use the Editors group on Zikula 21:48:14 sooo - i also understood from itbegins that if we do something like 21:48:35 rbergero is a member of cmswriters, cmseditors, and cmsadmin on fas 21:48:42 * stickster already backed up the PHP script... but it really needs to be changed elsewhere, repackaged, and then brought in 21:48:52 then i will automatically get the highest level - cmsadmin - 21:48:55 err 21:49:00 $admin / administrator 21:49:02 rbergeron: Right, the highest level of access would be compared 21:49:03 in zikula, correct 21:49:17 cmsadmin determines whether you get "Administrators" on Zikula. 21:49:24 That's line 154 in the script 21:49:30 right, i'm looking at it 21:49:31 and if not - 21:49:39 then i'd get dropped to whatever level below that automagically 21:49:43 if i am in a level below that 21:50:03 Yes, but that happens elsewhere in the Zikula system of course 21:50:16 i just wasn't sure if when he said that - if he meant that those privelidges applied all the way down on zikula, if you're in cmsadmin 21:50:25 or if it might work differently if you were in multiple groups on FAS 21:50:32 This code here is simply determining whether to flip your "Administrators" group access in zikula on or off, based on your FAS cmsadmin membership. 21:50:46 or if we need to be careful to only be in either cmseditor or cmsadmin or cmswriter in FAS 21:51:07 Yes, careful in the sense that those aren't discrete groups -- they're additive 21:51:22 If you're in cmsadmin, it really doesn't matter whether you're in another cms* group in FAS. 21:51:27 * rbergeron isn't trying to second guess, i promise :) 21:51:33 Not at all! 21:51:53 Because cmsadmin membership will make Zikula turn on your "Administrators" Zikula group access when you next login. 21:52:04 Which means you get everything 21:52:09 regardless of any other access you might have 21:52:16 so even if i get added to cmseditor on another day 21:52:21 it will still see cmsadmin and say 21:52:24 "yup, she's awesome" 21:52:39 As long as your account is still a member of cmsadmin in FAS at that time, yes, that's correct. 21:53:17 See, what would have been a cooler module in my opinion, is to just have these groups not sync'd but simply relying on FAS altogether. 21:53:31 But I could be way off base in whether or not Zikula can even do that, or even whether it's a good idea. 21:53:40 * rbergeron nods 21:54:09 But I 98% understand (I think) how to change this code to figure out rights properly. 21:54:20 :D 21:54:32 you made a backup copy you said, right :) 21:54:39 not that i doubt your amazing stickster capabilities 21:54:46 Oh yeah 21:54:49 Mos def 21:58:49 * stickster wonders, is DBUtil::selectObjectByID() returning the group object? 21:59:08 Ugh, PHP is so much less readable than Python 21:59:20 * rbergeron couldn't possibly tell you 22:02:14 Aha, got it 22:08:10 rbergeron: Still there? 22:08:44 indeed, although i'm running to the kitchen for a half-second to grab moar waterz 22:08:47 Log out and log back in to Zikula 22:08:52 k 22:09:03 Let me know if something horrible happens 22:09:05 well 22:09:08 i just clicked the logout button 22:09:10 Parse error: syntax error, unexpected T_STRING, expecting ']' in /usr/share/zikula/modules/AuthFAS/pnuserapi.php on line 168 22:09:56 so... i cna't log out still :) 22:10:06 Try again 22:10:53 I found the error, missing ' 22:12:21 My fault, another one lurking, fixing now 22:13:03 Yay! 22:15:23 whee! 22:15:24 works 22:15:26 All right rbergeron check it out 22:15:29 log out again 22:15:29 ok, let me log in 22:15:33 cool 22:15:33 i just did 22:15:34 that's fine 22:15:36 without troubles 22:15:59 ok - i logged in 22:16:02 What account are you using? 22:16:08 rbergero 22:17:06 is that right? 22:17:53 i have the "your account, administration, log out" in the upper corner 22:17:55 Try one more time for me 22:17:56 logout 22:17:58 then log in 22:19:21 rbergeron: Oops, may need to do it one more time if you already finished 22:19:30 I think I forgot to copy the file where it needed to go :-) 22:20:03 ok so - i log in 22:20:10 i still have your account, administration, log out in the corner 22:20:14 but at the top of the white box 22:20:21 above fedora weekly news issue 220 22:20:21 i have 22:20:26 a red/pink box with 22:20:33 Error! The action you wanted to perform was not successful for some reason, maybe because of a problem with what you input. Please check and try again. 22:20:37 Yeah, I get that too 22:20:40 is there some sort of default login page for each group? 22:20:41 maybe? 22:20:46 It's not something I did -- I think that's a separate problem. 22:20:51 It was there earlier. 22:21:00 ah 22:21:04 yeah, and if you refresh the window 22:21:06 it goes away 22:21:12 Sorry to try your patience -- but log out and log in one more time for me :-) 22:21:17 so it seems like it's limited to immediately when you log in 22:21:19 heh 22:21:20 np 22:21:22 i'm here to test! 22:21:35 since i can't code :) 22:21:50 ok, logged back in 22:22:34 Hm, my code is not working like I thought it would then. :-( 22:25:07 rbergeron: OK, one more time! 22:26:57 ok, i'm logged in 22:27:01 Oh wait! 22:27:05 I just found the problem 22:27:07 I think 22:27:36 rbergeron: One more time! 22:28:53 ok 22:29:02 YAY! 22:29:04 I win 22:30:39 Well... OK, not quite. 22:30:52 * rbergeron laughs 22:31:39 I got pretty close 22:31:43 Something in my logic is wrong 22:32:06 It turned on your membership in News (which was correct) and your membership in Editors (which was not) 22:32:17 And did the same thing to me, when it shouldn't have turned either on. 22:32:25 OK, I have to order dinner, brb 22:32:26 hmmmm 22:32:28 ok 22:37:42 * stickster cues up some Flaming Lips 22:38:05 "THE TEST BEGINS NOWNOWNOWNOWNOWNOWNOWNOW" 22:38:59 Must be very boring on the other side of this log. 22:39:48 lol 22:48:31 Hm, not getting joy here. 22:54:37 Still it's putting me in groups I shouldn't be in. 22:55:06 brb 22:56:53 * stickster back 22:57:06 This is apparently less of a "jog" than a "saunter" 23:05:46 OK, no idea why this isn't working. 23:05:49 And dinner just arrived 23:05:56 I'll send a diff to the list and see if itbegins can help. 23:06:07 #action stickster Send diff to list 23:06:16 #action itbegins Help figure out what stickster did wrong 23:06:22 #endmeeting