| [00:00:27] |
* |
maix has quit IRC |
| [00:25:57] |
* |
sashav has quit IRC |
| [00:35:00] |
* |
Kaelten has quit IRC |
| [00:48:33] |
* |
_P_ has joined #pocoo |
| [01:02:05] |
* |
matt_good_ has quit IRC |
| [01:20:57] |
* |
lakin has quit IRC |
| [01:31:36] |
* |
davidcramer has quit IRC |
| [01:31:47] |
* |
davidcramer has joined #pocoo |
| [02:05:23] |
* |
ckknight has quit IRC |
| [02:16:32] |
* |
ckknight has joined #pocoo |
| [02:44:57] |
* |
adaran has quit IRC |
| [02:45:51] |
* |
maddiin has quit IRC |
| [03:10:39] |
* |
aconbere has quit IRC |
| [03:12:38] |
* |
mtrichardson has quit IRC |
| [03:15:40] |
* |
zero-one_ has joined #pocoo |
| [03:22:48] |
* |
zero-one has quit IRC |
| [03:30:08] |
* |
alowry has quit IRC |
| [03:39:47] |
* |
aconbere has joined #pocoo |
| [04:54:43] |
* |
Kaelten has joined #pocoo |
| [04:58:06] |
* |
Kaelten has quit IRC |
| [04:58:28] |
* |
kaelten has joined #pocoo |
| [05:00:21] |
* |
kaelten is now known as Kaelten |
| [05:14:00] |
* |
aconbere has quit IRC |
| [05:47:43] |
* |
hoffmann has quit IRC |
| [05:51:51] |
* |
leifkb has quit IRC |
| [05:52:28] |
* |
leifkb has joined #pocoo |
| [06:00:10] |
* |
_P_ has quit IRC |
| [06:42:26] |
* |
alowry has joined #pocoo |
| [06:57:09] |
* |
dtamborelli has joined #pocoo |
| [07:09:50] |
* |
alowry has quit IRC |
| [07:21:09] |
* |
leche has joined #pocoo |
| [07:22:27] |
* |
Kaelten has quit IRC |
| [07:36:47] |
* |
alowry has joined #pocoo |
| [07:37:15] |
* |
alowry_ has joined #pocoo |
| [07:37:42] |
* |
alowry_ has left #pocoo |
| [07:51:49] |
* |
alowry has quit IRC |
| [07:53:03] |
* |
alowry has joined #pocoo |
| [07:53:26] |
* |
alowry has joined #pocoo |
| [08:18:40] |
<CIA-49> |
python-doctools: georg.brandl * r66952 /doctools/trunk/EXAMPLES: The new Matplotlib docs are live now. |
| [08:51:47] |
* |
dtamborelli has quit IRC |
| [09:10:01] |
* |
jpcw has joined #pocoo |
| [09:51:38] |
<CIA-49> |
python-doctools: georg.brandl * r66953 /doctools/trunk/EXAMPLES: Update URLs. |
| [09:53:51] |
<CIA-49> |
python-doctools: georg.brandl * r66954 /doctools/trunk/ (CHANGES sphinx/texinputs/fncychap.sty): Fix a problem with non-ASCII characters leading chapter titles, by updating fncychap.sty. |
| [10:48:01] |
* |
EnTeQuAk has joined #pocoo |
| [11:09:12] |
* |
davidcramer_ has joined #pocoo |
| [11:18:24] |
* |
davidcramer__ has joined #pocoo |
| [11:21:06] |
* |
EnTeQuAk has left #pocoo |
| [11:25:25] |
* |
davidcramer has quit IRC |
| [11:26:04] |
* |
davidcramer_ has quit IRC |
| [11:26:45] |
* |
leche has quit IRC |
| [12:44:37] |
* |
grumpy has joined #pocoo |
| [13:25:37] |
<CIA-49> |
python-doctools: georg.brandl * r66954 /doctools/trunk/ (CHANGES sphinx/texinputs/fncychap.sty): Fix a problem with non-ASCII characters leading chapter titles, by updating fncychap.sty. |
| [13:25:38] |
<CIA-49> |
python-doctools: georg.brandl * r66955 /doctools/trunk/ (5 files in 3 dirs): Include hyperref as the last package. Fixes #4027. |
| [13:48:38] |
<CIA-49> |
python-doctools: georg.brandl * r66956 /doctools/trunk/sphinx/texinputs/sphinx.sty: Fix another ordering problem that led to uncolored Verbatim environments. |
| [13:51:43] |
* |
grumpy has quit IRC |
| [14:41:35] |
* |
izibi has joined #pocoo |
| [14:42:50] |
* |
_paneb has joined #pocoo |
| [14:47:57] |
* |
davidcramer has joined #pocoo |
| [14:56:29] |
* |
davidcramer has quit IRC |
| [14:57:09] |
* |
davidcramer has joined #pocoo |
| [15:00:02] |
* |
ollie1 has joined #pocoo |
| [15:04:37] |
* |
davidcramer__ has quit IRC |
| [15:05:07] |
* |
zero-one has joined #pocoo |
| [15:05:29] |
* |
zero-one_ has quit IRC |
| [15:05:35] |
<ollie1> |
hi, with jinja2 what's the best way to go about rendering 'None' as an empty string? seems like providing a Context subclass that returns '' instead of None in 'get(key,default=None)' would be quick and easy, but I'm wondering if there would be any drawbacks to that approach? |
| [15:05:41] |
* |
davidcramer has quit IRC |
| [15:06:21] |
* |
davidcramer has joined #pocoo |
| [15:13:51] |
<ollie1> |
oops, I appear to have been looking at jinja 1's source code vs 2's -- so, maybe a custom context_class isn't quick so quick and easy ;-) |
| [15:14:53] |
* |
davidcramer has quit IRC |
| [15:15:33] |
* |
davidcramer has joined #pocoo |
| [15:32:22] |
* |
stifal has joined #pocoo |
| [15:46:39] |
<mitsuhiko> |
ollie1: finalize=lambda x: x is not None and unicode(x) or u'' |
| [15:46:46] |
<mitsuhiko> |
into the environ constructor |
| [15:49:53] |
<ollie1> |
mitsuhiko: thanks |
| [15:52:21] |
* |
Kaelten has joined #pocoo |
| [16:00:37] |
* |
boorad has quit IRC |
| [16:13:51] |
* |
ckknight has quit IRC |
| [16:25:04] |
* |
ckknight has joined #pocoo |
| [16:30:26] |
<ollie1> |
mitsuhiko: not sure if this is a known limitation or a bug, but it looks like switching env.finalize between a function like the one you pasted and None, while using a bytecode cache results in a crash -- since one goes from having a finalize to removing it, gets a type error because None isn't callable. |
| [16:30:58] |
<mitsuhiko> |
ugh? that's weird |
| [16:31:06] |
<mitsuhiko> |
which bytecode cache are you using? |
| [16:31:24] |
<ollie1> |
FileSystemBytecodeCache |
| [16:31:38] |
<mitsuhiko> |
ollie1: you must not change the finalize attribute once assigned if you mean that |
| [16:31:44] |
<mitsuhiko> |
either globally enabled or not |
| [16:32:07] |
<mitsuhiko> |
you can have a second environment with different settings, but you must never reassign finalize |
| [16:33:06] |
<ollie1> |
it should have been different environments, but I'm using in django and was just testing having a finalize vs not having one |
| [16:34:06] |
<ollie1> |
(because i'm only setting it in the constructor) |
| [16:53:50] |
<ollie1> |
mitsuhiko: here's an example http://paste.pocoo.org/show/88299/ -- first run is fine, second goes splat |
| [16:54:38] |
<mitsuhiko> |
ollie1: that's an unsupported operation |
| [16:54:47] |
<mitsuhiko> |
multiple environments may not use the same bytecode cache |
| [16:55:09] |
<ollie1> |
makes sense, thanks |
| [17:16:39] |
* |
chrisberlin has joined #pocoo |
| [17:18:20] |
* |
maddiin has joined #pocoo |
| [17:24:07] |
* |
davidcramer_ has joined #pocoo |
| [17:40:40] |
* |
davidcramer has quit IRC |
| [17:49:47] |
* |
Baumichel has joined #pocoo |
| [18:04:38] |
* |
mtrichardson has joined #pocoo |
| [18:11:39] |
* |
davidcramer_ is now known as davidcramer |
| [18:29:16] |
* |
zero-one has quit IRC |
| [19:47:01] |
* |
hoffmann has joined #pocoo |
| [19:52:53] |
* |
Baumichel has quit IRC |
| [19:57:31] |
* |
highwaychile has joined #pocoo |
| [20:27:00] |
* |
lakin has joined #pocoo |
| [20:41:47] |
* |
[diecast] has joined #pocoo |
| [21:05:47] |
<Leonidas> |
nice, someone even posted a werkzeug solution: http://arclanguage.org/item?id=722 |
| [21:25:47] |
* |
zekel has joined #pocoo |
| [21:36:00] |
* |
highwaychile has quit IRC |
| [21:42:02] |
* |
lakin has quit IRC |
| [21:43:07] |
* |
highwaychile has joined #pocoo |
| [21:53:37] |
* |
highwaychile has quit IRC |
| [22:05:42] |
* |
zekel has quit IRC |
| [22:08:23] |
* |
highwaychile has joined #pocoo |
| [22:14:41] |
* |
izibi has quit IRC |
| [22:40:27] |
* |
zekel has joined #pocoo |
| [23:27:18] |
* |
_paneb has quit IRC |
| [23:46:59] |
* |
stifal has quit IRC |
| [23:50:57] |
* |
hoffmann_ has joined #pocoo |
| [23:51:21] |
* |
hoffmann has quit IRC |
| [23:51:27] |
* |
hoffmann_ is now known as hoffmann |