Sunday, 2014-03-02

*** tpb has joined #melange00:00
madrazrfrom_old_key() can only take the db.Key instances00:00
madrazralso in this particular case why do you even want to do that key conversion from DB key to NDB key?00:01
madrazrOh I see00:01
madrazryou need it for user.host_for.remove(program_key_new) line00:01
shikhermadrazr: yes00:02
madrazrshikher: Ok00:02
madrazrshikher: give me a moment, let me check something for you00:02
shikhermadrazr: proram_key type is unicode00:03
madrazrshikher: well, Python's unicode - str confusion horribleness00:04
shikherLooks like this ERROR    2014-03-02 00:04:22,104 program.py:321] Key('GSoCProgram', 'google/gsoc2014')00:04
madrazrshikher: for the purpose of this discussion they are the same00:04
shikhermadrazr: k00:04
madrazrshikher: what error?00:04
shikherits just logging00:04
shikherI was showing u wat the key looks like00:05
madrazrthat's totally weird now00:05
madrazrwhere is that log coming from?00:05
madrazrfrom the logging.error() line in your transaction?00:06
madrazrand how did you get the type to be unicode?00:07
shikhermadrazr: yes logging.error(), even the type is coming from loggin.error()00:08
madrazrI am confused00:08
madrazrshow me the code?00:09
*** larryxiao has joined #melange00:10
shikherhttp://pastebin.com/dkqZA57700:11
tpbTitle: def removeAdmin(self, data): for properties in data: logging.err - Pastebin.com (at pastebin.com)00:11
madrazrOk fair enough00:12
madrazrall looks good00:12
madrazras in, as expected00:12
shikher:)00:13
*** asmeurer_ has joined #melange00:14
*** ahsanalishahid has quit IRC00:14
madrazrshikher: this is getting interesting now00:15
madrazrIn [9]: ndb.Key.from_old_key(uk)00:16
madrazrOut[9]: Key('GSoCProgram', 'google/gsoc2013')00:16
madrazrwhere uk is the string representation of the program key00:16
shikhermadrazr: ya,i have been waiting a few days for this discussion00:16
shikhermadrazr: does that mean that program_key is already the ndb key type and there is no need for conversion?00:17
madrazrshikher: can you log properties dictionary00:17
shikhermadrazr: sure00:18
madrazrand show me what it contains?00:18
madrazrshikher: probably that00:18
madrazrshikher: but that doesn't explain why logging.error(type(program_key))00:18
madrazris logging ERROR    2014-03-02 00:10:41,839 program.py:322] <type 'unicode'>00:18
madrazrit should log the type as Key00:18
*** aliasm2k has joined #melange00:18
madrazrsomething like google.appengine.ext.ndb.key.Key00:19
shikherpython can do that? is that a valid python type?00:20
shikherHere's the properties:00:20
shikherERROR    2014-03-02 00:16:27,692 program.py:310] {u'program_key': u"Key('GSoCProgram', 'google/gsoc2014')", u'profile_key': u"Profile(key=Key('User', 'test', 'Profile', 'google/gsoc2014/test'), admin_for=[Key('SOCOrganization', 'google/gsoc2014/org_0'), Key('SOCOrganization', 'google/gsoc2014/myorg')], birth_date=datetime.date(1996, 3, 4), contact=00:20
shikherContact(blog=None, email=u'[email protected]', facebook=None, feed_url=None, google_plus=None, irc_channel=None, mailing_list=None, phone=None, twitter=None, web_page=None), first_name=u'Test', gender=None, is_admin=True, is_mentor=True, is_student=False, last_name=u'Example', mentor_for=[Key('SOCOrganization', 'google/gsoc2014/org_0'), Key('SOCOrga00:20
shikhernization', 'google/gsoc2014/org_1'), Key('SOCOrganization', 'google/gsoc2014/myorg')], photo_url=None, program=Key('GSoCProgram', 'google/gsoc2014'), program_knowledge=u'Friend referral', public_name=u'test', residential_address=Address(city=u'Some City', country=u'United States', name=None, postal_code=u'12345', province=None, street=u'1 Test St.'00:20
shikher, street_extra=None), shipping_address=Address(city=u'Some City', country=u'United States', name=None, postal_code=u'12345', province=None, street=u'1 Test St.', street_extra=None), status=Status(ACTIVE, 1), student_data=None, tee_size=None, tee_style=None)"}00:20
madrazrshikher: whoa!00:20
shikher:D00:21
madrazrshikher: what do you mean by your question?00:22
madrazrshikher: you can define your own types in Python00:22
shikhertype should return things like int, str, list. key is GAE specific. thts wat i meant.00:22
madrazrshikher: and in fact NDB was written by Guido van Rossum when he was still at Google00:22
madrazrshikher: he of course knows how to pull such tricks on the language ;-)00:23
shikheris type() configured to return  other typer?00:23
shikhermadrazr: ok00:23
madrazrshikher: type returns the type of the object00:23
madrazrwhatever is the type00:23
shikhermadrazr: ok00:24
madrazrshikher: including builtin types like int, float, str, etc. and user defined types00:24
*** aliasm2k has quit IRC00:30
madrazrshikher: it looks like we did not think hard enough into this problem00:30
madrazror look deeply enough00:30
madrazrshikher: I don't think I will be able to make any reasonable suggestion without having your entire code00:30
madrazrin a way I can run it on my machine00:31
shikhermadrazr: I would not like to increase ur workload. tht would require a lot from u. u will be on IRC for much longer?00:32
shikherhow much*\00:32
madrazrshikher: I should be around00:32
madrazrshikher: you can ping me on GChat to call me here if you want me for something00:32
madrazrshikher: I will be on GChat all the time00:33
*** larryxiao has quit IRC00:33
madrazrshikher: btw if you would like to attempt tackling this problem00:33
madrazrhere are a few pointers00:33
shikhermadrazr: sure. I will try some changes and let you knw in case of any doubts. As a last resort of u running my code, i hope it doesn;t come to tht00:33
madrazrshikher: these are not the answers00:34
shikhermadrazr: of course. np.00:34
madrazrshikher: there is some exploration needed00:34
madrazrshikher: while constructing the keys for list items, we just used to do str(key) or its equivalents like '%s' % key00:35
madrazretc00:35
madrazrall of which returned the base64 encoded version of the key in the regular DB API00:35
madrazrthis behavior seems to have changed (or at least was not consistently carried over from the DB API) in NDB00:36
madrazrfor NDB key instances00:36
madrazrstr(key) or its equivalents give the string representation of the Python code of its constructor00:36
madrazrwhy would anybody do that now?00:36
madrazr;-)00:36
madrazranyway00:37
madrazrso I think what we need to do is00:37
madrazrwhile constructing the list items/rows00:37
madrazrwhen we serialize the key instance, we should check if the key instance is an NDB key or a DB key00:37
madrazrif it is an NDB key we should call key.urlsafe()00:37
madrazrto get the base64 encoded version of the NDB key00:38
madrazrelse we should just do whatever we are doing now assuming the key is regular DB Key00:38
madrazrshikher: as clear as mud? ;-)00:38
shikhermadrazr: as clear as crystal00:39
madrazrshikher: cool!00:39
madrazrshikher: ping me if you have any questions00:39
shikhermadrazr: sure.00:39
shikhermadrazr: thanks for this discussion.00:39
madrazrshikher: np00:40
shikhermadrazr: i really appreciate it.00:40
madrazrshikher: thanks for working on this00:40
shikher:D.00:40
*** ashishsfb has quit IRC00:44
*** larryxiao has joined #melange00:56
*** asmeurer_ has quit IRC01:07
shikhermadrazr: yes! got it working.01:07
shikherthe code is not the cleanest but its working.01:08
madrazrshikher: very cool01:21
shikhermadrazr:it is. just need to work on adding admins, and this feature is done. thanx so much for all the help. urlsafe definitely helped.01:24
madrazrshikher: cool01:24
*** raghunayyar has quit IRC01:27
shikhermadrazr: for adding admins, should I include all of users as possible admins in the list, of course excluding those who already are program admins?01:30
*** robbyoconnor has joined #melange01:36
*** robbyoconnor has quit IRC01:51
*** robbyoconnor has joined #melange01:51
madrazrshikher: that would be disastrous :P01:55
madrazrshikher: Carol will sit there waiting for that page to load, for ever01:55
madrazrquite literally for ever01:55
madrazr:P01:55
shikhermadrazr: how would we choose who are prospective admins, or should we implement a search by username01:56
madrazrshikher: something like that01:56
madrazrshikher: just a simple text box that takes username01:56
madrazrshikher: probably a nice to have would be to have an auto complete01:56
shikhermadrazr: that would require a separate page and no lists, right?01:56
*** edsiper has joined #melange01:56
madrazrshikher: correct01:56
madrazrshikher: it depends on how you envision it01:57
edsiperhi folks, this is Eduardo from Monkey Project (org admin), i am trying to list our org members but the page fails with "Error retrieving data: please refresh the list or the whole page to try again" , any idea ?01:57
shikhermadrazr: ok01:57
shikherthanks01:57
madrazrshikher: probably if you have god UI skills you can probably put them both on the same page01:57
madrazrshikher: but open to experimentation01:57
madrazredsiper: Hi01:58
madrazredsiper: can you please tell us what page you are navigating to?01:58
*** robbyoconnor has quit IRC01:58
shikhermadrazr: how about how do I the basic search first and then improve this feature by adding autocomplete and putting it on same page01:58
madrazri.e. the sequence of your navigation01:58
madrazrshikher: definitely the way to go01:58
shikhermadrazr: ok. thanks01:59
*** robbyoconnor has joined #melange02:02
*** rocker has quit IRC02:13
*** robbyoconnor has quit IRC02:20
edsiperhi madrazr02:27
edsiperhttp://www.google-melange.com/gsoc/dashboard/google/gsoc2014#participants02:27
shikhermadrazr: If you have time just review my work for Issue 2026(cleaning) and issue 2000(program admins).I have posted on ML.  thanks. bye02:31
*** shikher has quit IRC02:31
*** asmeurer__ has joined #melange02:31
madrazredsiper: would you mind filing an issue for us please?02:50
madrazredsiper: http://tinyurl.com/new-issue is the URL to file an issue02:51
edsipermadrazr, just realized the info i was looking for was under "Connections", i am not sure if that page should return something at this point02:52
edsiperif it should i will file a bug :)02:52
madrazredsiper: sure02:52
madrazrthanks!02:52
*** coderbrahmin has joined #melange02:55
edsiperdone https://code.google.com/p/soc/issues/detail?id=206102:57
tpb<http://ln-s.net/B+y:> (at code.google.com)02:57
madrazredsiper: thanks!02:57
*** coderbrahmin has quit IRC03:00
*** coderbrahmin has joined #melange03:05
*** jasvir has joined #melange03:10
*** Niharika has joined #melange03:10
*** asmeurer____ has joined #melange03:14
*** asmeurer____ has quit IRC03:15
*** asmeurer__ has quit IRC03:15
*** robbyoconnor has joined #melange03:22
*** bitgeeky has joined #melange03:23
*** coderbrahmin has quit IRC03:26
*** larryxiao has quit IRC03:33
*** coderbrahmin has joined #melange03:38
*** coderbrahmin has quit IRC03:44
*** shikher has joined #melange03:57
*** mang0 has quit IRC03:59
*** coderbrahmin has joined #melange04:11
*** SinnerShanky has quit IRC04:13
*** SinnerShanky has joined #melange04:17
*** coderbrahmin has quit IRC04:21
*** larryxiao has joined #melange04:30
*** asmeurer has joined #melange04:32
*** asmeurer has quit IRC04:33
*** larryxiao has quit IRC04:38
*** suranga has joined #melange04:39
*** coderbrahmin has joined #melange04:44
*** madrazr has quit IRC04:48
*** asmeurer__ has joined #melange05:09
*** larryxiao has joined #melange05:10
*** coderbrahmin has quit IRC05:11
*** bitgeeky has quit IRC05:11
*** raghunayyar has joined #melange05:21
*** coderbrahmin has joined #melange05:26
*** shikher has quit IRC05:32
*** coderbrahmin has quit IRC05:49
*** ashishk has joined #melange05:52
*** robbyoconnor has quit IRC06:01
*** jasvir has left #melange06:03
*** abhi17 has joined #melange06:08
*** monkegjinni has joined #melange06:09
*** vivekjain has joined #melange06:21
*** coderbrahmin has joined #melange06:27
*** robbyoconnor has joined #melange06:33
*** coderbrahmin has quit IRC06:49
*** coderbrahmin has joined #melange06:51
*** coderbrahmin has left #melange06:51
*** devang has joined #melange06:54
*** shrihari has joined #melange06:55
*** monkegjinni has quit IRC06:58
*** monkegjinni has joined #melange06:58
*** abhi17 has quit IRC07:01
*** monkegjinni has quit IRC07:03
*** ashishk has quit IRC07:09
*** shrihari has quit IRC07:11
*** vivekjain has quit IRC07:15
*** ashishk has joined #melange07:16
*** robbyoconnor has quit IRC07:20
*** larryxiao1 has joined #melange07:24
*** larryxiao has quit IRC07:24
*** aliasm2k has joined #melange07:25
aliasm2kNathaniel Manista?07:26
aliasm2kJust wanted to discuss about responsive design for melange07:27
*** abhi17 has joined #melange07:32
*** larryxiao1 has quit IRC07:33
*** ashishk has quit IRC07:42
*** abhi17 has quit IRC07:47
*** aliasm2k has quit IRC07:53
*** larryxiao has joined #melange07:59
*** SinnerShanky has quit IRC08:00
*** ashishk has joined #melange08:04
*** devang has quit IRC08:06
*** shrihari has joined #melange08:06
*** denysbut_ has joined #melange08:07
*** larryxiao has quit IRC08:08
*** denysbutenko has quit IRC08:09
*** shrihari has quit IRC08:11
*** shrihari has joined #melange08:14
*** SinnerShanky has joined #melange08:14
*** larryxiao has joined #melange08:21
*** larryxiao1 has joined #melange08:23
*** larryxiao has quit IRC08:24
*** devang has joined #melange08:30
*** larryxiao1 has quit IRC08:30
*** abhi17 has joined #melange08:31
*** abhi17 has quit IRC08:37
*** ashishk has quit IRC08:45
*** shrihari has quit IRC08:50
*** shrihari has joined #melange08:52
*** manugupt1 has joined #melange08:55
*** asmeurer__ has quit IRC09:06
*** manugupt1_ has joined #melange09:11
*** manugupt1 has quit IRC09:14
*** coderbrahmin has joined #melange09:14
*** suranga has quit IRC09:15
*** devang has quit IRC09:18
*** manugupt1_ has quit IRC09:20
*** coderbrahmin has quit IRC09:27
*** manugupt1_ has joined #melange09:30
*** manugupt1_ has quit IRC09:44
*** SinnerShanky_ has joined #melange09:57
*** SinnerShanky has quit IRC09:58
*** SinnerShanky has joined #melange10:08
*** SinnerShanky_ has quit IRC10:08
*** coderbrahmin has joined #melange10:17
*** bitgeeky has joined #melange10:18
*** coderbrahmin has quit IRC10:26
*** devang has joined #melange10:36
*** coderbrahmin has joined #melange10:37
*** coderbrahmin has quit IRC10:40
*** Niharika_away has joined #melange10:44
*** Niharika has quit IRC10:44
*** Niharika_away has left #melange10:44
*** mudler has joined #melange11:02
*** devang has quit IRC11:07
*** abhi17 has joined #melange11:21
*** coderbrahmin has joined #melange11:22
*** SinnerShanky has quit IRC11:34
*** SinnerShanky has joined #melange11:42
*** SinnerShanky has quit IRC11:51
*** coderbrahmin has quit IRC11:54
*** SinnerShanky has joined #melange11:59
*** abhi17 has quit IRC11:59
*** SinnerShanky has quit IRC12:06
*** SinnerShanky_ has joined #melange12:09
*** coderbrahmin has joined #melange12:10
*** mudler has joined #melange12:14
*** larryxiao has joined #melange12:18
*** SinnerShanky_ has quit IRC12:20
*** SinnerShanky has joined #melange12:21
*** SinnerShanky has quit IRC12:31
*** Niharika has joined #melange12:41
*** coderbrahmin has quit IRC12:47
*** SinnerShanky has joined #melange12:49
*** SinnerShanky_ has joined #melange12:58
*** SinnerShanky has quit IRC12:59
*** SinnerShanky_ has quit IRC13:04
*** SinnerShanky has joined #melange13:05
*** SinnerShanky has quit IRC13:11
*** rocker has joined #melange13:20
*** suranga has joined #melange13:22
*** SinnerShanky has joined #melange13:25
*** coderbrahmin has joined #melange13:25
*** bitgeeky has quit IRC13:26
*** rocker has quit IRC13:41
*** rocker has joined #melange13:43
*** rocker has quit IRC13:44
*** rocker has joined #melange13:47
*** robbyoconnor has joined #melange14:41
*** r0bby has joined #melange14:46
*** robbyoconnor has quit IRC14:50
*** r0bby is now known as robbyoconnor14:54
*** SinnerShanky has quit IRC14:54
*** SinnerShanky has joined #melange14:56
*** robbyoconnor has quit IRC14:59
*** SinnerShanky has quit IRC15:03
*** shrihari has quit IRC15:17
*** jasvir has joined #melange15:18
*** rocker has quit IRC15:35
*** mwilkes|away is now known as MatthewWilkes15:54
*** MatthewWilkes is now known as mwilkes|away15:54
*** shrihari has joined #melange15:55
*** coderbrahmin has quit IRC16:14
*** ashishk has joined #melange16:20
*** rocker has joined #melange16:21
*** Abhishek has joined #melange16:23
Abhishekhey... any 1 here???16:24
NiharikaNo.16:35
Abhishekwas that an answer?? :P16:36
Abhishek@niharika16:36
NiharikaYes. :P16:37
Abhishekhow r u so affirm??16:37
*** coderbrahmin has joined #melange16:43
*** samera_ has joined #melange16:45
*** shrihari has quit IRC16:46
*** variable is now known as constant16:53
*** larryxiao has quit IRC16:58
*** samera_ has quit IRC17:06
*** mang0 has joined #melange17:09
*** mang0 has joined #melange17:09
*** asmeurer has joined #melange17:14
*** Prakash_Kumar has joined #melange17:15
*** Prakash_Kumar is now known as SunLight17:15
*** Prakash_ has joined #melange17:15
*** Abhishek has quit IRC17:19
*** asmeurer has quit IRC17:19
*** jasvir has left #melange17:19
*** denysbut_ has quit IRC17:23
*** Niharika has quit IRC17:24
*** shrihari has joined #melange17:47
*** Prakash_ has quit IRC17:49
*** SunLight has quit IRC17:50
*** sebastian has joined #melange18:05
*** coderbrahmin has quit IRC18:15
*** denysbutenko has joined #melange18:22
*** shrihari has quit IRC18:28
*** shrihari has joined #melange18:29
*** coderbrahmin has joined #melange18:38
*** shrihari has joined #melange19:00
*** asmeurer_ has joined #melange19:00
*** rocker has quit IRC19:04
*** rocker has joined #melange19:05
*** asmeurer_ has quit IRC19:11
*** SinnerShanky has joined #melange19:16
*** sebifam has joined #melange19:21
*** sebastian has quit IRC19:23
*** mudler has quit IRC19:23
*** denysbutenko has quit IRC19:23
*** sebifam has quit IRC19:26
*** sebastian has joined #melange19:28
*** shrihari has quit IRC19:35
*** denysbutenko has joined #melange19:49
*** shrihari_ has joined #melange19:52
*** sebastian has quit IRC19:59
*** sebastian has joined #melange20:00
*** shrihari_ has quit IRC20:05
*** coderbrahmin has quit IRC20:07
*** suranga has quit IRC20:35
*** denysbutenko has quit IRC20:38
*** ashishk has quit IRC20:40
*** raghunayyar has quit IRC20:47
*** denysbutenko has joined #melange20:57
*** ashishk has joined #melange21:01
*** coderbrahmin has joined #melange21:08
*** asmeurer_ has joined #melange21:13
*** asmeurer_ has quit IRC21:37
*** asmeurer has joined #melange21:37
*** denysbutenko has quit IRC21:43
*** denysbutenko has joined #melange21:47
*** denysbut_ has joined #melange21:57
*** denysbutenko has quit IRC22:00
*** madrazr has joined #melange22:08
*** ChanServ sets mode: +o madrazr22:08
*** denysbut_ has quit IRC22:14
*** asmeurer has quit IRC22:34
*** mudler has joined #melange22:38
*** lionaneesh has joined #melange22:41
lionaneeshHello guys.22:41
lionaneeshWould this be the right place to talk about some of melange's gsoc projects?22:41
*** denysbutenko has joined #melange22:45
*** mudler has quit IRC22:47
ollylionaneesh: yes22:53
lionaneeshOh! Hey olly.22:53
ollybeware I probably can't answer any of your questions beyond that one...22:54
lionaneeshI am planning to work with melange for GSOC, "resource hosting" and "javascript test" interests me.22:57
lionaneeshI have a fair amount of knowledge about app engine and have been using it since a year now22:57
lionaneeshParticipated in GCI and GSOC before, so have of course used melange.22:58
lionaneeshI just need help on getting started.22:58
*** denysbutenko has quit IRC23:07
*** mang0 has quit IRC23:23
*** rocker has quit IRC23:24
*** sebastian has quit IRC23:33

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