Re: Myghty as the default template language?

2007-09-23 Thread Daniel Tang
How did you call add_template engine? If you didn't use 'pylonsmyghty' (instead of just 'myghty'), maybe you need to do that? Also, I think you can just set the default by changing the init_app call from 'mako' to 'pylonsmyghty'. Dan On 9/20/07, Robert Leftwich <[EMAIL PROTECTED]> wrote: > > I'

Re: Actions without User Intervention

2007-08-31 Thread Daniel Tang
I don't know if there's anything Pylons-specific for this, but if you're running on *nix, you can just use a cron job that runs every so often. I think you can use the task scheduler in Windows, but I've never tried it before. Dan On 8/31/07, Andrew Sayman <[EMAIL PROTECTED]> wrote: > > Hello e

Re: database best practices: how to manage sac

2007-08-08 Thread Daniel Tang
Yes it does, since it's in the base controller. On 8/8/07, voltron <[EMAIL PROTECTED]> wrote: > > Hi Jose! > > Now I´m confused, I thought one was supposed to delete the sessions at > the beginning of the controller function in question, does putting > the call in base.py eliminate the need to a

Re: running scripts using pylons models

2007-06-30 Thread Daniel Tang
On 6/30/07, WSobczuk <[EMAIL PROTECTED]> wrote: > > Well, for one thing you didn't do CONFIG.push_process_config(...), so > not everything would work. > > For another thing - if you change the pylons DB config then you have > to edit your script and change it there too - so that's evil. > > And th

Re: using trac as a callable inside the controller - a recipe and a doubt!

2007-06-29 Thread Daniel Tang
On 6/29/07, Alexandre CONRAD <[EMAIL PROTECTED]> wrote: > > Daniel Tang wrote: > > > On 6/29/07, Walter Cruz <[EMAIL PROTECTED]> wrote: > > > >>h.redirect_to('/') > >> > >>h.redirect_to('/'

Re: using trac as a callable inside the controller - a recipe and a doubt!

2007-06-29 Thread Daniel Tang
On 6/29/07, Walter Cruz <[EMAIL PROTECTED]> wrote: > h.redirect_to('/') > > h.redirect_to('/') I'm pretty sure you have to return h.redirect_to, not just call it (unlike RoR, I believe) Dan --~--~-~--~~~---~--~~ You received this message b

Re: adding paste.auth as middleware?

2007-06-18 Thread Daniel Tang
On 6/18/07, voltron <[EMAIL PROTECTED]> wrote: > > Could someone tell me how I should add the Paste.auth middleware to my > middleware stack? > The link to this middleware is: > http://pythonpaste.org/module-paste.auth.cookie.html > > thanks > Did you try: app = AuthCookieHandler(app) The const

Re: reloading routes

2007-06-15 Thread Daniel Tang
On 6/15/07, voltron <[EMAIL PROTECTED]> wrote: > > Is it possible to reload routes.py if it has been changed without > restarting the paster server? > Use the --reload flag. Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: Access to active sessions

2007-06-13 Thread Daniel Tang
On 6/12/07, askel <[EMAIL PROTECTED]> wrote: > > > Hello everyone, > > How do I access active sessions? I need to be able to update or close > some sessions. Suppose I disable some user account and I want to close > any active sessions of that user. Another use case is to change user > permissions

Re: AuthKit Authorization Manager?

2007-06-13 Thread Daniel Tang
On 6/13/07, voltron <[EMAIL PROTECTED]> wrote: > > > Since both of you have AuthKit working, how does one set a session for > an authenticated user? How do you set the REMOTE_USER? I thought of > creating a session variable like "isauthenticated = True" but it has > to be set after REMOTE_USER is s

Re: Can't get the blog tutorial to work

2007-06-12 Thread Daniel Tang
On 6/12/07, kib2 <[EMAIL PROTECTED]> wrote: > > > Hi, > > I'm new to Pylons and even more to DataBases. > > I followed your tutorial on how to make a basic blog with Pylons, but > once I launch my app I've got the following errors : > > File 'C:\\Documents and Settings\\kib\\Bureau\\KIB\\blogtutori

Re: Conditional database creation in websetup

2007-06-08 Thread Daniel Tang
On 6/8/07, voltron <[EMAIL PROTECTED]> wrote: > > > I´m sorry, I meant "tables" not databases... > > > > > There's a table_iterator() method for MetaData objects, I think you can iterate through and then call .create() on the table after prompting for each one. Dan --~--~-~--~~--

Re: Subdirectories and resource paths in Mako

2007-06-07 Thread Daniel Tang
On 6/7/07, Shannon -jj Behrens <[EMAIL PROTECTED]> wrote: > > > > Also, for static resources, like images or CSS files that actually are > > on the proxy server proxying for the Paster server, how can I pass a > > sort of "/media" path to my templates that would always be resolved no > > matter how

Odd behavior with paster and Pylons

2007-06-03 Thread Daniel Tang
Hi all, I discovered some interesting behavior when using Pylons on WebFaction. For some very odd reason that I can't discern, whenever I run paster inside of a Pylons command, even if I don't pass any arguments, it launches gconfd-2. Normally, I wouldn't notice, but WebFaction limits the number