*** tpb has joined #melange | 00:00 | |
*** dmitrig01 has quit IRC | 00:59 | |
*** madrazr1 has joined #melange | 02:06 | |
*** madrazr has quit IRC | 02:06 | |
*** SRabbelier has joined #melange | 02:17 | |
*** ChanServ sets mode: +v SRabbelier | 02:17 | |
*** madrazr1 has quit IRC | 02:47 | |
*** madrazr has joined #melange | 02:48 | |
*** solydzajs has joined #melange | 02:54 | |
*** ChanServ sets mode: +o solydzajs | 02:54 | |
*** bhy has joined #melange | 02:58 | |
*** scorche has quit IRC | 04:09 | |
*** scorche has joined #melange | 04:10 | |
*** madrazr1 has joined #melange | 04:39 | |
*** madrazr has quit IRC | 04:40 | |
*** madrazr1 is now known as madrazr | 04:40 | |
*** MatthewWilkes has joined #melange | 06:03 | |
*** madrazr has quit IRC | 07:21 | |
*** no_mind has joined #melange | 07:29 | |
no_mind | knock knock | 07:30 |
---|---|---|
solydzajs | no_mind: hi :-) | 07:32 |
solydzajs | no_mind: how are you ? | 07:32 |
solydzajs | no_mind: did you have a chance to finish document selector ? | 07:32 |
no_mind | yes, but could not email it | 07:33 |
solydzajs | no_mind: oh why ? | 07:33 |
no_mind | btw, I made user selector | 07:33 |
solydzajs | btw, user & document selector or just user selectot ? | 07:33 |
no_mind | its a selector which can be modified for any part | 07:34 |
no_mind | solydzajs: if I tell you the reason to why, you will laugh at me :( | 07:34 |
*** MatthewWilkes has quit IRC | 07:34 | |
solydzajs | no_mind: I don't laugh at people :-) usually so no worries :-) | 07:35 |
solydzajs | no_mind: ok so why couldn't you email it ? | 07:35 |
no_mind | someone stole the router feeding internet in my block | 07:36 |
solydzajs | omg :-) | 07:36 |
*** MatthewWilkes has joined #melange | 07:36 | |
no_mind | and since right now I am confined to a govt building, due to some project work. We have to wait till new router is 'approved' to get internet | 07:36 |
solydzajs | that's why you were offline for couple last days ;-) | 07:36 |
no_mind | but I will sendit in few hours, just need to clear up the pile of email | 07:37 |
no_mind | yup, | 07:37 |
solydzajs | no_mind: where are you from ?;-) | 07:37 |
no_mind | from .in | 07:37 |
solydzajs | ah yep you told me already I forgot ;-) | 07:37 |
no_mind | the bad part of working with govt is that at times they wont even let you use the cellphone of your choice... so I cant use GPRS | 07:38 |
solydzajs | wow | 07:44 |
*** bcarlyon|laptop has quit IRC | 07:44 | |
*** mithro has joined #melange | 07:47 | |
*** ChanServ sets mode: +v mithro | 07:47 | |
*** solydzajs has quit IRC | 08:47 | |
*** madrazr has joined #melange | 08:47 | |
madrazr | SRabbelier: ping | 08:49 |
*** mithro has quit IRC | 08:57 | |
*** Merio has joined #melange | 09:28 | |
*** madrazr1 has joined #melange | 09:40 | |
*** madrazr has quit IRC | 09:40 | |
*** madrazr1 is now known as madrazr | 09:40 | |
*** Merio has quit IRC | 09:56 | |
*** Merio has joined #melange | 09:56 | |
*** SRabbelier has quit IRC | 10:00 | |
*** Merio has quit IRC | 10:04 | |
*** Merio has joined #melange | 10:04 | |
*** Merio has quit IRC | 10:09 | |
*** Merio has joined #melange | 10:10 | |
*** SRabbelier has joined #melange | 10:14 | |
*** ChanServ sets mode: +v SRabbelier | 10:14 | |
*** no_mind has quit IRC | 10:45 | |
*** SRabbelier has quit IRC | 10:50 | |
*** SRabbelier has joined #melange | 10:54 | |
*** ChanServ sets mode: +v SRabbelier | 10:54 | |
*** madrazr1 has joined #melange | 11:02 | |
*** madrazr has quit IRC | 11:03 | |
*** madrazr1 is now known as madrazr | 11:03 | |
*** tlarsen has joined #melange | 11:05 | |
*** ChanServ sets mode: +o tlarsen | 11:05 | |
*** Lennie has joined #melange | 11:06 | |
*** ChanServ sets mode: +v Lennie | 11:06 | |
Lennie | wazzup! | 11:07 |
Lennie | tlarsen, had time to look at the user stuff to see if it fits our needs? | 11:07 |
tlarsen | Lennie: No, I have not. | 11:08 |
tlarsen | Lennie: And I probably won't until Monday. | 11:08 |
Lennie | hmm | 11:08 |
tlarsen | Monday is my "Melange day". | 11:08 |
Lennie | monday is cut-off day :P | 11:08 |
tlarsen | Yes, and what is done is done. | 11:09 |
tlarsen | Monday is a cut-off for "no more schema breakage", not for features to be complete. | 11:09 |
Lennie | so | 11:09 |
Lennie | user stuff is schema breakage | 11:09 |
Lennie | and important if you want a demo up and runnign :) | 11:09 |
tlarsen | Well, I'm assuming you aren't going to change the User Model any more. | 11:10 |
tlarsen | (at least not by adding any required=True fields) | 11:10 |
Lennie | I hope not | 11:10 |
Lennie | I would kindly request you to check it out on Monday then | 11:10 |
Lennie | and if possible sooner, since Uni is starting again that week | 11:11 |
tlarsen | If I can play with it before then, I will. | 11:11 |
Lennie | so I wont be able to write hundreds of lines of code a day :P | 11:11 |
tlarsen | I just have something I must work on for Google, and on the weekends I am slaving away at my stupid house. | 11:11 |
Lennie | I understand | 11:11 |
*** Lennie is now known as Lennie|Gone | 11:20 | |
bhy | hi, anything I can help? | 11:26 |
tlarsen | bhy: At this point, the best thing is to take a look in two places: | 11:32 |
tlarsen | bhy: http://code.google.com/p/soc/issues/list | 11:32 |
tpb | Title: Issues - soc - Google Code (at code.google.com) | 11:32 |
tlarsen | bhy: http://code.google.com/p/soc/wiki/MelangeGSoCRequirements | 11:32 |
tpb | <http://ln-s.net/2kv9> (at code.google.com) | 11:32 |
tlarsen | (the issue tracker and the MelangeGSoCRequirements wiki topic) | 11:32 |
tlarsen | Lennie|Gone: The agrees_to_tos changes look good. | 11:34 |
tlarsen | Lennie|Gone: Just one minor request, and I will tack that onto the issue as a comment. | 11:34 |
Lennie|Gone | hmm | 11:34 |
Lennie|Gone | do tell | 11:34 |
Lennie|Gone | bhy | 11:35 |
Lennie|Gone | simple task | 11:35 |
Lennie|Gone | add example text to Birthday field in Profile | 11:35 |
tlarsen | I believe the user should be reminded that they agreed to the ToS on their profile page. Do you want to hear my suggestion? | 11:35 |
Lennie|Gone | tlarsen, can you name one website that does that? | 11:36 |
bhy | Lennie|Gone, ok I'll do that :) | 11:36 |
tlarsen | bhy: Or, figure out how Pawel added a Javascript Date control to the timeline view, and add that to the Birthday field. :) | 11:36 |
Lennie|Gone | no tlarsen | 11:36 |
Lennie|Gone | that's hard | 11:36 |
tlarsen | Lennie|Gone: The old GSoC web app. | 11:36 |
Lennie|Gone | you have to scroll through the years | 11:36 |
Lennie|Gone | going way back | 11:36 |
tlarsen | The checkbox that you agreed to the terms remains on your profile. | 11:36 |
Lennie|Gone | tlarsen: then I might consider it :) | 11:36 |
tlarsen | It is not hidden away after you agree. | 11:36 |
Lennie|Gone | I have an idea | 11:36 |
bhy | tlarsen, is Pawel already working on that? | 11:36 |
Lennie|Gone | can it be a text | 11:36 |
Lennie|Gone | saying you agreed on.... | 11:36 |
Lennie|Gone | to the ToS | 11:37 |
tlarsen | bhy: He already has incorporated a Date/Time picker on the timeline view. | 11:37 |
tlarsen | bhy: There is a suggestion to use that same sort of thing for the Birthday field. | 11:37 |
Lennie|Gone | I really need to take a look at that picker :P | 11:37 |
bhy | tlarsen, okey, this is interesting :) | 11:37 |
bhy | I'll take a look :) | 11:37 |
tlarsen | bhy: http://code.google.com/p/soc/issues/detail?id=172 | 11:37 |
tpb | <http://ln-s.net/2moz> (at code.google.com) | 11:37 |
Lennie|Gone | if you cant go to a year with one go | 11:37 |
Lennie|Gone | then we will not add it | 11:38 |
Lennie|Gone | to birthday | 11:38 |
Lennie|Gone | right? | 11:38 |
bhy | em, right | 11:38 |
tlarsen | Lennie|Gone: Yes, it can be text. It need not be the checkbox (made somehow read-only). | 11:38 |
Lennie|Gone | k | 11:39 |
Lennie|Gone | tlarsen | 11:39 |
Lennie|Gone | make an issue | 11:39 |
Lennie|Gone | assing it to me | 11:39 |
tlarsen | Lennie|Gone: it also does not need to display the ToS again, but a link would be nice. :) | 11:39 |
Lennie|Gone | I'll get it done | 11:39 |
tlarsen | Lennie|Gone: OK, will do. | 11:39 |
Lennie|Gone | dinner now | 11:39 |
Lennie|Gone | bb | 11:39 |
bhy | there's a drop list on datepicker to select the year | 11:48 |
bhy | so I think that's ok for birthday | 11:49 |
*** r0bby has quit IRC | 12:01 | |
*** r0bby has joined #melange | 12:02 | |
Lennie|Gone | bhy, yes then it is :D | 12:06 |
*** Lennie|Gone is now known as Lennie | 12:06 | |
Lennie | I didnt had time to look at the timeline datpicker since I was busy | 12:06 |
Lennie | and I still am | 12:07 |
Lennie | with clubs and requests/invites :) | 12:07 |
* bhy trying to add it for birthday field | 12:07 | |
Lennie | k cool | 12:07 |
*** Merio has quit IRC | 12:34 | |
*** Merio has joined #melange | 12:34 | |
*** solydzajs has joined #melange | 12:38 | |
*** ChanServ sets mode: +o solydzajs | 12:38 | |
*** Merio has quit IRC | 12:39 | |
*** Merio has joined #melange | 12:40 | |
*** Merio has quit IRC | 12:45 | |
*** Merio has joined #melange | 12:45 | |
madrazr | solydzajs: SRabbelier: is any body working with slots thing atm? | 13:00 |
solydzajs | madrazr: it's done | 13:02 |
madrazr | solydzajs: Oh OK | 13:03 |
madrazr | solydzajs: can we already see it in melange-dev? | 13:03 |
solydzajs | madrazr: not yet, but you can see it locally | 13:04 |
madrazr | solydzajs: Ok, some how my local copy using dev_appserver.py is giving error as soon as I try to create a profile saying, <type 'exceptions.IndexError'>: list index out of range | 13:04 |
madrazr | args = ('list index out of range',) | 13:04 |
bhy | oops, the current datetime picker is for date *and* time | 13:06 |
bhy | for birthday we need another date picker | 13:06 |
Lennie | hmm | 13:16 |
SRabbelier | hm? | 13:16 |
Lennie | bhy, there should be settings for that picker somwhere ask solydzajs | 13:16 |
Lennie | madrazr | 13:16 |
Lennie | where do you get that error? | 13:17 |
Lennie | as in what profile are you creating ;)? | 13:17 |
* bhy hacking it for such a setting.. | 13:17 | |
Lennie | bhy, solydzajs should know | 13:17 |
Lennie | he put it in there :P | 13:17 |
SRabbelier | bhy: hacking? | 13:17 |
madrazr | Lennie: thats the error I got when I tried to give same link id for another sign in email ID | 13:18 |
madrazr | tried with some other link id and it worked | 13:18 |
bhy | there's no such a settings for the datetimepicker to only pick dates | 13:18 |
madrazr | and now comes back my old problem | 13:18 |
solydzajs | bhy: yes probably just make an on/off switch for time functionality in the current one | 13:19 |
madrazr | http://pastebin.ca/1322954 | 13:19 |
madrazr | why do I get this error when I try to create some thing new on my local copy? | 13:20 |
madrazr | as in New Program Admin | 13:20 |
madrazr | or something like that | 13:20 |
bhy | yes, trying | 13:21 |
Lennie | madrazr | 13:23 |
Lennie | so in new user | 13:23 |
Lennie | you tried to set the same link id | 13:24 |
Lennie | for a different email? | 13:24 |
Lennie | and got that error | 13:24 |
madrazr | Lennie: yeah | 13:24 |
madrazr | the previous one, not the one I have pasted in pastebin | 13:24 |
Lennie | I cant replicate the previous one | 13:24 |
Lennie | are you up to date? | 13:24 |
madrazr | Lennie yeah, ran svn up just now | 13:24 |
madrazr | Lennie: even though I have updated, I don't see any check box for ToS. makes me wonder whats wrong with my WC | 13:25 |
Lennie | you set a ToS in site settings? | 13:25 |
Lennie | and you wont see checkbox for ToS in New User | 13:25 |
Lennie | since dev's cant sign the ToS for someone else | 13:26 |
madrazr | Lennie: no I don't set ToS at all, going to Site Settings gives me the error pasted in pastebin | 13:26 |
Lennie | :S | 13:26 |
Lennie | it doesnt give that here lol | 13:27 |
Lennie | strange stuff... | 13:27 |
madrazr | you mean the 2nd error? | 13:27 |
Lennie | the first one :P | 13:27 |
Lennie | and the 2nd one I dont get when going into site settings | 13:27 |
solydzajs | Lennie: I don't think there is a way to turn off time in datetime picker | 13:27 |
Lennie | you can have users select a time | 13:27 |
Lennie | cool feature :P | 13:27 |
Lennie | we'll just ignore it ^_^ | 13:28 |
madrazr | Lennie: uffff.... this is making me go crazy. Makes me checkout a fresh copy again and try | 13:28 |
Lennie | clear datastore/ | 13:29 |
Lennie | ? | 13:29 |
Lennie | a lot of things have changed | 13:29 |
madrazr | Lennie: Oh Ok. That I haven't done | 13:29 |
madrazr | let me do that and try | 13:29 |
madrazr | Lennie: same error even after clearing datastore | 13:33 |
Lennie | no way :S | 13:33 |
Lennie | you are breaking the app :D | 13:33 |
madrazr | Lennie: :D | 13:33 |
Lennie | so | 13:33 |
solydzajs | lh: ping | 13:33 |
Lennie | you cleared the datastore | 13:33 |
Lennie | what did you do? | 13:33 |
madrazr | Lennie: yeah | 13:34 |
Lennie | when did it go boom ;p' | 13:34 |
madrazr | Lennie: --clear_datastore | 13:34 |
Lennie | isnt that --c :p? | 13:34 |
Lennie | might just be shorthand | 13:34 |
Lennie | but anyhow | 13:34 |
Lennie | I'm wondering what did you do to make it crash ;) | 13:34 |
madrazr | Lennie: I am wondering the same | 13:34 |
madrazr | Lennie: let me try checking out fresh copy again | 13:35 |
Lennie | what URL did you open? | 13:35 |
Lennie | ok | 13:35 |
SRabbelier | Lennie: if any it would be -c | 13:35 |
SRabbelier | Lennie: and --clear-datastore as full form | 13:35 |
Lennie | SRabbelier ^_^ | 13:35 |
madrazr | SRabbelier: its _, not - :P | 13:35 |
madrazr | --clear_datastore | 13:35 |
SRabbelier | no way? | 13:35 |
madrazr | SRabbelier: yeah | 13:36 |
SRabbelier | omg | 13:36 |
SRabbelier | what a bunch of r-tards | 13:36 |
madrazr | r-tards? | 13:36 |
Lennie | To clear the local datastore for an application, use the --clear_datastore option when you start the web server: | 13:36 |
Lennie | dev_appserver.py --clear_datastore myapp | 13:36 |
SRabbelier | s/-/e/ | 13:36 |
Lennie | ^_^ | 13:36 |
Lennie | pwned :P | 13:36 |
SRabbelier | that's just lame | 13:37 |
SRabbelier | no other program uses underscores :-/ | 13:37 |
Lennie | "${project_loc}\app" -c | 13:37 |
Lennie | also works :P | 13:37 |
Lennie | in eclipse :P | 13:37 |
SRabbelier | right :) | 13:37 |
* madrazr prays for new copy to work properly :P | 13:40 | |
Lennie | I hope so | 13:40 |
*** solydzajs has quit IRC | 13:42 | |
madrazr | Lennie: wonder!!! | 13:43 |
Lennie | yee | 13:43 |
madrazr | phew phew!!! | 13:43 |
Lennie | it works | 13:43 |
Lennie | my code doesnt fail | 13:43 |
Lennie | :P | 13:43 |
* madrazr whistles | 13:43 | |
Lennie | yet | 13:43 |
madrazr | Lennie: he he he | 13:43 |
madrazr | Lennie: I am just struck, to see your conviction :) | 13:44 |
Lennie | overconfidence ftw | 13:44 |
madrazr | he he | 13:44 |
*** solydzajs has joined #melange | 13:44 | |
*** ChanServ sets mode: +o solydzajs | 13:44 | |
madrazr | Lennie: I am still wondering what is wrong with my old WC | 13:45 |
SRabbelier | madrazr: probably has some cruft lying around | 13:46 |
madrazr | SRabbelier: Ok | 13:47 |
madrazr | when I create a program owner shouldn't Melange notify that its successfully created? | 13:47 |
madrazr | or am I just overlooking? | 13:47 |
solydzajs | madrazr: are you testing locally ? | 13:48 |
madrazr | solydzajs: yeah | 13:49 |
solydzajs | madrazr: did you setup SMTP parameters for dev_appserver ? | 13:49 |
Lennie | solydzajs | 13:49 |
madrazr | solydzajs: no | 13:49 |
Lennie | he still should get a notification on his local stuff | 13:49 |
Lennie | I dont think he's talking about email | 13:49 |
solydzajs | oh | 13:49 |
solydzajs | ok | 13:49 |
madrazr | Lennie: right | 13:49 |
solydzajs | then nevermind | 13:49 |
solydzajs | is something broken then ? | 13:49 |
Lennie | nope | 13:49 |
madrazr | solydzajs: nothing | 13:50 |
Lennie | or probably | 13:50 |
Lennie | not the notifications anyway | 13:50 |
madrazr | solydzajs: I am just expecting too much :P | 13:50 |
Lennie | he probably means 'Profile Saved' message :P | 13:50 |
madrazr | Lennie: exactly | 13:50 |
Lennie | or Program Owner Saved | 13:50 |
Lennie | that should happen yeah | 13:50 |
Lennie | but apparently it does not | 13:50 |
SRabbelier | Lennie: what page do you redirect to? | 13:50 |
madrazr | Lennie: give me some time | 13:50 |
madrazr | let me try to add | 13:50 |
SRabbelier | /list or /edit or such? | 13:50 |
madrazr | seeing how profile saved appears | 13:50 |
Lennie | program owner should be list | 13:51 |
Lennie | or edit | 13:51 |
*** MatthewWilkes has quit IRC | 13:51 | |
Lennie | actually | 13:51 |
SRabbelier | if it's list | 13:51 |
madrazr | Lennie: it is edit | 13:51 |
SRabbelier | list doesn't have the notification setup code | 13:51 |
madrazr | SRabbelier: it is edit | 13:51 |
Lennie | I get the message on top when editing something :P | 13:51 |
madrazr | Lennie: something == ?? | 13:52 |
Lennie | but not when creating | 13:52 |
Lennie | hmm | 13:52 |
Lennie | interesting :0 | 13:52 |
Lennie | program owner | 13:52 |
madrazr | Lennie: Ok | 13:52 |
Lennie | interesting | 13:53 |
Lennie | something has broken :P | 13:53 |
madrazr | same issue again with Create New Program :P | 13:54 |
SRabbelier | probably related to the redirect | 13:54 |
SRabbelier | and the stripping of ?s=0 if the referral is not us | 13:54 |
solydzajs | yep we need to fix those too | 13:55 |
SRabbelier | I know! | 13:55 |
SRabbelier | make an issue! :P | 13:55 |
madrazr | same problem again with create new organization, is it because of the same issue again? | 13:57 |
Lennie | yes | 13:58 |
madrazr | Ok | 13:58 |
Lennie | should be | 13:58 |
madrazr | I am still curious to know how slots are allocated? | 13:59 |
madrazr | how to try that in my local copy? | 13:59 |
SRabbelier | madrazr: I wrote a script for it | 13:59 |
madrazr | SRabbelier: there is no view for it? | 13:59 |
SRabbelier | madrazr: no | 13:59 |
SRabbelier | madrazr: we wouldof told you if there was, yes? :P | 13:59 |
madrazr | SRabbelier: he he, indeed | 14:00 |
Lennie | we have too much to do to really think about slots :D | 14:00 |
Lennie | need orgs and mentors first :P | 14:00 |
SRabbelier | madrazr: slots = low priority atm | 14:00 |
SRabbelier | madrazr: they don't need to be done for quite a while | 14:00 |
madrazr | SRabbelier: the reason why I asked explicitly was, I saw in the mailing list discussion, where solydzajs summarized, about nice views | 14:00 |
madrazr | SRabbelier: Ok | 14:01 |
Lennie | oh | 14:01 |
Lennie | hehe | 14:01 |
Lennie | not yet :P | 14:01 |
SRabbelier | madrazr: correct, but from that discussion didn't you deduct that was design? :P | 14:01 |
Lennie | if only | 14:01 |
Lennie | then we could relax :D | 14:01 |
madrazr | SRabbelier: he he, yeah | 14:01 |
madrazr | seems like this doesn't work out, some one tell me some task of high priority on which none of you are working atm | 14:02 |
madrazr | ? | 14:02 |
SRabbelier | madrazr: yes, that is a better approach :P | 14:03 |
madrazr | SRabbelier: but one thing for sure, I cannot work at any of your pace | 14:03 |
SRabbelier | madrazr: of course not :) | 14:03 |
madrazr | since I am not as used to the code base as you guys | 14:03 |
SRabbelier | madrazr: that would be uncanny | 14:03 |
Lennie | I dont know how long I can keep the pace up either :P | 14:03 |
SRabbelier | there's probably a skill for that | 14:03 |
SRabbelier | uncanny coding or such :P | 14:03 |
Lennie | anyhoo | 14:04 |
madrazr | Lennie: you 4 make me unconcious | 14:04 |
madrazr | 4 == you, SRabbelier, solydzajs, tlarsen | 14:04 |
madrazr | SRabbelier: whats that skill? I did not get it | 14:04 |
SRabbelier | madrazr: D&D reference | 14:04 |
madrazr | s/unconcious/unconscious/ | 14:05 |
madrazr | SRabbelier: this is flying over my head now, only thing I can guess for D&D is Drag 'N Drop :P | 14:05 |
Lennie | hmm | 14:06 |
SRabbelier | Dungeons and Dragons dude | 14:06 |
madrazr | ok any of you, kindly assign some simple task | 14:06 |
madrazr | SRabbelier: oh I did not know :) | 14:06 |
Lennie | task task :p | 14:06 |
Lennie | what to give | 14:06 |
Lennie | too hard ^_^ | 14:07 |
Lennie | you could try to fix the save messages in all the modules | 14:07 |
Lennie | so that they dont say Profile saved :P? | 14:07 |
solydzajs | yep I think it's a good task | 14:08 |
SRabbelier | Lennie: +1 | 14:08 |
solydzajs | +1 | 14:08 |
SRabbelier | solydzajs: adding access_type to document now | 14:08 |
madrazr | Lennie: you mean the one I just noted above? | 14:08 |
SRabbelier | solydzajs: after that the model should be stable | 14:08 |
Lennie | yosh | 14:08 |
Lennie | if you edit an entity | 14:08 |
solydzajs | it was new_params['notice_message'] in __init__ method right ? | 14:08 |
Lennie | you see the message | 14:08 |
Lennie | so you ca ncheck if it says anything usefull | 14:08 |
Lennie | if not | 14:08 |
madrazr | Ok | 14:08 |
madrazr | Lennie: if not? | 14:09 |
Lennie | change params['notice_message'] to something usefull | 14:09 |
madrazr | Ok | 14:09 |
Lennie | probably you should go into base | 14:09 |
Lennie | and change it into | 14:09 |
SRabbelier | also adding access_status, a StringProperty with choices | 14:09 |
SRabbelier | so we can add more later | 14:09 |
Lennie | change params['notice_message'] = "Saved %(name)" % params ? | 14:09 |
SRabbelier | Lennie, solydzajs: should I fold is_featured into that? | 14:09 |
Lennie | SRabbelier | 14:09 |
Lennie | I gotta go in a few min | 14:09 |
Lennie | so lets go over the big picture | 14:09 |
SRabbelier | Lennie: ok | 14:10 |
Lennie | prefix for type? | 14:10 |
Lennie | agreed? | 14:10 |
madrazr | Lennie: Ok, will work on it | 14:10 |
Lennie | like club | 14:10 |
Lennie | organisation | 14:10 |
solydzajs | SRabbelier: ok can access_type have only one access check or more too ? like for example I can say that I want it to be visible for Mentors and Org admins only | 14:10 |
solydzajs | ? | 14:10 |
SRabbelier | Lennie: yes | 14:10 |
SRabbelier | solydzajs: nono, access_type will be the prefix | 14:10 |
SRabbelier | solydzajs: and based on teh prefix we do the checkers | 14:10 |
SRabbelier | Lennie: yes, agreed | 14:10 |
Lennie | we get to rights in a moment solydzajs | 14:10 |
Lennie | okay | 14:10 |
solydzajs | ok | 14:11 |
Lennie | so basically | 14:11 |
Lennie | we have write rights | 14:11 |
SRabbelier | Lennie: access_type is one of "sponsor, program, organisation, user, site"? | 14:11 |
Lennie | which allow you to save a document in some space | 14:11 |
Lennie | club? | 14:11 |
SRabbelier | oh, and club | 14:11 |
SRabbelier | yes | 14:11 |
SRabbelier | just thought of that one too :) | 14:11 |
solydzajs | ok | 14:12 |
Lennie | write = {'club' : [club_admin.logic]} read = {'club': [club_admin_logic, club_member_logic]} | 14:12 |
Lennie | something like that | 14:12 |
Lennie | and then | 14:12 |
Lennie | you have some sort of setting | 14:12 |
Lennie | writers only | 14:13 |
Lennie | <readers> allowed or whatever you come up with | 14:13 |
solydzajs | sounds good. | 14:13 |
Lennie | and public | 14:13 |
Lennie | public meaning | 14:13 |
Lennie | EVERYONE | 14:13 |
solydzajs | ok | 14:13 |
Lennie | SRabbelier, sounds okay? | 14:13 |
SRabbelier | Lennie: yes, that's access_status | 14:13 |
Lennie | now about featured | 14:13 |
Lennie | that's hard | 14:13 |
SRabbelier | Lennie: [ 'private', 'restricted', 'public'', 'featured'] | 14:14 |
SRabbelier | like that? | 14:14 |
SRabbelier | private being only creator of document | 14:14 |
SRabbelier | restricted anyone that has ACL for the access_type | 14:14 |
Lennie | you mean write dict? | 14:14 |
SRabbelier | publid means anyone can read it | 14:14 |
Lennie | I posted | 14:14 |
SRabbelier | featured means it's in the sidebar | 14:14 |
Lennie | in sidebar and public then? | 14:14 |
SRabbelier | yes | 14:14 |
SRabbelier | featured implies public | 14:14 |
SRabbelier | public implies restricted, etc. | 14:15 |
Lennie | do you think we'll need sidebar private stuff? | 14:15 |
SRabbelier | no, that's silly | 14:15 |
SRabbelier | :P | 14:15 |
Lennie | not really | 14:15 |
Lennie | admins only :P | 14:15 |
SRabbelier | yeah, you're right | 14:15 |
SRabbelier | ofcourse :( | 14:15 |
SRabbelier | ['private', 'restricted', 'public'] then | 14:15 |
Lennie | so featured should still be a boolean then | 14:15 |
SRabbelier | and 'is_featured' stays seperate | 14:15 |
Lennie | private would mean everyone in the write group right>? | 14:15 |
SRabbelier | damn, why do you always come up with those nasty workflows? :P | 14:15 |
Lennie | so we can have mentors and org admins having their own place :P? | 14:16 |
SRabbelier | no, private is only you can read and write | 14:16 |
SRabbelier | oh, like that | 14:16 |
SRabbelier | mhhh | 14:16 |
SRabbelier | good question | 14:16 |
SRabbelier | doesn't matter what we have it mean though | 14:16 |
Lennie | only you sounds silly | 14:16 |
SRabbelier | we can add more later :) | 14:16 |
Lennie | just use user for that | 14:16 |
SRabbelier | sure | 14:16 |
SRabbelier | 'user' | 14:16 |
Lennie | I was talking about user in your access type stuff or someting | 14:16 |
SRabbelier | access_type = db.StringProperty(default='active', | 14:16 |
SRabbelier | choices=['site','sponsor','program', 'club', 'organization', 'user'], | 14:16 |
SRabbelier | yes? | 14:16 |
Lennie | Lennie: access_type is one of "sponsor, program, organisation, user, site"? | 14:16 |
Lennie | k | 14:16 |
SRabbelier | Lennie: ah, +1 | 14:17 |
Lennie | that's is what you posted | 14:17 |
Lennie | anyhow | 14:17 |
Lennie | You need to be able to keep a document Club Admin only | 14:17 |
Lennie | or Org/mentor only | 14:17 |
Lennie | for a while | 14:17 |
Lennie | as restricted | 14:17 |
SRabbelier | ok | 14:17 |
Lennie | if you want only yourself to read it | 14:17 |
Lennie | use your own damn space | 14:17 |
SRabbelier | how about | 14:17 |
SRabbelier | access_type as said | 14:17 |
SRabbelier | and access_status also includes 'admin' ? | 14:17 |
solydzajs | SRabbelier: so I can't give access to Orgs and Program ? | 14:17 |
SRabbelier | and 'mentor'? | 14:17 |
SRabbelier | solydzajs: as in both? | 14:18 |
solydzajs | SRabbelier: yes | 14:18 |
SRabbelier | solydzajs: it's gotta be in someone's space | 14:18 |
SRabbelier | solydzajs: either that, or we need to make 'symlinks' :P | 14:18 |
solydzajs | SRabbelier: ok | 14:18 |
SRabbelier | ok, I'll get to this | 14:19 |
SRabbelier | we can always fix it later :) | 14:19 |
solydzajs | true | 14:19 |
Lennie | gotta go | 14:21 |
Lennie | I trust you guys :P | 14:22 |
SRabbelier | hehe | 14:22 |
SRabbelier | Lennie: famous last words | 14:22 |
*** Lennie has quit IRC | 14:22 | |
SRabbelier | solydzajs: ok I worked it out | 14:28 |
SRabbelier | #: field storing the access status of this document | 14:28 |
SRabbelier | # wiki = any user can read and write the document | 14:28 |
SRabbelier | # public = any user can read, only restricted can write | 14:28 |
SRabbelier | # restricted = restricted can read, only admin can write | 14:28 |
SRabbelier | # member = member can read, only restricted can write | 14:28 |
SRabbelier | # admin = admin can read, only admin can write | 14:28 |
SRabbelier | # | 14:28 |
SRabbelier | # example meanings for an organisations: | 14:28 |
SRabbelier | # admin = ['org_admin'] | 14:28 |
SRabbelier | # restricted = ['org_admin', 'org_mentor'] | 14:29 |
SRabbelier | # member = ['org_admin', 'org_mentor', 'org_student'] | 14:29 |
SRabbelier | # public = anyone | 14:29 |
SRabbelier | # wiki = anyone | 14:29 |
SRabbelier | ah, drat, member and restricted are wrong way around, fixed | 14:29 |
SRabbelier | solydzajs: ^^^^^^ | 14:29 |
*** lyaunzbe has quit IRC | 14:41 | |
madrazr | SRabbelier: solydzajs: patch ready | 14:45 |
madrazr | :P | 14:45 |
SRabbelier | madrazr: do share | 14:46 |
madrazr | SRabbelier: sent to the -dev list | 14:50 |
solydzajs | madrazr: thanks for the patch | 14:55 |
madrazr | solydzajs: NP, feels great to do every single squirrel like contribution to Melange :P | 14:56 |
bhy | I submitted the date picker patch to issue tracker | 15:09 |
bhy | http://code.google.com/p/soc/issues/detail?id=172 | 15:09 |
tpb | <http://ln-s.net/2moz> (at code.google.com) | 15:09 |
bhy | solydzajs, hey :) | 15:14 |
*** solydzajs has quit IRC | 15:16 | |
*** solydzajs has joined #melange | 15:19 | |
*** ChanServ sets mode: +o solydzajs | 15:19 | |
SRabbelier | madrazr: very elegant fix for the save message | 15:19 |
SRabbelier | madrazr: I like it | 15:19 |
madrazr | SRabbelier: :) | 15:19 |
madrazr | SRabbelier: trying to fix the other issue too | 15:19 |
madrazr | but not able to find out whats causing the problem | 15:19 |
solydzajs | madrazr: committed already | 15:20 |
madrazr | the problem of not displaying save message when new entity is created | 15:20 |
madrazr | solydzajs: Oh OK, thanks a lot | 15:20 |
madrazr | soc.views.models.base.View.editGet has context['notice'] = within "if entity:" | 15:22 |
madrazr | solydzajs: SRabbelier: ^ ^ | 15:22 |
SRabbelier | madrazr: there's your problem | 15:22 |
SRabbelier | madrazr: well, maybe not? | 15:22 |
madrazr | SRabbelier: tried putting it outside, the problem was not solved | 15:22 |
madrazr | SRabbelier: then? | 15:22 |
SRabbelier | madrazr: the flow for creating is 'create -> edit -> editGet' | 15:23 |
madrazr | ouch | 15:23 |
SRabbelier | madrazr: and then when you hit 'Save' it is 'create -> edit -> editPost' | 15:23 |
madrazr | Oh Ok | 15:23 |
SRabbelier | madrazr: in base.py btw | 15:23 |
madrazr | Ok | 15:23 |
SRabbelier | madrazr: editPost should create a new entity if it doesn't exist | 15:23 |
SRabbelier | madrazr: but that might be after setting the notice, let me check | 15:24 |
madrazr | SRabbelier: Ok | 15:24 |
SRabbelier | madrazr: ah ofcourse | 15:24 |
SRabbelier | madrazr: editPost then redirects to edit | 15:24 |
SRabbelier | madrazr: iwth ?s=0 | 15:24 |
SRabbelier | madrazr: so after that you get to '/edit/foo?s=0' | 15:24 |
SRabbelier | madrazr: which goes 'edit -> editGet' | 15:24 |
SRabbelier | madrazr: at that time there should be an entity for sure | 15:25 |
madrazr | SRabbelier: wait, I am trying to assimilate it :) | 15:25 |
*** bhy has quit IRC | 15:25 | |
madrazr | SRabbelier: so this context['notice'] should come in editPost ?? | 15:26 |
madrazr | for new creating new entities? | 15:26 |
*** Merio has quit IRC | 15:28 | |
*** Merio has joined #melange | 15:29 | |
SRabbelier | madrazr: nope | 15:29 |
SRabbelier | madrazr: editPost will redirect to editGet | 15:30 |
SRabbelier | madrazr: err, to /edit/foo | 15:30 |
SRabbelier | madrazr: so it's no use putting it in editPost | 15:30 |
SRabbelier | madrazr: as the user gets redirected away from there right away | 15:30 |
madrazr | SRabbelier: Ok | 15:30 |
*** madrazr1 has joined #melange | 15:34 | |
*** madrazr has quit IRC | 15:35 | |
*** madrazr1 is now known as madrazr | 15:35 | |
madrazr | SRabbelier: which method handles /edit/foo btw? | 15:36 |
SRabbelier | madrazr: def edit(... | 15:36 |
SRabbelier | madrazr: it passes controll to editGet and editPost | 15:36 |
SRabbelier | madrazr: in base.View | 15:36 |
madrazr | ok | 15:36 |
madrazr | then this chain should bring the control to editGet after a new entity is created right anyways? | 15:37 |
SRabbelier | madrazr: yup! | 15:37 |
SRabbelier | madrazr: it should :) | 15:38 |
SRabbelier | madrazr: can you check if the ?s=0 parameter is there? | 15:38 |
madrazr | when creating? | 15:38 |
madrazr | SRabbelier: ^ | 15:38 |
SRabbelier | madrazr: after creation is complete and you are redirected to edit | 15:38 |
madrazr | SRabbelier: no I don't see ?s=0 then | 15:39 |
SRabbelier | madrazr: that's the problem then | 15:39 |
SRabbelier | madrazr: can you check the referrer? | 15:40 |
madrazr | SRabbelier: how do I do that? | 15:40 |
madrazr | you mean see which method redirected me there? | 15:41 |
SRabbelier | madrazr: which page actually | 15:41 |
SRabbelier | madrazr: I suspect these lines are the culprit: | 15:41 |
SRabbelier | is_self_referrer = helper.requests.isReferrerSelf(request, suffix=suffix) | 15:41 |
SRabbelier | if request.GET.get(params['submit_msg_param_name']): | 15:41 |
SRabbelier | if (not entity) or (not is_self_referrer): | 15:41 |
SRabbelier | return http.HttpResponseRedirect(request.path) | 15:41 |
madrazr | SRabbelier: Oh Ok, will see | 15:42 |
madrazr | SRabbelier: /sponsor/create is the referring URL | 15:44 |
SRabbelier | madrazr: ok, makes sense :) | 15:44 |
SRabbelier | madrazr: you have to add an exception then, for /create | 15:44 |
SRabbelier | madrazr: prehaps prefix='create', adn then add some code to deal with a prefix argument in isReferrerSelf | 15:45 |
SRabbelier | madrazr: which will make it return true if the url starts with prefix instead of what it should be | 15:45 |
madrazr | SRabbelier: Oh Ok | 15:46 |
madrazr | SRabbelier: this is what I thought of doing, please tell me if its right or wrong | 16:00 |
madrazr | in create I pass prefix='create' argument to self.edit | 16:01 |
madrazr | in edit I send that same prefix to both editPost and editGet | 16:01 |
madrazr | and in editGet I pass that to helper.requests.isReferrerSelf | 16:01 |
madrazr | and return True if its 'create' after processing there | 16:02 |
madrazr | SRabbelier: does that make sense? | 16:02 |
SRabbelier | madrazr: that's too involved | 16:16 |
SRabbelier | madrazr: perhaps we should instead check if referrer is the same domain? | 16:17 |
SRabbelier | madrazr: e.g., if we're running on http://socghop.appspot.com, check if the referrer starts with "http://socghop.appspot.com" | 16:17 |
SRabbelier | madrazr: you can do that by doing .startswith(os.environ['HTTP...something']) | 16:18 |
SRabbelier | madrazr: HTTP_HOST | 16:18 |
madrazr | Ok | 16:23 |
madrazr | SRabbelier: ^ | 16:23 |
SRabbelier | madrazr: good luck :) | 16:23 |
madrazr | SRabbelier: thanks, will try tomo morning. Already 3AM here | 16:24 |
madrazr | see you | 16:24 |
madrazr | thanks for all the help | 16:24 |
SRabbelier | madrazr: hehe, go sleep :) | 16:24 |
madrazr | SRabbelier: going ... | 16:25 |
SRabbelier | :) | 16:25 |
SRabbelier | gn'ight | 16:25 |
madrazr | SRabbelier: good night | 16:25 |
*** madrazr has left #melange | 16:25 | |
SRabbelier | solydzajs: ping | 16:37 |
solydzajs | SRabbelier: pong | 16:38 |
SRabbelier | solydzajs: who should be able to create documents in the programs space? | 16:39 |
solydzajs | Hosts only | 16:39 |
SRabbelier | ok | 16:39 |
*** Merio has quit IRC | 16:42 | |
*** lyaunzbe has joined #melange | 16:44 | |
*** Merio has joined #melange | 17:06 | |
*** penyaskito has quit IRC | 17:06 | |
*** penyaskito has joined #melange | 17:06 | |
*** Merio has quit IRC | 17:08 | |
*** SRabbelier has quit IRC | 18:27 | |
*** solydzajs has quit IRC | 18:28 | |
*** tlarsen has quit IRC | 19:11 | |
*** lh has quit IRC | 19:43 | |
*** dmitrig01|afk has joined #melange | 19:57 | |
*** ChanServ sets mode: +v dmitrig01|afk | 19:57 | |
*** thrain42 has joined #melange | 20:12 | |
*** ChanServ sets mode: +v thrain42 | 20:12 | |
*** durin42 has quit IRC | 20:18 | |
*** durin42 has joined #melange | 20:26 | |
*** ChanServ sets mode: +v durin42 | 20:26 | |
*** thrain42 has quit IRC | 20:39 | |
*** lyaunzbe has joined #melange | 22:00 | |
*** mithro has joined #melange | 22:41 | |
*** ChanServ sets mode: +v mithro | 22:41 | |
*** dmitrig01|afk is now known as dmitrig01 | 23:41 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!