| [00:09:29] |
* |
CIA-49 has joined #pocoo |
| [00:09:55] |
<CIA-49> |
python-doctools: georg.brandl * r66395 /doctools/trunk/sphinx/ (4 files in 3 dirs): Add _() to some english strings. |
| [00:11:10] |
<CIA-49> |
python-doctools: georg.brandl * r66395 /doctools/trunk/sphinx/ (4 files in 3 dirs): Add _() to some english strings. |
| [00:16:28] |
<CIA-49> |
python-doctools: georg.brandl * r66396 /doctools/trunk/ (6 files in 4 dirs): Fix nits. |
| [00:19:03] |
<Leonidas> |
maybe I'm missing something, but isn't there a filter for i18n to translate the variables, too? |
| [00:20:59] |
<mitsuhiko> |
not really |
| [00:21:09] |
* |
Kaelten has quit IRC |
| [00:21:12] |
<mitsuhiko> |
just {{ _('Foo %(x)s') % dict(x="haha") }} |
| [00:21:14] |
<CIA-49> |
python-doctools: georg.brandl * r66397 /doctools/branches/0.4.x/sphinx/quickstart.py: #3837: fix comment for html_logo. |
| [00:21:46] |
<birkenfeld> |
mitsuhiko: how's the search? |
| [00:22:05] |
<mitsuhiko> |
birkenfeld: i'm pretty much rewriting it :) |
| [00:22:38] |
<birkenfeld> |
refactoring :D |
| [00:22:45] |
<CIA-49> |
python-doctools: georg.brandl * r66398 /doctools/ (trunk/sphinx/quickstart.py trunk): |
| [00:22:45] |
<CIA-49> |
python-doctools: Merged revisions 66397 via svnmerge from |
| [00:22:45] |
<CIA-49> |
python-doctools: svn+ssh://pythondev@svn.python.org/doctools/branches/0.4.x |
| [00:22:45] |
<CIA-49> |
python-doctools: ........ |
| [00:22:45] |
<CIA-49> |
python-doctools: r66397 | georg.brandl | 2008-09-12 00:19:44 +0200 (Fri, 12 Sep 2008) | 2 lines |
| [00:22:47] |
<CIA-49> |
python-doctools: #3837: fix comment for html_logo. |
| [00:22:49] |
<CIA-49> |
python-doctools: ........ |
| [00:24:38] |
<mitsuhiko> |
birkenfeld: team (the user) has a fresh ssh key now that can be used for mirroring |
| [00:27:13] |
<birkenfeld> |
okay |
| [00:28:45] |
<CIA-49> |
Pygments: gbrandl trunk * 663:90e2dc6f85e9 /pygments/formatters/latex.py: Don't define \at, \lb, \rb as escapes, but prepend commandprefix here too. |
| [00:29:05] |
<birkenfeld> |
okay, pushing works |
| [00:31:38] |
<mitsuhiko> |
decentralized systems are really cool to just watch them work :) |
| [00:33:19] |
* |
leche has quit IRC |
| [00:34:59] |
<dennda> |
mitsuhiko: http://xkcd.com/350/ |
| [00:40:07] |
<birkenfeld> |
mitsuhiko: should we remove Pocoo from the projects bar on pocoo.org? |
| [00:40:33] |
<mitsuhiko> |
yeah. that's a good idea |
| [00:40:41] |
<mitsuhiko> |
and i have to recheck trac 0.12 |
| [00:42:03] |
<birkenfeld> |
0.12? |
| [00:42:19] |
<mitsuhiko> |
birkenfeld: brings multi repository support |
| [00:42:25] |
<birkenfeld> |
ah! |
| [00:42:34] |
<mitsuhiko> |
last time i tried funny things happened |
| [00:42:39] |
<birkenfeld> |
but we don't want to merge all those tickets again, do we? |
| [00:47:39] |
<mitsuhiko> |
nope |
| [00:48:02] |
<mitsuhiko> |
birkenfeld: i'm mainly interested of jinja1/2 and zine and zine plugin hosting |
| [00:51:11] |
<mitsuhiko> |
last laugh for the day: http://in.youtube.com/watch?v=p95zWsAmTyw |
| [00:51:14] |
<mitsuhiko> |
gn8 everybody :) |
| [00:55:35] |
<CIA-49> |
python-doctools: georg.brandl * r66399 /doctools/trunk/sphinx/highlighting.py: Use a prefix to \at, \lb and \rb since they are probably often used command names. |
| [00:57:00] |
<CIA-49> |
Pygments: Benjamin Peterson trunk * 664:44e9ccae93d0 / (pygments/token.py tests/test_token.py): move the if __name__ == __main__ test from token.py to its test |
| [00:57:09] |
<CIA-49> |
Pygments: gbrandl trunk * 665:ac91327ad5e2 / (pygments/token.py tests/test_token.py): Merge with Ben. |
| [01:22:40] |
<CIA-49> |
python-doctools: georg.brandl * r66400 /doctools/trunk/doc/_templates/index.html: Add note how to find source examples. |
| [02:11:47] |
<steg> |
can anybody recommend a javascript HTML editor ? |
| [02:11:59] |
<steg> |
preferably one that concentrates more on structure than on WYSIWYG |
| [02:31:10] |
<prencher> |
i believe thers a jquery extension that provides one based on markdown, steg |
| [02:31:14] |
<prencher> |
might want to check their listings |
| [03:08:18] |
* |
izibi_ has joined #pocoo |
| [03:25:20] |
* |
izibi has quit IRC |
| [03:42:18] |
* |
izibi_ has quit IRC |
| [03:51:01] |
* |
jinks has quit IRC |
| [03:51:25] |
* |
jinks has joined #pocoo |
| [04:04:53] |
<davidcramer> |
mitsuhiko: im curious, if i can do {% set blah = macro() %} why cant you do {% filter capture() %} anymore in jinja2 |
| [05:38:31] |
* |
damjan has quit IRC |
| [05:50:35] |
* |
prencher^ has joined #pocoo |
| [05:55:33] |
* |
prencher has quit IRC |
| [06:49:10] |
* |
Tik-Tok has quit IRC |
| [06:49:12] |
* |
Tik-Tok_ has joined #pocoo |
| [06:49:25] |
* |
CIA-49 has quit IRC |
| [07:04:29] |
* |
Tik-Tok_ has left #pocoo |
| [07:33:11] |
* |
CIA-50 has joined #pocoo |
| [08:10:34] |
* |
leche has joined #pocoo |
| [08:41:43] |
* |
leche has quit IRC |
| [10:02:04] |
* |
davidcramer has left #pocoo |
| [10:47:29] |
* |
jinks has quit IRC |
| [10:48:08] |
* |
jinks has joined #pocoo |
| [11:10:19] |
<apollo13> |
mitsuhiko: git-python seems to make progress |
| [11:10:33] |
<mitsuhiko> |
apollo13: still subprocessing? |
| [11:10:41] |
<apollo13> |
yeah |
| [11:10:46] |
<apollo13> |
what else should we do? |
| [11:10:57] |
<apollo13> |
is there already a c lib, to be accessed? |
| [11:11:58] |
<apollo13> |
hmm the author of pygit is commiting to python-git |
| [11:12:04] |
<apollo13> |
I am wondering what his plans are |
| [11:12:35] |
<apollo13> |
mitsuhiko: other question, what's the use of staticmethod in python? |
| [11:13:01] |
<mitsuhiko> |
bypassing the function descriptor |
| [11:13:14] |
<apollo13> |
which means what? |
| [11:13:27] |
<apollo13> |
I mean I don't see an advantage over classmethod |
| [11:13:43] |
<mitsuhiko> |
apphttp://paste.pocoo.org/show/85080/ |
| [11:13:44] |
<mitsuhiko> |
eh |
| [11:13:45] |
<mitsuhiko> |
apollo13: http://paste.pocoo.org/show/85080/ |
| [11:14:02] |
* |
davidcramer has joined #pocoo |
| [11:14:20] |
<mitsuhiko> |
davidcramer: {% capture foo %} would work if you write such a tag |
| [11:14:25] |
<mitsuhiko> |
{% filter capture('foo') %} not |
| [11:14:36] |
<mitsuhiko> |
because in the latter case the variable is not known at compile time |
| [11:15:05] |
<davidcramer> |
ah so you're saying i could write a capture tag that works like filter capture did? |
| [11:15:36] |
<davidcramer> |
That'd be a useful recipe to have available on the site I would think as well, for people who still want that functionality. Is there going to be any performance difference between that and {% set %} on a macro? |
| [11:15:39] |
<apollo13> |
mitsuhiko: ok, I think I got it |
| [11:15:54] |
<mitsuhiko> |
davidcramer: yep, that's what you can do |
| [11:16:01] |
<mitsuhiko> |
i'll hack something up |
| [11:16:02] |
<davidcramer> |
cool deal I will write one |
| [11:16:03] |
<davidcramer> |
oh ok |
| [11:16:06] |
<davidcramer> |
if you beat me to it that works |
| [11:16:12] |
<davidcramer> |
i wont be converting to jinja for at least another week probably |
| [11:16:15] |
<davidcramer> |
*jinja2 |
| [11:32:06] |
<asmodai> |
mitsuhiko: http://www.nieuweherdenkingsmunt.nl/ |
| [11:33:28] |
<asmodai> |
mitsuhiko: apparently designed by a Dutch pythonista. I love the circular text, how it creates the queen's image |
| [11:34:28] |
<mitsuhiko> |
davidcramer: http://paste.pocoo.org/show/85081 |
| [11:34:58] |
* |
prencher^ is now known as prencher |
| [11:35:29] |
<mitsuhiko> |
asmodai: a special coin? |
| [11:36:28] |
<asmodai> |
yeah |
| [11:36:29] |
<asmodai> |
5 euro |
| [11:45:24] |
<davidcramer> |
nice mitsuhiko |
| [11:54:21] |
<birkenfeld> |
asmodai: what the hell is a "Tussenvoegsel"? |
| [11:54:45] |
<birkenfeld> |
hmm... Zwischenfügsel? |
| [12:04:35] |
* |
izibi has joined #pocoo |
| [12:05:08] |
<asmodai> |
tussenvoegsel? http://en.wikipedia.org/wiki/Tussenvoegsel |
| [12:05:18] |
<asmodai> |
stuff like: |
| [12:05:24] |
<asmodai> |
zwischen |
| [12:07:17] |
<asmodai> |
entgegen is also one right? |
| [12:07:19] |
<asmodai> |
von? vor? |
| [12:07:53] |
* |
pete__c_ has joined #pocoo |
| [12:18:06] |
<birkenfeld> |
asmodai: btw. imperial warren |
| [12:20:09] |
* |
pete__c has quit IRC |
| [12:44:24] |
<asmodai> |
birkenfeld: what about it? |
| [12:45:16] |
<birkenfeld> |
asmodai: they've just stumbled over the sky keeps |
| [12:45:39] |
<asmodai> |
ah yes |
| [12:45:44] |
<asmodai> |
the short-tails |
| [12:46:28] |
<birkenfeld> |
and someone said the imperial warren may have been the kchain chemalle warren |
| [12:46:42] |
<birkenfeld> |
but I thought it was one the gods created to do away kallor's burned empire |
| [12:48:15] |
<asmodai> |
Yeah, I think in this case the speculation is part of the story |
| [12:48:23] |
<birkenfeld> |
ok, then I'll read on :) |
| [12:48:33] |
<asmodai> |
and we know the truth about Kallor and the Elder Gods' method of dealign with it |
| [13:02:55] |
* |
CIA-50 has quit IRC |
| [13:04:46] |
* |
damjan has joined #pocoo |
| [14:25:57] |
<mitsuhiko> |
it's not funny any more: http://www.americablog.com/2008/09/breaking-from-abc-exclusive-gov-sarah.html |
| [14:32:06] |
<dennda> |
it has never been |
| [14:35:04] |
<dennda> |
i wonder for what party that woman would candidate if she was german |
| [14:35:09] |
<mitsuhiko> |
dennda: a hockey-mum with nor experiences in foreign affairs could become vice president? |
| [14:35:11] |
* |
leche has joined #pocoo |
| [14:35:14] |
<mitsuhiko> |
i mean seriously, wtf? |
| [14:35:19] |
<dennda> |
i guess even for the nazis she's too far right wing ;) |
| [14:35:44] |
<mitsuhiko> |
and the interview with mccain about here is... really, really creepy |
| [14:35:54] |
<mitsuhiko> |
(this one: http://www.youtube.com/watch?v=-q6LMsc7iic ) |
| [14:36:00] |
<dennda> |
mitsuhiko: seen what xorAxAx posted in #python.de about her political goals? :-) |
| [14:36:11] |
<mitsuhiko> |
dennda: nope |
| [14:36:17] |
<dennda> |
13:55 ff |
| [14:36:23] |
<dennda> |
(from WP) |
| [14:36:27] |
<leche> |
oO |
| [14:36:49] |
<dennda> |
jah welcome to #pocoo-politics, leche |
| [14:37:26] |
<mitsuhiko> |
dennda: well. i know *that* |
| [14:37:31] |
<mitsuhiko> |
that's what she did so far :) |
| [14:37:42] |
<dennda> |
jup |
| [14:38:33] |
<ronny> |
apollo13: does gitpython have to return the results of calls as strings |
| [14:38:55] |
<apollo13> |
ronny: no, that would be the next thing to do, I suppose |
| [14:38:56] |
<ronny> |
apollo13: a complex git ls-files amounts to 20k lines easylyl |
| [14:39:13] |
<apollo13> |
and make it unicode aware |
| [14:39:36] |
<ronny> |
apollo13: also git ls-files is very confusing, i could use something like status that accumulates the most important info |
| [14:39:48] |
<apollo13> |
yeah I know |
| [14:39:55] |
<ronny> |
apollo13: anyvc needs that really badly ;P |
| [14:42:06] |
<apollo13> |
ronny: you are free to make a patch :) |
| [14:42:13] |
<apollo13> |
btw you already can do it |
| [14:42:22] |
<apollo13> |
you would just need to filter the output yourself |
| [14:42:27] |
<ronny> |
apollo13: i have gone insane with git the last few days, i dont want to touch it atm |
| [14:42:36] |
<apollo13> |
muhaha |
| [15:00:32] |
* |
Kamaze has joined #pocoo |
| [15:06:39] |
* |
Kamaze has quit IRC |
| [15:10:40] |
* |
davidcramer has quit IRC |
| [15:11:47] |
* |
davidcramer has joined #pocoo |
| [15:17:53] |
* |
rafael_ has joined #pocoo |
| [15:27:35] |
<rafael_> |
mitsuhiko: ping |
| [15:39:12] |
* |
delroth has quit IRC |
| [15:43:35] |
* |
delroth has joined #pocoo |
| [16:13:36] |
<_paneb> |
is there an exception middleware for werkzeug? |
| [16:16:42] |
<mitsuhiko> |
_paneb: werkzeug.DebuggedApplication |
| [16:16:44] |
<mitsuhiko> |
rafael_: pong |
| [16:18:10] |
<rafael_> |
mitsuhiko: which arguments needs a checkbox in the new form system?? |
| [16:18:28] |
<dennda> |
http://milw0rm.com/exploits/6355 <-- wtf |
| [16:18:38] |
<mitsuhiko> |
rafael_: a) one question mark is enough, b) why arguments? |
| [16:18:41] |
<mitsuhiko> |
it needs no arguments at all |
| [16:18:49] |
<mitsuhiko> |
foo = forms.BooleanField() and you are done |
| [16:20:18] |
<rafael_> |
ah, i used Checkbox() |
| [16:21:36] |
<mitsuhiko> |
rafael_: those are widgets |
| [16:21:40] |
<mitsuhiko> |
see the docstring and existing forms |
| [16:22:29] |
<rafael_> |
mitsuhiko: and how to make a group of radiobuttons? http://paste.pocoo.org/show/85104/ |
| [16:23:35] |
<mitsuhiko> |
rafael_: have you read the docstrings? |
| [16:25:07] |
<mitsuhiko> |
rafael_: http://paste.pocoo.org/show/85105/ |
| [16:25:26] |
<mitsuhiko> |
actually this one here: http://paste.pocoo.org/show/85106/ |
| [16:25:56] |
<rafael_> |
mitsuhiko: of RadioButton, RadioButtonGroup, _InputGroupMember and _InputGroup without a explanation to it. but your paste will help |
| [16:26:17] |
<mitsuhiko> |
rafael_: the explanation is on the very bottom that explains widgets |
| [16:26:23] |
<mitsuhiko> |
you never ever create widgets yourself |
| [16:26:31] |
<mitsuhiko> |
that's what form.as_widget() does |
| [16:26:37] |
<mitsuhiko> |
you only work with the field classes |
| [16:27:36] |
<rafael_> |
ok |
| [16:28:47] |
<mitsuhiko> |
rafael_: oh and. "ack forms.Form" to see where forms are already used |
| [16:29:00] |
<mitsuhiko> |
there are already quite a few of them |
| [16:29:20] |
<_paneb> |
the tutorial has the application defined in an application.py file - to build on the tutorial, is this where i would add middleware around the app? |
| [16:29:30] |
<_paneb> |
(or in the make_app() function of the manage script?) |
| [16:29:32] |
<mitsuhiko> |
_paneb: apply them in a make_app file |
| [16:29:41] |
<_paneb> |
ok |
| [16:29:42] |
<mitsuhiko> |
in the make_app in your application package |
| [16:29:42] |
<mitsuhiko> |
sec |
| [16:30:19] |
<rafael_> |
mitsuhiko: "ack"? |
| [16:30:24] |
<mitsuhiko> |
_paneb: http://dev.pocoo.org/hg/lodgeit-main/file/26ae65041735/lodgeit/application.py#l97 |
| [16:30:29] |
<mitsuhiko> |
rafael_: apt-get install ack if you don't have it yet |
| [16:30:38] |
<mitsuhiko> |
(hopying it's in apt-get) |
| [16:30:41] |
<_paneb> |
mitsuhiko, awesome, thanks |
| [16:30:54] |
<mitsuhiko> |
_paneb: lodgeit == the application behind paste.pocoo.or |
| [16:30:55] |
<mitsuhiko> |
+g |
| [16:31:56] |
<mitsuhiko> |
hmm. ente does a funny thing for language detection there |
| [16:33:07] |
<rafael_> |
mitsuhiko: http://packages.ubuntu.com/hardy/ack is a Kanji code checker/converter. is this what you mean? |
| [16:33:27] |
<mitsuhiko> |
rafael_: http://petdance.com/ack/ |
| [16:35:44] |
<mitsuhiko> |
# Install the Ubuntu package: ack-grep |
| [16:42:09] |
* |
rafael has joined #pocoo |
| [16:47:36] |
* |
rafael_ has quit IRC |
| [16:47:52] |
<rafael> |
mitsuhiko: how to put out validation errors? i didn't found an example of it |
| [16:48:33] |
<mitsuhiko> |
rafael: what do you mean by "put out validation errors"? |
| [16:48:39] |
<mitsuhiko> |
raise? |
| [16:48:43] |
<mitsuhiko> |
or display in the html page |
| [16:49:05] |
<rafael> |
mitsuhiko: it was for error in errors: flash(error, 'error') in the old system |
| [16:49:13] |
<mitsuhiko> |
rafael: just remove the flashing |
| [16:49:30] |
<mitsuhiko> |
new policy: errors next to input fields |
| [16:49:33] |
<mitsuhiko> |
{{ form.yourfield }} |
| [16:49:35] |
<mitsuhiko> |
and you are done |
| [16:49:53] |
<rafael> |
so i dont have to care about it? |
| [16:50:03] |
<mitsuhiko> |
no |
| [16:51:46] |
<_paneb> |
why would i want to use a LocalProxy? |
| [16:52:56] |
<ronny> |
_paneb: cause its more convient that explicitly using a attribute of local? |
| [16:54:14] |
<_paneb> |
i am looking at http://werkzeug.pocoo.org/documentation/local and that's why i am wondering the point of it |
| [16:54:52] |
<_paneb> |
ronny, why do you always reply with a question? :) |
| [16:55:10] |
<ronny> |
its convient to make others think |
| [16:55:47] |
<mitsuhiko> |
wtf just happened to itunes? Oo |
| [16:56:23] |
<mitsuhiko> |
uuugly |
| [16:59:20] |
<rafael> |
mitsuhiko: in do_change_password there is form = ChangePasswordForm(request.user) but i have not user as argument. so what at form = BasicOptionsForm() ? |
| [17:00:35] |
<mitsuhiko> |
rafael: of course ;) |
| [17:00:36] |
<mitsuhiko> |
what else? |
| [17:00:47] |
<mitsuhiko> |
your form doesn't even accept a user |
| [17:03:22] |
<mitsuhiko> |
snippet of the day: defaults write com.apple.iTunes show-store-arrow-links -bool FALSE |
| [17:05:12] |
* |
rafael has quit IRC |
| [17:12:17] |
<ivan> |
i thought you gave up on OS X |
| [17:12:53] |
<birkenfeld> |
mitsuhiko: sigh... how can anyone vote mccain and that woman |
| [17:13:58] |
<dennda> |
being blind due to religious beliefs? |
| [17:14:12] |
<birkenfeld> |
perhaps |
| [17:14:44] |
<dennda> |
http://laserjock.wordpress.com/2008/08/31/excited/ |
| [17:14:50] |
<dennda> |
aggregated on planet ubuntu |
| [17:14:55] |
<dennda> |
a slap in the face imho |
| [17:15:14] |
<birkenfeld> |
dennda: *shudder* |
| [17:15:27] |
<dennda> |
the article is even worse |
| [17:15:45] |
<birkenfeld> |
mitsuhiko: python people use grin, not ack |
| [17:15:49] |
<dennda> |
the first commenter is aggregated on planet ubuntu, too |
| [17:15:53] |
<mitsuhiko> |
birkenfeld: grin? |
| [17:15:57] |
<birkenfeld> |
mitsuhiko: easy_install grin |
| [17:16:19] |
<mitsuhiko> |
birkenfeld: advantages over ack? (besides being python) |
| [17:16:31] |
<birkenfeld> |
mitsuhiko: don't know both in depth yet |
| [17:16:38] |
<birkenfeld> |
since Emacs wraps grep quite well :) |
| [17:16:45] |
<dennda> |
about the author: "PhD in Physical Chemistry - working on new uses of cavity ringdown spectroscopy" ;) |
| [17:17:15] |
* |
mitsuhiko sticks to ack |
| [17:17:42] |
<birkenfeld> |
why don't you try grin? ;) |
| [17:18:31] |
<mitsuhiko> |
birkenfeld: ack is fast, it does everything i want it to do, i know it already :) |
| [17:18:47] |
<mitsuhiko> |
and the cheeseshop page doesn't look that interesting |
| [17:19:30] |
<birkenfeld> |
granted, it doesn't have ascii art :) |
| [17:19:38] |
<mitsuhiko> |
hehe |
| [17:19:45] |
<mitsuhiko> |
does it have colors? |
| [17:20:15] |
<mitsuhiko> |
gnaa. marshal.dump requires a <type 'file'> |
| [17:21:19] |
<dennda> |
http://www.johnmccain.com/ <-- if you click to continue and take a look at the images: Is that a jquery effect? |
| [17:21:48] |
<birkenfeld> |
mitsuhiko: hah, just installed ack |
| [17:21:53] |
<birkenfeld> |
the output looks exactly the same :) |
| [17:22:02] |
<mitsuhiko> |
birkenfeld: now put time before it :) |
| [17:22:27] |
<TheSheep> |
dennda: <script type="text/javascript" src="http://js.johnmccain.com/scripts/FancyZoom.js" ></script> |
| [17:22:34] |
<TheSheep> |
dennda: easy to check :) |
| [17:22:51] |
<dennda> |
yah sorry :-) |
| [17:23:06] |
* |
dennda wants something like that |
| [17:23:16] |
<birkenfeld> |
mitsuhiko: correction: not the same, ack only searches .py files by default while grin includes .rst, .txt, .po etc. |
| [17:23:25] |
<TheSheep> |
dennda: sholuld be doable using jquery |
| [17:24:33] |
<mitsuhiko> |
birkenfeld: that's what ackrc is for :) |
| [17:24:37] |
<dennda> |
TheSheep: well I could just use that script :-) |
| [17:24:41] |
<mitsuhiko> |
anyways. i'll give it a try :) |
| [17:26:21] |
<TheSheep> |
dennda: true |
| [17:26:49] |
<mitsuhiko> |
a struct packed/unpacked with ! as prefix is the same in size on each platform, correct? |
| [17:29:43] |
* |
CIA-49 has joined #pocoo |
| [17:31:56] |
<apollo13> |
mitsuhiko: yeah, it's network, which defaults to big endian |
| [17:32:36] |
<mitsuhiko> |
apollo13: i was more thinking about 32/64 bit |
| [17:33:11] |
<apollo13> |
mitsuhiko: should only happen if using @ |
| [17:33:16] |
<apollo13> |
! network (= big-endian) standard |
| [17:33:26] |
<apollo13> |
where standard is for "Size and alignment" |
| [17:33:29] |
<apollo13> |
http://www.python.org/doc/current/lib/module-struct.html |
| [17:33:39] |
<apollo13> |
search for: "Standard size and alignment are as follows:" |
| [17:33:44] |
<apollo13> |
Native size and alignment are determined using the C compiler's sizeof expression. This is always combined with native byte order. |
| [17:33:59] |
<apollo13> |
so I think you shouldn't run into problems using ! |
| [17:34:17] |
<apollo13> |
if you don't care about network use = |
| [17:34:35] |
<apollo13> |
but the type depends on the system, although size and alignment would be standardized |
| [17:38:58] |
<mitsuhiko> |
apollo13: i'm actually just looking for a clever way to serialize a document tree for zine |
| [17:39:05] |
<mitsuhiko> |
that is the same on every blog |
| [17:46:33] |
<CIA-49> |
python-doctools: georg.brandl * r66402 /doctools/trunk/ (7 files in 3 dirs): |
| [17:46:34] |
<CIA-49> |
python-doctools: Restructure LaTeX file template: add new "latex_elements" config value |
| [17:46:34] |
<CIA-49> |
python-doctools: allowing to customize each part of what is written to the tex file. |
| [17:46:34] |
<CIA-49> |
python-doctools: georg.brandl * r66403 /doctools/trunk/CHANGES: Add news entry. |
| [17:46:34] |
<CIA-49> |
python-doctools: georg.brandl * r66405 /doctools/branches/0.4.x/ (sphinx/ext/autodoc.py CHANGES): |
| [17:46:37] |
<CIA-49> |
python-doctools: Fix for obscure __import__ behavior: if fromlist contains '', |
| [17:46:39] |
<CIA-49> |
python-doctools: an import of "module." is attempted. |
| [17:47:17] |
<CIA-49> |
python-doctools: georg.brandl * r66406 /doctools/trunk/ (4 files in 3 dirs): A bit more testing for autodoc. |
| [17:47:17] |
<CIA-49> |
python-doctools: georg.brandl * r66407 /doctools/trunk/sphinx/ext/autodoc.py: Forward-port of r66405. |
| [17:48:44] |
<birkenfeld> |
mitsuhiko: did you use the fromlist=[''] for __import__? |
| [17:49:09] |
<CIA-49> |
python-doctools: georg.brandl * r66408 /doctools/trunk: |
| [17:49:09] |
<CIA-49> |
python-doctools: Blocked revisions 66405 via svnmerge |
| [17:49:09] |
<CIA-49> |
python-doctools: ........ |
| [17:49:09] |
<CIA-49> |
python-doctools: r66405 | georg.brandl | 2008-09-12 17:45:31 +0200 (Fri, 12 Sep 2008) | 3 lines |
| [17:49:09] |
<CIA-49> |
python-doctools: Fix for obscure __import__ behavior: if fromlist contains '', |
| [17:49:10] |
<CIA-49> |
python-doctools: an import of "module." is attempted. |
| [17:49:11] |
<mitsuhiko> |
could be. for a while that was how i invoked dunder import |
| [17:49:14] |
<CIA-49> |
python-doctools: ........ |
| [17:49:21] |
<birkenfeld> |
mitsuhiko: it's harmful :) |
| [17:49:27] |
<birkenfeld> |
not that I knew before today... |
| [17:49:45] |
<mitsuhiko> |
birkenfeld: i noticed some problems with it (eg: dir() showed an empty string object) so i stopped using it |
| [17:52:23] |
<mitsuhiko> |
birkenfeld: just curious. why is it harmful? |
| [17:53:03] |
<birkenfeld> |
mitsuhiko: if you read sphinx-dev, there was a problem with sqlalchemy models |
| [17:53:17] |
<birkenfeld> |
where the autodoc'd module was imported once as "myapp.model" and once as "myapp.model." |
| [17:53:25] |
<birkenfeld> |
the '' apparently causes the trailing dot |
| [17:53:30] |
<mitsuhiko> |
weird. haven't got that mail |
| [17:53:43] |
<mitsuhiko> |
ah. n |
| [17:53:45] |
<mitsuhiko> |
*no |
| [17:54:16] |
<mitsuhiko> |
ah. interesting |
| [17:54:21] |
<mitsuhiko> |
that explains the empty string that appears |
| [17:55:44] |
* |
Tik-Tok has joined #pocoo |
| [18:09:42] |
<CIA-49> |
python-doctools: georg.brandl * r66409 /doctools/trunk/doc/_templates/indexsidebar.html: Use Google groups issue tracker instead of abusing the Python tracker. |
| [18:14:55] |
* |
stifal has joined #pocoo |
| [18:30:54] |
<CIA-49> |
python-doctools: georg.brandl * r66410 /doctools/trunk/TODO: Track TODO items on code.google.com tracker. |
| [18:35:09] |
<ronny> |
birkenfeld: oh, so fromlist should allways have sometihng other than '' ? |
| [18:35:34] |
<birkenfeld> |
yes |
| [18:36:59] |
<ronny> |
birkenfeld: what should i use ? is a '*' ok ? is it documented somewhere? |
| [18:37:16] |
<mitsuhiko> |
birkenfeld: why not a separate roundup on python.org? |
| [18:37:17] |
<birkenfeld> |
some valid identifier is enough |
| [18:37:18] |
<mitsuhiko> |
like with setuptools |
| [18:37:26] |
<birkenfeld> |
mitsuhiko: because we already have the google code project |
| [18:37:39] |
<birkenfeld> |
which is shared with the extension developers |
| [18:37:52] |
<mitsuhiko> |
will you move the sphinx code there too? |
| [18:38:06] |
<birkenfeld> |
mitsuhiko: I don't think I could move the history, so no |
| [18:38:20] |
<birkenfeld> |
the more likely step is to switch to some DVCS in the future |
| [18:38:43] |
<birkenfeld> |
perhaps google code starts supporting hg repos *dream* |
| [18:38:49] |
<mitsuhiko> |
i see |
| [18:39:00] |
<mitsuhiko> |
well. you could host it on bitbucket/pocoo ;) |
| [18:39:01] |
<ronny> |
birkenfeld: why not just bitbucket ? (its more nice than google code anyway) |
| [18:39:27] |
<birkenfeld> |
ronny: yes, maybe |
| [18:39:47] |
<birkenfeld> |
right now, as the Python docs should use the trunk version, I have to stick with svn |
| [18:40:01] |
<birkenfeld> |
but it's likely to change after 2.6 release |
| [18:40:25] |
<ronny> |
birkenfeld: im going to change my fromlists to ['*'] in all cases, would that work ?! |
| [18:40:56] |
<birkenfeld> |
ronny: the only way to be sure is to test it :) |
| [18:41:07] |
<birkenfeld> |
I'm not one of the 2 people on earth who know all about import.c |
| [18:44:14] |
<ronny> |
hmk, thx |
| [18:46:42] |
<mitsuhiko> |
ronny: i use __name__ |
| [18:47:19] |
<ronny> |
hmk |
| [18:47:22] |
<ronny> |
brb |
| [18:47:25] |
<ronny> |
gotta go |
| [18:57:35] |
<Leonidas> |
hi again. |
| [18:57:38] |
<Leonidas> |
is trim_block supported in Jinja 2.0? |
| [18:58:06] |
<mitsuhiko> |
yes |
| [19:00:49] |
<birkenfeld> |
nice to have such a support channel :) |
| [19:11:12] |
* |
Leonidas realized that trim_blocks is not enough. |
| [19:11:36] |
<Leonidas> |
*eradicate_all_whitespace_which_I_dont_want* would be better :) |
| [19:19:35] |
<mitsuhiko> |
Leonidas: write a preprocessor that replaces (( with ((- :P |
| [19:20:42] |
<CIA-49> |
python-doctools: georg.brandl * r66411 /doctools/converter/README: Add basic readme. |
| [19:21:17] |
<Leonidas> |
mitsuhiko: jinja has a preprocessor API? In case it has, give me your time machine! |
| [19:21:30] |
<mitsuhiko> |
Leonidas: it has |
| [19:21:57] |
<mitsuhiko> |
Leonidas: http://jinja.pocoo.org/2/documentation/extensions#jinja2.ext.Extension.preprocess |
| [19:22:00] |
<mitsuhiko> |
for the future ;) |
| [19:23:49] |
<Leonidas> |
hmm, that idea is actually not that bad. I'll consider that, but lets see how painful using {%- will get. |
| [19:24:26] |
<mitsuhiko> |
Leonidas: for whitespace stripping consider using filter_stream rather than preprocess |
| [19:24:53] |
<mitsuhiko> |
you could buffer one token and strip the buffered one if the current token is block_start / variable_start |
| [19:28:51] |
<Leonidas> |
There's still so much to do. Like evaluating Babel or some translation-add-in for Django. |
| [19:33:40] |
<Leonidas> |
hmm, sounds funny: http://code.google.com/p/django-rosetta/ |
| [19:34:33] |
<Leonidas> |
they are editing gettext files in the admin. I'm not yet sure whether this is genious or moronic. |
| [20:30:31] |
<mitsuhiko> |
Leonidas: moronic :) |
| [20:31:30] |
<ronny> |
mitsuhiko: btw, what about your translation application? |
| [20:31:50] |
<mitsuhiko> |
i'm not working for plurk inc currently, don't ask me |
| [20:38:52] |
<ronny> |
mitsuhiko: i tought it was supposed to be opened ? |
| [20:39:25] |
<mitsuhiko> |
it is, but i don't have anything to do with it any longer, nor did i say when |
| [20:39:53] |
<mitsuhiko> |
it's not my translation application, it's the translation application of plurk inc ;) |
| [20:42:20] |
<ronny> |
hmmk |
| [20:42:32] |
<ronny> |
i really would like to have a nice translation app |
| [20:52:50] |
* |
M3ntor5 has joined #pocoo |
| [20:54:32] |
<Leonidas> |
birkenfeld: btw, when can we expect to see a first hagments release? |
| [21:02:09] |
<birkenfeld> |
Leonidas: hagments? |
| [21:02:41] |
<Leonidas> |
birkenfeld: the haskell-version of pygments. |
| [21:03:27] |
<birkenfeld> |
Leonidas: good question... I experimented with that some time ago, but regexes were terribly slow in haskell |
| [21:03:33] |
<birkenfeld> |
probably better now with ByteString |
| [21:04:46] |
<Leonidas> |
birkenfeld: do they use any regex library or have the implemented them on their own? |
| [21:05:03] |
<birkenfeld> |
they have bindings to various, e.g. pcre |
| [21:05:14] |
<birkenfeld> |
and the posix library |
| [21:14:01] |
* |
rafael_ has joined #pocoo |
| [21:21:49] |
<Leonidas> |
birkenfeld: ah, you can add the Django-Sphinx URL to your list, http://docs.djangoproject.com/ |
| [21:31:31] |
<rafael_> |
mitsuhiko: how to handle {{ hidden_form_data }} ? |
| [21:32:04] |
<mitsuhiko> |
rafael_: that's done automatically |
| [21:32:11] |
<mitsuhiko> |
rafael_: please see the existing forms |
| [21:32:16] |
<mitsuhiko> |
and also have a look at the diffs |
| [21:40:03] |
<rafael_> |
mitsuhiko: i looked at the diffs but couldnt get the mistake i make: http://paste.pocoo.org/show/85139/ |
| [21:41:53] |
<mitsuhiko> |
rafael_: why do you pass request.user? |
| [21:42:06] |
<mitsuhiko> |
please don't override __init__ unless you have to |
| [21:42:08] |
<mitsuhiko> |
show the form please |
| [21:42:39] |
<rafael_> |
mitsuhiko: http://paste.pocoo.org/show/85141/ |
| [21:43:37] |
<mitsuhiko> |
rafael_: the indentation is not very clever :) |
| [21:43:44] |
<mitsuhiko> |
'foo\ |
| [21:43:45] |
<mitsuhiko> |
bar' |
| [21:43:52] |
<mitsuhiko> |
^-- please don't do that |
| [21:43:54] |
<mitsuhiko> |
('foo ' |
| [21:43:55] |
<mitsuhiko> |
'bar') |
| [21:44:00] |
<mitsuhiko> |
that's the way to go |
| [21:44:55] |
<rafael_> |
fixed |
| [21:45:05] |
<mitsuhiko> |
rafael_: http://paste.pocoo.org/show/85143/ |
| [21:45:30] |
<mitsuhiko> |
default parser has no choices, that will never validate |
| [21:45:49] |
<mitsuhiko> |
moderate_comments should be a ChoiceField, not a MultiChoiceField |
| [21:47:35] |
<Leonidas> |
uh, what happened with beewee? |
| [21:47:51] |
<rafael_> |
mitsuhiko: the view function correct so far? |
| [21:48:17] |
<mitsuhiko> |
rafael_: http://paste.pocoo.org/show/85146/ |
| [21:48:19] |
<mitsuhiko> |
untested |
| [21:48:28] |
<mitsuhiko> |
Leonidas: he's now called highwaychile :) |
| [21:50:03] |
<birkenfeld> |
Leonidas: right |
| [21:50:04] |
<rafael_> |
mitsuhiko: hm, i still get this error i get all the time: http://paste.pocoo.org/show/85147/ |
| [21:51:54] |
<CIA-49> |
python-doctools: georg.brandl * r66413 /doctools/trunk/EXAMPLES: Add Django URL. |
| [21:52:10] |
<mitsuhiko> |
rafael_: looks like a bug, can you try to track it down? |
| [21:53:10] |
<rafael_> |
i'll try it |
| [21:54:03] |
<Leonidas> |
hmm, python 2.6c1 is going to come out in a couple of hours. |
| [22:04:12] |
<asmodai> |
\o/ |
| [22:09:03] |
<mitsuhiko> |
HOLY: https://secure.sanfranciscofcu.com/auth/faq.htm#sec_words |
| [22:09:13] |
<mitsuhiko> |
""" |
| [22:09:13] |
<mitsuhiko> |
Why can't I use certain words like "drop" as part of my security answer? |
| [22:09:13] |
<mitsuhiko> |
There are certain words used by hackers to wipe out data. Therefore, the following words are restricted, "select", "delete", "update", "insert", "drop" and "null".""" |
| [22:09:35] |
<birkenfeld> |
great, isn't it |
| [22:10:24] |
<mitsuhiko> |
incredible :) |
| [22:10:34] |
* |
birkenfeld is in favor of brushing the dust off the old guillotines |
| [22:10:50] |
<mitsuhiko> |
:D |
| [22:10:59] |
<birkenfeld> |
I mean, the ';--' is dumb enough |
| [22:11:16] |
<dennda> |
hrhr |
| [22:12:49] |
<mitsuhiko> |
birkenfeld: the latter can't be faked. that kills me :) |
| [22:13:07] |
<mitsuhiko> |
everybody can submit fake stories to tdwtf :) |
| [22:13:21] |
<birkenfeld> |
mitsuhiko: it's a U.S. bank -- what did you expect? |
| [22:13:29] |
<mitsuhiko> |
;) |
| [22:13:58] |
<birkenfeld> |
it's the security equivalent of the U.S. foreign policy |
| [22:15:12] |
<asmodai> |
well |
| [22:15:15] |
<asmodai> |
this is nice |
| [22:15:17] |
<birkenfeld> |
"There are certain beliefs used by terrorists to wipe out lives. Therefore, the following beliefs are restricted, "islam", "socialism", "evolution". |
| [22:15:38] |
<asmodai> |
so this girl visiting me, fuck if I know what I did, but she's off to Amsterdam tomorrow and go sightseeing the rest of the time, heh |
| [22:16:17] |
<birkenfeld> |
why did she visit you in the first place? |
| [22:20:28] |
<asmodai> |
hahaha, well, met her year and a half ago after I broke up with my ex |
| [22:20:32] |
<asmodai> |
thought we clicked, hah |
| [22:20:44] |
<birkenfeld> |
ah... well, amsterdam is nice, isn't it |
| [ |