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    

26. 10 2008

[00:03:33] * stifal has quit IRC
[00:26:24] <Zenom> are get requests in request.form too?
[00:26:28] <Zenom> like query strings?
[00:36:26] <alowry> request.args are there, request.values has both
[00:36:32] <alowry> (IIRC)
[00:39:38] <Zenom> alowry: values works great, thank you
[00:39:54] <alowry> no problem
[01:53:28] <Zenom> whats the "best" way to do like a flash message., just write a middleware?
[01:53:39] <Zenom> ie., a message that says something like "Your account has been added."
[02:11:50] <aa_> Zenom: generally I find that "middleware is not the answer to most questions"
[02:14:49] <Zenom> aa_: i found my problem with my code earlier
[02:15:07] <Zenom> i had self._dispatch = SharedMiddleware(....)
[02:15:17] <Zenom> instead of self.dispatch_request = SharedMiddle...
[02:32:46] * izibi has quit IRC
[02:37:02] * highwaychile has quit IRC
[02:58:17] * adaran has joined #pocoo
[02:58:22] * adaran has left #pocoo
[03:14:37] <Zenom> what kinds of things should I be concerned about with programming with werkzeug? like, sessions is local per thread? do i need to worry about someone tapping into local?
[03:14:57] <Zenom> im worried about like if I create a flash message it's shared amongst users
[03:42:33] <Kaelten> actually local isn't per thread, it's a little different
[03:42:46] <Kaelten> but no only things from the current context can access it.
[05:01:24] * hoffmann has joined #pocoo
[05:06:27] * hoffmann has quit IRC
[05:11:09] * leifkb_ has joined #pocoo
[05:11:19] * leifkb has quit IRC
[05:16:35] <Zenom> so quiet in here
[09:58:52] * izibi has joined #pocoo
[10:34:42] * highwaychile has joined #pocoo
[10:39:07] * EnTeQuAk has joined #pocoo
[11:14:19] * highwaychile has quit IRC
[11:15:02] * highwaychile has joined #pocoo
[11:38:20] * highwaychile has quit IRC
[11:50:53] <mitsuhiko> Zenom: a context is bound to the current thread and greenlet (if you are using greenlets)
[11:51:05] <mitsuhiko> which means that if you put stuff on a local object only the current request can see it
[11:55:32] <aa_> mitsuhiko: I noticed the dispatcher middleware, does that work with local stuff?
[11:55:48] <aa_> mitsuhiko: like I would get confused what is the current local app
[11:56:00] <mitsuhiko> locals are not stacked if you mean that
[11:56:07] <mitsuhiko> each app would have to have it's own local objects
[11:56:36] <ronny> moin
[11:56:52] <aa_> mitsuhiko: ok, but would the local/local manager know which context it was in and "do the right thing" ?
[11:57:20] <aa_> ronny: hi ronny
[11:57:56] <ronny> why cant there be reasonable object databases :(
[11:58:14] <aa_> ronny: zodb is much more than decent (imo)
[11:58:28] <ronny> aa_: zodb is useless wouthout most of zope
[11:58:35] <aa_> ronny: lies
[11:58:45] <ronny> it doesn't even have indexing
[11:59:05] <aa_> ronny: it has
[11:59:20] <ronny> aa_: catalog is part of zope
[11:59:44] <ronny> and its kinda required to do indexing based on attributes
[11:59:56] <aa_> ronny: there is also that thing that Johan and Kiko wrote
[12:00:09] <ronny> what thing?
[12:00:16] <aa_> um...
[12:00:21] <aa_> http://www.async.com.br/projects/indexedcatalog
[12:00:54] <aa_> ronny: and I am almost of the mind that if you need heavy indexing object db is not for you
[12:01:23] <aa_> I think by "there are no decent object databases" you mean "there are no object databases that behave like MySQL"
[12:02:03] <aa_> but anyway, zodb has decent indexing
[12:02:41] <ronny> aa_: having multi-indexed collections is a performance issue
[12:03:11] <aa_> and you are worrying about the performance opf an unwritten application?
[12:03:18] <aa_> impressive!
[12:03:59] <ronny> aa_: i'll have nasty algorithms, if i cant have those collections with at least O(log(N)) i dont have to start
[12:04:35] <aa_> yeah, ok, well zc.catalog
[12:04:47] <aa_> not sure why you are also worrying about dependencies
[12:05:04] <aa_> ronny: in fact, I suspect you are just making excuses
[12:05:44] <ronny> aa_: zodb makes me all unhappy - it lacks documentation - i have to guess all the time :(
[12:06:14] <ronny> in sqlalchemy everything is extensively documented, there is no guessing
[12:06:45] <aa_> oh for crying out loud, use sqlalchemy then
[12:06:46] <ronny> but i mostly need a triplestore for dealing with object-graphs - sqlalchemy doest do any good there
[12:07:02] <aa_> ronny: http://pypi.python.org/pypi/zc.catalog/1.3.0 that looks like pretty good docs
[12:07:13] <aa_> about 20 pages worth
[12:07:40] <aa_> you will need zope.interface, and probably zope.component
[12:08:16] <aa_> ronny: triplestore + graphs -> rdflib
[12:10:15] <ronny> guess i'll have to bite into that one :/
[12:10:52] <aa_> yeah well, if you really actually want the tripkle store + graphs
[12:11:08] <aa_> life is as hard as you want to make it
[12:11:49] <ronny> i'll figure a sane mapping to objects i can work with later - brb, food
[12:30:43] * highwaychile has joined #pocoo
[12:50:38] * highwaychile_ has joined #pocoo
[13:06:23] * highwaychile has quit IRC
[14:23:50] * EnTeQuAk has quit IRC
[14:48:26] * EnTeQuAk has joined #pocoo
[15:09:32] * hoffmann has joined #pocoo
[15:11:50] * hoffmann has quit IRC
[15:26:22] <Zenom> so regarding the context and request I should be pretty safe with nothing being crossed over in requests then correct?
[15:58:55] * highwaychile_ is now known as highwaychile
[16:01:56] * stifal has joined #pocoo
[16:05:23] <Zenom> how do I tie a db session into another wsgi middleware? i am trying to use repoze.who and I get a not bound to object error, so i am thinking i need to setup the db session in the "local" somehow
[16:47:26] <Zenom> well when i print application i get the LocalProxy but application.database_engine i get the unbound error thats causing me problems
[16:47:41] <Zenom> even though i have self.database_engine and local.application = self
[17:12:36] * _paneb has joined #pocoo
[17:27:13] * _paneb has quit IRC
[17:45:23] * highwaychile has quit IRC
[17:51:27] * CIA-43 has quit IRC
[17:57:54] * highwaychile has joined #pocoo
[18:39:32] * riltim has joined #pocoo
[18:45:27] * CIA-44 has joined #pocoo
[19:24:17] <Zenom> http://paste.pocoo.org/show/89133/
[19:24:27] <Zenom> trying to write a decorator for jinja and its globals
[19:24:44] <Zenom> but my decorator isn't working as i was hoping any advice would be great
[19:39:39] * EnTeQuAk has quit IRC
[19:44:38] <ronny> Zenom: ehm - you wrote a decortator that wraps the function instead of a decorator that just adss it to the jinja env
[19:44:51] <Zenom> ya i got it resolved
[19:44:53] <Zenom> heh
[20:24:22] * hippyhacker has joined #pocoo
[20:25:06] * hippyhacker is now known as hh
[20:25:57] <hh> is there an easy way to turn of autoreloading so that I can use Werkzeug on jython?
[20:26:50] <hh> werkzeug/serving.py", line 184, in restart_with_reloader: exit_code = os.spawnve(os.P_WAIT, sys.executable, args, new_environ) AttributeError: 'module' object has no attribute 'spawnve'
[20:27:05] <birkenfeld> hh: use_reloader=False
[20:27:22] <birkenfeld> (as an argument to run_simple)
[20:28:45] <hh> Thanks
[20:28:53] <hh> I'll have to poke through the docs a bit more, I'm using Werkzeug from django-extensions' runserver_plus I'll have to figure out how to change the params
[20:36:14] * maix has joined #pocoo
[20:37:21] * yumike has joined #pocoo
[20:53:38] <birkenfeld> asmodai: !!!
[21:10:33] * leche has joined #pocoo
[21:26:47] <Zenom> wtb working zine :)
[21:32:38] <asmodai> birkenfeld: yes m'boy?
[21:33:23] <birkenfeld> asmodai: finished the book today
[21:33:53] <birkenfeld> bad feeling
[21:34:52] <asmodai> yay
[21:34:53] <asmodai> why?
[21:35:33] <birkenfeld> because the next one isn't already standing next to it :)
[21:35:43] <birkenfeld> but well, at least Night of Knives is
[21:36:59] * leche has quit IRC
[21:38:11] * stifal has quit IRC
[21:38:35] <birkenfeld> asmodai: did you already read that?
[21:39:00] <asmodai> nope
[21:39:04] <asmodai> the side books, right?
[21:39:10] <birkenfeld> yes, by Esslemont
[21:41:43] <asmodai> still need to order
[21:46:25] * alowry has quit IRC
[21:46:47] * prencher has quit IRC
[21:48:04] * prencher has joined #pocoo
[21:53:28] * leche has joined #pocoo
[22:05:31] * yumike has quit IRC
[23:05:00] * alowry has joined #pocoo
[23:06:52] * alowry has quit IRC
[23:07:58] * alowry has joined #pocoo
[23:17:06] * izibi has quit IRC
[23:42:08] * leche has quit IRC
[23:43:44] * davidcramer has quit IRC