Re: Myghty as the default template language?

2007-09-23 Thread Robert Leftwich
Daniel Tang [EMAIL PROTECTED] writes: Also, I think you can just set the default by changing the init_app call from 'mako' to 'pylonsmyghty'. Ah, that was it, the magic name :-) Thanks! The init_app() approach appears to work with the addition of the 'components' path to 'templates', i.e.

Myghty as the default template language?

2007-09-20 Thread Robert Leftwich
I'm attempting an upgrade to 0.9.6 but cannot get Myghty running as the default template language. The doco on http://wiki.pylonshq.com/display/pylonsdocs/Using+Other+Template+Languages says that Myghty is not supported by the template_engine argument passed to config.init_app and refers to

Re: Ajax and multithreaded pylons

2007-09-05 Thread Robert Leftwich
Stefano Masini [EMAIL PROTECTED] writes: Please point me in the right direction if I just overlooked a solution that maybe already exists. You might take a look at orbited - http://www.orbited.org/ - it even has a Pylons tutorial. HTH Robert

Re: The is-Pylons-for-me post

2007-07-09 Thread Robert Leftwich
Martin Aspeli [EMAIL PROTECTED] writes: 1. We need a fairly heavily AJAXified UI. Is Prototype and the Railsish web helpers the best way to go? I'm a big fan of the Yahoo! User Interface library - http://developer.yahoo.com/yui/ It is hard to beat for quality of code and documentation, not

Pylons site is Editors Pick on Yahoo Gallery

2007-06-04 Thread Robert Leftwich
The latest release of the Market Shares site is an Editors Pick on Yahoo Gallery - http://gallery.yahoo.com/ Excuse the self-promotion, but it is good to see a Pylons app up there and as we state on the 'About the site' page - http://www.marketshares.com.au/assist/about_the_site/ - we are

Re: Upgrading to 0.9.5 - unicode issue

2007-05-01 Thread Robert Leftwich
Shannon -jj Behrens wrote: The following is even better: if isinstance(component, basestring) Not sure if Mike is still taking patches for Myghty (the old technology!), but I'll see - if I didn't have 130 templates/components I would be moving sooner rather than later, to Mako or

Re: Upgrading to 0.9.5 - unicode issue

2007-04-28 Thread Robert Leftwich
Max Ischenko wrote: I am afraid I can't give a helpful answer but I'll tune in anyway. ;) Thanks for taking the time to chime in. Hmm. The str class doesn't have 'is_file_component' either, does it? No, but the Myghty code has: if type(component) == types.StringType: component =

Re: url_for and ampersands encoding

2007-03-27 Thread Robert Leftwich
Max Ischenko wrote: I am trying to validate my XHTML page (generated with Pylons/Mako) and got an error: http://validator.w3.org/check?uri=http%3A%2F%2Ftesting.developers.org.ua%2F Warning *Line 104 column 41*: cannot generate system identifier for general entity norestart. | a

Re: New Pylons site launched

2007-03-23 Thread Robert Leftwich
David Geller wrote: It's a really nice site! Congratulations! Thanks! I'm curious as to what your server configuration finally turned out to be. How are you using nginx, and what software are you actually using to to run the pylons app? nginx is basically setup identically to the way

Re: New Pylons site launched

2007-03-23 Thread Robert Leftwich
Robert Leftwich wrote: I'm running 3 Pylons instances in place of the load balanced and proxied Mongrel clusters in the above config, using egg:Paste#http for each. That should probably read: I'm running 3 load balanced and proxied Pylons instances in place of the Mongrel clusters

New Pylons site launched

2007-03-22 Thread Robert Leftwich
Just thought I'd let everyone know that after much hard work we have finally publicly launched our Pylons-based site - http://www.marketshares.com.au Apologies for the (semi-)spam, but I think it is a good advertisement for the power of Pylons as it is a fairly large site with daily data on

Re: Fast Python webserver

