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\\blogtutorial\

Re: Can't get the blog tutorial to work

2007-06-12 Thread Christoph Haas
On Tue, Jun 12, 2007 at 05:34:47AM -0700, kib2 wrote: 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\\blogtutorial\

Re: Can't get the blog tutorial to work

2007-06-12 Thread kib2
Ok, thanks I managed to get it work now. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group,

Re: newbie: Helloword problem

2007-06-12 Thread MattQc
Same error by deleting and purging pylons and its dependencies. I also deleted turbogears at the same time. :( What the error suggest exactly, which libs could cause the problem? Does paster script has a debug or very verbose mode? Thanks, Matt On Jun 12, 1:29 am, Adil Hasan [EMAIL PROTECTED]

Re: newbie: Helloword problem

2007-06-12 Thread MattQc
Don't know what I did exactly, but it is working now! Funny!! :) On Jun 12, 11:21 am, MattQc [EMAIL PROTECTED] wrote: Same error by deleting and purging pylons and its dependencies. I also deleted turbogears at the same time. :( What the error suggest exactly, which libs could cause the

enviroment variables

2007-06-12 Thread voltron
I get key errors when trying to set request.environ['paste.auth_tkt.set_user'](username) in my controller. In fact, all the enviroment variables dont work using request.environ['key'] Thanks --~--~-~--~~~---~--~~ You received this message because you are

Re: enviroment variables

2007-06-12 Thread Garland, Ken R
remove request. environ['paste.auth_tkt.set_user'](username, tokens='') On 6/12/07, voltron [EMAIL PROTECTED] wrote: I get key errors when trying to set request.environ['paste.auth_tkt.set_user'](username) in my controller. In fact, all the enviroment variables dont work using

Re: enviroment variables

2007-06-12 Thread voltron
hmm, that does not work either: exceptions.NameError: name 'environ' is not defined On Jun 12, 6:02 pm, Garland, Ken R [EMAIL PROTECTED] wrote: remove request. environ['paste.auth_tkt.set_user'](username, tokens='') On 6/12/07, voltron [EMAIL PROTECTED] wrote: I get key errors when

Oracle + Unicode problem

2007-06-12 Thread MattQc
Hello, I was at my second step to learn pylons. So I tried the QuickWiki tutorial there: http://pylonshq.com/docs/0.9.4/quick_wiki.html I get an SQL error when I try to execute queries like this one on an Oracle database: sqlalchemy.exceptions.SQLError: (NotSupportedError)

Re: enviroment variables

2007-06-12 Thread voltron
Maybe this is a bug, I printed out all the keys using print request.environ.keys() paste.auth_tkt.set_user was not in the printout --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to

Re: how to simulate authentication (with authkit) using paste.fixture

2007-06-12 Thread David Niergarth
On Jun 10, 10:37 am, Alberto Valverde [EMAIL PROTECTED] wrote: This is the TestCase base class I use in the auth. related tests: Thanks for sharing your code Alberto. I've got it working now. Will not test that AuthKit properly authenticates (I test the authentication function I pass to the

Caching problems

2007-06-12 Thread Mike Orr
I'm trying to cache a controller method in both the server and browser. One twist is it's a text document (a tab-delimited file). Beaker caching is working on the server end (with 1 hour expire time): from pylons.decorators.cache import beaker_cache @beaker_cache(key=None,

Re: Caching problems

2007-06-12 Thread Mike Orr
I'm also trying to cache static files. In middleware.py: static_app = StaticURLParser(config.paths['static_files'], max_cache_age=360) This does use ETAG and 304 but it's not using the browser cache: http://localhost:5000/images/banner.jpg GET /images/banner.jpg HTTP/1.1 Host:

Re: how to simulate authentication (with authkit) using paste.fixture

2007-06-12 Thread David Niergarth
On Jun 11, 10:11 am, Agustin Villena [EMAIL PROTECTED] wrote: If I understand, this class may replace de standard TestController from pylons? I ended up changing Alberto's code so it subclasses TestController. class WSGIAppSecurityTestCase(TestController): def __init__(self, *args, **kw):

Re: SQLAlchemy + MySQL + UTF-8 support - how?

2007-06-12 Thread ysamlan
@mike orr $ sudo apt-get install command-not-found $ mysql_config The program 'mysql_config' is currently not installed. You can install it by typing: apt-get install libmysqlclient15-dev $ sudo apt-get install libmysqlclient15-dev or $ sudo apt-get install apt-file $ apt-file update $

Re: Caching problems

2007-06-12 Thread Philip Jenvey
On Jun 12, 2007, at 2:53 PM, Mike Orr wrote: I'm trying to cache a controller method in both the server and browser. One twist is it's a text document (a tab-delimited file). Beaker caching is working on the server end (with 1 hour expire time): from pylons.decorators.cache import

Re: Caching problems

2007-06-12 Thread Mike Orr
I added: resp.headers[cache-control] = public, max-age=360 But it behaves inconsistently so I'm thoroughly confused. Sometimes I get 304, sometimes not. Sometimes the public part appears in the Cache-control line in the response, sometimes not. Sometimes there's an Etag header, sometimes

Re: Caching problems

2007-06-12 Thread Ben Bangert
On Jun 12, 2007, at 4:18 PM, Mike Orr wrote: I added: resp.headers[cache-control] = public, max-age=360 But it behaves inconsistently so I'm thoroughly confused. Sometimes I get 304, sometimes not. Sometimes the public part appears in the Cache-control line in the response, sometimes

Re: Caching problems

2007-06-12 Thread ToddG
On Jun 12, 7:18 pm, Mike Orr [EMAIL PROTECTED] wrote: The cache argument ... With this I'm getting correct 304's, Etags, and Cache-control on my static files, but it's still checking the server each time. As Phillip said above, it's the Expires header that will get the browser to not bother

Re: Caching problems

2007-06-12 Thread ToddG
On Jun 12, 7:18 pm, Mike Orr [EMAIL PROTECTED] wrote: The cache argument ... With this I'm getting correct 304's, Etags, and Cache-control on my static files, but it's still checking the server each time. As Phillip said above, it's the Expires header that will get the browser to not bother

Re: Caching problems

2007-06-12 Thread ToddG
On Jun 12, 7:18 pm, Mike Orr [EMAIL PROTECTED] wrote: The cache argument ... With this I'm getting correct 304's, Etags, and Cache-control on my static files, but it's still checking the server each time. As Phillip mentioned, it's the Expires header that will get the browser to not bother