Re: Pylons reload signal?

2009-02-03 Thread Kevin Baker
On Mon, Feb 2, 2009 at 2:03 PM, Ian Bicking wrote: > 2009/1/30 Kevin Baker > >> We have a production server with "--reload" flag off. >> >> We would like to have it reload when we update our code, rather than doing >> a stop start. >> >> Is th

Pylons reload signal?

2009-01-30 Thread Kevin Baker
We have a production server with "--reload" flag off. We would like to have it reload when we update our code, rather than doing a stop start. Is there a way to signal the running pylons process to do a reload? Thanks, -- kevin --~--~-~--~~~---~--~~ You receive

Pylons widgets...?

2008-12-18 Thread Kevin Baker
We are starting to build out our templates for a new project. I would like to leverage all the ninja widget functionality in Pylons. Should I be using the toscaWidget stuff? If so I assume I should use some of the tutorials off the Pylons documentation site..? Thanks, -- kevin --~--~-

How do I get the current controller action?

2008-11-14 Thread Kevin Baker
I am writing a custom authentication system. I am adding "action" level authentication. How would I go about getting the current "action" in my login module? I'm thinking something like this currentAction = c.currentAction if (currentAction in self.secureActionList) redirect_t

Re: Pylons Model approach vs simple sql?

2008-01-22 Thread Kevin Baker
On Jan 22, 2008, at 1:46 PM, [EMAIL PROTECTED] wrote: > > On 22 jan, 14:17, Kevin Baker <[EMAIL PROTECTED]> wrote: >> Sent from my iPhone >> Please excuse any typos ;) >> >> On Jan 22, 2008, at 3:09 AM, "Antoine" <[EMAIL PROTECTED]> wrote

Re: Pylons Model approach vs simple sql?

2008-01-22 Thread Kevin Baker
On Jan 22, 2008, at 12:11 PM, Mike Orr wrote: > > On Jan 22, 2008 5:17 AM, Kevin Baker <[EMAIL PROTECTED]> wrote: >> On Jan 22, 2008, at 3:09 AM, "Antoine" <[EMAIL PROTECTED]> wrote: >> >> I would always use a model unless maybe if there was no db.

Re: Pylons Model approach vs simple sql?

2008-01-22 Thread Kevin Baker
Sent from my iPhone Please excuse any typos ;) On Jan 22, 2008, at 9:11 AM, walterbyrd <[EMAIL PROTECTED]> wrote: > > On Jan 22, 2:33 am, Dmitry Lipovoi <[EMAIL PROTECTED]> wrote: >> orm is abstraction over database query language. you can make queries >> in oo-terms. so your business logic st

Re: Pylons Model approach vs simple sql?

2008-01-22 Thread Kevin Baker
Sent from my iPhone Please excuse any typos ;) On Jan 22, 2008, at 7:38 AM, "Antoine" <[EMAIL PROTECTED]> wrote: > > >> So if I didnt need the portable scheme creation, can I just skip the >> table def in the model? > > If you only plan to use raw (text) queries, yes. But then you would > ne

Re: Pylons Model approach vs simple sql?

2008-01-22 Thread Kevin Baker
Sent from my iPhone Please excuse any typos ;) On Jan 22, 2008, at 12:08 AM, "Lawrence Oluyede" <[EMAIL PROTECTED]> wrote: > >> Is there a reason I couldn't just create a simple model that uses a >> db >> connection string from the developer.ini conf file and then just make >> direct queri

Re: Pylons Model approach vs simple sql?

2008-01-22 Thread Kevin Baker
Sent from my iPhone Please excuse any typos ;) On Jan 22, 2008, at 3:09 AM, "Antoine" <[EMAIL PROTECTED]> wrote: > > >> I am a little unsure of the Model concepts though, and how tightly >> they are bound to SQLAlchemy. > > They aren't. Actually, it seems you are not even obliged to use a >

SQLAlchemy defining tables in conf, orm mappying?

2008-01-21 Thread Kevin Baker
I am setting up the table definition and ORM mapping in my model and wondering what it is doing exactly. Is the table definition there to manually define data-types for SA, so that it can generate valid SQL with the SQL abstraction syntax? or does it do more. I am open to ORM, have used it

Pylons Model approach vs simple sql?

2008-01-21 Thread Kevin Baker
I am new to Pylons. I love Mako, Routes and the View Controller concepts behind Pylons. I am a little unsure of the Model concepts though, and how tightly they are bound to SQLAlchemy. In general it seems like a lot of configuration to make simple SQL queries. Is there a reason I couldn't

Re: Response Object? Header example... AuthKit

2008-01-11 Thread Kevin Baker
Thanks guys, I used the abort(401) w/o the response.status last night and it worked great! Just like magic ;) I'm psyched to use AuthKit... very interested in moving to OpenID at some point on some projects so wanted to have a standard auth library to simplify the switch when the time come

Re: Response Object? Header example... AuthKit

2008-01-09 Thread Kevin Baker
On Jan 9, 2008, at 4:02 PM, Mike Orr wrote: > > On Jan 9, 2008 2:16 PM, Kevin Baker <[EMAIL PROTECTED]> wrote: >> Is there any documentation on what is going on under the hood for the >> global response object in the controller? I'd like to get a better >&g

Re: Response Object? Header example... AuthKit

2008-01-09 Thread Kevin Baker
On Jan 9, 2008, at 1:55 PM, Mike Orr wrote: > > On Jan 9, 2008 1:16 PM, Kevin Baker <[EMAIL PROTECTED]> wrote: >> >> >> I am on Pylons 0.9.6.1. I see that there have been changes for the >> usage of the response object in the controller. >> >&g

Response Object? Header example... AuthKit

2008-01-09 Thread Kevin Baker
I am on Pylons 0.9.6.1. I see that there have been changes for the usage of the response object in the controller. I am new to Pylons and thought I'd start with Authkit implementation to my current db of users. In the Cookbook example I was following it uses Response directly and throws a