00:23:29 loggy has joined #openacs 00:23:29 topic is: AaronSw is sorry. And it was only 202 reconnects! ...203...204...205... 00:23:29 Users on #openacs: loggy rbm davb AaronSw chump GEM shagster_ abbaJ 00:23:30 This channel is logged: http://www.blogspace.com/openacs/chatlogs/ and blogged: http://www.thedesignexperience.org/openacs/ircblog 00:59:34 moo 01:01:44 hey davb 01:03:21 markd2 has joined #openacs 01:25:56 markd2 has left #openacs 02:54:54 davb has quit 12:23:17 til has joined #openacs 13:04:14 davb has joined #openacs 13:20:20 AaronSw has quit 13:21:38 davb has changed the topic to: http://openacs.org Free Web Toolkit 13:49:36 AaronSw has joined #openacs 14:00:58 AaronSw is now known as scribe-Aaron 14:01:44 markd2 has joined #openacs 14:28:31 Psychephylax has joined #openacs 14:28:36 morning 14:28:40 hiya 14:28:43 :) 14:28:49 Wooohoooo it's friday 14:29:50 Hi. 14:30:38 :) 14:34:56 must debug code :( 14:35:07 that's what we do 14:35:14 affirmative 14:35:38 I am renaming all the procs and variables in my code that I am building... 14:35:50 hehe 14:35:53 been there, done that 14:36:24 luckily its one tcl library file and two tcl www pages and one adp 14:38:00 markd2 has quit 14:39:09 hmmm 14:40:50 Say in my package-create file, I need to have multiple special groups 14:41:01 OK you do. 14:41:08 create them. 14:41:10 Would those be separate procedures 14:41:24 or would I do it in one single block? 14:41:29 I think so. 14:41:32 k 14:41:34 seperate i think. 14:41:46 but it will work either way. thats a style issue. 14:42:18 heh 14:45:59 Psychephylax has quit 14:45:59 chump has quit 14:45:59 scribe-Aaron has quit 14:45:59 rbm has quit 14:45:59 til has quit 14:45:59 davb has quit 14:45:59 abbaJ has quit 14:45:59 GEM has quit 14:46:06 Disconnected from irc.openprojects.net (Connection reset by peer) 14:46:32 loggy has joined #openacs 14:46:32 topic is: http://openacs.org Free Web Toolkit 14:46:32 Users on #openacs: loggy til GEM scribe-Aaron rbm chump Psychephylax davb abbaJ 14:46:32 This channel is logged: http://www.blogspace.com/openacs/chatlogs/ and blogged: http://www.thedesignexperience.org/openacs/ircblog 14:49:59 wheeeeee! 14:50:53 lol 14:52:45 I need to compare two lists. old_keywords and new_keywords. If a keyword is in old, but not new delete it. If its in new, but not old, add it. Do I need to make two passes through the lists? 14:54:18 Well, you'd need more than 2 14:55:03 I would do this: 14:55:21 nested loops to check to see if the keyword in old exists in new...If it does then delete it 14:55:47 that'll take one word from old, and check every word in new to see if it exists 14:56:05 then, after you're done cleaning out the old list... 14:56:31 take the new list and check to see if the word is new but not in old using the same strategy but add it instead to old 14:56:36 moo 14:56:39 i don't necessaryily need to do that. I can use lsearch to detemine if exists in both or not. TCL is handy for manipulating lists. 14:56:42 Look, a lame cow! 14:56:45 hi rbm 14:57:13 * davb wishes he knew what he was doing instead of just winging it... 14:57:24 Don't we all? 14:58:59 scribe-Aaron has quit 14:59:52 namespace question: if I am in a proc in the etp:: namespace and want to call another proc in the etp:: namepsace I can just call the name without etp:: right? 15:03:33 mmmmm..mini donuts 15:04:28 * Psychephylax gives loggy and chump a b0t cookie 15:04:47 hey Psychephylax are those out of a machine? 15:05:02 yup! 15:05:07 I thought so. 15:05:11 :-) 15:05:16 Gotta feed myself somehow! 15:06:55 I wouldn't get them at my school though 15:07:17 infact, I wouldn't get many things at my school...like an education! 15:07:23 *rim shot* 15:08:14 Look! A lame cow! 15:08:23 ummm 15:08:29 I'm seeing things 15:08:43 uhoh... what's in those donuts?? 15:08:48 i dunno 15:09:05 maybe I looked up instead of down 15:09:09 good. don't look. 15:10:26 if {[ad_permission_p $package_id admin]} { 15:10:36 does this check to see if the person is of admin status? 15:10:55 * rbm has to go to class. bbl 15:11:00 and would it be if {[ad_permission_p $package_id supervisor]} { if I have a supervisor 15:11:04 bye bye rbm 15:11:05 seems to be. 15:11:16 check the api browser... 15:11:21 k 15:11:32 admin might be a magic keyword, not a row in a table 15:11:42 lol 15:11:44 oops 15:13:34 ummm 15:13:41 These don't really tell you much :) 15:13:56 Not like java api where it tells you what it does, how to use it and a nice primer too 15:14:18 sometimes it does... or you can guess. Perhaps a look at the code... 15:20:11 Dave, was it you that was telling me about file watch? 15:20:47 shagster has joined #openacs 15:20:51 yeah 15:21:02 ok 15:21:19 how you turn that on? 15:22:11 go to apm, pick a package, manage file information, then click watch for the file. 15:22:29 If you have added files, they might not show up on that screen. at the bottom you can scan for new file. 15:25:19 hrm 15:25:24 I don't have the option to watch them 15:25:37 weird. what kinda files are they? 15:25:46 adp/tcl 15:26:20 aha, no need. they are read when you hit the page. Just hit reload if it loads a cached version. 15:26:34 hmm? 15:26:47 oh 15:26:52 It's done automatically? 15:28:11 No, its not done at all. They are web pages so they are sourced when someone accesses the page. 15:28:25 oh 15:28:33 what files were you talking about then? 15:28:48 tcl library files in package/yourpackage/tcl 15:28:53 and xql files that go with them. 15:29:01 oh...library files 15:29:03 :D 15:29:20 The XQL files in the www directory also can be watched I believe because they are cached on startup. 15:30:53 I am closing in on basic categorization functionality for ETP 15:31:24 hmmm 15:31:26 i'm confused 15:32:05 about? 15:32:09 well 15:32:19 I have that effect on people... 15:32:25 :) 15:32:25 in my sql creation script, I create group definitions - correct? 15:32:34 Sure. 15:32:48 if they are special groups for your package. 15:33:05 IT WORKED!! 15:33:05 indeed they are 15:33:07 cool. 15:33:19 ok, then in my tcl/adp pages, I can check with ACS to see if a person is a member of that group 15:33:25 oops its broken again/ 15:33:28 lol 15:33:32 I would say that is a good idea. 15:33:39 Right, that's what I figured 15:33:41 you went to all that trouble to create the group. 15:33:45 then why am I getting this: 15:34:04 snmp_manager isn't a valid privilege 15:34:04 while executing 15:34:06 "error "$privilege isn't a valid privilege"" 15:34:46 aha. its not expanding the variable... I wonder why. 15:34:52 Show me the whole line of code. 15:35:33 if {[ad_permission_p $package_id snmp_manager]} { 15:35:33 set snmp_manager 1 15:35:33 } else { 15:35:33 set snmp_manager 0 15:35:33 } 15:35:58 aha, so its in ad_permission_p that its screwing up, not your script. 15:36:19 but why is it screwing up? 15:36:26 Because I didn't create users properly, right? 15:36:36 you can probably do set snmp_manager [ad_permission_p $package_id snmp_manager] 15:36:54 back up 15:36:57 no. It is passing $privilige to the query instead of 'privilige' 15:37:13 shouldn't it be privilege? 15:37:32 it should be whatever privilige you pass in, snmp_manager in this case. 15:37:41 hold on 15:37:55 talli has joined #openacs 15:37:58 lemme check to make sure my creation script does it properlt 15:38:02 properly 15:38:04 hey guys 15:38:08 hi talli 15:38:11 hi talli! 15:39:27 hmm 15:39:33 I think I know 15:39:51 in my script I create manager not snmp_manager 15:40:43 that would do it. 15:40:45 w00t! 15:40:47 :D 15:40:54 * Psychephylax 's brain comes to a screeching halt 15:43:26 Cool. Now I can add and delete keyword categories. 15:44:09 cool 15:44:15 you'll have to help me when I get to that part :D 15:44:27 ok, I got a silly question 15:44:36 ok. 15:44:41 I have no need for site/pvt/home 15:44:49 for separate users 15:44:54 So don't link to it. 15:44:57 how do I get rid of it? 15:45:10 Good question. I am not sure. what package is it part of? 15:45:15 sub-site 15:45:23 I was thinking of symlinking it back to the root 15:45:37 go here: http://spot.eng.cv.net:8080 15:45:40 and register 15:45:42 Yeah or just replace it with ad_returnredirect "/" 15:45:56 or is it ns_... 15:46:01 :D 15:46:08 whatever just a redirect. I don't know which is better. 15:46:12 same result. 15:46:35 :D 15:46:46 hmmm 15:47:01 I need to host my website somewhere until my ISP removes the port 80 block 15:47:32 yeah. Thats annoying. Albany Roadrunner is wide open still. They reprogrammed the modems yesterday, but it still works. 15:48:59 hmm? 15:49:06 The block or the lack thereof? 15:49:09 port 80. my ISP didn;t block anything. 15:49:15 That's a good thing! 15:49:28 It's mad funny 15:49:44 yeah its cool. I thought it might be blocked. 15:50:17 the reason we got blocked (it pays to work for Cablevision) is that the ACK packets were flooding the 3Com sharkfin modems and the USB drivers could not handle it 15:50:23 from code red 15:53:30 aha 15:53:34 hmm? 15:53:43 nevermind. 15:59:19 work is such a drag 15:59:24 I wanna set up a game server instead :D 15:59:37 markd2 has joined #openacs 15:59:41 wb 15:59:47 * Psychephylax gives Mark a cookie 15:59:57 mmm.. cookies 15:59:59 * markd2 fills out expense reports 16:00:10 :) 16:01:13 i'm glad my company has an open policy on messaging clients 16:01:59 ok 16:02:01 I got a question =D 16:02:05 oke 16:02:12 "can't be done, sorry" 16:02:20 * markd2 holds out his hand for another cookie 16:02:23 in my index.tcl I have a check to see what type of a user the person is 16:02:30 * Psychephylax gives mark another cookie 16:02:45 mmmm.. cookies... 16:02:59 Then according to type he can see links related to him..like a manager can see manager links but not supervisor links 16:03:09 which redirect him to snmp/manager 16:03:15 which happens to be a folder 16:03:36 ok 16:03:55 in the folder there's an index.adp for his menu...Now, do I have to check his permissions again...so people can't just type host/snmp/manager and use manager tools? 16:04:17 yep 16:04:25 so I have to do this for every page? 16:04:39 there may be some way you can do it for the whole hierarchy 16:04:47 I don't know enough to say if there's something like that or not 16:04:50 I could have sworn you can do that 16:05:08 * Psychephylax goes "doc hunting" 16:05:18 * markd2 quacks 16:05:37 * Psychephylax gets out his 12 gauge Remi 16:13:07 hmmmm 16:13:32 hmmmm 16:13:49 I need to pass the results from a multiple select box to a tcl page. How do I set that up in ad_page_contract so the resulting page can accept the values? 16:14:15 Is there a way to prevent people from registering ? 16:14:50 davb: can yo udo it as a list? 16:14:59 psyche: you could always remove the /register pages :-) 16:15:15 retrict register pages to admins 16:15:24 well 16:15:33 that's good 16:15:40 since everyone needs to be added 16:15:52 anyway. I know I need a list in the tcl page. But I don't know how to setup the select box on the adp page to pass it in the correct format so the tcl page can read it. 16:16:26 I have this