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    

24. 10 2008

[00:09:00] * ckknight_ is now known as ckknight
[00:41:52] <percious> ok guys, if I turn numpyext into its own package, I get the desired results
[00:42:22] <percious> i added jinja templates to the generation of the docs, so that should make it nice for people to swap out different default autogeneration
[00:43:26] <percious> boiler-plate be gone!
[00:45:57] * mtrichardson has joined #pocoo
[01:03:24] <percious> can anyone tell me how to turn of the sandbox in jinja?
[01:03:32] <percious> *off
[01:07:38] <Zenom> return ClosingIterator(response(environ, start_response),
[01:07:50] <Zenom> start_response is None im my trial with werkzeug
[01:08:06] <Zenom> any ideas one what to look for, that is the offending like, NoneType object is not callable
[01:12:57] * highwaychile has quit IRC
[01:35:52] * lakin has quit IRC
[01:53:05] <ronny> Zenom: start_response is supposed to be callable
[01:53:29] <Zenom> ronny: ya must have been something i transposed incorrectly, i copied the files from examples and it works
[02:07:11] <Zenom> anyone here use wtforms?
[02:07:46] <alowry> Zenom: I've been using it for a little while
[02:08:10] <Zenom> alowry: how do i display the validation errors?
[02:08:21] * mtrichardson has quit IRC
[02:08:43] <alowry> I have a jinja2 macro that displays the form w/ errors. I'll dig it up and put it in a pastebin...
[02:09:26] <Zenom> http://paste.pocoo.org/show/88911/
[02:09:30] <Zenom> thats what i have now
[02:09:42] <Zenom> but just not sure if there is something i am missing, or something i need to add to my templates for error display
[02:09:49] <alowry> http://paste.pocoo.org/show/88912/
[02:10:07] <alowry> Adding it to the templates is what I do. The data's in the form obj, so it just takes a bit to write it out.
[02:10:26] <Zenom> gotcha didn't see that in the docs, thanks
[02:10:33] <alowry> no problem
[02:17:58] <Zenom> weird im not getting any errors
[02:18:11] <Zenom> do i have to define something special with the class for the form?
[02:18:13] <Zenom> like the message=
[02:18:47] <Zenom> alowry: http://paste.pocoo.org/show/88915/
[02:18:56] <Zenom> i have that but its not giving me any errors at all
[02:19:52] <prencher^> Zenom - required/optional goes first, otherwise they are pointless
[02:20:06] <Zenom> prencher^: ah
[02:20:19] <prencher^> they are used to stop validation on no value (either with error or no error respectively)
[02:20:21] * prencher^ is now known as prencher
[02:20:50] <prencher> if you just want to validate something, e.g. the length as you are doing there, you don't need required
[02:21:32] <Zenom> prencher: im actually messing with werkzeug and wtforms for the first time
[02:21:38] <Zenom> so trying to figure it all out
[02:21:47] <Zenom> as I want to use it on a project so its just a test mostly
[02:22:25] <Zenom> its just im not getting any errors back at all on the validation on title
[02:22:29] <Zenom> and I moved the required to the top
[02:22:45] <prencher> what's your validation code?
[02:23:11] <Zenom> http://paste.pocoo.org/show/88916/
[02:23:14] <Zenom> thats my forms.py
[02:23:34] <Zenom> http://paste.pocoo.org/show/88917/
[02:23:40] <Zenom> template
[02:23:51] <Zenom> i just get []
[02:24:07] <Zenom> and this is on dev
[02:24:33] <prencher> i mean the code you use to run the form
[02:24:43] <Zenom> http://paste.pocoo.org/show/88918/
[02:24:57] <Zenom> bah
[02:25:00] <Zenom> im a tool
[02:25:08] <prencher> there's your problem, you're not calling validate
[02:25:26] <Zenom> ya just realized that lol
[02:25:40] <Zenom> can i just call form = CreateBlogForm(request.form)
[02:25:45] <Zenom> once? without the alternate post/get stuff?
[02:25:56] <prencher> aye, it'll just be empty so it's fine
[02:26:44] <Zenom> sorry to waste your time, and thanks for the help :)
[02:27:42] <prencher> http://paste.pocoo.org/show/88919/ heres the rough pattern for usage
[02:28:06] <prencher> obviously you could also do if request.form and form.validate(): if you don't need to show any sort of general errors other than what comes from the form
[02:28:35] <Zenom> prencher: got ya, we have been coding in pylons for a few months and I just found wtforms
[02:28:41] <Zenom> was exactly what I was looking for
[02:28:47] <Zenom> so glad to see i can make it work :)
[02:28:54] <Zenom> FormEncode is nice , but lacking imho
[02:29:40] <prencher> hehe, glad to hear it
[02:30:27] <prencher> we didn't like any of the alternatives to djangos forms handling, nor newforms so we did wtforms
[02:30:37] <prencher> i find formencode to be very confusing and "odd" personally
[02:30:52] <prencher> messy would be a better word than confusing
[02:35:25] <Zenom> prencher: you know to be honest its kinda 1/2 done
[02:35:37] <Zenom> like to me i like wtforms so far, because its more control
[02:35:40] <Zenom> but generates the form too
[02:35:48] <Zenom> which formencode did, so its like 1/2 the process
[02:35:51] <Zenom> but thats just me
[02:36:08] <Zenom> s/did/didn't
[02:36:45] * davidcramer_ has joined #pocoo
[02:38:44] <prencher> Zenom - you'll see the real power of wtforms when you need custom fields and validators :)
[02:39:11] <Zenom> ya i was already looking at that for like unique usernames etc
[02:41:33] <prencher> ckknight wrote a custom field for doing something like that, he might have some code he can show ya
[02:41:42] * ckknight waves at the nice people
[02:42:10] <prencher> i wonder if that was a script
[02:42:21] <Zenom> thats because ckknight is a pimp
[02:42:58] <ckknight> what my field does is provide a text field that validates against a db by username, if it matches the user, then its .data is set to said user, if it matches no user, it's a validation error, if it is empty, .data is None (meaning you should use validators.required() if you want that)
[02:43:23] * davidcramer has quit IRC
[02:43:27] <ckknight> for unique usernames, it'd be a separate thing
[02:43:39] <ckknight> specifically just a TextField with a validate_username method defined in the form
[02:43:40] <prencher> Zenom - for simple stuff, like checking a username rather than getting a user
[02:43:44] <prencher> a simple validator would be just fine
[02:43:58] <prencher> or a custom validate_foo on the Form like ckknight suggested
[02:44:10] <prencher> depending on if you need to reuse it on multiple forms
[02:44:11] <ckknight> either works
[02:44:16] <ckknight> custom validators are nice
[02:44:17] <prencher> or fields for that matter
[02:44:22] <ckknight> I wrote one called no_yelling
[02:44:27] <ckknight> prevents the text field from being ALL CAPS
[02:44:34] <ckknight> lousy nubs posting in all caps.
[02:44:35] <prencher> heh
[02:44:58] <Zenom> lol
[02:45:17] * davidcramer_ has quit IRC
[02:45:20] <Zenom> well im using werkzeug and wtforms, sqla and another to do another "porn" site
[02:45:24] <Zenom> hope thats ok
[02:45:48] <ckknight> porn site?
[02:45:52] <Zenom> i started it in pylons but figured this would be cool to learn
[02:45:57] * davidcramer has joined #pocoo
[02:46:02] <Zenom> ya thats what I do for a living actually, i am the cto for a porn company by day
[02:46:20] <prencher> that's going to look awesome on our sitesusingwtforms page :P
[02:46:30] <ckknight> hehe
[02:46:34] <Zenom> thats why there isn't a who's using pylons post with our name on it
[02:46:35] <ckknight> prencher: *thumbs up*
[02:46:48] <ckknight> prencher: well, you'll be able to put CurseForge.com and WowAce.com up there in about 2 weeks
[02:46:53] <Zenom> we use it , but dont advertise for that reason
[02:47:01] <Zenom> ckknight: nice
[02:47:06] <prencher> Zenom - hehe, well more power to ya man
[02:47:08] <Zenom> man you are making me miss wow
[02:47:19] <Zenom> prencher: its just a job
[02:47:30] <Zenom> makes money, thats the bottom line
[02:47:40] <Zenom> not what I grew up aspiring to be
[02:47:52] <Zenom> but after I got laid off from telecom in 2001, this was where I ended up
[02:48:07] <prencher> Zenom - hehe, well i meant use it for whatever, as long as it does the job ey
[02:48:25] <Zenom> prencher: digging it so far, although your docs are out of date
[02:48:30] <Zenom> like i think it still showed not_empty
[02:48:34] <prencher> yeah they are
[02:48:35] <Zenom> when i couldn't find not_empty
[02:48:44] <Zenom> i thinnk its required now
[02:48:45] <prencher> we're giving them an overhaul soon, for 0.2
[02:48:49] <prencher> indeed it is
[02:49:15] <prencher> we need to do some last things like add a RadioField and overhaul some of the Field level validation
[02:49:19] <prencher> then polish up the docs a bit and there it is
[02:49:43] <Zenom> another nice feature would be a hook into sqlalchemy
[02:49:44] <Zenom> :)
[02:49:44] <ckknight> prencher: In tandem with the radio select, a multiple checkbox thing would be useful to complement the MultiSelectField
[02:49:50] <Zenom> built forms based on a model
[02:50:02] <prencher> Zenom - we have some plans for that, but haven't quite gotten around to it yet
[02:50:11] <Zenom> prencher: all i ask, is when you do it
[02:50:18] <Zenom> make it defineable in the model itself
[02:50:28] <Zenom> so that you don't have to do excludes = ['username', ....]
[02:50:43] <Zenom> make it like exclude or some way to make it more flexible than form alchemy
[02:51:06] <prencher> Zenom - what we do is something like this: BlogPostFormBase = model_form(BlogPost, excludes=)
[02:51:09] <Zenom> maybe like when defining a column do exclude=True, then you can also include it if its needed outside that with include= in your view or something
[02:51:10] <ckknight> I think it's nicer to define the forms myself, then I can set all the validators I want and all
[02:51:20] <prencher> then you can just inherit that and delete fields, add fields, whatever you need
[02:51:29] <prencher> (basically similar to how the declarative_base() works in sqla)
[02:51:48] <prencher> we already have the basics of the api for it in ext.django fwiw
[02:51:53] <Zenom> ya, im still learning all this stuff, 8 mos in and i still feel like a newb
[02:52:02] <Zenom> so much to take in, php was so noobish compared to python
[02:52:27] <ckknight> Zenom: all you gotta do is just keep learning more and more until switching between languages and frameworks becomes a breeze
[02:52:29] <ckknight> that's my policy, at least
[02:52:39] <Zenom> and ckknight nice job on the current wowace, i havn't seen that rendition before :)
[02:52:52] <Zenom> ckknight: ya thats why i try to do things outside work
[02:53:03] <Zenom> ie., work=pylons, outside=werkzeug, wtforms etc
[02:53:10] <Zenom> try to learn difference facets to get a better grasp
[02:53:18] <ckknight> Zenom: I know about 20 languages :-P
[02:53:23] <ckknight> it's good to learn at least one a year
[02:53:29] <Zenom> i wish i had that kinda time
[02:53:39] <ckknight> I learned most during my free time in high school
[02:53:45] <ckknight> now I'm out, but still
[02:53:47] <Zenom> typically we are on a time crunch and right now we are in the middle of acquiring another company for 13 mill
[02:53:50] <ckknight> I'm doing mostly python work now, though
[02:53:57] <ckknight> fun stuff
[02:54:36] <Zenom> but the ceo wasn't happy when i said we are switching from php to python
[02:54:50] <Zenom> then i said "the guy who wrote python works for google, and google uses it"
[02:54:54] <Zenom> he was like "oh, ok"
[02:55:14] <ckknight> lol.
[02:55:23] <ckknight> Curse has been using python for about 2 years now
[02:55:35] <ckknight> granted, curse.com has been redone in .NET/CommunityServer
[02:55:41] <ckknight> but curseforge.com and now wowace.com are done in Python
[02:55:47] <Zenom> curse.com is .net now?
[02:55:51] <ckknight> yea.
[02:55:51] <Zenom> i thought they were using django?
[02:56:07] <prencher> there are a number of tiring reasons why it's not django no more
[02:56:14] <ckknight> they are currently in Django, but I'm switching them to SQLAlchemy/WTForms/Jinja2/Werkzeug
[02:56:32] <Zenom> ya im actually like werkzeug alot
[02:56:34] <ckknight> my goal is to be done by tomorrow and then test vigorously for a week
[02:56:44] <Zenom> like i said i use pylons now, but i like werkzeug as well
[02:56:54] <Zenom> a little more "lean"
[02:57:11] <Zenom> do you work for curse ckknight?
[02:57:16] <ckknight> sure do
[02:57:19] <ckknight> have been since February
[02:57:20] <Zenom> nice cool
[02:57:54] <Zenom> all i know is FuBar graced my wow screen every time i played it
[02:57:57] <Zenom> lol
[02:58:35] <Zenom> and i would love to see a new write up on the curse system if they let someone do it
[02:58:45] <Zenom> i know there was a post on how they did their whole setup a while back
[02:58:55] <ckknight> curse system?
[02:58:58] <Zenom> i just don't understand the .net
[02:59:04] <Zenom> servers, proxies etc
[02:59:06] <ckknight> oh
[02:59:12] <ckknight> yea, it's a complicated structure
[02:59:25] <ckknight> for the 3.0 patch, we got bottlenecked by bandwidth
[02:59:33] <Zenom> ya we run like 22 servers now and 10 more just arrived for a new storage network
[02:59:34] <ckknight> and got like 4x more traffic than expected
[02:59:34] <prencher> for the .net, if i recall its 5 web nodes, a db node and then a relatively straightforward static setup
[02:59:45] <ckknight> pretty much
[02:59:46] <prencher> that's about right isn't it ckknight?
[02:59:54] <Zenom> althought we could run most of our stuff on about 10 servers
[02:59:59] <prencher> do you still have squid proxies in front?
[03:00:02] <Zenom> we just got lazy and put shit all over the place
[03:00:05] <ckknight> I'm actually not sure, prencher
[03:00:07] <ckknight> I don't think so
[03:00:13] <Zenom> have you guys seen glusterfs?
[03:00:25] <ckknight> we used it for the old curse
[03:00:32] <Zenom> good/bad?
[03:00:35] <ckknight> bad
[03:00:49] <ckknight> my boss, who handles the curse.com site but stays out of our way for curseforge, doesn't believe in non-Microsoft products, prencher
[03:00:52] <Zenom> what problems did you have? we are testing it on a 10 node system
[03:01:01] <ckknight> Zenom: I forget, you'll have to ask Kaelten
[03:01:08] <prencher> ckknight - yeah i got that impression from kaelten based on certain other factors
[03:01:11] <Zenom> of course we are all reads pretty much
[03:01:17] <Zenom> not writing across all the nodes
[03:01:39] <Zenom> thats too bad its nice to see os software being used on big sites.
[03:04:44] <prencher> ckknight - kaelten said you had some sort of head-local network-invalidation cache system in place on the asp.net, so i guess it really just sits directly behind the load balancer
[03:05:43] <prencher> an asp.net builtin thing
[03:06:57] <ckknight> well, if it's any consolation, the guy who is the main developer for curse.com now thinks that it was overkill to switch systems to .NET when we should've just fixed the python version :-P
[03:07:28] <prencher> heh
[03:08:25] <prencher> i helped kaelten set up apache/mod_wsgi+mpm_worker, the results on forge were pretty crazy
[03:09:03] <prencher> to the point it exhausted the db connection limits before anything broke a sweat.. which sqlalch pooling should sort out.. guess you'll soon see
[03:09:31] <ckknight> yep.
[03:09:43] <ckknight> we're bottlenecked by Django
[03:09:48] <ckknight> that's why we're switching, mostly
[03:13:54] <prencher> you can also use sqlalch pooling in django, but its somewhat hacky to get it in there
[03:14:05] <prencher> there are talks of hooks for it, but i've yet to see docs for it
[03:14:59] * leche has quit IRC
[03:21:31] * ferringb has joined #pocoo
[03:21:55] <Zenom> what session middleware do you guys recommend?
[03:25:47] <prencher> none; i would recommend you just use werkzeug.contrib.securecookie
[03:25:53] <prencher> unless you need to store lots of data
[03:26:33] <Zenom> mostly just want to store like the userid,., etc for repoze.who
[03:28:42] <prencher> http://paste.pocoo.org/show/RDT4a5y5ENngjSEiQIao/ <- that's basically all you need to make request.session work as a dict, but using securecookie
[03:29:36] <Zenom> is there a non-secure cookie? or is SecureCookie not ssl?
[03:29:42] <prencher> if you don't have a middleware kind of setup with your werkzeug, i suggest just putting the process_request stuff in your Request.__init__, and expose save_cookie as e.g. Request.save_session(response)
[03:29:52] <prencher> no no - securecookie is just signed so it can't be tampered with
[03:30:14] <Zenom> im kinda following the "shorty" tutorial
[03:30:25] <Zenom> as a baseline with a couple changes so, thats how its laid out
[03:30:27] <prencher> it's not encrypted mind, it's only signed so it can't be modified
[03:31:11] <prencher> e.g. storing the user id there is fine, but sensitive data would need to go elsehwere
[03:31:28] <Zenom> ya i dont need anything but like the userid, name
[03:31:32] <Zenom> no pass or anything
[03:31:45] <prencher> yeah, that's what you want then
[03:31:52] <prencher> very simple and no db overhead
[03:32:10] <Zenom> still reading through the docs is this on their site?
[03:32:15] <Zenom> the middlware available?
[03:32:31] <prencher> the above was just a snippet from one of my sites
[03:32:37] <Zenom> ah
[03:54:50] <Zenom> is there a way to get a traceback in werkzeug?
[03:54:55] <Zenom> outside of command line
[03:55:19] * repo_ has joined #pocoo
[04:00:54] * Kaelten_ has joined #pocoo
[04:00:58] * repo_ has quit IRC
[04:01:10] * Kaelten_ is now known as Kaelten
[04:08:14] * davidcramer has quit IRC
[04:24:51] * Kaelten is now known as Kaelten|away
[04:25:42] * Kaelten|away is now known as Kaelten
[04:38:52] * ckknight has quit IRC
[04:39:52] * ckknight has joined #pocoo
[04:41:23] * repo_ has joined #pocoo
[04:41:36] * repo_ has quit IRC
[04:45:37] * ckknight has quit IRC
[04:45:52] * ckknight- has joined #pocoo
[04:48:45] * ckknight- is now known as ckknight
[05:04:50] * Kaelten is now known as Kaelten|away
[05:21:12] <prencher> Zenom - sure, wrap your app with DebuggedApplication and watch the magic
[05:21:21] <prencher> (check the werkzeug docs on debugging)
[05:30:51] <alowry> And what magic it is. Guaranteed to make all your coworkers who aren't working with it envious.
[05:43:34] <ckknight> yea
[05:43:42] <ckknight> another one of the reasons we're switching to SQLAlchemy is for that
[05:45:20] <prencher> it works fine as a pure debugger for django just fwiw
[05:45:26] <prencher> very easy to hook up too
[05:45:55] <prencher> but hey, wwjs is the future
[05:57:15] * Kaelten|away is now known as Kaelten
[06:00:51] <Kaelten> we're ditching django
[06:00:51] <Kaelten> hehe
[06:12:53] * Kaelten is now known as Kaelten|away
[06:13:04] * Kaelten|away is now known as Kaelten
[06:15:26] * ckknight is now known as ckknight|away
[06:15:55] * ckknight|away is now known as ckknight
[06:17:46] * ckknight is now known as zz_ckknight
[06:20:56] * zz_ckknight is now known as ckknight
[06:22:27] * ckknight is now known as ckknight|away
[06:23:07] * ckknight|away is now known as ckknight
[06:30:51] <prencher> goddamn curse people with their nick changes
[06:51:50] <ckknight> soz
[07:17:42] * davidcramer has joined #pocoo
[07:59:10] * ivan has quit IRC
[07:59:27] * ivan has joined #pocoo
[07:59:43] * ivan is now known as Guest21226
[08:01:15] * Guest21226 is now known as ivan
[08:46:10] <plaes> cool.. Jinja2 in Gentoo portage :)
[09:24:30] * davidcramer has quit IRC
[10:09:43] * jpcw has joined #pocoo
[12:31:08] * highwaychile has joined #pocoo
[12:55:30] <asmodai> Kaelten: for what?
[12:55:43] <asmodai> http://www.flickr.com/photos/15923358@N02/sets/72157603763359479/detail/
[13:08:13] * highwaychile_ has joined #pocoo
[13:17:23] * highwaychile_ has quit IRC
[13:26:10] * highwaychile has quit IRC
[13:44:41] * EnTeQuAk has joined #pocoo
[14:01:28] * izibi has joined #pocoo
[14:09:05] * maix has joined #pocoo
[14:31:49] <david`bgk> is there a way to set a variable inside a loop which is used after the loop with jinja2?
[14:36:52] <apollo13> david`bgk: set it before and change it in the loop maybe?
[14:39:55] <david`bgk> good idea, but it doesn't work :(
[14:48:26] <Zenom> david`bgk: i had a similar issue this last week
[14:48:31] <Zenom> i created a macro, let me paste
[14:48:53] <Zenom> zhttp://paste.pocoo.org/show/88969/
[14:49:41] * maix_ has joined #pocoo
[14:49:42] * maix_ is now known as maixx
[14:49:50] <david`bgk> thanks Zenom !
[14:50:12] * maixx has left #pocoo
[14:50:14] <Zenom> np
[15:04:51] * leche has joined #pocoo
[15:13:18] * maixx has joined #pocoo
[15:18:29] * _paneb has joined #pocoo
[15:24:07] * highwaychile has joined #pocoo
[15:30:34] * maix has quit IRC
[15:31:06] * maixx is now known as maix
[15:37:59] * maix has quit IRC
[15:47:42] <_paneb> i am working on a project where there will be a restful service, and then an ajax app. how can i separate them? the routing docs say EndpointPrefix may be useful for sub applications.
[15:48:31] <_paneb> for instance it would be nice to separate the service controllers from the application's controllers
[15:49:33] <aa_> _paneb: mount them at /svc/ or something?
[15:55:28] * jibaku has joined #pocoo
[15:57:58] * ckknight is now known as ckknight|away
[16:07:58] * ckknight|away is now known as ckknight
[16:12:56] <_paneb> ok
[17:03:13] * Kaelten is now known as Kaelten|away
[17:03:15] * Kaelten|away is now known as Kaelten
[17:11:51] * Kaelten is now known as Kaelten|away
[17:13:16] * jibaku has left #pocoo
[17:14:14] * Kaelten|away is now known as Kaelten
[17:19:24] <_paneb> if i really wanted to separate the controllers for the service from the controllers for the application, i would have to use the endpoint to figure out which controller "submodule" to use?
[17:30:56] * miracle2k has joined #pocoo
[17:33:09] * percious has quit IRC
[17:38:09] * jpcw has quit IRC
[17:50:06] <Zenom> do any of the werkzeug examples show how to do the SessionMiddleware?
[18:44:50] * mtrichardson has joined #pocoo
[19:03:45] * stifal has joined #pocoo
[19:13:20] * saptah has quit IRC
[19:51:04] * mtrichardson has quit IRC
[19:56:12] * [diecast] has quit IRC
[20:12:40] * highwaychile has quit IRC
[20:32:52] * kizlum has joined #pocoo
[20:33:15] * kizlum has left #pocoo
[21:09:56] * EnTeQuAk has quit IRC
[21:18:22] * ferringb has left #pocoo
[21:26:20] * percious has joined #pocoo
[21:26:28] <percious> anyone using nose with doctest in here?
[21:34:15] <aa_> percious: a little bit
[21:38:11] <alowry> percious: I am
[22:13:38] * davidcramer has joined #pocoo
[22:20:47] <Zenom> http://paste.pocoo.org/show/89001/
[22:20:55] <Zenom> any ideas on that error?
[22:21:03] <Zenom> its when im trying to auth with repoze.who
[22:21:53] <percious> alowry and alowry : thanks guys, i figured it out, i was missing a if __name__ == '__main__' somewhere :)
[22:22:30] <percious> is pauli in here?
[22:22:38] <percious> Virtanen?
[22:28:53] <alowry> Zenom: what's the rest of your scoped_session call in models.py?
[22:29:15] <Zenom> im changing it up now, it looks like thats the problem right?
[22:29:20] <Zenom> i can paste if this doesn't work
[22:30:13] <Zenom> http://paste.pocoo.org/show/89002/
[22:30:15] <Zenom> didn't work lol
[22:32:29] <Zenom> my queries work in the app like on a typical view
[22:32:34] <percious> Zenom: i would say your model is not bound to a session
[22:32:37] <Zenom> but for some reason i get that not bounder error
[22:32:43] <percious> where is your model def.?
[22:32:46] <Zenom> on this wsgi
[22:32:51] <Zenom> let me paste
[22:33:48] <Zenom> http://paste.pocoo.org/show/89003/
[22:33:59] <Zenom> keep in mind the Member model is in the same file as the previous post
[22:34:09] <Zenom> but below the Base declaration etc.
[22:34:30] <alowry> And are you creating local and local_manager and setting local.application like the tutorial?
[22:35:02] <Zenom> let me double check just to make sure
[22:35:36] <Zenom> I have local = Local(), local_manager = LocalManager([local])
[22:35:45] <Zenom> and then application = local('application')
[22:36:23] <Zenom> now i don't know if 'application' should be the name of my application or not
[22:36:24] <Zenom> lol
[22:37:14] <Zenom> and like i said when i query inside a view (controller)
[22:37:27] <Zenom> i get results back
[22:37:30] <Zenom> and no errors
[22:37:52] <alowry> Is this middleware called before local.application is set?
[22:38:21] <Zenom> i set the middleware in my application.py __init__
[22:38:28] <Zenom> after self.database_engine etc
[22:38:53] <Zenom> http://paste.pocoo.org/show/89004/
[22:38:58] <Zenom> there is my application.py
[22:39:42] <Zenom> or part of it i should say heh
[22:41:42] <percious> Zenom: you might have more luck over in #repoze
[22:41:54] <percious> oh, wait, you are already in there :)
[22:42:07] <Zenom> ya im just not sure where the problem lies
[22:42:41] <Zenom> im pretty sure its probably something i screwed up along the way, just not sure what heh
[22:45:59] <alowry> I don't have any good suggestions. If it were me I'd verify that, without the middleware, the _dispatch call in the __init__ method of your simplified application.py can in fact query.
[22:46:27] <Zenom> well i have a query in a /create/blog view
[22:46:32] <Zenom> and it pulls categories and such
[22:47:12] <alowry> Exactly like that? With just removing the middleware call?
[22:47:36] <Zenom> no it works with the middleware there
[22:47:57] <Zenom> i just don't have the auth setup, the only time it errors is when i try to use the middleware to login
[22:48:02] <Zenom> which isn't on every page
[22:48:20] <Zenom> so when the middlware isn't activated it works, and i just did a query in __init__ and it worked
[22:49:22] <Zenom> im not sure if my middlware setup is right in my __init__ anyhow
[22:49:33] <Zenom> i see make_middleware on one example then i saw middleware somewhere else
[22:50:14] <alowry> That might be it, but I have no idea. Best of luck.
[22:50:25] <Zenom> thanks.
[23:03:19] * _paneb has quit IRC
[23:16:58] * aconbere has joined #pocoo
[23:44:02] * percious has quit IRC
[23:46:17] * _paneb has joined #pocoo
[23:46:20] * adaran has joined #pocoo
[23:50:48] * adaran has quit IRC