| [00:08:07] |
* |
OXiDE has quit IRC |
| [00:16:53] |
* |
highwaychile has quit IRC |
| [00:21:45] |
* |
jpcw has quit IRC |
| [01:09:00] |
* |
springmeyer has joined #pocoo |
| [01:25:55] |
* |
springmeyer has quit IRC |
| [01:26:17] |
* |
springmeyer has joined #pocoo |
| [01:30:57] |
* |
springmeyer has quit IRC |
| [01:31:12] |
* |
springmeyer has joined #pocoo |
| [01:31:22] |
* |
ckknight has quit IRC |
| [01:34:18] |
* |
springmeyer has quit IRC |
| [01:37:50] |
* |
damjan has quit IRC |
| [01:37:59] |
* |
|[diecast]| has joined #pocoo |
| [01:38:05] |
* |
damjan has joined #pocoo |
| [01:38:42] |
* |
[diecast] has quit IRC |
| [01:39:26] |
* |
ckknight has joined #pocoo |
| [02:03:21] |
* |
springmeyer has joined #pocoo |
| [02:07:49] |
* |
davidcramer has joined #pocoo |
| [03:01:25] |
* |
sulo_ has quit IRC |
| [03:20:46] |
* |
ckknight has quit IRC |
| [03:23:01] |
<Zenom> |
there any other open source apps using werkzeug? |
| [03:28:30] |
* |
ckknight has joined #pocoo |
| [03:41:23] |
* |
maix has quit IRC |
| [04:04:49] |
<empty> |
Zenom: werkzeug is very nice. I don't know of a lot but I'm sure there's some |
| [04:09:14] |
<Zenom> |
ya was just looking for some more to look at how people do things with it |
| [04:09:18] |
<Zenom> |
routing/db wise etc |
| [04:09:30] |
<Zenom> |
been using zine as a base |
| [04:09:42] |
<empty> |
yeah there's that. |
| [04:09:51] |
<empty> |
there's also some framework built on it. |
| [04:09:54] |
<empty> |
can't remember the name |
| [04:10:02] |
<Zenom> |
glasshaus or something |
| [04:10:04] |
<empty> |
named after some death metal band or some shit |
| [04:10:07] |
<empty> |
yeah |
| [04:10:27] |
<Zenom> |
im starting a task / project manager with it and sqla |
| [04:10:39] |
<Zenom> |
just trying to look at other ways they put their apps together |
| [04:11:14] |
<empty> |
i've got some stuff that's very specific so it wouldnt' be much help |
| [04:12:12] |
<Zenom> |
its like the zine routing is a url map, then in views/__init__.py it has like a endpoint <-> method list |
| [04:12:40] |
<empty> |
yeah I have something similar |
| [04:12:42] |
<Zenom> |
just seems like duplicating the work there so trying to figure out maybe a more streamlined way, plus i am wondering if its better to break apart views (controllers) |
| [04:12:55] |
<empty> |
in my opinion the routing is missing that piece |
| [04:13:02] |
<empty> |
I tried to talk to mitsuhiko about it |
| [04:13:06] |
<empty> |
but he disagreed |
| [04:13:14] |
<Zenom> |
or keep them together, zine uses 1 for admin.py and 1 for like public views |
| [04:13:26] |
<Zenom> |
ya i think he just wants to keep it super flexible |
| [04:13:44] |
<Zenom> |
keeping it separate (routing im speaking of) i think he just wants tto make it able to do whatever someone wants |
| [04:13:48] |
<empty> |
sure |
| [04:13:53] |
<Zenom> |
i know there is an import_from_string or something too |
| [04:14:07] |
<Zenom> |
that can take like "public.my_method" and import that |
| [04:15:02] |
<empty> |
Zenom: I have this approach: http://gitorious.org/projects/gitalicious/repos/mainline/trees/werkzeug/app/views |
| [04:15:51] |
<Zenom> |
right |
| [04:16:04] |
<empty> |
my expose looks like this: http://gitorious.org/projects/gitalicious/repos/mainline/blobs/werkzeug/scooby%2Fcore%2Furls.py#line11 |
| [04:16:32] |
<empty> |
with werkzeug you get the url and endpoing. |
| [04:16:33] |
<empty> |
point |
| [04:16:38] |
<empty> |
you really need url, name, endpoint |
| [04:16:56] |
<Zenom> |
ah so you re using the decorator |
| [04:17:14] |
<empty> |
yes |
| [04:17:23] |
<empty> |
and i get the endpoint from the view it's decorating |
| [04:18:03] |
<Zenom> |
right |
| [04:18:21] |
<Zenom> |
ya the one method i tried a urls.py that maps the path to the endpoint |
| [04:18:32] |
<Zenom> |
then a list in views that maps the endpoint to the function |
| [04:18:56] |
<Zenom> |
i like the decorator method though too |
| [04:19:04] |
<empty> |
I tried that way too the first way |
| [04:19:12] |
<empty> |
and I still have support for it. |
| [04:20:10] |
<empty> |
Zenom: you'll see it here: http://gitorious.org/projects/gitalicious/repos/mainline/blobs/werkzeug/app%2Fviews%2F__init__.py |
| [04:20:29] |
<Zenom> |
right |
| [04:38:12] |
* |
Zenom has quit IRC |
| [05:22:10] |
* |
sky_ has joined #pocoo |
| [05:38:13] |
* |
Leslie has quit IRC |
| [06:57:42] |
* |
springmeyer has left #pocoo |
| [07:07:58] |
* |
leche has joined #pocoo |
| [07:17:19] |
* |
davidcramer has quit IRC |
| [07:17:29] |
* |
davidcramer has joined #pocoo |
| [07:25:38] |
* |
izibi has joined #pocoo |
| [07:29:24] |
* |
leche has quit IRC |
| [08:15:31] |
* |
jpcw has joined #pocoo |
| [08:16:17] |
* |
david`bgk has quit IRC |
| [08:20:59] |
<Kaelten> |
prencher:ping |
| [08:30:09] |
* |
david`bgk has joined #pocoo |
| [08:31:43] |
* |
hoffmann has joined #pocoo |
| [08:57:36] |
* |
hoffmann has quit IRC |
| [08:59:52] |
* |
davidcramer` has joined #pocoo |
| [09:09:08] |
* |
davidcramer` has quit IRC |
| [09:15:49] |
* |
davidcramer` has joined #pocoo |
| [09:20:59] |
* |
davidcramer has quit IRC |
| [09:28:17] |
* |
hoffmann has joined #pocoo |
| [09:50:46] |
* |
izibi has quit IRC |
| [10:09:55] |
* |
sulo_ has joined #pocoo |
| [10:15:15] |
* |
jpcw has quit IRC |
| [10:19:48] |
* |
jpcw has joined #pocoo |
| [10:36:13] |
* |
ivan has quit IRC |
| [10:36:22] |
* |
ivan has joined #pocoo |
| [10:38:12] |
* |
sky_ has quit IRC |
| [12:38:36] |
* |
davidcramer` has quit IRC |
| [12:38:52] |
* |
davidcramer has joined #pocoo |
| [13:17:00] |
* |
sulo has joined #pocoo |
| [13:17:30] |
* |
sulo_ has quit IRC |
| [13:25:07] |
* |
highwaychile has joined #pocoo |
| [13:31:23] |
* |
_paneb has joined #pocoo |
| [13:36:22] |
* |
izibi has joined #pocoo |
| [13:42:02] |
* |
Zenom has joined #pocoo |
| [13:42:06] |
<asmodai> |
prencher: hey monkey |
| [13:42:10] |
<asmodai> |
prencher: awake? |
| [14:04:13] |
* |
izibi has quit IRC |
| [14:09:36] |
* |
davidcramer has quit IRC |
| [14:21:58] |
* |
lakin has joined #pocoo |
| [14:30:53] |
* |
toMpEr has quit IRC |
| [14:32:57] |
* |
maix has joined #pocoo |
| [14:44:23] |
* |
highwaychile has quit IRC |
| [15:23:19] |
* |
ckknight has quit IRC |
| [15:32:00] |
* |
ckknight has joined #pocoo |
| [16:07:10] |
* |
lakin has quit IRC |
| [16:19:55] |
* |
hoffmann has quit IRC |
| [16:59:59] |
* |
EnTeQuAk has joined #pocoo |
| [17:11:04] |
* |
alowry has left #pocoo |
| [17:13:38] |
* |
lakin has joined #pocoo |
| [18:07:05] |
<ckknight> |
anyone have some code that handles gzipping a response (with werkzeug)? |
| [18:09:17] |
<mitsuhiko> |
ckknight: why not let the webserver do that? |
| [18:10:32] |
<apollo13> |
mitsuhiko: take a look at jabber |
| [18:15:23] |
<mitsuhiko> |
apollo13: cannot confirm |
| [18:15:24] |
<mitsuhiko> |
>>> Template("{% macro alpha() %}Hello{% endmacro %}{% block body %}{{ alpha() }}{% endblock %}").render() |
| [18:15:24] |
<mitsuhiko> |
u'Hello' |
| [18:16:01] |
<prencher> |
asmodai-san |
| [18:22:32] |
* |
highwaychile has joined #pocoo |
| [18:38:28] |
* |
mtrichardson has joined #pocoo |
| [18:40:08] |
* |
rafael has joined #pocoo |
| [18:44:41] |
<tux21b> |
hi mitsuhiko :) |
| [18:44:46] |
<tux21b> |
how are you? |
| [18:44:54] |
<tux21b> |
and btw uu.de is still working :D |
| [18:45:06] |
* |
izibi has joined #pocoo |
| [18:45:31] |
<ckknight> |
mitsuhiko: did you get my pinging in the channel yesterday about that jinja2 bug? |
| [18:46:00] |
<mitsuhiko> |
ckknight: the one i pasted above? |
| [18:46:53] |
<ckknight> |
yes, but it's more complex than that. For some reason, being able to create macros ends up failing, but doesn't fail initially |
| [18:47:04] |
<ckknight> |
so the first ones are fine, then eventually it just fucks up |
| [18:47:16] |
<ckknight> |
not sure how to best come up with a test case... |
| [18:47:32] |
<ckknight> |
I can see what I can do, though |
| [18:49:58] |
* |
sulo_ has joined #pocoo |
| [18:50:27] |
<sebner> |
mitsuhiko: did you already think about Code-run-output for lodgeit? |
| [18:50:46] |
<mitsuhiko> |
sebner: no |
| [18:50:52] |
<mitsuhiko> |
sebner: and i won't think about it ;) |
| [18:51:00] |
<sebner> |
mitsuhiko: not cool enough? |
| [18:51:07] |
* |
asmodai pokes mitsuhiko |
| [18:51:15] |
<mitsuhiko> |
ckknight: i don't see how this could fail, unless you are abusing an old scoping bug |
| [18:51:38] |
<mitsuhiko> |
{% block foo %}{% macro x() %}...{% endmacro %}{% block bar %}{{ x() }}{% endblock %}{% endblock %} for example doesn't work as documented |
| [18:51:41] |
<prencher> |
sebner - the potential for abuse is daunting |
| [18:51:47] |
<mitsuhiko> |
asmodai: repoke |
| [18:51:49] |
<prencher> |
also it could be quite server intensive |
| [18:51:54] |
<prencher> |
asmodai: repoke^2 |
| [18:52:00] |
<ckknight> |
no, since even if I declare the macro right before, it fails, I checked the generated code and it basically just made a list, did nothing, and concatted |
| [18:52:00] |
<asmodai> |
counterpoke |
| [18:52:13] |
<ckknight> |
so I know it wasn't a scoping issue |
| [18:52:18] |
<sebner> |
prencher: sure but therefore sandboxes exist |
| [18:52:26] |
<prencher> |
asmodai - what is it you want fecesboy? |
| [18:52:26] |
<ckknight> |
hrm |
| [18:52:35] |
<asmodai> |
Kaelten / prencher: didn't you guys use SQLAlchemy for some heavy hitted site? |
| [18:52:35] |
<ckknight> |
I don't believe I do something crazy like that |
| [18:52:47] |
<ckknight> |
asmodai: we're going to soon (speaking for Kaelten) |
| [18:52:56] |
<asmodai> |
ok |
| [18:53:17] |
<asmodai> |
ckknight: SA much of an overhead or is it ok in your initial tests? |
| [18:53:21] |
<prencher> |
asmodai - not for the time being, but got Kaelten using it for curseforge/wowace |
| [18:53:32] |
<ckknight> |
asmodai: compared to what? |
| [18:53:41] |
<asmodai> |
direct database talk |
| [18:53:42] |
<ckknight> |
prencher: I'm the one doing all the porting, though :-P |
| [18:53:59] |
<prencher> |
ckknight - oh i figured, he wouldn't be so easy to convince if he did the actual work ;) |
| [18:54:03] |
<mitsuhiko> |
ckknight: if you have a test case, please send me a mail |
| [18:54:07] |
<asmodai> |
because there's, again, a talk about Trac and potentially using SA and people saying how it would slow down things a lot. |
| [18:54:47] |
<sebner> |
mitsuhiko: http://codepad.org/ looks really cool :P |
| [18:55:01] |
<ckknight> |
mitsuhiko: I'll see if I can come up with something. |
| [18:55:22] |
<mitsuhiko> |
sebner: so what? i don't have 8 servers to run that thing on, and not the knowledge |
| [18:55:26] |
<mitsuhiko> |
neither the time |
| [18:55:31] |
<mitsuhiko> |
nor am i interested in it |
| [18:55:42] |
<sebner> |
mitsuhiko: then only for python ^^ |
| [18:55:58] |
<empty> |
mitsuhiko: you're alive |
| [18:56:09] |
<mitsuhiko> |
empty: alive and kicking, kicking analysis |
| [18:56:14] |
<empty> |
oh how i missed you. |
| [18:56:16] |
<empty> |
:) |
| [18:57:21] |
<mitsuhiko> |
heh |
| [18:57:28] |
<sebner> |
mitsuhiko: Our beloved info teacher told me that analysis is sooo easy (met her some days ago) xD |
| [18:57:46] |
<mitsuhiko> |
sebner: good for her |
| [18:58:36] |
<sebner> |
^^ |
| [18:58:42] |
* |
rafael has quit IRC |
| [18:58:45] |
<sebner> |
btw, happy release day for them who care |
| [19:00:23] |
<sebner> |
mitsuhiko: AHHH, new -> http://joomla.borg-hermagor.at/ |
| [19:01:20] |
<mitsuhiko> |
sebner: seriously, i don't give a shit |
| [19:01:56] |
<sebner> |
mitsuhiko: bah, you old school :\ |
| [19:04:16] |
<asmodai> |
hahah |
| [19:04:19] |
<asmodai> |
good going mits |
| [19:04:25] |
<asmodai> |
release fanbois :P |
| [19:05:00] |
<ckknight> |
mitsuhiko: coming close to figuring it out... |
| [19:05:45] |
* |
sulo__ has joined #pocoo |
| [19:06:15] |
<ckknight> |
mitsuhiko: yea, lemme pastey |
| [19:06:24] |
* |
sulo has quit IRC |
| [19:08:56] |
* |
mtrichardson has left #pocoo |
| [19:09:07] |
<ckknight> |
mitsuhiko: http://paste.pocoo.org/show/89565/ |
| [19:09:39] |
<ckknight> |
expected result: outer_box my_macro. got result: outer_box |
| [19:10:03] |
<ckknight> |
note that if I do not extend standard.html, it gets the expected result |
| [19:10:08] |
<mitsuhiko> |
well, that can't work |
| [19:10:14] |
<mitsuhiko> |
macros are not automatically imported by extends |
| [19:10:53] |
<ckknight> |
okay, hang on... |
| [19:11:15] |
<ckknight> |
I got an even better test case |
| [19:11:55] |
<ckknight> |
mitsuhiko: http://paste.pocoo.org/show/89566/ |
| [19:13:28] |
<mitsuhiko> |
i see |
| [19:13:32] |
* |
mitsuhiko checks |
| [19:18:54] |
<mitsuhiko> |
ckknight: fixed, do you want an entry in the THANKS file? |
| [19:20:03] |
<CIA-44> |
Jinja 2: mitsuhiko trunk * 590:d482cdaf90ed / (jinja2/compiler.py tests/test_inheritance.py): Fixed a macro scoping bug discovered by ckknight introduced in one of the earlier changes for the 2.1 release. |
| [19:21:47] |
* |
sulo_ has quit IRC |
| [19:22:42] |
<mitsuhiko> |
hmm. macros are actually imported on extension |
| [19:22:44] |
<mitsuhiko> |
interesting |
| [19:22:49] |
<mitsuhiko> |
that's... unintended |
| [19:32:07] |
<dennda> |
mitsuhiko: hey, a lifesign! :D |
| [19:32:11] |
<dennda> |
is analysis that hard? |
| [19:32:22] |
<mitsuhiko> |
at least for me |
| [19:32:24] |
<dennda> |
or is it a new girlfriend you didn't tell us about |
| [19:32:56] |
<dennda> |
don't worry, the final exams are almost always easier than you might expect |
| [19:33:00] |
* |
izibi has quit IRC |
| [19:37:21] |
<dennda> |
mitsuhiko: btw, if you are really stuck at night when none of your fellow students is alive, I suggest giving #mathe on irc.quakenet.org a try. there are some really good math guys in there :-) |
| [19:37:41] |
<mitsuhiko> |
thanks |
| [19:39:29] |
<sebner> |
dennda: quakenet? only crazy people there :P |
| [19:41:34] |
<dennda> |
sebner: that's the only channel there I sometimes join |
| [19:41:43] |
<dennda> |
and the only reason for connecting to that server, for that matter |
| [19:41:45] |
<sebner> |
hrhr |
| [19:47:52] |
<ckknight> |
mitsuhiko: yes, I do. |
| [19:48:01] |
<ckknight> |
my egotism forces me |
| [19:48:06] |
<ckknight> |
I am slave to my pride. |
| [19:48:24] |
<ckknight> |
mitsuhiko: plz don't remove said unintended behavior (importing macros on extension) |
| [19:48:32] |
<ckknight> |
or make it intended ;-) |
| [19:48:39] |
<ckknight> |
I don't want to have to rework my templates |
| [19:49:12] |
<mitsuhiko> |
ckknight: i won't change it for the time being and see if i can document it |
| [19:49:18] |
<mitsuhiko> |
depends on if it works in every situation ;) |
| [19:52:47] |
<ckknight> |
lol |
| [19:52:56] |
<ckknight> |
it seems to have worked for me everywhere I've used it |
| [20:24:55] |
* |
davidcramer has joined #pocoo |
| [20:29:36] |
<CIA-44> |
Jinja 2: mitsuhiko trunk * 591:ffe9965ab6f4 / (AUTHORS THANKS): Added a Thanks entry for Cameron Knight. |
| [20:31:54] |
<ckknight> |
woo |
| [20:31:57] |
* |
ckknight flexes |
| [20:32:10] |
<ckknight> |
mitsuhiko: lots of love for fixing that, btw |
| [21:00:08] |
* |
EnTeQuAk has quit IRC |
| [21:00:35] |
* |
EnTeQuAk has joined #pocoo |
| [21:03:11] |
* |
EnTeQuAk has quit IRC |
| [21:48:02] |
* |
sebner_ has joined #pocoo |
| [21:49:51] |
* |
sebner_ has quit IRC |
| [21:50:07] |
* |
sebner_ has joined #pocoo |
| [21:59:51] |
* |
sebner_ has quit IRC |
| [22:00:26] |
* |
sebner_ has joined #pocoo |
| [22:02:37] |
* |
sebner_ has quit IRC |
| [22:02:50] |
* |
sebner_ has joined #pocoo |
| [22:03:25] |
* |
sebner_ has quit IRC |
| [22:03:41] |
* |
sebner_ has joined #pocoo |
| [22:04:31] |
* |
sebner_ has joined #pocoo |
| [22:07:19] |
* |
sebner_ has quit IRC |
| [22:07:32] |
* |
sebner_ has joined #pocoo |
| [22:11:04] |
* |
sebner_ has quit IRC |
| [22:11:22] |
* |
sebner_ has joined #pocoo |
| [22:11:51] |
* |
sebner_ has joined #pocoo |
| [22:12:24] |
* |
sebner_ has joined #pocoo |
| [22:16:37] |
* |
leche has joined #pocoo |
| [22:19:37] |
* |
sebner_ has quit IRC |
| [22:28:04] |
* |
hoffmann has joined #pocoo |
| [22:36:43] |
* |
_paneb has quit IRC |
| [22:57:38] |
* |
hoffmann_ has joined #pocoo |
| [23:04:53] |
* |
hoffmann_ has quit IRC |
| [23:12:45] |
* |
hoffmann has quit IRC |
| [23:13:22] |
* |
leche has quit IRC |
| [23:15:12] |
* |
lakin has quit IRC |
| [23:17:02] |
* |
lakin has joined #pocoo |
| [23:20:49] |
* |
ztx has joined #pocoo |
| [23:54:05] |
* |
highwaychile has quit IRC |