Re: _current_obj

2007-09-12 Thread Mike Orr
On 9/12/07, Ian Bicking <[EMAIL PROTECTED]> wrote: > > Mike Orr wrote: > > On 9/12/07, Ben Bangert <[EMAIL PROTECTED]> wrote: > >> On Sep 11, 2007, at 10:54 PM, Max Ischenko wrote: > >> > >>> > >>> I wonder if this _current_obj thingy is documented somewhere. > >> I see, this is just an instance

example for thread-local object using paste StackedObjectProxy?

2007-09-12 Thread wolf
hi all, i read a fair number of documentation and source, but i am still unable to create a thread-local object à la response myself. as far as i understand, it is necessary to use the paste StackedObjectProxy thing. there is an example in the docs but i haven't managed to get it working. is th

Re: _current_obj

2007-09-12 Thread Ian Bicking
Mike Orr wrote: > On 9/12/07, Ben Bangert <[EMAIL PROTECTED]> wrote: >> On Sep 11, 2007, at 10:54 PM, Max Ischenko wrote: >> >>> >>> I wonder if this _current_obj thingy is documented somewhere. >> I see, this is just an instance of >> http://pythonpaste.org/class-paste.wsgiwrappers.WSGIRequest.h

Re: Ubuntu 7.04 and Pylons

2007-09-12 Thread [EMAIL PROTECTED]
you just need to make a symlink of /usr/local/bin/paster to point to your easy_install version in the python lib directory. something like this: ln -s /usr/local/lib/python/paster /usr/local/bin/paster On Sep 12, 10:03 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I had this error messa

Re: _current_obj

2007-09-12 Thread Mike Orr
On 9/12/07, Ben Bangert <[EMAIL PROTECTED]> wrote: > > On Sep 11, 2007, at 10:54 PM, Max Ischenko wrote: > > > > > > > I wonder if this _current_obj thingy is documented somewhere. > > I see, this is just an instance of > http://pythonpaste.org/class-paste.wsgiwrappers.WSGIRequest.html > > The Py

Re: _current_obj

2007-09-12 Thread Ben Bangert
On Sep 11, 2007, at 10:54 PM, Max Ischenko wrote: I wonder if this _current_obj thingy is documented somewhere. I see, this is just an instance of http://pythonpaste.org/class-paste.wsgiwrappers.WSGIRequest.html The Pylons globals (c, g, session, request, response) are all object proxies th

Re: Database Modeling Best Practice

2007-09-12 Thread Gustavo Schneider
I would do something like this: type_place: type_place_id (pk) type_place_name (bar, events, etc) description (maybe?) place: type_place_id (pk, fk) place_id (pk) name_of_place address description etc party: type_place_id (pk, fk) place_id (pk, fk) party_id (pk) date cost etc...

Re: Database Modeling Best Practice

2007-09-12 Thread michael
On Wed, 12 Sep 2007 10:56:17 -0400 Echo <[EMAIL PROTECTED]> wrote: > > On 9/12/07, Tim Riley <[EMAIL PROTECTED]> wrote: > > > > I'm rather new to the whole database modeling side of python and was > > hoping to get some thoughts from the experts on best practice. I'd > > rather go about this the

Re: Database Modeling Best Practice

2007-09-12 Thread Echo
On 9/12/07, Tim Riley <[EMAIL PROTECTED]> wrote: > > I'm rather new to the whole database modeling side of python and was > hoping to get some thoughts from the experts on best practice. I'd > rather go about this the right way from the beginning than monkey > around with it myself and come to rea

Re: Ubuntu 7.04 and Pylons

2007-09-12 Thread [EMAIL PROTECTED]
I had this error message some months ago. and if I recall well I forgot to install python-devel. Perhaps you might check this. Ruben --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post t

Database Modeling Best Practice

2007-09-12 Thread Tim Riley
I'm rather new to the whole database modeling side of python and was hoping to get some thoughts from the experts on best practice. I'd rather go about this the right way from the beginning than monkey around with it myself and come to realize down the road that it won't work for me. In my spare

Re: Problems with generators

2007-09-12 Thread Chris AtLee
On 9/11/07, Ben Bangert <[EMAIL PROTECTED]> wrote: > On Sep 11, 2007, at 9:13 AM, Chris AtLee wrote: > > > The first is that using abort() from a generator method doesn't seem > > to be caught properly by pylons (or maybe paste) so instead of the > > client getting a 404 error, he sees a "Server E

Re: Ubuntu 7.04 and Pylons

2007-09-12 Thread MarshP
Yesterday I installed Ubuntu Fiesty Fawn 7.04 desktop version with Pylons 0.9.6 and it seems to be singing sweetly. I have tried out the serverinfo.mako template in the Getting started guide and it is all working very well. I am now onto trying out the QuickWiki tutorial with sqllite which too see

Re: HTML select multiple handling

2007-09-12 Thread Cezary Statkiewicz
2007/9/12, voltron <[EMAIL PROTECTED]>: > > I meant how to deal with what gets sent with the post actually, I have > not found any examples on the net. post data is parsed into MultiDict, so probably you must call getall to get list of values: http://pythonpaste.org/class-paste.util.multidict.M