2007-03-03 Thread Robert Leftwich
I wrote: Hopefully, all will be revealed later this week with 2 separate servers to test with. Well, it took a bit longer than I'd hoped but I finally found the time to do some testing. Unfortunately, it wasn't as thorough as I would have liked as one of the boxes had to be removed at

Re: Fast Python webserver

2007-02-21 Thread Robert Leftwich
I wrote: Hopefully, all will be revealed later this week with 2 separate servers to test with. I just had to pass on this comment from a beta tester after I switched from lightty/proxy to nginx/flup in preparation for the testing: *This truly is fantastic speed. It's desktop fast.*

Re: Fast Python webserver

2007-02-18 Thread Robert Leftwich
James Gardner wrote: OK, I was testing on localhost. So was I, on the laptop. Any testing to the real box was useless at 128k. Could you let me know the platform you are on too please? Sometimes Debian etch is a bit weird! Ubuntu 6.06 on both servers and laptops. Robert

[Routes] Default protocol?

2007-02-18 Thread Robert Leftwich
I'm just switching access to the account management section of the site to use https and have a problem. If I set the protocol in the h.url_for() call on a page, then when the browser navigates to that https url, all the url's generated for the destination page (navigation, images, etc) are

Re: ANN: AuthKit 0.3.0pre4

2007-02-18 Thread Robert Leftwich
Cliff Wells wrote: On Fri, 2007-02-16 at 15:02 +, James Gardner wrote: I'd encourage anyone who is currently using the dev version to upgrade to 0.3.0pre4 so we can see if there are any issues before 0.3.0 is formally released in a couple of weeks time. So I rolled back to the

Re: Fast Python webserver

2007-02-18 Thread Robert Leftwich
Matt Good wrote: Benchmarking on a laptop can be misleading since the CPU scaling makes it impossible to get consistent results. Yep. FWIW I kept on repeating the test until I got consistent results with the CPU maxed out, but I wasn't putting any weight in the results as testing on the

Re: Fast Python webserver

2007-02-16 Thread Robert Leftwich
Ian Bicking wrote: Cliff Wells wrote: I'll probably do some better tests later, but my initial suspicion is that the default paster serve isn't as fast as CherryPy (both are proxyied to via Nginx). In my simplistic tests CherryPy 3 is about 50% faster than paste.httpserver. That's

Re: Fast Python webserver

2007-02-16 Thread Robert Leftwich
Ian Bicking wrote: (are FastCGI connections persistent in any way?). Not that I'm aware of. Hopefully, I'll have some more definitive numbers in a few days. Robert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Authentication and Authorization Systems

2007-01-16 Thread Robert Leftwich
Alagu Madhu wrote: paste.auth Barrel Authkit What is suitable for the Pylons ? I ended up choosing Authkit with my own SA backed user storage - it is working well. Note that it was written with Pylons in mind, not that integrating the others is hard, but you might find it easier to work

Re: Another XMLHttpRequest question

2007-01-05 Thread Robert Leftwich
Uwe Feldtmann wrote: I've been using the Live headers and the result is:- The original request POST /xul/c_user HTTP/1.1 The response... HTTP/1.x 200 OK Server: PasteWSGIServer/0.5 Python/2.4.3 Date: Fri, 05 Jan 2007 06:39:12 GMT Content-Type: text/html; charset=UTF-8 Connection: close

Re: [ROUTES] map.resource and method case

2007-01-05 Thread Robert Leftwich
Sean Davis wrote: In one particular case, the h.button_to helper expects a lower-case method argument and does not work with an uppercase method argument, leading to total lack of interoperability, with the helper demanding and generating lowercase and Routes demanding uppercase. Is there a

Re: Another XMLHttpRequest question

2007-01-04 Thread Robert Leftwich
Uwe Feldtmann wrote: I'm sending POST data via XMLHttpRequest as follows:- xhr = new XMLHttpRequest() ... callback omitted xhr.open( POST, url, true ) - where url is /contr/func xhr.send( data ) - where data is a string ?parm1=value1amp;parm2=value2 When I try to retrieve the values in

