Friday, 2009-01-30

*** tpb has joined #melange00:00
*** dmitrig01 has quit IRC00:59
*** madrazr1 has joined #melange02:06
*** madrazr has quit IRC02:06
*** SRabbelier has joined #melange02:17
*** ChanServ sets mode: +v SRabbelier02:17
*** madrazr1 has quit IRC02:47
*** madrazr has joined #melange02:48
*** solydzajs has joined #melange02:54
*** ChanServ sets mode: +o solydzajs02:54
*** bhy has joined #melange02:58
*** scorche has quit IRC04:09
*** scorche has joined #melange04:10
*** madrazr1 has joined #melange04:39
*** madrazr has quit IRC04:40
*** madrazr1 is now known as madrazr04:40
*** MatthewWilkes has joined #melange06:03
*** madrazr has quit IRC07:21
*** no_mind has joined #melange07:29
no_mindknock knock07:30
solydzajsno_mind: hi :-)07:32
solydzajsno_mind: how are you ?07:32
solydzajsno_mind: did you have a chance to finish document selector ?07:32
no_mindyes, but could not email it07:33
solydzajsno_mind: oh why ?07:33
no_mindbtw, I made user selector07:33
solydzajsbtw, user & document selector or just user selectot ?07:33
no_mindits a selector which can be modified for any part07:34
no_mindsolydzajs: if I tell you the reason to why, you will laugh at me :(07:34
*** MatthewWilkes has quit IRC07:34
solydzajsno_mind: I don't laugh at people :-) usually so no worries :-)07:35
solydzajsno_mind: ok so why couldn't you email it ?07:35
no_mindsomeone stole the router feeding internet in my block07:36
solydzajsomg :-)07:36
*** MatthewWilkes has joined #melange07:36
no_mindand 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 internet07:36
solydzajsthat's why you were offline for couple last days ;-)07:36
no_mindbut I will sendit in few hours, just need to clear up the pile of email07:37
no_mindyup,07:37
solydzajsno_mind: where are you from ?;-)07:37
no_mindfrom .in07:37
solydzajsah yep you told me already I forgot ;-)07:37
no_mindthe 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 GPRS07:38
solydzajswow07:44
*** bcarlyon|laptop has quit IRC07:44
*** mithro has joined #melange07:47
*** ChanServ sets mode: +v mithro07:47
*** solydzajs has quit IRC08:47
*** madrazr has joined #melange08:47
madrazrSRabbelier: ping08:49
*** mithro has quit IRC08:57
*** Merio has joined #melange09:28
*** madrazr1 has joined #melange09:40
*** madrazr has quit IRC09:40
*** madrazr1 is now known as madrazr09:40
*** Merio has quit IRC09:56
*** Merio has joined #melange09:56
*** SRabbelier has quit IRC10:00
*** Merio has quit IRC10:04
*** Merio has joined #melange10:04
*** Merio has quit IRC10:09
*** Merio has joined #melange10:10
*** SRabbelier has joined #melange10:14
*** ChanServ sets mode: +v SRabbelier10:14
*** no_mind has quit IRC10:45
*** SRabbelier has quit IRC10:50
*** SRabbelier has joined #melange10:54
*** ChanServ sets mode: +v SRabbelier10:54
*** madrazr1 has joined #melange11:02
*** madrazr has quit IRC11:03
*** madrazr1 is now known as madrazr11:03
*** tlarsen has joined #melange11:05
*** ChanServ sets mode: +o tlarsen11:05
*** Lennie has joined #melange11:06
*** ChanServ sets mode: +v Lennie11:06
Lenniewazzup!11:07
Lennietlarsen, had time to look at the user stuff to see if it fits our needs?11:07
tlarsenLennie: No, I have not.11:08
tlarsenLennie: And I probably won't until Monday.11:08
Lenniehmm11:08
tlarsenMonday is my "Melange day".11:08
Lenniemonday is cut-off day :P11:08
tlarsenYes, and what is done is done.11:09
tlarsenMonday is a cut-off for "no more schema breakage", not for features to be complete.11:09
Lennieso11:09
Lennieuser stuff is schema breakage11:09
Lennieand important if you want a demo up and runnign :)11:09
tlarsenWell, 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
LennieI hope not11:10
LennieI would kindly request you to check it out on Monday then11:10
Lennieand if possible sooner, since Uni is starting again that week11:11
tlarsenIf I can play with it before then, I will.11:11
Lennieso I wont be able to write hundreds of lines of code a day :P11:11
tlarsenI just have something I must work on for Google, and on the weekends I am slaving away at my stupid house.11:11
LennieI understand11:11
*** Lennie is now known as Lennie|Gone11:20
bhyhi, anything I can help?11:26
tlarsenbhy: At this point, the best thing is to take a look in two places:11:32
tlarsenbhy: http://code.google.com/p/soc/issues/list11:32
tpbTitle: Issues - soc - Google Code (at code.google.com)11:32
tlarsenbhy: http://code.google.com/p/soc/wiki/MelangeGSoCRequirements11:32
tpb<http://ln-s.net/2kv9> (at code.google.com)11:32
tlarsen(the issue tracker and the MelangeGSoCRequirements wiki topic)11:32
tlarsenLennie|Gone: The agrees_to_tos changes look good.11:34
tlarsenLennie|Gone: Just one minor request, and I will tack that onto the issue as a comment.11:34
Lennie|Gonehmm11:34
Lennie|Gonedo tell11:34
Lennie|Gonebhy11:35
Lennie|Gonesimple task11:35
Lennie|Goneadd example text to Birthday field in Profile11:35
tlarsenI 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|Gonetlarsen, can you name one website that does that?11:36
bhyLennie|Gone, ok I'll do that :)11:36
tlarsenbhy: Or, figure out how Pawel added a Javascript Date control to the timeline view, and add that to the Birthday field.  :)11:36
Lennie|Goneno tlarsen11:36
Lennie|Gonethat's hard11:36
tlarsenLennie|Gone: The old GSoC web app.11:36
Lennie|Goneyou have to scroll through the years11:36
Lennie|Gonegoing way back11:36
tlarsenThe checkbox that you agreed to the terms remains on your profile.11:36
Lennie|Gonetlarsen: then I might consider it :)11:36
tlarsenIt is not hidden away after you agree.11:36
Lennie|GoneI have an idea11:36
bhytlarsen, is Pawel already working on that?11:36
Lennie|Gonecan it be a text11:36
Lennie|Gonesaying you agreed on....11:36
Lennie|Goneto the ToS11:37
tlarsenbhy: He already has incorporated a Date/Time picker on the timeline view.11:37
tlarsenbhy: There is a suggestion to use that same sort of thing for the Birthday field.11:37
Lennie|GoneI really need to take a look at that picker :P11:37
bhytlarsen, okey, this is interesting :)11:37
bhyI'll take a look :)11:37
tlarsenbhy: http://code.google.com/p/soc/issues/detail?id=17211:37
tpb<http://ln-s.net/2moz> (at code.google.com)11:37
Lennie|Goneif you cant go to a year with one go11:37
Lennie|Gonethen we will not add it11:38
Lennie|Goneto birthday11:38
Lennie|Goneright?11:38
bhyem, right11:38
tlarsenLennie|Gone: Yes, it can be text.  It need not be the checkbox (made somehow read-only).11:38
Lennie|Gonek11:39
Lennie|Gonetlarsen11:39
Lennie|Gonemake an issue11:39
Lennie|Goneassing it to me11:39
tlarsenLennie|Gone: it also does not need to display the ToS again, but a link would be nice. :)11:39
Lennie|GoneI'll get it done11:39
tlarsenLennie|Gone: OK, will do.11:39
Lennie|Gonedinner now11:39
Lennie|Gonebb11:39
bhythere's a drop list on datepicker to select the year11:48
bhyso I think that's ok for birthday11:49
*** r0bby has quit IRC12:01
*** r0bby has joined #melange12:02
Lennie|Gonebhy, yes then it is :D12:06
*** Lennie|Gone is now known as Lennie12:06
LennieI didnt had time to look at the timeline datpicker since I was busy12:06
Lennieand I still am12:07
Lenniewith clubs and requests/invites :)12:07
* bhy trying to add it for birthday field12:07
Lenniek cool12:07
*** Merio has quit IRC12:34
*** Merio has joined #melange12:34
*** solydzajs has joined #melange12:38
*** ChanServ sets mode: +o solydzajs12:38
*** Merio has quit IRC12:39
*** Merio has joined #melange12:40
*** Merio has quit IRC12:45
*** Merio has joined #melange12:45
madrazrsolydzajs: SRabbelier: is any body working with slots thing atm?13:00
solydzajsmadrazr: it's done13:02
madrazrsolydzajs: Oh OK13:03
madrazrsolydzajs: can we already see it in melange-dev?13:03
solydzajsmadrazr: not yet, but you can see it locally13:04
madrazrsolydzajs: 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 range13:04
madrazr      args = ('list index out of range',)13:04
bhyoops, the current datetime picker is for date *and* time13:06
bhyfor birthday we need another date picker13:06
Lenniehmm13:16
SRabbelierhm?13:16
Lenniebhy, there should be settings for that picker somwhere ask solydzajs13:16
Lenniemadrazr13:16
Lenniewhere do you get that error?13:17
Lennieas in what profile are you creating ;)?13:17
* bhy hacking it for such a setting..13:17
Lenniebhy, solydzajs should know13:17
Lenniehe put it in there :P13:17
SRabbelierbhy: hacking?13:17
madrazrLennie: thats the error I got when I tried to give same link id for another sign in email ID13:18
madrazrtried with some other link id and it worked13:18
bhythere's no such a settings for the datetimepicker to only pick dates13:18
madrazrand now comes back my old problem13:18
solydzajsbhy: yes probably just make an on/off switch for time functionality in the current one13:19
madrazrhttp://pastebin.ca/132295413:19
madrazrwhy do I get this error when I try to create some thing new on my local copy?13:20
madrazras in New Program Admin13:20
madrazror something like that13:20
bhyyes, trying13:21
Lenniemadrazr13:23
Lennieso in new user13:23
Lennieyou tried to set the same link id13:24
Lenniefor a different email?13:24
Lennieand got that error13:24
madrazrLennie: yeah13:24
madrazrthe previous one, not the one I have pasted in pastebin13:24
LennieI cant replicate the previous one13:24
Lennieare you up to date?13:24
madrazrLennie yeah, ran svn up just now13:24
madrazrLennie: even though I have updated, I don't see any check box for ToS. makes me wonder whats wrong with my WC13:25
Lennieyou set a ToS in site settings?13:25
Lennieand you wont see checkbox for ToS in New User13:25
Lenniesince dev's cant sign the ToS for someone else13:26
madrazrLennie: no I don't set ToS at all, going to Site Settings gives me the error pasted in pastebin13:26
Lennie:S13:26
Lennieit doesnt give that here lol13:27
Lenniestrange stuff...13:27
madrazryou mean the 2nd error?13:27
Lenniethe first one :P13:27
Lennieand the 2nd one I dont get when going into site settings13:27
solydzajsLennie: I don't think there is a way to turn off time in datetime picker13:27
Lennieyou can have users select a time13:27
Lenniecool feature :P13:27
Lenniewe'll just ignore it ^_^13:28
madrazrLennie: uffff.... this is making me go crazy. Makes me checkout a fresh copy again and try13:28
Lennieclear datastore/13:29
Lennie?13:29
Lenniea lot of things have changed13:29
madrazrLennie: Oh Ok. That I haven't done13:29
madrazrlet me do that and try13:29
madrazrLennie: same error even after clearing datastore13:33
Lennieno way :S13:33
Lennieyou are breaking the app :D13:33
madrazrLennie: :D13:33
Lennieso13:33
solydzajslh: ping13:33
Lennieyou cleared the datastore13:33
Lenniewhat did you do?13:33
madrazrLennie: yeah13:34
Lenniewhen did it go boom ;p'13:34
madrazrLennie: --clear_datastore13:34
Lennieisnt that --c :p?13:34
Lenniemight just be shorthand13:34
Lenniebut anyhow13:34
LennieI'm wondering what did you do to make it crash ;)13:34
madrazrLennie: I am wondering the same13:34
madrazrLennie: let me try checking out fresh copy again13:35
Lenniewhat URL did you open?13:35
Lennieok13:35
SRabbelierLennie: if any it would be -c13:35
SRabbelierLennie: and --clear-datastore as full form13:35
LennieSRabbelier ^_^13:35
madrazrSRabbelier: its _, not - :P13:35
madrazr--clear_datastore13:35
SRabbelierno way?13:35
madrazrSRabbelier: yeah13:36
SRabbelieromg13:36
SRabbelierwhat a bunch of r-tards13:36
madrazrr-tards?13:36
LennieTo clear the local datastore for an application, use the --clear_datastore option when you start the web server:13:36
Lenniedev_appserver.py --clear_datastore myapp13:36
SRabbeliers/-/e/13:36
Lennie^_^13:36
Lenniepwned :P13:36
SRabbelierthat's just lame13:37
SRabbelierno other program uses underscores :-/13:37
Lennie"${project_loc}\app" -c13:37
Lenniealso works :P13:37
Lenniein eclipse :P13:37
SRabbelierright :)13:37
* madrazr prays for new copy to work properly :P13:40
LennieI hope so13:40
*** solydzajs has quit IRC13:42
madrazrLennie: wonder!!!13:43
Lennieyee13:43
madrazrphew phew!!!13:43
Lennieit works13:43
Lenniemy code doesnt fail13:43
Lennie:P13:43
* madrazr whistles13:43
Lennieyet13:43
madrazrLennie: he he he13:43
madrazrLennie: I am just struck, to see your conviction :)13:44
Lennieoverconfidence ftw13:44
madrazrhe he13:44
*** solydzajs has joined #melange13:44
*** ChanServ sets mode: +o solydzajs13:44
madrazrLennie: I am still wondering what is wrong with my old WC13:45
SRabbeliermadrazr: probably has some cruft lying around13:46
madrazrSRabbelier: Ok13:47
madrazrwhen I create a program owner shouldn't Melange notify that its successfully created?13:47
madrazror am I just overlooking?13:47
solydzajsmadrazr: are you testing locally ?13:48
madrazrsolydzajs: yeah13:49
solydzajsmadrazr: did you setup SMTP parameters for dev_appserver ?13:49
Lenniesolydzajs13:49
madrazrsolydzajs: no13:49
Lenniehe still should get a notification on his local stuff13:49
LennieI dont think he's talking about email13:49
solydzajsoh13:49
solydzajsok13:49
madrazrLennie: right13:49
solydzajsthen nevermind13:49
solydzajsis something broken then ?13:49
Lennienope13:49
madrazrsolydzajs: nothing13:50
Lennieor probably13:50
Lennienot the notifications anyway13:50
madrazrsolydzajs: I am just expecting too much :P13:50
Lenniehe probably means 'Profile Saved' message :P13:50
madrazrLennie: exactly13:50
Lennieor Program Owner Saved13:50
Lenniethat should happen yeah13:50
Lenniebut apparently it does not13:50
SRabbelierLennie: what page do you redirect to?13:50
madrazrLennie: give me some time13:50
madrazrlet me try to add13:50
SRabbelier /list or /edit or such?13:50
madrazrseeing how profile saved appears13:50
Lennieprogram owner should be list13:51
Lennieor edit13:51
*** MatthewWilkes has quit IRC13:51
Lennieactually13:51
SRabbelierif it's list13:51
madrazrLennie: it is edit13:51
SRabbelierlist doesn't have the notification setup code13:51
madrazrSRabbelier: it is edit13:51
LennieI get the message on top when editing something :P13:51
madrazrLennie: something == ??13:52
Lenniebut not when creating13:52
Lenniehmm13:52
Lennieinteresting :013:52
Lennieprogram owner13:52
madrazrLennie: Ok13:52
Lennieinteresting13:53
Lenniesomething has broken :P13:53
madrazrsame issue again with Create New Program :P13:54
SRabbelierprobably related to the redirect13:54
SRabbelierand the stripping of ?s=0 if the referral is not us13:54
solydzajsyep we need to fix those too13:55
SRabbelier I know!13:55
SRabbeliermake an issue! :P13:55
madrazrsame problem again with create new organization, is it because of the same issue again?13:57
Lennieyes13:58
madrazrOk13:58
Lennieshould be13:58
madrazrI am still curious to know how slots are allocated?13:59
madrazrhow to try that in my local copy?13:59
SRabbeliermadrazr: I wrote a script for it13:59
madrazrSRabbelier: there is no view for it?13:59
SRabbeliermadrazr: no13:59
SRabbeliermadrazr: we wouldof told you if there was, yes? :P13:59
madrazrSRabbelier: he he, indeed14:00
Lenniewe have too much to do to really think about slots :D14:00
Lennieneed orgs and mentors first :P14:00
SRabbeliermadrazr: slots = low priority atm14:00
SRabbeliermadrazr: they don't need to be done for quite a while14:00
madrazrSRabbelier: the reason why I asked explicitly was, I saw in the mailing list discussion, where solydzajs summarized, about nice views14:00
madrazrSRabbelier: Ok14:01
Lennieoh14:01
Lenniehehe14:01
Lennienot yet :P14:01
SRabbeliermadrazr: correct, but from that discussion didn't you deduct that was design? :P14:01
Lennieif only14:01
Lenniethen we could relax :D14:01
madrazrSRabbelier: he he, yeah14:01
madrazrseems like this doesn't work out, some one tell me some task of high priority on which none of you are working atm14:02
madrazr?14:02
SRabbeliermadrazr: yes, that is a better approach :P14:03
madrazrSRabbelier: but one thing for sure, I cannot work at any of your pace14:03
SRabbeliermadrazr: of course not :)14:03
madrazrsince I am not as used to the code base as you guys14:03
SRabbeliermadrazr: that would be uncanny14:03
LennieI dont know how long I can keep the pace up either :P14:03
SRabbelierthere's probably a skill for that14:03
SRabbelieruncanny coding or such :P14:03
Lennieanyhoo14:04
madrazrLennie: you 4 make me unconcious14:04
madrazr4 == you, SRabbelier, solydzajs, tlarsen14:04
madrazrSRabbelier: whats that skill? I did not get it14:04
SRabbeliermadrazr: D&D reference14:04
madrazrs/unconcious/unconscious/14:05
madrazrSRabbelier: this is flying over my head now, only thing I can guess for D&D is Drag 'N Drop :P14:05
Lenniehmm14:06
SRabbelierDungeons and Dragons dude14:06
madrazrok any of you, kindly assign some simple task14:06
madrazrSRabbelier: oh I did not know :)14:06
Lennietask task :p14:06
Lenniewhat to give14:06
Lennietoo hard ^_^14:07
Lennieyou could try to fix the save messages in all the modules14:07
Lennieso that they dont say Profile saved :P?14:07
solydzajsyep I think it's a good task14:08
SRabbelierLennie: +114:08
solydzajs+114:08
SRabbeliersolydzajs: adding access_type to document now14:08
madrazrLennie: you mean the one I just noted above?14:08
SRabbeliersolydzajs: after that the model should be stable14:08
Lennieyosh14:08
Lennieif you edit an entity14:08
solydzajsit was new_params['notice_message'] in __init__ method right ?14:08
Lennieyou see the message14:08
Lennieso you ca ncheck if it says anything usefull14:08
Lennieif not14:08
madrazrOk14:08
madrazrLennie: if not?14:09
Lenniechange params['notice_message'] to something usefull14:09
madrazrOk14:09
Lennieprobably you should go into base14:09
Lennieand change it into14:09
SRabbelieralso adding access_status, a StringProperty with choices14:09
SRabbelierso we can add more later14:09
Lenniechange params['notice_message'] = "Saved %(name)" % params ?14:09
SRabbelierLennie, solydzajs: should I fold is_featured into that?14:09
LennieSRabbelier14:09
LennieI gotta go in a few min14:09
Lennieso lets go over the big picture14:09
SRabbelierLennie: ok14:10
Lennieprefix for type?14:10
Lennieagreed?14:10
madrazrLennie: Ok, will work on it14:10
Lennielike club14:10
Lennieorganisation14:10
solydzajsSRabbelier: 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 only14:10
solydzajs?14:10
SRabbelierLennie: yes14:10
SRabbeliersolydzajs: nono, access_type will be the prefix14:10
SRabbeliersolydzajs: and based on teh prefix we do the checkers14:10
SRabbelierLennie: yes, agreed14:10
Lenniewe get to rights in a moment solydzajs14:10
Lennieokay14:10
solydzajsok14:11
Lennieso basically14:11
Lenniewe have write rights14:11
SRabbelierLennie: access_type is one of "sponsor, program, organisation, user, site"?14:11
Lenniewhich allow you to save a document in some space14:11
Lennieclub?14:11
SRabbelieroh, and club14:11
SRabbelieryes14:11
SRabbelierjust thought of that one too :)14:11
solydzajsok14:12
Lenniewrite = {'club' : [club_admin.logic]} read = {'club': [club_admin_logic, club_member_logic]}14:12
Lenniesomething like that14:12
Lennieand then14:12
Lennieyou have some sort of setting14:12
Lenniewriters only14:13
Lennie<readers> allowed or whatever you come up with14:13
solydzajssounds good.14:13
Lennieand public14:13
Lenniepublic meaning14:13
LennieEVERYONE14:13
solydzajsok14:13
LennieSRabbelier, sounds okay?14:13
SRabbelierLennie: yes, that's access_status14:13
Lennienow about featured14:13
Lenniethat's hard14:13
SRabbelierLennie: [ 'private', 'restricted', 'public'', 'featured']14:14
SRabbelierlike that?14:14
SRabbelierprivate being only creator of document14:14
SRabbelierrestricted anyone that has ACL for the access_type14:14
Lennieyou mean write dict?14:14
SRabbelierpublid means anyone can read it14:14
LennieI posted14:14
SRabbelierfeatured means it's in the sidebar14:14
Lenniein sidebar and public then?14:14
SRabbelieryes14:14
SRabbelierfeatured implies public14:14
SRabbelierpublic implies restricted, etc.14:15
Lenniedo you think we'll need sidebar private stuff?14:15
SRabbelierno, that's silly14:15
SRabbelier:P14:15
Lennienot really14:15
Lennieadmins only :P14:15
SRabbelieryeah, you're right14:15
SRabbelierofcourse :(14:15
SRabbelier['private', 'restricted', 'public'] then14:15
Lennieso featured should still be a boolean then14:15
SRabbelierand 'is_featured' stays seperate14:15
Lennieprivate would mean everyone in the write group right>?14:15
SRabbelierdamn, why do you always come up with those nasty workflows? :P14:15
Lennieso we can have mentors and org admins having their own place :P?14:16
SRabbelierno, private is only you can read and write14:16
SRabbelieroh, like that14:16
SRabbeliermhhh14:16
SRabbeliergood question14:16
SRabbelierdoesn't matter what we have it mean though14:16
Lennieonly you sounds silly14:16
SRabbelierwe can add more later :)14:16
Lenniejust use user for that14:16
SRabbeliersure14:16
SRabbelier'user'14:16
LennieI was talking about user in your access type stuff or someting14:16
SRabbelieraccess_type = db.StringProperty(default='active',14:16
SRabbelier      choices=['site','sponsor','program', 'club', 'organization', 'user'],14:16
SRabbelieryes?14:16
LennieLennie: access_type is one of "sponsor, program, organisation, user, site"?14:16
Lenniek14:16
SRabbelierLennie: ah, +114:17
Lenniethat's is what you posted14:17
Lennieanyhow14:17
LennieYou need to be able to keep a document Club Admin only14:17
Lennieor Org/mentor only14:17
Lenniefor a while14:17
Lennieas restricted14:17
SRabbelierok14:17
Lennieif you want only yourself to read it14:17
Lennieuse your own damn space14:17
SRabbelierhow about14:17
SRabbelieraccess_type as said14:17
SRabbelierand access_status also includes 'admin' ?14:17
solydzajsSRabbelier: so I can't give access to Orgs and Program ?14:17
SRabbelierand 'mentor'?14:17
SRabbeliersolydzajs: as in both?14:18
solydzajsSRabbelier: yes14:18
SRabbeliersolydzajs: it's gotta be in someone's space14:18
SRabbeliersolydzajs: either that, or we need to make 'symlinks' :P14:18
solydzajsSRabbelier: ok14:18
SRabbelierok, I'll get to this14:19
SRabbelierwe can always fix it later :)14:19
solydzajstrue14:19
Lenniegotta go14:21
LennieI trust you guys :P14:22
SRabbelierhehe14:22
SRabbelierLennie: famous last words14:22
*** Lennie has quit IRC14:22
SRabbeliersolydzajs: ok I worked it out14:28
SRabbelier  #: field storing the access status of this document14:28
SRabbelier  # wiki = any user can read and write the document14:28
SRabbelier  # public = any user can read, only restricted can write14:28
SRabbelier  # restricted = restricted can read, only admin can write14:28
SRabbelier  # member = member can read, only restricted can write14:28
SRabbelier  # admin = admin can read, only admin can write14: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 = anyone14:29
SRabbelier  # wiki = anyone14:29
SRabbelierah, drat,  member and restricted are wrong way around, fixed14:29
SRabbeliersolydzajs: ^^^^^^14:29
*** lyaunzbe has quit IRC14:41
madrazrSRabbelier: solydzajs: patch ready14:45
madrazr:P14:45
SRabbeliermadrazr: do share14:46
madrazrSRabbelier: sent to the -dev list14:50
solydzajsmadrazr: thanks for the patch14:55
madrazrsolydzajs: NP, feels great to do every single squirrel like contribution to Melange :P14:56
bhyI submitted the date picker patch to issue tracker15:09
bhyhttp://code.google.com/p/soc/issues/detail?id=17215:09
tpb<http://ln-s.net/2moz> (at code.google.com)15:09
bhysolydzajs, hey :)15:14
*** solydzajs has quit IRC15:16
*** solydzajs has joined #melange15:19
*** ChanServ sets mode: +o solydzajs15:19
SRabbeliermadrazr: very elegant fix for the save message15:19
SRabbeliermadrazr: I like it15:19
madrazrSRabbelier: :)15:19
madrazrSRabbelier: trying to fix the other issue too15:19
madrazrbut not able to find out whats causing the problem15:19
solydzajsmadrazr: committed already15:20
madrazrthe problem of not displaying save message when new entity is created15:20
madrazrsolydzajs: Oh OK, thanks a lot15:20
madrazrsoc.views.models.base.View.editGet has context['notice'] = within "if entity:"15:22
madrazrsolydzajs: SRabbelier: ^ ^15:22
SRabbeliermadrazr: there's your problem15:22
SRabbeliermadrazr: well, maybe not?15:22
madrazrSRabbelier: tried putting it outside, the problem was not solved15:22
madrazrSRabbelier: then?15:22
SRabbeliermadrazr: the flow for creating is 'create -> edit -> editGet'15:23
madrazrouch15:23
SRabbeliermadrazr: and then when you hit 'Save' it is 'create -> edit -> editPost'15:23
madrazrOh Ok15:23
SRabbeliermadrazr: in base.py btw15:23
madrazrOk15:23
SRabbeliermadrazr: editPost should create a new entity if it doesn't exist15:23
SRabbeliermadrazr: but that might be after setting the notice, let me check15:24
madrazrSRabbelier: Ok15:24
SRabbeliermadrazr: ah ofcourse15:24
SRabbeliermadrazr: editPost then redirects to edit15:24
SRabbeliermadrazr: iwth ?s=015:24
SRabbeliermadrazr: so after that you get to '/edit/foo?s=0'15:24
SRabbeliermadrazr: which goes 'edit -> editGet'15:24
SRabbeliermadrazr: at that time there should be an entity for sure15:25
madrazrSRabbelier: wait, I am trying to assimilate it :)15:25
*** bhy has quit IRC15:25
madrazrSRabbelier: so this context['notice'] should come in editPost ??15:26
madrazrfor new creating new entities?15:26
*** Merio has quit IRC15:28
*** Merio has joined #melange15:29
SRabbeliermadrazr: nope15:29
SRabbeliermadrazr: editPost will redirect to editGet15:30
SRabbeliermadrazr: err, to /edit/foo15:30
SRabbeliermadrazr: so it's no use putting it in editPost15:30
SRabbeliermadrazr: as the user gets redirected away from there right away15:30
madrazrSRabbelier: Ok15:30
*** madrazr1 has joined #melange15:34
*** madrazr has quit IRC15:35
*** madrazr1 is now known as madrazr15:35
madrazrSRabbelier: which method handles /edit/foo btw?15:36
SRabbeliermadrazr: def edit(...15:36
SRabbeliermadrazr: it passes controll to editGet and editPost15:36
SRabbeliermadrazr: in base.View15:36
madrazrok15:36
madrazrthen this chain should bring the control to editGet after a new entity is created right anyways?15:37
SRabbeliermadrazr: yup!15:37
SRabbeliermadrazr: it should :)15:38
SRabbeliermadrazr: can you check if the ?s=0 parameter is there?15:38
madrazrwhen creating?15:38
madrazrSRabbelier: ^15:38
SRabbeliermadrazr: after creation is complete and you are redirected to edit15:38
madrazrSRabbelier: no I don't see ?s=0 then15:39
SRabbeliermadrazr: that's the problem then15:39
SRabbeliermadrazr: can you check the referrer?15:40
madrazrSRabbelier: how do I do that?15:40
madrazryou mean see which method redirected me there?15:41
SRabbeliermadrazr: which page actually15:41
SRabbeliermadrazr: 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
madrazrSRabbelier: Oh Ok, will see15:42
madrazrSRabbelier: /sponsor/create is the referring URL15:44
SRabbeliermadrazr: ok, makes sense :)15:44
SRabbeliermadrazr: you have to add an exception then, for /create15:44
SRabbeliermadrazr: prehaps prefix='create', adn then add some code to deal with a prefix argument in isReferrerSelf15:45
SRabbeliermadrazr: which will make it return true if the url starts with prefix instead of what it should be15:45
madrazrSRabbelier: Oh Ok15:46
madrazrSRabbelier: this is what I thought of doing, please tell me if its right or wrong16:00
madrazrin create I pass prefix='create' argument to self.edit16:01
madrazrin edit I send that same prefix to both editPost and editGet16:01
madrazrand in editGet I pass that to helper.requests.isReferrerSelf16:01
madrazrand return True if its 'create' after processing there16:02
madrazrSRabbelier: does that make sense?16:02
SRabbeliermadrazr: that's too involved16:16
SRabbeliermadrazr: perhaps we should instead check if referrer is the same domain?16:17
SRabbeliermadrazr: e.g., if we're running on http://socghop.appspot.com, check if the referrer starts with "http://socghop.appspot.com"16:17
SRabbeliermadrazr: you can do that by doing .startswith(os.environ['HTTP...something'])16:18
SRabbeliermadrazr: HTTP_HOST16:18
madrazrOk16:23
madrazrSRabbelier: ^16:23
SRabbeliermadrazr: good luck :)16:23
madrazrSRabbelier: thanks, will try tomo morning. Already 3AM here16:24
madrazrsee you16:24
madrazrthanks for all the help16:24
SRabbeliermadrazr: hehe, go sleep :)16:24
madrazrSRabbelier: going ...16:25
SRabbelier:)16:25
SRabbeliergn'ight16:25
madrazrSRabbelier: good night16:25
*** madrazr has left #melange16:25
SRabbeliersolydzajs: ping16:37
solydzajsSRabbelier: pong16:38
SRabbeliersolydzajs: who should be able to create documents in the programs space?16:39
solydzajsHosts only16:39
SRabbelierok16:39
*** Merio has quit IRC16:42
*** lyaunzbe has joined #melange16:44
*** Merio has joined #melange17:06
*** penyaskito has quit IRC17:06
*** penyaskito has joined #melange17:06
*** Merio has quit IRC17:08
*** SRabbelier has quit IRC18:27
*** solydzajs has quit IRC18:28
*** tlarsen has quit IRC19:11
*** lh has quit IRC19:43
*** dmitrig01|afk has joined #melange19:57
*** ChanServ sets mode: +v dmitrig01|afk19:57
*** thrain42 has joined #melange20:12
*** ChanServ sets mode: +v thrain4220:12
*** durin42 has quit IRC20:18
*** durin42 has joined #melange20:26
*** ChanServ sets mode: +v durin4220:26
*** thrain42 has quit IRC20:39
*** lyaunzbe has joined #melange22:00
*** mithro has joined #melange22:41
*** ChanServ sets mode: +v mithro22:41
*** dmitrig01|afk is now known as dmitrig0123:41

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!