2008-4-16
| 17:40 | yml | Hello goodevening |
| 17:43 | yml | I have pulled from the hg repository hosted by Jacob and I can it that the modification about the images have been applied. |
| 17:44 | yml | if it is the case I will modify the wiki page. |
| 18:05 | jezdez | hey yml, I hope jacob will come here, I'm not up-to-date on the status |
| 18:05 | yml | jezdez: hello |
| 18:06 | yml | jezdez: I will see with jacob if he comes here |
| 18:06 | jezdez | ok, cool |
| 18:06 | yml | Then I will may be pick something else to learn a bit more. |
| 18:06 | yml | ;-) |
| 18:07 | yml | oups sorry I close my chat by mistake |
| 18:12 | jezdez | :) |
| 18:12 | jezdez | np |
| 19:24 | yml | jacobkm: Hello how are you doing this morning. |
| 19:25 | jacobkm | yml: quite good, you? |
| 19:26 | yml | my day is slowly ending ;-) |
| 19:27 | yml | I would like to know if you could confirm that you have merged the repository I sent you. |
| 19:28 | yml | if so I will update the wiki page and see where I could contribute else I will rework on it to finish it. |
| 19:29 | yml | jakobkm: It was the one about the images |
| 19:35 | jacobkm | yml: I never got that email -- I think it's probably too large for gmail to accept. |
| 19:36 | yml | I try to send it to both email address : @jacobian.org and gmail.com |
| 19:36 | jacobkm | the best thing would be if you could be the hg repository online somewhere -- if you've got a server with a public IP I can use hg to pull the changes from you. |
| 19:36 | jacobkm | they're both gmail, actually |
| 19:36 | jacobkm | sorry it's not working :( |
| 19:38 | yml | I will try to see if I can put the zip somewhere you could pull it. |
| 19:38 | yml | I will let you know there soon |
| 19:46 | yml | jacobkm: may be you could try to grab it from threre : http://yml.alwaysdata.net//site_media/docs-refa... |
| 19:47 | jacobkm | yml: downloading now; thanks! |
| 19:48 | yml | jacobkm: sorry for coming back so late |
| 19:48 | jacobkm | yml: no problem at all |
| 19:49 | yml | I hope it is still usefull else I will pick something else. :-) Thank you for your amazing work |
| 19:49 | jacobkm | yml: seems to be working fine; I'm just merging now. |
| 19:52 | yml | jacobkm: Any suggestion for my next asignement. The requirement is that it need to be easy to understand. ;-) I have an hour and a half in front of me. |
| 19:52 | yml | for today |
| 19:52 | jacobkm | hm... |
| 19:52 | jacobkm | How's adding syntax highlighting sound? |
| 19:53 | jacobkm | http://sphinx.pocoo.org/markup/code.html -- basically going through and making sure that code blocks are annotated with the correct language |
| 19:53 | yml | great |
| 19:54 | jacobkm | http://toys.jacobian.org/hg/docs-refactor/file/... -- this is one that's already done |
| 19:54 | jacobkm | see the .. code-block:: directives |
| 19:57 | yml | ok it seems to be something I can do |
| 19:58 | yml | jacobkm: does "django template" is supported? |
| 19:58 | yml | I can see that python is |
| 19:59 | jacobkm | yml: yeah... I think it's "html+django" |
| 19:59 | jezdez | yo! |
| 19:59 | yml | great so I am starting right now. |
| 20:00 | yml | should I pick the files the one after the other or is there a particular order? |
| 20:00 | jacobkm | You can see the list of lexers using "pygments.lexers.get_all_lexers()", btw. |
| 20:01 | jacobkm | erm, why don't you focus on howto first |
| 20:04 | yml | let us go for the how to |
| 20:05 | yml | talk to you in a moment |
| 20:59 | jezdez | hey jacobkm, what's the difference between ref/contrib/auth and topics/auth? |
| 21:00 | jacobkm | jezdez: I was going to put the basic info about setting up authentication in topics/http/auth (I think topics/auth is a mistake) and the model API reference in ref/contrib/auth. |
| 21:00 | jacobkm | Sensemakemuch? |
| 21:01 | jezdez | verymuch :) |
| 21:01 | jacobkm | cool - feel free t odelete topics/auth; that's a mistake there. |
| 21:01 | jezdez | k |
| 21:01 | jezdez | will do |
| 21:02 | jezdez | since ref/contrib/auth is empty atm I'll move the api ref there, ok? |
| 21:03 | jezdez | nevermind |
| 21:03 | jacobkm | yup, that's the idea |
| 21:05 | jacobkm | Man, I'm gonna have to switch somewhere with central air at some point :) |
| 21:06 | jezdez | heh :) |
| 21:33 | yml | jacobkm: Do you know why I cannot use the directive :lineno: ? |
| 21:34 | jacobkm | yml: hrm, no -- but I'd rather not use line numbers so don't worry about it. |
| 21:34 | yml | or :linenothreshold: 5 |
| 21:35 | yml | because in some places this is the semaphore that is used. |
| 21:35 | jacobkm | yeah, just leave it off |
| 21:35 | yml | for example in custom template tags there is places where the code was in bold |
| 21:36 | yml | and it is mentionned in the test |
| 21:36 | yml | oups text |
| 21:36 | yml | self.date_to_be_formatted = **Variable(date_to_be_formatted)** |
| 21:36 | jacobkm | yml: in those cases, use ".. parsed-literal::" instead of "code-block" |
| 21:37 | yml | ok I will try that |
| 21:37 | yml | thank you for your guidance |
| 21:40 | yml | jacobkm: am I missing something or does ".. parsed-literal::" will not give the syntax highlighting? |
| 21:41 | jacobkm | yml: nah, you get one or the other |
| 21:41 | yml | ok that is life |
| 21:41 | yml | ;-) |
| 21:42 | yml | I will do like this |
| 21:49 | yml | jacobkm: I sent a patch to you @jacobian.org |
| 21:50 | jacobkm | yml: thanks |
| 21:50 | jacobkm | yml: hey, so you don't have to explicitally flag stuff as python -- that's the default |
| 21:50 | yml | I hope it is all right. |
| 21:50 | jacobkm | so really all you need is code-blocks for stuff that's *not* python |
| 21:51 | jacobkm | can you redo it like that? |
| 21:51 | yml | good to know |
| 21:53 | yml | so I need to remove "python" or .. code-block:: python ? |
| 21:54 | jacobkm | yeah, you don't need the entire code-block bit; you can just end the paragraph with "::" -- sphinx automatically assumes Python unless you explicitally tell it otherwise |
| 21:54 | jacobkm | See the first part of http://sphinx.pocoo.org/markup/code.html |
| 21:57 | yml | GRRRR!!! ok I will do it like this and send you back a patch. |
| 22:04 | yml | Is there a way to uncommit with hg ? |
| 22:07 | jacobkm | yml: you can undo the last commit with hg rollback |
| 22:08 | yml | is that also going to affect the modification I have done like "revert" for some other SCM ? |
| 22:09 | jacobkm | so rollback is basically "uncommit" -- it undoes the last commit. then you'll have all the changes from that commit outstanding in your sandbox; you can "hg revert --all" if you want to undo the actual nmodifications to the files. |
| 22:13 | jezdez | should I refer to model manager methods with User.objects.make_random_password or UserManager.make_random_password ? |
| 22:15 | yml | jacobkm: I sent you yet another try |
| 22:22 | jacobkm | yml: that's only the latest patch -- the thing that would help me the most would be to bundle up both diffs into one so you'd do "hg diff -r <A> -r tip" where <A> is the revision before you started. |
| 22:23 | jacobkm | jezdez: I'd use UserManager |
| 22:23 | jacobkm | unless it's a queryset method like get/filter/whatever; in that case I've been pointing to django.db.models.QuerySet.whatever so that those all point to the same place |
| 22:23 | jacobkm | (since Manager.get/filter/whatever all delegate to qs anyway) |
| 22:24 | jezdez | ok, agreed |
| 22:26 | yml | jacobkm: I guess you have it all there. I removed the .. code-block:: python that I have added carefully. |
| 22:27 | jacobkm | yml: it's hard to apply both diffs correctly, though -- it would be easier if I had a single diff. |
| 22:27 | jacobkm | yml: another way you could do that: |
| 22:27 | yml | in my hg rep I have only added a revision (#95) |
| 22:27 | DjangoBot | |
| 22:27 | jezdez | hehe |
| 22:27 | jacobkm | yml: that's not what I see in your patch |
| 22:27 | jacobkm | yml: try this: |
| 22:28 | jacobkm | do "hg out http://toys.jacobian.org/hg/docs-refactor/" -- it should show any changesets in your repos that aren't in the master. |
| 22:28 | yml | ok |
| 22:28 | jacobkm | Assuming that only shows the codeblock changes, do "hg out --patch" to generate a patch of those changesets. |
| 22:29 | yml | souris@penguin:docs-refactor$ hg out http://toys.jacobian.org/hg/docs-refactor/exten... 'patchbomb' overrides commands: emailcomparing with http://toys.jacobian.org/hg/docs-refactor/searc... for changeschangeset: 95:cfd5c1dfc353tag: tipparent: 81:0c245385c53duser: Yann Malet <yann.malet@gmail.com>date: Thu Apr 17 00:10:49 2008 +0200summary: Add the directive .. code-block:: to decorate the code and |
| 22:29 | jacobkm | yml: pastebin that - I can't really read it |
| 22:30 | yml | ok |
| 22:30 | yml | |
| 22:31 | jacobkm | yml: OK, that looks fine -- just do hg out --patch or hg email now. |
| 22:32 | jacobkm | jezdez: you're remving topics/auth, right? |
| 22:32 | jezdez | yup, to topics/http/auth and ref/contrib/auth |
| 22:32 | jacobkm | jezdez: cool, thanks |
| 22:33 | jezdez | sorry, should add that to the wiki page |
| 22:34 | yml | jezdez: Are you in europe or us? |
| 22:34 | jezdez | europe |
| 22:35 | yml | so you are like me. Should go to bed :-) |
| 22:35 | jezdez | hehe right :) |
| 22:35 | jezdez | though trying to get this moving done tonight |
| 22:36 | yml | jacobkm: is it better this time? |
| 22:36 | jacobkm | yml: that's good, yeah |
| 22:36 | yml | Thank you for your patience and help to get me going |
| 22:37 | yml | I will continue tomorrow to go throught all the files to see if I can add some code-block:: |
| 22:38 | yml | I wish you all good night or good day. |
| 22:38 | yml | it depends |
| 22:38 | jacobkm | Yeah, I'm gonna wrap it up for now, too. |
| 22:39 | yml | also you jacobkm could for a nap |