Re: Another XMLHttpRequest question

2007-01-04 Thread Robert Leftwich
Uwe Feldtmann wrote: The Content-Length is correctly set or so it seams and I've looked at so many examples my head is swimming. This is the header info as reported by Pylons. CONTENT_LENGTH: '20' CONTENT_TYPE: 'application/xml' Set the content type to application/x-www-form-urlencoded

Re: Another XMLHttpRequest question

2007-01-04 Thread Robert Leftwich
Uwe Feldtmann wrote: A call via GET works but since I changed the request to POST it's not sending anything back to javascript even though I've registered a callback. Any clues? In these sorts of situations the LiveHTTPHeaders extension for FF is a big help. If you run it and look at

Re: ANN: Pylons 0.9.4 Released

2006-12-30 Thread Robert Leftwich
Ian Bicking wrote: It's probably Paste. Is /philosophy/overview/ a directory served as static files? Of course, without any particular support for index.html there shouldn't be anything useful at that location...? True. IIRC this may be the result of a Routes issue that I've never gone

Re: ANN: Pylons 0.9.4 Released

2006-12-30 Thread Robert Leftwich
It looks like something is caching the 301 response. I've taken out all the routes except map.connect('/philosophy/overview', controller='home') If I use urlopen() on http://localhost:/philosophy/overview I get the 301 response (where is any port no.) If I use urlopen() on any

Re: ANN: Pylons 0.9.4 Released

2006-12-30 Thread Robert Leftwich
I wrote: It looks like something is caching the 301 response. Nope - it was my own stupidity! A few months back there were a couple of different people creating content off-site and they wanted to include images in the templates. In the interests of expediency I let them use relative

Re: Choosing a web framework

2006-10-25 Thread Robert Leftwich
wyatt-bC wrote: Just to confirm this, Prototype and script.aculo.us are only added to your templates if you explicitly include them. Also, tabblo.com uses Prototype/script.aculo.us together with YUI, and their site seems to work pretty well with a lot of complicated DHTML/AJAX stuff. I

Issue with REST, Routes and WebHelpers

2006-10-14 Thread Robert Leftwich
I'm setting up a REST-based set of URLs for a Pylons app using Routes and it looks like there is an issue when using the pseudo-REQUEST_METHOD, i.e. '_method' and WebHelpers. In particular, if I use h.link_to with an arg of 'method':'DELETE' the form that is generated for the link has the

WebHelpers links AWOL

2006-08-28 Thread Robert Leftwich
The WebHelpers links on pylonshq.com seem to have a problem :-) e.g. on the main HQ page http://pylonshq.com/WebHelpers/module-index.html = 404 Robert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Getting root path?

2006-07-22 Thread Robert Leftwich
Ben Bangert wrote: Ah, sorry, let me rephrase. I meant, how would you know where in the route-list you wanted the new one in at? That would seem to require pretty extensive knowledge of the route setup. If you're inserting routes dynamically, it seems easy to lose track of where

Re: Getting root path?

2006-07-20 Thread Robert Leftwich
Ben Bangert wrote: You want: g.pylons_config.paths If you're curious what else is hanging off g.pylons_config, http://pylonshq.com/docs/0.8.2/class-pylons.config.Config.html Good timing... that information is useful. Along similar lines, I'm attempting to add a route to the map at

Re: Getting root path?

2006-07-20 Thread Robert Leftwich
Ben Bangert wrote: You'll need to know a wee bit about the internal structure of the map object. In this case, the fact that the Routes are in a list off map.matchlist. But the map.connect does a little more than just appending to the matchlist. So to be safe: map.connect()

Re: sqlalchemy examples?

2006-04-28 Thread Robert Leftwich
up0 wrote: I'm ready to move on to pylons/myghty (after quite a bit of working with Django and other webframework) but I'm stuck on this. How do I use SQLAlchemy with it? In models/__init__.py, uncommenting few lines seem to make it work with SQLObject. But is there any example for