IRC Logs

2008 10
Mo Tu We Th Fr Sa So
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

25. 10 2008

[00:00:04] * adaran has joined #pocoo
[00:00:59] * stifal has quit IRC
[00:14:10] <_paneb> i am getting this error when setting up my urls: http://pastebin.com/m441f8092
[00:15:37] <_paneb> hm, there is a line that talks about PIL - ??
[00:33:03] * izibi has quit IRC
[00:37:04] * miracle2k has left #pocoo
[00:37:52] <Kaelten> prencher: ping
[00:38:00] <Kaelten> mitsuhiko: ping
[00:58:21] <ckknight> I need prencher, too
[00:58:31] <ckknight> I claimed him first!
[00:58:33] <ckknight> :-P
[01:00:15] * steg has quit IRC
[01:00:16] * maddiin has quit IRC
[01:00:16] * chrisberlin has quit IRC
[01:00:16] * sebner has quit IRC
[01:00:35] * steg has joined #pocoo
[01:00:36] * maddiin has joined #pocoo
[01:00:36] * chrisberlin has joined #pocoo
[01:00:36] * sebner has joined #pocoo
[01:15:09] <_paneb> anyone?
[01:18:00] * adaran has quit IRC
[01:23:15] <_paneb> i have to specify an endpoint even for redirect_to rules?
[01:23:24] <ckknight> nope.
[01:23:42] <ckknight> Rule('/', redirect_to='profiles/')
[01:23:45] <ckknight> works perfectly for me
[01:29:15] <_paneb> the first rule seems to be causing my error: http://pastebin.com/m30081992
[01:29:21] <_paneb> i can't see what is wrong with it
[01:40:12] <ckknight> EndpointPrefix?
[01:40:21] <ckknight> perhaps that causes the expectation of endpoint
[01:40:40] <ckknight> we decided not to use EndpointPrefix but rather be explicit everywhere (note: we still use Submount egregiously)
[01:40:52] <_paneb> oh
[01:40:54] <_paneb> right
[01:42:30] <_paneb> that was dumb - just wasted 2 hours.. it's time to take a break
[02:46:32] * _paneb has quit IRC
[02:56:23] * aconbere has quit IRC
[03:04:57] * dennda has quit IRC
[03:06:35] * dennda has joined #pocoo
[04:08:02] * leche has quit IRC
[04:49:15] * davidcramer has quit IRC
[04:49:52] * davidcramer has joined #pocoo
[05:03:28] * dennda has quit IRC
[05:03:28] * Kaelten has quit IRC
[05:03:28] * hads has quit IRC
[05:03:28] * leifkb has quit IRC
[05:03:28] * steg has quit IRC
[05:03:28] * chrisberlin has quit IRC
[05:03:28] * maddiin has quit IRC
[05:03:28] * sebner has quit IRC
[05:03:28] * davidcramer has quit IRC
[05:03:28] * ivan has quit IRC
[05:03:28] * thatch_work has quit IRC
[05:03:28] * prencher has quit IRC
[05:03:28] * ronny has quit IRC
[05:03:28] * apollo13 has quit IRC
[05:03:28] * jek has quit IRC
[05:03:28] * welterde has quit IRC
[05:03:28] * maze has quit IRC
[05:03:28] * Zenom has quit IRC
[05:03:28] * POX has quit IRC
[05:03:28] * plaes has quit IRC
[05:03:28] * benoitc has quit IRC
[05:03:28] * mq has quit IRC
[05:03:28] * aa_ has quit IRC
[05:03:28] * CIA-43 has quit IRC
[05:03:28] * Manni has quit IRC
[05:03:28] * toMpEr has quit IRC
[05:03:28] * asmodai has quit IRC
[05:03:28] * stargaming has quit IRC
[05:03:28] * aat has quit IRC
[05:03:28] * Leonidas has quit IRC
[05:03:28] * luks has quit IRC
[05:03:28] * KirkMcDonald has quit IRC
[05:03:28] * birkenfeld has quit IRC
[05:03:28] * mitsuhiko has quit IRC
[05:03:28] * _P_ has quit IRC
[05:03:28] * dev has quit IRC
[05:03:29] * jinks has quit IRC
[05:03:29] * tumult has quit IRC
[05:03:29] * tux21b has quit IRC
[05:03:29] * KAeL has quit IRC
[05:03:29] * empty has quit IRC
[05:04:19] * davidcramer has joined #pocoo
[05:04:19] * dennda has joined #pocoo
[05:04:19] * sebner has joined #pocoo
[05:04:19] * chrisberlin has joined #pocoo
[05:04:19] * maddiin has joined #pocoo
[05:04:19] * steg has joined #pocoo
[05:04:19] * ivan has joined #pocoo
[05:04:19] * Kaelten has joined #pocoo
[05:04:19] * Leonidas has joined #pocoo
[05:04:19] * _P_ has joined #pocoo
[05:04:19] * hads has joined #pocoo
[05:04:19] * prencher has joined #pocoo
[05:04:19] * Zenom has joined #pocoo
[05:04:19] * thatch_work has joined #pocoo
[05:04:19] * leifkb has joined #pocoo
[05:04:19] * KirkMcDonald has joined #pocoo
[05:04:19] * CIA-43 has joined #pocoo
[05:04:19] * welterde has joined #pocoo
[05:04:19] * mq has joined #pocoo
[05:04:19] * Manni has joined #pocoo
[05:04:19] * empty has joined #pocoo
[05:04:19] * POX has joined #pocoo
[05:04:19] * jinks has joined #pocoo
[05:04:19] * birkenfeld has joined #pocoo
[05:04:19] * KAeL has joined #pocoo
[05:04:19] * stargaming has joined #pocoo
[05:04:19] * toMpEr has joined #pocoo
[05:04:19] * asmodai has joined #pocoo
[05:04:19] * jek has joined #pocoo
[05:04:19] * ronny has joined #pocoo
[05:04:19] * aat has joined #pocoo
[05:04:19] * apollo13 has joined #pocoo
[05:04:19] * maze has joined #pocoo
[05:04:19] * plaes has joined #pocoo
[05:04:19] * benoitc has joined #pocoo
[05:04:19] * aa_ has joined #pocoo
[05:04:19] * tux21b has joined #pocoo
[05:04:19] * tumult has joined #pocoo
[05:04:19] * dev has joined #pocoo
[05:04:19] * luks has joined #pocoo
[05:04:19] * mitsuhiko has joined #pocoo
[05:04:24] <Zenom> what is the best way to do the routing for multiple views? i was looking at zine, but i think that is still a little over my head atm
[05:49:41] * Zenom sighs
[06:19:25] * aconbere has joined #pocoo
[06:21:32] * aconbere has quit IRC
[07:12:37] * ckknight is now known as ckknight|away
[07:15:31] * empty has quit IRC
[07:21:37] * ckknight|away is now known as ckknight
[07:34:18] * steg has quit IRC
[07:34:19] * sebner has quit IRC
[07:34:19] * maddiin has quit IRC
[07:34:19] * chrisberlin has quit IRC
[07:34:40] * steg has joined #pocoo
[07:34:40] * maddiin has joined #pocoo
[07:34:40] * chrisberlin has joined #pocoo
[07:34:40] * sebner has joined #pocoo
[08:08:35] * EnTeQuAk has joined #pocoo
[09:44:00] * davidcramer has quit IRC
[09:44:17] * davidcramer has joined #pocoo
[10:39:23] * davidcramer has quit IRC
[10:39:33] * davidcramer has joined #pocoo
[10:50:43] * jinks has quit IRC
[10:51:34] * jinks has joined #pocoo
[11:05:58] * leche has joined #pocoo
[11:13:08] * jinks has quit IRC
[11:13:57] * jinks has joined #pocoo
[11:55:25] * davidcramer has left #pocoo
[12:27:37] * steg has quit IRC
[12:27:37] * chrisberlin has quit IRC
[12:27:37] * maddiin has quit IRC
[12:27:37] * sebner has quit IRC
[12:28:28] * steg has joined #pocoo
[12:28:28] * maddiin has joined #pocoo
[12:28:28] * chrisberlin has joined #pocoo
[12:28:28] * sebner has joined #pocoo
[13:10:36] * highwaychile has joined #pocoo
[13:50:17] * highwaychile_ has joined #pocoo
[14:06:08] * highwaychile has quit IRC
[14:06:46] <EnTeQuAk> mitsuhiko, ping
[14:42:56] * izibi has joined #pocoo
[15:49:24] <CIA-43> Zine: EnTeQuAk default * 512:c54bfe545bf7 /zine/views/admin.py: hopefully fixed some plugin issues
[15:50:40] <ronny> EnTeQuAk: when will zine be usable again? also whats really the latest rev thats currently usable
[15:50:53] <ronny> the one before the "DO NOT UPDATE" doesnt work, too
[15:51:59] <EnTeQuAk> ronny, I don't know, I just need to read what's new to zine since mitsuhiko change'd a lot of things...
[15:52:33] <EnTeQuAk> for now it seems that zine is some kind of playground for little armin – but this hopefully changes in future
[15:52:51] <ronny> well, it would be ok, if he actally played :(
[15:53:25] <ronny> now im stuck with a half-broken blog and sad tears
[15:54:10] <EnTeQuAk> ronny, that's why I just moved back to zine development. I'm suck of wordpress (which in fact I just set up today :D)
[15:55:25] <aat> is contrib.jsrouting abandonware? it relies on minitmpl which has disappeared. or is this just an oversight?
[15:55:35] <aat> (werkzeug)
[15:56:35] <ronny> aat: looks like an oversight
[15:57:47] <aat> ok
[15:58:00] <aat> minitmpl has been deprecated?
[15:58:06] <aat> i haven't been keeping up with the changes
[15:58:52] <ronny> me neither, bussy with studying and pida
[15:59:18] <aat> ah, it looks like it's now available as werkzeug.Template
[16:00:20] <aat> werkzeug.templates
[16:21:02] <Zenom> EnTeQuAk: are you guys looking for "helpers" on zine?
[16:21:18] <Zenom> i would be willing to help and learn from working on it
[16:21:51] <EnTeQuAk> I think the more helpers the faster development ;)
[16:22:09] <EnTeQuAk> Zenom, yes, for now there is only one real active dev
[16:22:15] <Zenom> i am still trying to figure out werkzeug and been using zine as my base
[16:22:32] <Zenom> bceause right now routing is got me all kinds of confused heh
[16:24:11] * ronny cant see how routing is confusing
[16:24:43] <Zenom> well its more or less because im new to it i think
[16:24:57] <Zenom> for example, i have a views directory inside it public.py, admin.py and errors.py
[16:25:12] <Zenom> but everything I try for the url map unless i have the index in __init__.py it doesn't work
[16:25:44] <Zenom> i have tried like '/' , endpoint='public/index' and I get public/index is not found
[16:26:02] <Zenom> so i am re-reading the routing docs again right now
[16:31:27] <Zenom> ok im missing something if i have from myapp.views import public
[16:31:44] <Zenom> in __init__.py then url_map of '/', endpoint='public/index' shouldn't that work?
[16:35:07] <ronny> Zenom: you decide how you map endpoints to functions, its entirely up to you
[16:35:27] <Zenom> i guess im trying to find the way it "works" as what i have tried so far hasn't
[16:35:49] <ronny> routing gives you endpoints
[16:35:57] <ronny> its up to you to map those to functions
[16:36:54] <Zenom> map as in Map or map as in something else?
[16:37:13] <ronny> map as in something else
[16:37:41] <ronny> if you adapt a Map to a request, you get a Mapadapter, matching the uri against it gives you endpoint and args
[16:37:50] <ronny> and the endpoint needs to be mapped to a view
[16:39:11] <Zenom> ok so to clarify to make sure i understand if I have a Rule that says... '/', endpoint='public/index'
[16:39:29] <Zenom> i then have to have something else (ie., a dict or something) that says 'public/index' = public.index
[16:39:49] <Zenom> public.index being my actual path in the app to the function
[16:45:34] <ronny> yeah
[16:45:55] <ronny> alternatively you can also just map public/index to a module path and use import
[16:46:24] <ronny> ie public/index -> myapp.views.public.index
[16:47:34] <Zenom> in a rule?
[16:47:48] <Zenom> like Rule('/', myapp.views.public.index) ?
[16:48:43] <ronny> Zenom: no
[16:48:54] <ronny> just use a function to switch it
[16:49:25] <ronny> ir do you want to start writing stupid module paths when using url builders
[17:19:47] <Zenom> making progress, i got my index page to show, but now none of the other routes are working yet
[17:19:54] <Zenom> but thanks for the help, it makes mroe sense now
[17:22:56] * sashav has joined #pocoo
[17:31:26] * leifkb has quit IRC
[17:31:26] * hads has quit IRC
[17:31:26] * dennda has quit IRC
[17:31:26] * Kaelten has quit IRC
[17:31:53] * dennda has joined #pocoo
[17:31:54] * Kaelten has joined #pocoo
[17:31:54] * hads has joined #pocoo
[17:31:54] * leifkb has joined #pocoo
[17:35:09] <CIA-43> python-doctools: georg.brandl * r67016 /doctools/trunk/doc/config.rst: Fix typo.
[17:38:33] <CIA-43> python-doctools: georg.brandl * r67017 /doctools/trunk/sphinx/static/default.css:
[17:38:34] <CIA-43> python-doctools: Remove explicit height for relbar, to allow breaking text
[17:38:34] <CIA-43> python-doctools: not to flow into the main body.
[17:51:54] * leche has quit IRC
[17:55:30] <CIA-43> python-doctools: georg.brandl * r67019 /doctools/trunk/ (10 files in 6 dirs): Add global citations. #1.
[17:58:32] <Zenom> if a middleware is setup can i check it by viewing the request? ie., i keep getting page not found with my shared data middleware, want to make sure its being "setup"
[17:59:10] <ronny> Zenom: please rephase the question, i dont get what you mean
[17:59:43] <Zenom> how can I determine if a middleware is actually loaded
[17:59:54] <Zenom> ie., my SharedDataMiddleware setup isn't finding the shared files
[18:00:02] <Zenom> so im trying to determine if I actually have it setup right
[18:01:13] <Zenom> http://www.bitbucket.org/zenom/gojira/
[18:01:19] <Zenom> there is the app if it will help to look at it
[18:01:41] <CIA-43> python-doctools: georg.brandl * r67020 /doctools/trunk/doc/ (markup/inline.rst rest.rst): Add a note about substitutions.
[18:01:41] * EnTeQuAk has quit IRC
[18:11:04] <CIA-43> python-doctools: georg.brandl * r67021 /doctools/trunk/sphinx/environment.py: Fix outdated docstring.
[18:11:04] <CIA-43> python-doctools: georg.brandl * r67022 /doctools/trunk/ (5 files in 4 dirs): Add Spanish locale, by Guillem Borrell.
[18:15:02] <ronny> Zenom: ew, your editor uses tabs instead of 4 spaces, that kills all nice indent
[18:15:13] <Zenom> should be 4 spaces
[18:15:24] <Zenom> textmate softtabs 4
[18:15:38] <ronny> well, the files have tabs for sure
[18:15:45] <Zenom> weird
[18:15:47] <ronny> just see http://www.bitbucket.org/zenom/gojira/src/tip/gojira/application.py
[18:16:00] <Zenom> eew ya
[18:16:01] <Zenom> lol
[18:16:30] <Zenom> i don't know if the problem is my dispatch method or what but i just get 404
[18:16:35] <Zenom> on my shared stuff
[18:16:51] <ronny> Zenom: please use package loading instead of weird path hacks
[18:16:54] <Zenom> so im trying to figure out , isn't my url/mapping/routing stuff for the wsgi not being loaded
[18:18:01] <ronny> http://werkzeug.pocoo.org/documentation/utils <- see the shared data middleware example for package loading
[18:20:01] <ronny> Zenom: im not sure if submount is supposed to be used with a empty string
[18:20:17] <Zenom> its working for the other stuff
[18:20:21] <Zenom> if you test /test/1 etc
[18:20:26] <Zenom> it appears to be working on all that
[18:20:51] <ronny> ok
[18:21:49] <Zenom> and I copied it from zine
[18:21:50] <Zenom> 'blog_url_prefix': (unicode, u''),
[18:21:58] <Zenom> thts what they had for their Submount
[18:23:19] <Zenom> http://zenom.gotdns.org:5000/
[18:23:31] <Zenom> http://zenom.gotdns.org:5000/shared/test.txt
[18:27:51] <aa_> ronny: what happens to package-data when you want to switch serving static files with a real web server not via wsgi?
[18:28:25] <ronny> you'll have to refer to it somehow
[18:29:08] <aa_> s/ll have to refer to it somehow/re screwed/
[18:29:42] <aa_> actually, I am not sure how it would work
[18:30:14] <aa_> oh yeah, screwed, as far as I can tell. You can't even work it out and sanely generate a webserver's aliases
[18:30:29] <aa_> __file__ hacks ftw
[18:32:47] <ronny> no
[18:33:01] <ronny> you can always infer file from the package + path
[18:33:24] <ronny> the whole __file__ stuff breaks if you put it into eggs
[18:34:17] <aa_> yeah, eggs are an abomination
[18:34:32] <aa_> I bet it breaks too if you tie it to the leg of a duck and let it fly away
[18:34:39] <aa_> implicit hell
[18:34:47] <aa_> __file__ hacks ftw
[18:35:05] <Zenom> the middleware is being initialized but don't see it doing __call__ which I am assuming is only when it would "trigger" the middleware
[18:35:21] <aa_> Zenom: it would __call__ on request
[18:35:45] <Zenom> right and me simply putting a print 'here' in __call__ isn't showing 'here' heh
[18:35:50] <Zenom> but it does on __init__
[18:36:02] <aa_> then chances are it isn't getting called :)
[18:36:20] <Zenom> does that mean that its my routing setup that might be keeping it from being called?
[18:36:34] <Zenom> i would think the wsgi would step in before that
[18:37:13] <Zenom> sorry the middleware would step in before my routing
[18:37:13] <aa_> Zenom: well, without knowing your code, I can't really guess
[18:37:24] <aa_> there are a few levels of wsgi call going on
[18:37:27] <Zenom> http://www.bitbucket.org/zenom/gojira/src/
[18:38:07] <aa_> Zenom: ok, just got time to look at application.py, but yeah, looks good
[18:39:00] <aa_> Zenom: you might be interested in glashammer
[18:39:11] <Zenom> ?
[18:39:22] <aa_> its a framework with werkzeug+jinja
[18:39:34] <aa_> simplify a lot of what you ahve there..
[18:39:40] <aa_> (but maybe not, most people hate it)
[18:39:41] <Zenom> ah really
[18:39:50] <Zenom> i just wanted to try something other than pylons
[18:39:55] <aa_> glashammer.org
[18:39:55] <Zenom> that didn't have all the extra cruft
[18:40:08] <aa_> well, worth looking at for a few minutes, up to you
[18:40:46] <Zenom> looking at it now :)
[18:41:56] <CIA-43> python-doctools: georg.brandl * r67023 /doctools/trunk/ (CHANGES sphinx/directives/desc.py): Don't disregard return annotations for functions without any parameters.
[18:43:33] <Zenom> aa_: why do most people hate it?
[18:44:15] <ronny> a) yet another framework, b) its actually a framework
[18:44:27] * hads has quit IRC
[18:44:27] * dennda has quit IRC
[18:44:27] * leifkb has quit IRC
[18:44:27] * Kaelten has quit IRC
[18:44:29] <ronny> i rest my case at b
[18:44:55] <aa_> Zenom: ronny's opinion doesn't count, he hates everything I ever write
[18:44:56] <Zenom> but isn't that what you build anyway
[18:44:59] * dennda has joined #pocoo
[18:44:59] * Kaelten has joined #pocoo
[18:44:59] * hads has joined #pocoo
[18:44:59] * leifkb has joined #pocoo
[18:45:00] <Zenom> i mean most people take werkzeug and add in their templates etc
[18:45:02] <aa_> Zenom: I think its because most people who like werkzeug are people who like to tinker with things
[18:45:05] <Zenom> which ultimately is a framework
[18:45:28] <aa_> Zenom: and glashammer removes the need to tinker, you can still tinker, but don't have to
[18:45:29] <Zenom> i like to tinker too, but i just don't think i have the skilslet yet to build a framework lol
[18:45:31] <ronny> Zenom: werkzeug is not a framework, its just a library
[18:45:48] <Zenom> but you essentially build a framework with you write a webapp, correct?
[18:45:53] <Zenom> i mean you add in jinja, wtforms etc
[18:45:56] <ronny> aa_: i dont hate everything you wrote
[18:46:00] <aa_> Zenom: anyway, have a look if you have a spare few minutes and decide for yourself.
[18:46:06] <aa_> ronny: you totally do
[18:46:34] <ronny> nah, for some parts there is just this slight dislike, not actual hate ;P
[18:46:56] <ronny> its the gui stuff ;P
[18:47:20] <aa_> ah right
[18:48:02] <CIA-43> python-doctools: georg.brandl * r67024 /doctools/trunk/sphinx/directives/desc.py: Respect add_module_names for index entries.
[18:48:51] <Zenom> i mean if i could get my damn middleware to work
[18:48:56] <Zenom> i would be pretty happy with what i have :)
[18:54:19] <CIA-43> python-doctools: georg.brandl * r67025 /doctools/trunk/ (CHANGES doc/rest.rst sphinx/environment.py): Don't disable alphabetical and roman lists anymore.
[18:59:44] * highwaychile has joined #pocoo
[18:59:45] * davidcramer has joined #pocoo
[20:07:04] <Zenom> wow this is frustrating
[20:07:29] * _P_ has quit IRC
[20:17:59] * sashav has quit IRC
[20:40:15] * EnTeQuAk has joined #pocoo
[20:46:33] * sashav has joined #pocoo
[20:50:45] * stifal has joined #pocoo
[21:13:58] <Zenom> so i don't think its my routing thats keeping middleware from being called
[21:14:17] <Zenom> any ideas as to what to look for? __init__ gets run, but __call__ doesn't
[21:25:21] * davidcramer has quit IRC
[22:07:29] <Zenom> wow all that hassle for hours and it was a simple misnamed thing
[22:30:47] * EnTeQuAk has quit IRC
[22:43:51] * davidcramer has joined #pocoo
[22:47:53] <ivan> what should I do, if I get "Debugging middlware catched exception in streamed reponse a point where response headers were already sent"
[22:50:28] <ivan> i only get this problem in some browsers
[22:52:24] <ivan> and it disappears if I stop wrapping it in DebuggedApplication
[23:56:15] <Kaelten> mitsuhiko: ping
[23:56:39] <Kaelten> ya, no worries