| [00:00:30] |
* |
aconbere has joined #pocoo |
| [00:00:43] |
* |
stifal has quit IRC |
| [00:23:16] |
* |
jinks has quit IRC |
| [00:25:46] |
* |
jinks has joined #pocoo |
| [00:45:30] |
* |
izibi has quit IRC |
| [00:50:07] |
* |
jinks has quit IRC |
| [00:50:49] |
* |
lakin has quit IRC |
| [00:53:22] |
<dennda> |
hm I could use something like a decorator in jinja (for macros) |
| [00:54:22] |
* |
jinks has joined #pocoo |
| [00:57:00] |
<aa_> |
dennda: depends what you are doing maybe "call" can help |
| [00:57:44] |
* |
guillermo_ has joined #pocoo |
| [00:58:30] |
* |
jinks has quit IRC |
| [00:58:57] |
<dennda> |
aa_: http://the-space-station.com/~dennda/gallery/screenshots/tss_preview.png |
| [00:59:07] |
<dennda> |
As you can see, I use those boxes all over the place |
| [00:59:20] |
<dennda> |
their border is a 3-color thing |
| [00:59:24] |
<maze> |
dennda, je moeder! |
| [00:59:54] |
<dennda> |
I realized that with three nested divs and more for the content and title of the box |
| [01:01:15] |
<dennda> |
aa_: the problem now is, that my post-boxes should have an additional div for comments, date, tags, .... The other boxes will need special behaviour, too. Now I wonder how I do that most elegantly. I could define different macros and copy the nested divs all over the place, or I could make one big giant macro special casing everything |
| [01:01:33] |
<dennda> |
and doing a lot of {% if posts %} ... {% endif %} |
| [01:01:50] |
<dennda> |
But I hope there is a better solution. I only use jinja since yesterday :-) |
| [01:02:51] |
<dennda> |
hm so indeed, call looks good after reading the first sentence |
| [01:03:10] |
<aa_> |
dennda: by the sound of it, it may do what you want |
| [01:03:15] |
<dennda> |
yes |
| [01:03:35] |
<dennda> |
I will create a "put three divs around this one" macro |
| [01:08:22] |
* |
highwaychile has quit IRC |
| [01:11:47] |
* |
jinks has joined #pocoo |
| [01:11:54] |
<dennda> |
hm no that's difficult, too |
| [01:12:00] |
* |
guille_ has quit IRC |
| [01:24:18] |
* |
ckknight has quit IRC |
| [01:42:02] |
* |
ckknight has joined #pocoo |
| [01:42:44] |
<ckknight> |
y |
| [01:42:45] |
<ckknight> |
erp |
| [01:42:47] |
* |
ckknight has left #pocoo |
| [01:48:52] |
* |
ChanServ has quit IRC |
| [01:48:52] |
* |
mika has quit IRC |
| [01:48:52] |
* |
pjenvey has quit IRC |
| [01:48:52] |
* |
aat has quit IRC |
| [01:48:52] |
* |
POX_ has quit IRC |
| [01:48:52] |
* |
david`bgk has quit IRC |
| [01:49:41] |
* |
ChanServ has joined #pocoo |
| [01:49:41] |
* |
david`bgk has joined #pocoo |
| [01:49:41] |
* |
POX_ has joined #pocoo |
| [01:49:41] |
* |
mika has joined #pocoo |
| [01:49:41] |
* |
aat has joined #pocoo |
| [01:49:41] |
* |
pjenvey has joined #pocoo |
| [01:49:41] |
* |
irc.freenode.net sets mode: +o ChanServ |
| [01:50:46] |
* |
ChanServ has quit IRC |
| [01:50:46] |
* |
POX_ has quit IRC |
| [01:50:46] |
* |
aat has quit IRC |
| [01:50:46] |
* |
pjenvey has quit IRC |
| [01:50:46] |
* |
david`bgk has quit IRC |
| [01:50:46] |
* |
mika has quit IRC |
| [01:51:13] |
* |
ChanServ has joined #pocoo |
| [01:51:13] |
* |
david`bgk has joined #pocoo |
| [01:51:13] |
* |
POX_ has joined #pocoo |
| [01:51:13] |
* |
mika has joined #pocoo |
| [01:51:13] |
* |
aat has joined #pocoo |
| [01:51:13] |
* |
pjenvey has joined #pocoo |
| [01:51:13] |
* |
irc.freenode.net sets mode: +o ChanServ |
| [01:57:25] |
<dennda> |
hm |
| [01:57:47] |
<dennda> |
I didn't quite get how textpress knows which block to replace by what child block when using jinjas inheritance |
| [02:07:44] |
<dennda> |
Hm, if I copy index.html from the top level templates folder and modify it a bit, saving it in my plugins templates/ direcotry, it isn't used. The top level template is used :-( |
| [02:08:31] |
* |
aconbere has quit IRC |
| [02:12:01] |
* |
aconbere has joined #pocoo |
| [02:15:08] |
<dennda> |
hm the theme development guide isn't of much help either |
| [02:23:06] |
<dennda> |
ok by some magic and prayers it does now. dunno why it didn't a few minutes ago |
| [02:37:48] |
* |
boink__ has joined #pocoo |
| [02:41:13] |
* |
dennda needs a url / file mapping |
| [02:50:05] |
* |
raz has quit IRC |
| [02:50:05] |
* |
boink__ is now known as raz |
| [03:27:06] |
* |
boink__ has joined #pocoo |
| [03:38:34] |
* |
raz has quit IRC |
| [03:38:34] |
* |
boink__ is now known as raz |
| [03:40:44] |
* |
M3ntor5 has quit IRC |
| [04:00:18] |
<dennda> |
Some of the default template files are horribly indented... |
| [04:04:36] |
<dennda> |
http://paste.pocoo.org/show/83073/ |
| [04:04:43] |
<dennda> |
The above is how I indented it now |
| [04:04:58] |
<dennda> |
the second is teh original :-/ |
| [04:08:58] |
<guillermo_> |
but probably they idented like that to avoid blankspaces when the template is rendered |
| [04:10:10] |
<dennda> |
jinja2 has {%- ... -%}. The dashes say: remove whitespace there |
| [04:23:33] |
<guillermo_> |
ah, it's nice, sorry i come from django's templates :) |
| [04:24:43] |
<dennda> |
me too :-) |
| [04:24:49] |
<dennda> |
working for the first time with jinja |
| [04:25:04] |
<dennda> |
redundancy in default templates... |
| [04:35:01] |
* |
guillermo__ has joined #pocoo |
| [04:49:26] |
* |
guillermo_ has quit IRC |
| [07:19:05] |
* |
empty has quit IRC |
| [08:36:08] |
* |
guillermo__ has quit IRC |
| [08:50:36] |
* |
robart has joined #pocoo |
| [08:50:43] |
* |
robart has left #pocoo |
| [09:10:35] |
* |
Tik-Tok has quit IRC |
| [09:26:51] |
* |
aconbere has quit IRC |
| [09:51:53] |
* |
boink__ has joined #pocoo |
| [09:53:14] |
* |
davidcramer has quit IRC |
| [10:03:43] |
* |
raz has quit IRC |
| [10:03:43] |
* |
boink__ is now known as raz |
| [10:31:10] |
* |
EnTeQuAk has joined #pocoo |
| [10:31:43] |
* |
kaelten has joined #pocoo |
| [10:32:01] |
* |
EnTeQuAk has quit IRC |
| [10:32:56] |
* |
kaelten is now known as Kaelten |
| [10:40:50] |
* |
pocoo has joined #pocoo |
| [10:41:37] |
* |
bzed has joined #pocoo |
| [10:49:27] |
* |
highwaychile has joined #pocoo |
| [10:54:31] |
<mitsuhiko> |
wohoo: http://docs.djangoproject.com/en/dev/ |
| [10:55:20] |
* |
asmodai eyes mitsuhiko |
| [10:55:37] |
<asmodai> |
jesus |
| [10:56:14] |
<asmodai> |
that site design sucks ass on 1920x1200 |
| [10:56:22] |
<asmodai> |
like 1/3rd of the view port is not used :S |
| [10:56:56] |
<plaes> |
you have way big monitor :) |
| [10:57:28] |
<asmodai> |
I do :D |
| [10:58:00] |
<xorAxAx> |
mitsuhiko: hail sphinx? :) |
| [11:02:47] |
* |
mikeyumatov has joined #pocoo |
| [11:08:45] |
* |
pjenvey_ has quit IRC |
| [11:13:06] |
<mitsuhiko> |
xorAxAx: yep |
| [11:42:37] |
<asmodai> |
monopoly! |
| [11:51:16] |
* |
izibi has joined #pocoo |
| [11:59:42] |
* |
M3ntor5 has joined #pocoo |
| [12:37:02] |
* |
izibi_ has joined #pocoo |
| [12:44:30] |
* |
izibi has quit IRC |
| [14:08:13] |
* |
highwaychile has quit IRC |
| [14:59:27] |
* |
EnTeQuAk has quit IRC |
| [15:13:31] |
* |
mika has quit IRC |
| [15:13:31] |
* |
POX_ has quit IRC |
| [15:13:31] |
* |
aat has quit IRC |
| [15:13:31] |
* |
david`bgk has quit IRC |
| [15:14:30] |
* |
mika has joined #pocoo |
| [15:14:30] |
* |
david`bgk has joined #pocoo |
| [15:14:30] |
* |
POX_ has joined #pocoo |
| [15:14:30] |
* |
aat has joined #pocoo |
| [15:42:33] |
* |
_P_ has quit IRC |
| [15:46:37] |
* |
delroth has quit IRC |
| [15:49:56] |
* |
_P_ has joined #pocoo |
| [16:34:27] |
* |
empty has joined #pocoo |
| [16:46:25] |
<dennda> |
ah, the default template files are hardcoded |
| [16:47:26] |
* |
EnTeQuAk has joined #pocoo |
| [16:48:03] |
<dennda> |
website/tpweb/urls.py -- here we go :-) |
| [16:51:24] |
* |
aconbere has joined #pocoo |
| [16:52:13] |
<CIA-43> |
Pygments: gbrandl trunk * 642:c3d65e413421 / (CHANGES pygments/__init__.py): 0.11 release preparation. |
| [16:52:13] |
<CIA-43> |
Pygments: gbrandl trunk * 643:8adf0e664739 /.hgtags: Added tag 0.11 for changeset c3d65e413421 |
| [16:59:16] |
<birkenfeld> |
release time! |
| [17:00:22] |
<mitsuhiko> |
cool :) |
| [17:05:15] |
<saptah> |
¿guys, there are more werkzeug examples, besides the ones on the trackc |
| [17:05:20] |
<saptah> |
¿? thanks |
| [17:06:24] |
<mitsuhiko> |
saptah: there are applications developed with the help of werkzeug that are open source where you can look at |
| [17:06:32] |
<mitsuhiko> |
for example textpress and lodgeit in the werkzeug trac |
| [17:07:12] |
<saptah> |
mitsuhiko great, thx |
| [17:17:05] |
<CIA-43> |
python-doctools: georg.brandl * r65991 /doctools/trunk/TODO: Add todo item. |
| [17:17:05] |
<CIA-43> |
python-doctools: georg.brandl * r65992 /doctools/trunk/sphinx/locale/cs/LC_MESSAGES/ (sphinx.po sphinx.mo): Updated Czech translation. |
| [17:17:06] |
<CIA-43> |
python-doctools: georg.brandl * r65993 /doctools/ (8 files in 4 dirs): (log message trimmed) |
| [17:17:06] |
<CIA-43> |
python-doctools: Merged revisions 65640,65675,65699,65701 via svnmerge from |
| [17:17:06] |
<CIA-43> |
python-doctools: svn+ssh://pythondev@svn.python.org/doctools/branches/0.4.x |
| [17:17:08] |
<CIA-43> |
python-doctools: ........ |
| [17:17:10] |
<CIA-43> |
python-doctools: r65640 | georg.brandl | 2008-08-11 16:11:17 +0200 (Mon, 11 Aug 2008) | 2 lines |
| [17:17:12] |
<CIA-43> |
python-doctools: More info in intro. |
| [17:17:14] |
<CIA-43> |
python-doctools: ........ |
| [17:32:09] |
<dennda> |
mitsuhiko: I got {% if post.comments %} {{ post.comments }} {% endif %}, and for {{ post.comments }} it renders []. How can that be? Isn't this the same behaviour as in python? |
| [17:32:55] |
<dennda> |
(the same with ... is defined) |
| [17:35:43] |
<mitsuhiko> |
dennda: it's the same behavior |
| [17:35:53] |
<mitsuhiko> |
must be a bug on your side :) |
| [17:36:36] |
<dennda> |
mitsuhiko: It's a slightly modified standard textpress template |
| [17:36:56] |
<mitsuhiko> |
paste the template |
| [17:37:13] |
<mitsuhiko> |
dennda: btw |
| [17:37:20] |
<mitsuhiko> |
are you sure it's [] and not [<Comment foo>]? |
| [17:37:35] |
<dennda> |
mitsuhiko: Not sure, is there some repr()? |
| [17:37:36] |
<mitsuhiko> |
make it {{ post.comments|e }} for a moment |
| [17:38:43] |
<dennda> |
ah you are right. strange thing is, the comment isn't rendered. But as I am typing this it strikes me that I should check whether I need to moderate comments |
| [17:39:08] |
<dennda> |
ah yes :-) |
| [17:39:11] |
<dennda> |
thanks |
| [17:50:22] |
* |
s0undt3ch has joined #pocoo |
| [17:50:40] |
<s0undt3ch> |
mitsuhiko: TP got widgets back yet? |
| [17:50:50] |
<s0undt3ch> |
mitsuhiko: been away from channel |
| [17:51:05] |
<mitsuhiko> |
not yet |
| [17:51:53] |
<dennda> |
hm? what widgets? |
| [17:52:20] |
<s0undt3ch> |
mitsuhiko: k |
| [18:20:54] |
* |
Tik-Tok has joined #pocoo |
| [18:21:11] |
<CIA-43> |
Werkzeug: mitsuhiko default * 604:4c1e326e9420 / (CHANGES werkzeug/contrib/atom.py): Fixed #338. |
| [18:24:59] |
<birkenfeld> |
mitsuhiko: why is textpress-main's contact "unknown" on http://dev.pocoo.org/hg/ ? |
| [18:25:31] |
<mitsuhiko> |
birkenfeld: ah. because i forgot to add it after i installed the fixed repository from tux21b |
| [18:25:57] |
<mitsuhiko> |
i was able to push corrupted changesets and the #mercurial guys had to fix the repo with a script :-/ |
| [18:26:10] |
<birkenfeld> |
uh... |
| [18:26:12] |
<birkenfeld> |
not nice :) |
| [18:27:07] |
<mitsuhiko> |
fixed :) |
| [18:27:27] |
<mitsuhiko> |
birkenfeld: btw. what's phsh? |
| [18:27:40] |
<birkenfeld> |
something you can type in |
| [18:27:46] |
<birkenfeld> |
>>> `1 m` + `1 cm` |
| [18:27:49] |
<birkenfeld> |
and get 101 cm |
| [18:27:55] |
<birkenfeld> |
very handy for physicists :) |
| [18:28:18] |
<mitsuhiko> |
cool :) |
| [18:28:21] |
<mitsuhiko> |
does it use units? |
| [18:28:23] |
<xorAxAx> |
where is the code again? |
| [18:28:29] |
<mitsuhiko> |
not in the repo at least |
| [18:28:33] |
<birkenfeld> |
xorAxAx: in 3 minutes, in the new repo |
| [18:28:38] |
<xorAxAx> |
new? |
| [18:28:48] |
<mitsuhiko> |
http://dev.pocoo.org/hg/phsh/ |
| [18:29:00] |
<xorAxAx> |
ah |
| [18:30:52] |
<birkenfeld> |
done |
| [18:31:29] |
<xorAxAx> |
thanks root :) |
| [18:31:46] |
* |
mitsuhiko added archive to everything now |
| [18:33:32] |
<mitsuhiko> |
birkenfeld: from Scientific.Physics.PhysicalQuantities import PhysicalQuantity |
| [18:33:33] |
<mitsuhiko> |
what's that? |
| [18:33:42] |
<birkenfeld> |
it's Scientific python |
| [18:33:44] |
<xorAxAx> |
scipy |
| [18:33:45] |
<birkenfeld> |
(!= scipy) |
| [18:33:48] |
<xorAxAx> |
ah |
| [18:33:51] |
<xorAxAx> |
hail names |
| [18:33:56] |
<birkenfeld> |
yeah, that's dumb |
| [18:34:02] |
<xorAxAx> |
at least its not py |
| [18:37:41] |
<birkenfeld> |
"all your generic name belong to us" |
| [18:37:49] |
<birkenfeld> |
i/are/ |
| [18:39:22] |
<xorAxAx> |
are all your generic name belong to us :) |
| [18:42:29] |
* |
davidcramer has joined #pocoo |
| [18:43:06] |
<birkenfeld> |
mitsuhiko: repo creation just got easier |
| [18:43:16] |
<mitsuhiko> |
birkenfeld: a script? :) |
| [18:43:21] |
<birkenfeld> |
yes |
| [18:44:51] |
<mitsuhiko> |
nice :) |
| [18:45:10] |
<birkenfeld> |
I find I create a repo surprisingly often ^^ |
| [18:47:26] |
<mitsuhiko> |
birkenfeld: i usually create it locally and scp it to the server |
| [18:47:34] |
<mitsuhiko> |
and copy a hgrc from another repo over :) |
| [18:47:48] |
<xorAxAx> |
do you have an american keyboard layout, birkenfeld? |
| [18:47:58] |
<xorAxAx> |
or at least nodeadkeys= |
| [18:48:04] |
<birkenfeld> |
xorAxAx: yes, nodeadkeys |
| [18:48:15] |
<birkenfeld> |
why? |
| [18:48:31] |
<xorAxAx> |
because that makes it still a shift-key op to get the backticks into the pysh expr |
| [18:48:39] |
<birkenfeld> |
yes |
| [18:49:00] |
<mitsuhiko> |
... but it looks nice :) |
| [18:49:08] |
<birkenfeld> |
do you have an alternative for german layouts? |
| [18:49:11] |
<mitsuhiko> |
xorAxAx: real man have scroll lock mapped to ` :) |
| [18:49:12] |
<birkenfeld> |
# perhaps? |
| [18:49:19] |
<mitsuhiko> |
eh. ´ |
| [18:49:33] |
<birkenfeld> |
#1m# is not very readable IME |
| [18:49:33] |
<mitsuhiko> |
s/man/men/ too |
| [18:49:49] |
<xorAxAx> |
mhmm, i once suggested something |
| [18:49:55] |
<xorAxAx> |
to use * IIRC |
| [18:50:17] |
<birkenfeld> |
which is a shift key too? |
| [18:50:46] |
<xorAxAx> |
not on the numeric key pad :) |
| [18:50:59] |
<xorAxAx> |
yes, my point was just that i had to remember my last idea |
| [18:51:43] |
<xorAxAx> |
so it would probably only annoy windows users |
| [18:51:55] |
<birkenfeld> |
math operators are not very sensible for that |
| [18:52:01] |
<xorAxAx> |
why not? |
| [18:52:16] |
<xorAxAx> |
its very natural to interpret linear units as a factor |
| [18:52:17] |
<birkenfeld> |
well, they tend to occur in such expressions :) |
| [18:52:34] |
<xorAxAx> |
agreed |
| [18:52:54] |
<birkenfeld> |
also, 1/`2m` would either be 1/2/m or 1/(2*m) |
| [18:53:05] |
<birkenfeld> |
the former is ugly, the latter is more typing :) |
| [18:53:31] |
<xorAxAx> |
how about (1/2*m)? :) |
| [18:53:38] |
<birkenfeld> |
that's 1/2 m |
| [18:53:43] |
<xorAxAx> |
modulo brackets |
| [18:53:49] |
<birkenfeld> |
not 1/2 m^-1 |
| [18:53:52] |
<xorAxAx> |
indeed |
| [18:56:42] |
<xorAxAx> |
birkenfeld: now you only need an integration of your favorite cas |
| [18:56:54] |
<xorAxAx> |
to get integrals and derivatives easily :) |
| [19:07:12] |
* |
pjenvey_ has joined #pocoo |
| [19:23:30] |
* |
pjenvey_ has quit IRC |
| [19:24:50] |
* |
pjenvey_ has joined #pocoo |
| [19:26:46] |
* |
pjenvey__ has joined #pocoo |
| [19:41:29] |
* |
pjenvey_ has quit IRC |
| [19:53:25] |
* |
izibi_ is now known as izibi |
| [20:16:48] |
* |
aconbere has quit IRC |
| [20:23:28] |
* |
delroth has joined #pocoo |
| [20:37:00] |
* |
boink__ has joined #pocoo |
| [20:44:45] |
<asmodai> |
birkenfeld: dude! |
| [20:48:47] |
* |
raz has quit IRC |
| [20:48:47] |
* |
boink__ is now known as raz |
| [20:50:38] |
* |
pete__c has quit IRC |
| [20:54:19] |
* |
mikeyumatov has quit IRC |
| [20:54:59] |
<apollo13> |
davidcramer: http://www.davidcramer.net/code/224/logging-in-with-email-addresses-in-django.html can you give me any reason for inheriting from modelBackend? |
| [20:56:39] |
* |
EnTeQuAk has quit IRC |
| [20:57:32] |
<apollo13> |
AUTHENTICATION_BACKENDS is a tuple, so you can use many backends and the don't need to reimplement everything, just implementing the authentication function is fine |
| [20:57:46] |
<dennda> |
Hm, I got a macro that accepts `content` as string and renders that. Now I have an object `children` which is a list of children objects. each of those children objects has a .title attribute. With my macro, I want to render a <ul> of those children.titles and associate them with their respective url. Any idea how to best do that? mitsuhiko perhaps? :-) |
| [21:04:06] |
<davidcramer> |
apollo13: made sense to inherit it since it does the same thing, just a diff auth method |
| [21:04:19] |
<davidcramer> |
there's a get_user method and what not in modelbackend i think |
| [21:04:26] |
<davidcramer> |
and might be other stuff, not sure |
| [21:05:13] |
<apollo13> |
davidcramer: it does the same thing yes, but don't inherit and use both classes in Authentication_backends |
| [21:05:45] |
<apollo13> |
by dividing it you could use your backend for the user retrival and another (ldap based for instance) for permissions |
| [21:06:11] |
<apollo13> |
without walking over the has_perm (or whatever) method in your backend which it doesn't aim to provide at all |
| [21:07:37] |
<davidcramer> |
it only executes has_perm on the backend in which they logged in with |
| [21:07:43] |
<davidcramer> |
it sets user.backend when they login |
| [21:07:59] |
<apollo13> |
wtf? |
| [21:07:59] |
<davidcramer> |
(at least thats my understanding) |
| [21:08:02] |
<apollo13> |
would be now to me |
| [21:08:07] |
<apollo13> |
and I wrote that code |
| [21:08:34] |
<davidcramer> |
I don't understand why you wouldn't inherit here, its the same as ModelBackend |
| [21:08:36] |
<apollo13> |
at least it wasn't planed that way let me check |
| [21:08:54] |
<apollo13> |
you don't get my point |
| [21:09:12] |
<apollo13> |
use this: AUTHENTICATION_BACKENDS = ('EmailAuthBackend', 'ModelBackend') |
| [21:09:27] |
<apollo13> |
in this case you are fine with your approach |
| [21:09:33] |
<apollo13> |
but think about this |
| [21:09:44] |
<apollo13> |
AUTHENTICATION_BACKENDS = ('EmailAuthBackend', 'LdapPermissionBackend') |
| [21:10:09] |
<apollo13> |
now user.has_perm would query your email backend without any effect |
| [21:10:15] |
<dennda> |
nevermind, created a new macro. means code duplication but I don't know any better way |
| [21:10:34] |
<apollo13> |
cause you don't use django to handle them |
| [21:10:39] |
<apollo13> |
but ldap (in this example) |
| [21:10:39] |
<davidcramer> |
ah i get what you're saing |
| [21:10:42] |
<davidcramer> |
that's a bit complicated behavior |
| [21:10:45] |
<davidcramer> |
(just looked at the code) |
| [21:10:47] |
<apollo13> |
so you would issue a query for nothing |
| [21:10:58] |
<apollo13> |
yeah but that's how I wanted it to work :) |
| [21:11:19] |
<apollo13> |
generally saying implement what you need and just inherit form `object` |
| [21:11:23] |
<davidcramer> |
when i read about backends it wasn't clear ot me thats how all this would work |
| [21:11:25] |
<apollo13> |
and use more than one backend |
| [21:11:28] |
<davidcramer> |
ya i looked at the source :) |
| [21:11:53] |
<apollo13> |
I was quite happy by the time this patch got accepted saved me a lot of work... |
| [21:12:04] |
* |
pjenvey_ has joined #pocoo |
| [21:12:10] |
<apollo13> |
(previously I was syncing ldap permissions on login with django) |
| [21:12:13] |
<davidcramer> |
ah |
| [21:12:16] |
<apollo13> |
ugly.... |
| [21:14:20] |
<davidcramer> |
sometimes I just want to fork django because they wont accept certain patches |
| [21:14:41] |
<apollo13> |
yep, same here, but I would like to see sa in it ;) |
| [21:14:57] |
<davidcramer> |
ive ended up subclassing a good chunk of core components in our codebase already -.- |
| [21:15:01] |
<davidcramer> |
and im going to have to do more |
| [21:15:15] |
<davidcramer> |
i was hoping with their .save() change create() would no longer do a select, but it still does, so i gotta switch all our models to use the custom queryset |
| [21:15:43] |
<apollo13> |
create does a select? why |
| [21:15:51] |
<davidcramer> |
if you pass a value for the pk it does |
| [21:15:57] |
<apollo13> |
ah |
| [21:15:58] |
<davidcramer> |
and if that pk exists in the db it updates instead of erroring |
| [21:16:06] |
<davidcramer> |
which makes me want to throw stuff out the window :) |
| [21:16:39] |
<apollo13> |
we don't have this problem, we always use ids as pks |
| [21:16:39] |
* |
davidcramer has left #pocoo |
| [21:16:46] |
<apollo13> |
and noone can enter them.... |
| [21:16:50] |
<apollo13> |
bye :þ |
| [21:17:01] |
* |
davidcramer has joined #pocoo |
| [21:17:13] |
<davidcramer> |
wrong button :) |
| [21:17:15] |
<apollo13> |
birkenfeld: btw http://docs.djangoproject.com/en/dev/ |
| [21:17:17] |
<apollo13> |
XD |
| [21:20:28] |
<davidcramer> |
im glad the file storage/upload changes are finally in trunk |
| [21:20:39] |
<davidcramer> |
if you get everything running off of that kind of extensibility django will rock |
| [21:20:58] |
<davidcramer> |
even though last I loked they still needed some tweaks |
| [21:22:02] |
<apollo13> |
the question is if it's running at all after this whole extensibility ;) |
| [21:22:21] |
<davidcramer> |
it is :) I run trunk in production, haha |
| [21:22:40] |
<apollo13> |
yeah but I wait for request/response object customisation :þ |
| [21:23:09] |
<davidcramer> |
It'd be nice to be able to properly stream a response, but beyond that i dont have any usecases for changes |
| [21:23:21] |
<davidcramer> |
as you can use middleware for most things |
| [21:23:48] |
<apollo13> |
yeah, was just joking |
| [21:24:06] |
<apollo13> |
at least the mysql binary thing is finally out again |
| [21:25:57] |
<davidcramer> |
ya |
| [21:26:00] |
<davidcramer> |
that was killing one of my apps :) |
| [21:27:07] |
* |
pjenvey__ has quit IRC |
| [21:28:49] |
<apollo13> |
didn't kill anything here :) using case sensitive collations already I didn't felt anything |
| [21:29:04] |
<davidcramer> |
i was using utf8_bin but it will still causing conflicts |
| [21:29:17] |
<davidcramer> |
i would get different result set #s with BINARY foo vs just foo |
| [21:29:20] |
<davidcramer> |
can't explain it |
| [21:37:25] |
* |
pete__c has joined #pocoo |
| [21:38:39] |
<dennda> |
s0undt3ch: what widgets did you mean? |
| [21:47:16] |
<birkenfeld> |
asmodai: hey! |
| [21:48:07] |
<asmodai> |
birkenfeld: hola! |
| [21:48:17] |
<asmodai> |
birkenfeld: I wonder if I might catch up to you ;) |
| [21:48:23] |
* |
pete__c has quit IRC |
| [21:48:46] |
<birkenfeld> |
asmodai: in what sense? :) |
| [21:49:27] |
<asmodai> |
birkenfeld: I'm reading Midnight Tides |
| [21:49:35] |
<birkenfeld> |
oh, then it's likely |
| [21:49:47] |
<asmodai> |
:) |
| [21:49:53] |
<birkenfeld> |
I've just passed the revelation about Lady Envy |
| [21:50:02] |
<asmodai> |
I must say, the story is so much more understandable now |
| [21:50:21] |
<asmodai> |
since I couldn't remember that Trull said he would tell the story when he reached the destination with Onrack |
| [21:50:25] |
<asmodai> |
and Midnight Tides is that story |
| [21:50:34] |
<birkenfeld> |
ah, indeed |
| [21:50:51] |
<birkenfeld> |
but not only |
| [21:51:49] |
<asmodai> |
no ok |
| [21:53:42] |
<birkenfeld> |
asmodai: did you keep track of the various relationships between the Tiste lords, gods, etc.? |
| [21:53:52] |
<birkenfeld> |
because I'm sure I can't remember much of this soon :) |
| [21:54:23] |
<asmodai> |
birkenfeld: I'm trying |
| [21:54:30] |
<asmodai> |
I need to update |
| [21:54:50] |
* |
pete__c has joined #pocoo |
| [22:17:38] |
* |
highwaychile has joined #pocoo |
| [22:23:34] |
* |
pjenvey_ has quit IRC |
| [22:28:18] |
* |
pjenvey_ has joined #pocoo |
| [22:50:39] |
<thatch> |
birkenfeld: still around? |
| [22:50:51] |
<birkenfeld> |
thatch: yep |
| [22:53:21] |
<thatch> |
birkenfeld: there's one changeset that didn't make it into the 0.11 pygments release, it seems |
| [22:53:57] |
<thatch> |
http://code.timhatch.com/hg/pygments-tim/rev/6f65e1b8fb2d |
| [22:54:27] |
<thatch> |
trac < http://trac.edgewall.org/changeset/7485 will probably choke without it |
| [22:59:23] |
<birkenfeld> |
hmm, bad |
| [22:59:59] |
<thatch> |
although it seems to be behaving on my production server with older trac 0.11, it didn't work on my dev box earlier |
| [23:00:11] |
<CIA-43> |
Pygments: thatch trunk * 644:6f65e1b8fb2d /pygments/lexers/other.py: Add missing alias for sqlite3 lexer. |
| [23:00:11] |
<CIA-43> |
Pygments: gbrandl trunk * 645:63632d034095 /pygments/lexers/other.py: Merge with TIm. |
| [23:00:26] |
<birkenfeld> |
thatch: it's not too late for rerelease I guess :) |
| [23:00:48] |
<CIA-43> |
Pygments: gbrandl trunk * 646:385d85c9dfc6 /.hgtags: Added tag 0.11 for changeset 63632d034095 |
| [23:01:14] |
<thatch> |
the bugs this release are mine too :) |
| [23:02:00] |
<mitsuhiko> |
birkenfeld: btw. happy release :) |
| [23:02:25] |
<birkenfeld> |
sphinx is tomorrow |
| [23:04:31] |
<thatch> |
neat |
| [23:05:15] |
<thatch> |
I tried using v0.4.2 (with sphinx-quickstart) and it overwrite a Makefile. Is that by design? |
| [23:06:00] |
<birkenfeld> |
well, it's not supposed to be used with an existing tree |
| [23:06:37] |
<thatch> |
so normal usage is mkdir doc && cd doc && sphinx-quickstart? |
| [23:06:53] |
<birkenfeld> |
sphinx-quickstart already asks for a directory |
| [23:07:09] |
<thatch> |
birkenfeld: yes, and defaults to '.' :) |
| [23:07:13] |
<birkenfeld> |
yes |
| [23:07:46] |
<birkenfeld> |
it may use a warning before it overwrites, that's true |
| [23:08:08] |
* |
unlink has joined #pocoo |
| [23:08:22] |
<unlink> |
wow... tuples in jinja2... it's so wonderful |
| [23:08:37] |
<unlink> |
i can now make a macro called "navigation" |
| [23:25:13] |
<pjenvey_> |
doh, really needed that fix for jython in pygments 0.11 = [ |
| [23:55:45] |
<birkenfeld> |
pjenvey_: was there a fix needed? |
| [23:56:03] |
<birkenfeld> |
must have missed that |
| [23:56:20] |
<dennda> |
virtualenv not available in etchs repos? |
| [23:58:45] |
<birkenfeld> |
pjenvey_: I see |
| [23:59:00] |
<mitsuhiko> |
grml. i'm too stupid for sql |
| [23:59:07] |
<birkenfeld> |
pjenvey_: is the patch tim wrote okay with you? |
| [23:59:38] |
<mitsuhiko> |
does anyone know a nice way to optimize this query: http://paste.pocoo.org/show/NI3MO4lTpsZzgqSuCnr9/ ? |