Re: Pylons 0.9 and Announcements

2006-07-24 Thread Matt Feifarek
On 7/22/06, Ben Bangert [EMAIL PROTECTED] wrote: I've updated and uploaded a revised set of docs for 0.9, available here:http://pylonshq.com/docs/0.9/index.htmlThanks for that, Ben. Just a nit on this doc:http://dev.pylonshq.com/docs/0.9/getting_started.html Near the end, there is a formatting

Accessing controller name and action name from myghty

2006-08-25 Thread Matt Feifarek
Hello.I'm really enjoying using Pylons for my first non-Webkit python web-app.I am finding the framework fanstastic; I'm really excited about this; most I've been excited about making web sites in about 5 years. Thanks. I am finding the tutorials very very good, but am really missing more

Re: Accessing controller name and action name from myghty

2006-08-25 Thread Matt Feifarek
On 8/25/06, yi huang [EMAIL PROTECTED] wrote: Maybe you can set c.controller_name in yourproject.lib.base.BaseControllerThanks.I thought of that, and I can certainly do that, but I thought that this might be a good opportunity to learn the right way to get that info, and where that info is.

Re: Accessing controller name and action name from myghty

2006-08-25 Thread Matt Feifarek
On 8/25/06, Ben Bangert [EMAIL PROTECTED] wrote: When Pylons parses the URL with Routes, it puts the routing dictionary into an environ variable 'pylons.routes_dict ', so you can find the controller in your template/controller code as request.environ['pylons.routes_dict']['controller']

Stuck: can't develop any pylons-based work because of missing easy_setup dependency

2006-08-29 Thread Matt Feifarek
Hello.Trying to extract egg libraries into real libraries on sys.path (so I could use my IDE's code inspection features) I have managed to break my pylons tool chain. When trying to run 'paster serve development.ini ' I get this: File

Re: Stuck: can't develop any pylons-based work because of missing easy_setup dependency

2006-08-29 Thread Matt Feifarek
Hmmm, I'm not sure that will setup the proper metadata that setuptoolsneeds. As Ian Bicking mentioned, there could likely be a setuptools options for it, perhaps in the easy_install/setuptools docs. I can alsoask on the distutils mail list for you and see what kind of an answerthey can

Error in error controller

2006-09-06 Thread Matt Feifarek
Hello.When using the 'interactive debugger' feature of Pylons (thanks very much for that, by the way) I get some strange behavior when trying to use the global object: g paste.registry.StackedObjectProxy object at 0x-49042474 g.projects Traceback (most recent call last): File

Re: Error in error controller

2006-09-06 Thread Matt Feifarek
On 9/6/06, Philip Jenvey [EMAIL PROTECTED] wrote:(And Ben too) Our current workaround for this is the controller method'_attach_locals' (described in the Interactive Debugging docs: http://pylonshq.com/docs/0.9.1/interactive_debugger.html ). This setsreferences to these objects in the controller

h.link_to() question

2006-09-10 Thread Matt Feifarek
Hello.I'm using h.link_to() to stick some prototype/scriptalicious effects on the display/undisplay of dom elements. So far, so good. Very nice feature.It seems that most of the work in events and chaining events requires doing a round-trip with the server (AJAX) but I just want to do several

Re: AuthKit erroro following manual.txt

2006-09-14 Thread Matt Feifarek
On 9/13/06, James Gardner [EMAIL PROTECTED] wrote: That's very strange. I haven't used that version of SQLAlchemy with AuthKit so perhaps there are some compatibility issues. I will have a look into them tomorrow unless anyone else has any suggestions? What version is safe? I'm not using

Re: upload progress bar

2007-01-04 Thread Matt Feifarek
This from Paste is probably where you want to start digging: http://pythonpaste.org/module-paste.progress.html On 1/4/07, Sean Davis [EMAIL PROTECTED] wrote: Does pylons have built-in support for upload progress bar that I have missed? If not, can someone point me in the direction of how this

Re: UTF-8 ... help

2007-01-12 Thread Matt Feifarek
On 1/11/07, Ian Bicking [EMAIL PROTECTED] wrote: You probably want to do: c.value = usomething in UTF-8 I'm not trying to be pedantic... and I think that we all know what you meant by the above... just trying to make sure I understand this stuff... a few years ago I went over and over

Re: [Paste] paster --create : can I make a package that is not an egg?

2007-02-15 Thread Matt Feifarek
On 2/15/07, Ian Bicking [EMAIL PROTECTED] wrote: These extra files are about presenting an API to the world that is fairly abstract -- mostly the Paste Deploy API. This hides Pylons, and even Paste, and makes it easier to deal with your application in an abstract manner. I don't fully

Re: bug in webhelpers.rails.prototype.form_remote_tag()

2007-02-18 Thread Matt Feifarek
Argh! I forgot one more point of evidence... to rule out that Pylons or Paste itself was implicated, I fired up Live HTTP Headers and watched the wire: save=saveproduct=(Not%20a%20Value!)_= That's what gets sent. I'm not sure what the trailing underscore is all about either, but it doesn't

Re: bug with select multiple field ?

2007-03-28 Thread Matt Feifarek
On 3/28/07, laurent [EMAIL PROTECTED] wrote: I think there is a bug in the processing of select field with the multiple option. I have a form with this field : I'm not sure, but it's possible that it doesn't like your HTML. In XHTML (and maybe HTML 1.1) don't like attributes without values.

Re: Problem with routes

2007-06-04 Thread Matt Feifarek
On 6/4/07, Matt Feifarek [EMAIL PROTECTED] wrote: A route map recently stopped working when I upgraded an app to a newer version of pylons. Hi Gang. I just discovered another clue. If I change the requested URL from: http://localhost:5000/projects/FS5639/download/file.txt to: http

Re: Encoding errors in controllers

2007-06-21 Thread Matt Feifarek
On 6/21/07, voltron [EMAIL PROTECTED] wrote: This error shows up in the comandline when I start up the paster server under windows Starting server in PID 2592. serving on 0.0.0.0:5000 view at http://127.0.0.1:5000 C:\Python24\lib\site-packages\pylons-0.9.5-py2.4.egg\pylons\wsgiapp.py:

Can't start pylons app

2007-08-14 Thread Matt Feifarek
Hello Pylons and Paste folks. I'm working on a project that is derived from paster create -t pylons_minimal. It runs great on my development box, but when I try and put it on another box, I get a traceback that ends in the following: File

Re: Can't start pylons app

2007-08-14 Thread Matt Feifarek
Interesting followup: running paster create -t pylons_minimal foo on both boxes yields different results... a recursive diff finds all kinds of things different. Looks like my eggs are not properly installed, or how else could I be getting different app skeletons from the same command?

Re: [Paste] Can't start pylons app

2007-08-15 Thread Matt Feifarek
On 8/15/07, Ian Bicking [EMAIL PROTECTED] wrote: Yeah; weird stuff with site-packages or easy-install.pth, perhaps? Doing python -c import pylons; print pylons.__file__ might help debug, and maybe if you install yolk it'll help explain stuff. For the (future) record and the next person that

Re: [Paste] Can't start pylons app

2007-08-15 Thread Matt Feifarek
On 8/15/07, Neil Blakey-Milner [EMAIL PROTECTED] wrote: On 8/15/07, Christoph Haas [EMAIL PROTECTED] wrote: Morale: never install eggs on a Debian-based system. Or, even better, use virtual-python or workingenv, and never install moving targets into your core Python library location. Ok,

Using StackedObjectProxy

2007-09-14 Thread Matt Feifarek
Hello Pylons/Paste experts. I want to use StackedObjectProxy in my Pylons application for some of my own data structures: I've got some basic container classes that need to be REQUEST specific (not necessarily thread specific). My understanding of the docs indicates to me that this is the right

StackedObjectProxy (again)

2007-10-19 Thread Matt Feifarek
Some time ago, I wrote to the list to ask for help with StackedObjectProxy: [ Groups doesn't seem to have it in search results, but my message was on Sept. 14 ] I was never able to grok the instructions in the context of my app, so I started with a naked pylons app and tried to figure it out.

Packages to use on Gutsy

2007-10-25 Thread Matt Feifarek
I'm setting up a new development box, including a fresh install of Gutsy Gibbon, Ubuntu's latest. I see that most of the required pylons packages and dependencies are in the .deb repositories, which is cool. Pylons is already out of date (v.9.5-6) and I don't know how often (if at all) the

Re: Packages to use on Gutsy

2007-10-26 Thread Matt Feifarek
Definitely use easy_install for Pylons and its dependencies Thanks all. Amazing, something upon which everyone agrees! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group,

Re: Packages to use on Gutsy

2007-10-26 Thread Matt Feifarek
On 10/26/07, Christoph Haas [EMAIL PROTECTED] wrote: Actually not. But I'm a bit tired of voicing my opinion and I can imagine that others may be tired of my opinion either. Python developers tend to rely on ez_setup/setuptools and they are partly right: ... Thanks, Christoph. I appreciate

Re: UNS: Re: cleaner ToscaWidgets

2007-11-08 Thread Matt Feifarek
On Oct 24, 2007 5:06 PM, Alberto Valverde [EMAIL PROTECTED] wrote: Yep, was planning to do that when I cover tweaking the layout. Finally didn't have time to start part 2 today but will tomorrow... Hey Alberto -- did a part 2 ever fall out of your brain? We're eager to learn more about TW,

ToscaWidgets: request for sample apps in Pylons

2007-11-09 Thread Matt Feifarek
I've seen the discussion in this list about docs for ToscaWidgets, and have been trying to read up enough to actually use the library. The Part 1 doc that's up here is a nice start: http://wiki.pylonshq.com/display/toscawidgets/Using+twForms+with+Pylons.+Part+1 I would love some more docs, but

Re: How to change path to static files (./public/) dynamically

2007-12-13 Thread Matt Feifarek
On Dec 13, 2007 10:28 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ...And evidently I get new problem: how to access session from that CustomURLParser.__call__() method defined in middleware? I think you're better off with a custom controller superclass than middleware; then you can have

Re: Templatizing javascripts

2007-12-14 Thread Matt Feifarek
On Dec 14, 2007 1:36 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello all. What's the best way to templatize my javascripts? To enable the use of _() function and helpers. Mako can make any kind of text document; not just html. I use it to make CSS, JS too.

Re: An idea for improving @validate

2008-01-29 Thread Matt Feifarek
On Jan 29, 2008 11:21 AM, Mike Orr [EMAIL PROTECTED] wrote: Yes, we're disagreeing on what the default should be. Well, you'll have to convince Ben. I think he likes it the other way. I don't have this particular religion, but what would a REST zealot say? Seems like two different URI's

Re: An idea for improving @validate

2008-01-29 Thread Matt Feifarek
On Jan 29, 2008 3:58 PM, Ben Bangert [EMAIL PROTECTED] wrote: On Jan 29, 2008, at 11:35 AM, Matt Feifarek wrote: /accounts -- list current accounts /account/8733 == /account/8733/view /account/8733/edit /account/new -- empty form /account/8733/view/attachments/2 (etc.) That's pretty

Re: An idea for improving @validate

2008-01-29 Thread Matt Feifarek
On Jan 29, 2008 2:26 PM, Mike Orr [EMAIL PROTECTED] wrote: Are there any other practical arguments for a REST-like add/edit/delete, or is it all just academic ideology? IANARZ (I am not a REST Zealot) but... I noticed when I moved to Pylons (from Webware, fwiw) that one of the first things I

Re: CSRF Question

2008-04-18 Thread Matt Feifarek
There's some similar functionality in ToscaWidgets, though it's tied to forms, not to the request. This might break REST interfaces; there might be lots of times where software is PUTing data to an URL when it never read the form in the first place. You'd have to teach the client end of the

Re: Truncating an html string safely

2008-06-07 Thread Matt Feifarek
Oops; replied from the wrong address. -- Forwarded message -- On Thu, Jun 5, 2008 at 2:36 PM, Ian Bicking [EMAIL PROTECTED] wrote: Well... it's hard to truncate exactly, as there's all that annoying nesting stuff. An untested attempt with lxml: Exactly. Thanks for the

Question about session storage and persistence

2008-09-04 Thread Matt Feifarek
I'm having trouble getting sessions to persist across a server up/down. Even when I use: beaker.session.type = file The session data itself (verified by the pickle files on the disk in %(here)s/data) is there past the paster restart, but it gets disconnected from the session itself (the user,

Re: Question about session storage and persistence

2008-09-09 Thread Matt Feifarek
On Thu, Sep 4, 2008 at 7:36 PM, Ben Bangert [EMAIL PROTECTED] wrote: Setting a specific expiretime should do it, unfortunately this value needs to be a timedelta or datetime value, so in your projects lib/environment.py, after the config.init function was called, add: from datetime import

Re: Question about session storage and persistence

2008-09-09 Thread Matt Feifarek
On Tue, Sep 9, 2008 at 11:27 AM, Matt Feifarek [EMAIL PROTECTED]wrote: from datetime import timedelta config['beaker.session.cookie_expires'] = timedelta(minutes=20) And that should do the trick. I tried this, but it basically invalidates all session activity. I tried it again on another

Is there some kind of on_shutdown handler for paster serve and/or session?

2008-09-10 Thread Matt Feifarek
I'd like to stick some code somewhere where it will be run right before a graceful shutdown. I realize that this isn't very reliable, as things can crash, but it's for a kind-of hack anyway. I also realize that WSGI isn't really built this way; pylons doesn't assume that it's running as a

Re: Displaying Data in a grid

2008-10-17 Thread Matt Feifarek
On Fri, Oct 17, 2008 at 5:12 AM, Toby Catlin [EMAIL PROTECTED] wrote: I am sure this has been done before but i am having trouble finding any references to existing code. As i don't want to reinvent the wheel i was hoping someone could point me to the right place. I have been building a

Re: Flickr tutorial under 0.9.7?

2008-12-18 Thread Matt Feifarek
On Wed, Dec 17, 2008 at 6:19 PM, Ben Bangert b...@groovie.org wrote: I've updated the front page in the codebase which will soon be up at http://beta.pylonshq.com/, to properly reflect what's in Pylons 0.9.7. Should be deployed there shortly. I'm also getting most of the links fixed up so

Book/donation

2009-01-20 Thread Matt Feifarek
Hi Ben (and Pylons list). I've been thinking of buying The Definitive Guide to Pylons from Apress, but am realizing that I'd rather read it on-screen (syntax-highlighting, search, cut-n-paste, etc.) BUT, I know that writing books is one of the ways that contributors to Free Software can make a

Re: Book/donation

2009-01-20 Thread Matt Feifarek
No, I did not. But anyway, PDF sucks (no color-coding, no download links, hard to read compared to a browser, etc.) I'm hoping for http://pylonsbook.com/ But if Ben's preference is that we should buy the PDF, I might just do that. I'd just rather a more direct approach. But thanks for the tip.

Re: Book/donation

2009-01-20 Thread Matt Feifarek
On Tue, Jan 20, 2009 at 2:14 PM, Wyatt Baldwin wyatt.lee.bald...@gmail.comwrote: I haven't seen the PDF, but there's no reason it couldn't have syntax highlighting or download links is there? Does anyone know if it does? The sample-chapter PDF that they have has no code examples, but there's

Re: clean up after session finished

2009-02-04 Thread Matt Feifarek
On Wed, Feb 4, 2009 at 3:10 PM, Mike Orr sluggos...@gmail.com wrote: You don't know when the user closes the browser. In fact, you don't know anything after the user's last request, whether you will hear from them again or not. Right, but I've always wanted this... although it is stateless,

Re: monit + pylons under Ubuntu 8

2009-02-06 Thread Matt Feifarek
On Mon, Jun 9, 2008 at 3:18 PM, Jonathan Vanasco jonat...@findmeon.comwrote: I'm new to ubuntu, and their syntax for scripts seems to differ from all the examples i've seen floating in the pylons community ( ie. lots of errors ) One thing that might help, is that by default, Ubuntu isn't

Sprint at PyCon?

2009-02-17 Thread Matt Feifarek
Hi Gang(s). Will there be any sprint(s) for pylons and pylons-related projects (routes, webhelpers, paste) at PyCon next month? The PyCon website doesn't seem to think so, but it doesn't seem to know much, so I thought I'd ask. Thanks. --~--~-~--~~~---~--~~ You

Re: Sprint at PyCon?

2009-02-17 Thread Matt Feifarek
On Tue, Feb 17, 2009 at 6:28 PM, Mike Orr sluggos...@gmail.com wrote: Will there be any sprint(s) for pylons and pylons-related projects (routes, webhelpers, paste) at PyCon next month? Yes, but what exactly we'll be working on has not been decided. Cool! I plan to attend PyCon, and

Re: Does pylons populate the request object when @validate kicks in?

2009-06-26 Thread Matt Feifarek
On Wed, Jun 24, 2009 at 11:08 AM, afrotypa ovuaia...@gmail.com wrote: @restrict('POST') @validate(schema=TestSchema(), form='edit', post_only=False, on_get=True) def save(self, id=None): I'm not following your full question, but right-off, I see a contradiction up there: If you restrict

Re: Using Django Forms with Pylons (and a successor to @validate?)

2009-10-02 Thread Matt Feifarek
On Fri, Oct 2, 2009 at 11:32 AM, Marcus Cavanaugh marcuscavana...@gmail.com wrote: I've switched to using django.forms with Pylons, and I really like the change so far. I've posted a writeup, and a drop-in module, on using django.forms with Pylons here: This looks great, Marcus. Every now

Re: Pylons on Google App Engine

2009-10-07 Thread Matt Feifarek
On Wed, Oct 7, 2009 at 1:27 AM, Mike Orr sluggos...@gmail.com wrote: None has been mentioned on the list. The thread you found is the latest. If you have time to figure out the easiest install procedure for Pylons on App Engine and to update the howto, it would be a contribution to Pylons.

Re: Pylons on Google App Engine

2009-10-07 Thread Matt Feifarek
On Wed, Oct 7, 2009 at 1:27 AM, Mike Orr sluggos...@gmail.com wrote: None has been mentioned on the list. The thread you found is the latest. If you have time to figure out the easiest install procedure for Pylons on App Engine and to update the howto, it would be a contribution to Pylons.

Re: Pylons on Google App Engine

2009-10-08 Thread Matt Feifarek
Thanks for the answers and clarifications... more below. On Thu, Oct 8, 2009 at 3:03 AM, Mike Orr sluggos...@gmail.com wrote: Feel free to link to it on the other page, or to paste the whole thing into that page. Will-do. And I'll fix the error you pointed out, change the thanks

Re: Pylons on Google App Engine

2009-10-08 Thread Matt Feifarek
On Thu, Oct 8, 2009 at 3:35 AM, Mike Orr sluggos...@gmail.com wrote: An egg is a Python package accompanied by its metadata. An egg can contain more than one package, but always one metadata. There are two file formats for eggs: ... Thanks for all of that. It helps. A lot. I'll look at

Re: Pylons on Google App Engine

2009-10-08 Thread Matt Feifarek
On Thu, Oct 8, 2009 at 3:29 PM, Mike Orr sluggos...@gmail.com wrote: This leads to two questions: 1. Can we simply delete that stuff ? It would make it harder to manage the app going forward. Can we delete what? Sorry; I edited out the part that would have made that more clear. What I

Re: Pylons on Google App Engine

2009-10-08 Thread Matt Feifarek
On Thu, Oct 8, 2009 at 3:29 PM, Mike Orr sluggos...@gmail.com wrote: On Thu, Oct 8, 2009 at 11:32 AM, Matt Feifarek matt.feifa...@gmail.com wrote: I'm not sure I'm up to that task (I use Pylons a lot, but kindof tune-out the parts about PasteDeply/Script, SetupTools, etc. Even if you

Testing controllers on Google AppEngine: can it be done?

2009-10-09 Thread Matt Feifarek
I've been working on getting Pylons running on GAE and documenting my discoveries. (see thread here: http://groups.google.com/group/pylons-discuss/browse_thread/thread/fa7d8defef1babfa/a16416074cca2660?lnk=raot# ) I seem to have stumped myself as far as running tests with WebTest et al. Since

Re: Pylons on Google App Engine

2009-10-10 Thread Matt Feifarek
This sound really promising. On Sat, Oct 10, 2009 at 9:15 PM, Jason S. jas...@tuffmail.com wrote: I just got a hello-world Pylons app running on GAE without using the appengine-monkey/homedir scripts and using the stock paster template (and an INI file). I'm not sure if I'm going to use GAE

Re: Testing controllers on Google AppEngine: can it be done?

2009-10-13 Thread Matt Feifarek
On Sun, Oct 11, 2009 at 4:03 PM, Ian Bicking i...@colorstudy.com wrote: Testing should work fine -- the key is if you use appengine-homedir, it'll setup your data store in sitecustomize.py (automatically on Python startup), then you get your application instance by calling make_app directly.

Re: Pylons on Google App Engine article

2009-10-14 Thread Matt Feifarek
Very nice. This seems much better than my own recent work... I think it's a mistake to start with appengine-homedir... better to just start from stock Pylons and hack it till it works on GAE. That's been my discovery over the last few days, but I haven't patched my Pylons Wiki article yet. I'll

Re: Pylons on Google App Engine article

2009-10-15 Thread Matt Feifarek
On Thu, Oct 15, 2009 at 12:10 AM, Ian Bicking i...@colorstudy.com wrote: I personally got too annoyed with testing and general interactivity (there's a nose extension though, which I cribbed from -- but I never actually got it to work myself). This process has been EXTREMELY annoying. I've

Re: Pylons on Google App Engine article

2009-10-15 Thread Matt Feifarek
On Thu, Oct 15, 2009 at 12:41 PM, Jason S. jas...@tuffmail.com wrote: I still don't get setuptools. I don't understand namespace packages, or rather their deployment. I don't get why I can't move (for example) paste, and the Paste* items to another directory that is ON sys.path and have it

Re: pylons on GAE long wake up time on first request

2009-10-15 Thread Matt Feifarek
On Wed, Oct 14, 2009 at 8:57 AM, reco r...@nex9.com wrote: I am experimenting with pylons on GAE 1.2.5 following this documentation: http://wiki.pylonshq.com/pages/viewpage.action?pageId=17465426 I wrote that; I also wouldn't follow it at this point ;-) Sorry; it DOES work, but another

Re: Pylons on Google App Engine article

2009-10-15 Thread Matt Feifarek
On Thu, Oct 15, 2009 at 2:21 PM, Mike Orr sluggos...@gmail.com wrote: On Thu, Oct 15, 2009 at 9:59 AM, Matt Feifarek matt.feifa...@gmail.com wrote: This process has been EXTREMELY annoying. I've spent many hours trying to get things to work that I should have been spending working on my

Re: Pylons on Google App Engine article

2009-10-16 Thread Matt Feifarek
On Fri, Oct 16, 2009 at 1:04 PM, Ian Bicking i...@colorstudy.com wrote: I remember at some point having a problem with pip installing the Paste packages, and paste/__init__.py was missing. I think I was working on an actual app so I punted and created the file manually, and didn't try to

Re: New Pylons on AppEngine article in wiki

2009-10-22 Thread Matt Feifarek
I would love a little feedback on this... Bump ;-) On Fri, Oct 16, 2009 at 8:42 PM, Matt Feifarek matt.feifa...@gmail.comwrote: http://wiki.pylonshq.com/display/pylonscookbook/Pylons+Running+on+Google+AppEngine This how-to tries to get Pylons running on GAE with as little customization

Re: pylons on GAE long wake up time on first request

2009-10-22 Thread Matt Feifarek
On Wed, Oct 21, 2009 at 12:24 PM, Ben Bangert b...@groovie.org wrote: But the sad thing is that its definitely not unusual, nor limited to Pylons. Very good to know; may save some of us some wild goose chasing. --~--~-~--~~~---~--~~ You received this message

Re: map.connect to convert to GET parameters?

2009-10-23 Thread Matt Feifarek
On Fri, Oct 23, 2009 at 2:48 PM, d2ncal d2n...@gmail.com wrote: However, to get the above working, I will have to change the declaration of view() action in profile controller to accept username as an argument. It already check for username in 'GET'. I want to keep the old method working along

Re: Giving Google App Engine another go (fewer workarounds)

2009-10-28 Thread Matt Feifarek
On Sat, Oct 24, 2009 at 7:58 PM, Jason S. jas...@tuffmail.com wrote: This is a major rework of my GAE/Pylons article, which requires fewer steps now. There's no Paste patch, and it still uses a regular INI Better and better. The more I think about it, the more I would *prefer* to run in the

Re: Giving Google App Engine another go (fewer workarounds)

2009-10-28 Thread Matt Feifarek
On Wed, Oct 28, 2009 at 3:46 PM, Mike Orr sluggos...@gmail.com wrote: You can also disable other middlewares you're not using in middleware.py, such as sessions. Sessions are stored in datastore by buffet, right? Wouldn't one want to keep sessions? (I suppose it depends on the app, but most

Re: Giving Google App Engine another go (fewer workarounds)

2009-10-28 Thread Matt Feifarek
On Wed, Oct 28, 2009 at 4:44 PM, Mike Orr sluggos...@gmail.com wrote: Not Buffet. render_mako doesn't use Buffet. The older pylons.templating.render used Buffet. But Mako was designed to separate template lookup from rendering, so that you can drop in an alternate TemplateLookup class for

Re: redirect after download?

2009-10-29 Thread Matt Feifarek
On Thu, Oct 29, 2009 at 3:12 PM, Mike Orr sluggos...@gmail.com wrote: I would like to be able to redirect the user to another page after the download has been initiated, or at least put up a yay, it's finished page, but that doesn't appear to be possible. So I was What about turning

Re: New Pylons on AppEngine article in wiki

2009-11-01 Thread Matt Feifarek
On Thu, Oct 29, 2009 at 3:19 PM, reco r...@nex9.com wrote: just tried the wiki page i got the following probs: File lib/setuptools-0.6c11-py2.5.egg/pkg_resources.py, line 24, in module from os import utime, rename, unlink, mkdir ImportError: cannot import name mkdir INFO

Re: redirect after download?

2009-11-01 Thread Matt Feifarek
On Fri, Oct 30, 2009 at 1:06 PM, Mike Orr sluggos...@gmail.com wrote: Somehow this issue doesn't come up on other sites. I'm not sure if you have unusual requirements or you're not considering all the UI possibilities. Maybe it's because when people download something, daysyn, don't forget

Re: redirect after download?

2009-11-01 Thread Matt Feifarek
On Sun, Nov 1, 2009 at 1:03 PM, Mike Orr sluggos...@gmail.com wrote: Will that work with downloads? What if the download isn't finished by the refresh timeout? Interesting question. I don't know. Though, people like Sourceforge have been doing this for years. Maybe once the download

Re: redirect after download?

2009-11-02 Thread Matt Feifarek
On Mon, Nov 2, 2009 at 9:14 AM, Tim Bock jtb...@daylight.com wrote: I did note Matt's suggestion of the META tag in an earlier email, but a quick google search didn't yield anything that I was able to connect with downloading. But as you've indicated that this is a common If you

Re: New Pylons on AppEngine article in wiki

2009-11-02 Thread Matt Feifarek
On Sun, Nov 1, 2009 at 11:06 AM, Matt Feifarek matt.feifa...@gmail.comwrote: On Thu, Oct 29, 2009 at 3:19 PM, reco r...@nex9.com wrote: just tried the wiki page i got the following probs: File lib/setuptools-0.6c11-py2.5.egg/pkg_resources.py, line 24, in module from os import utime

Re: Syndication

2009-11-05 Thread Matt Feifarek
On Thu, Nov 5, 2009 at 5:39 PM, Mike Orr sluggos...@gmail.com wrote: I've implemented the feeds at http://incidentnews.gov/ , in both RSS and Atom. If somebody could check the HTML and feed XML for errors, I'd be grateful. There are permanent links in the page footer, temporary links in

Re: Context object list and controllers + html

2009-11-09 Thread Matt Feifarek
On Mon, Nov 9, 2009 at 4:47 PM, gazza burslem2...@yahoo.com wrote: from the c.chosenList: say the list is2,4 INPUT TYPE=hidden NAME=listitems VALUE=${c.chosenList} / Within testController: def test(self,id): locallist = request.params.get(listitems) for index,item in

Roadmap / 0.10 / 1.0

2009-12-18 Thread Matt Feifarek
First: I SINCERELY hope that I do not start a round of whining, because I am definitely NOT whining. I am grateful for Pylons and for the support of my betters in this list. I would ask that any responders to my message NOT use this as a jumping-off point for whining or bullying, because it is

Re: Roadmap / 0.10 / 1.0

2009-12-19 Thread Matt Feifarek
On Fri, Dec 18, 2009 at 7:41 PM, Mike Orr sluggos...@gmail.com wrote: There aren't any significant new features in tip from an application perspective, so there's little reason to use it now unless you want to Thanks for the clear, useful answer. -- You received this message because you are

GAE with SDK 1.30

2009-12-20 Thread Matt Feifarek
Has anyone tried the new release of the GAE SDK? I am basically following Jason's work here: http://countergram.com/articles/pylons-google-app-engine/ And I can get Pylons to run, but the interactive traceback doesn't work. First, it seems that one has to change the StatusCodeRedirect() line in

Re: GAE with SDK 1.30

2009-12-28 Thread Matt Feifarek
On Sun, Dec 27, 2009 at 5:32 PM, Ben Bangert b...@groovie.org wrote: The interactive traceback can't work as there's no guarantee the same machine will handle the same request, nor will GAE retain the process between requests with any certainty. Sure, but I'm talking about running on the SDK

Re: How extensible is AuthKit?

2010-01-05 Thread Matt Feifarek
On Mon, Jan 4, 2010 at 11:57 AM, James Gardner ja...@pythonweb.org wrote: One tip though, I now believe using exceptions to trigger the 401 and 403 responses and then intercepting them in WSGI middleware is not a good design pattern. New code I'm working on generates a normal response in the

Upgraded to Pylons==dev, getting traceback from pkg_resources

2010-01-05 Thread Matt Feifarek
I upgraded a working Pylons 0.9.7 app to the new semantics from Pylons 1.0 (via pip install pylons==dev). When I try to run the appserver, I get a traceback: $ paster serve --reload localpylons.ini Traceback (most recent call last): File /home/work/Mayhem/web/pylonsve/bin/paster, line 9, in

Re: Upgraded to Pylons==dev, getting traceback from pkg_resources

2010-01-05 Thread Matt Feifarek
On Tue, Jan 5, 2010 at 11:13 PM, Matt Feifarek matt.feifa...@gmail.comwrote: I upgraded a working Pylons 0.9.7 app to the new semantics from Pylons 1.0 (via pip install pylons==dev). When I try to run the appserver, I get a traceback: Here's an easily reproducible case: *w...@dude

Re: Upgraded to Pylons==dev, getting traceback from pkg_resources

2010-01-06 Thread Matt Feifarek
On Wed, Jan 6, 2010 at 12:13 AM, Mike Orr sluggos...@gmail.com wrote: That's what I hate about Paste and entry points and pkg_resources. + 1Jillion. Thanks for your suggestions. I tried all of those things; I even removed the version numbers in my app (from Pylons=0.9.7 to just Pylons) but

Re: Can an app be debugged without constantly reloading the server?

2010-02-17 Thread Matt Feifarek
I haven't used it with Pylons (yet) but Wing does have that nifty remote debugging feature. Have you tried that? On Tue, Feb 16, 2010 at 8:46 AM, Jamie jjbe...@gmail.com wrote: Thanks, but unfortunately automatic reloading doesn't normally work correctly from within the IDEs I've tested:

Re: WSGI at PyCon

2010-02-18 Thread Matt Feifarek
On Wed, Feb 17, 2010 at 5:20 PM, Mike Orr sluggos...@gmail.com wrote: I've written up a semi-radical proposal to replace Pylons' WSGI stack with a WebOb-based stack, so this will also be among the discussions. With the impasse on getting WSGI to Python 3, some of us are impatient to just go

Re: Pylons and images from database

2010-02-24 Thread Matt Feifarek
On Tue, Feb 23, 2010 at 4:08 PM, gazza burslem2...@yahoo.com wrote: I think I've opted to store on disc. I guess there are two camps regarding this. If you're worried about filename integrity (including full path) you can hash the files and store the fingerprints. I've done that before; works

Re: truncated responses for some browsers?

2010-03-08 Thread Matt Feifarek
On Mon, Mar 8, 2010 at 3:53 PM, joesgroups joes.mailing.li...@gmail.comwrote: This seems like a pretty heinous error, is there really no feedback on it? Is there any additional information I could supply? Again this problem doesn't occur with wget, but occurs with most browsers. To test

Re: truncated responses for some browsers?

2010-03-08 Thread Matt Feifarek
On Sat, Mar 6, 2010 at 8:03 AM, joesgroups joes.mailing.li...@gmail.comwrote: return http://www.google.com/search?test; The result is that in firefox or safari the browser shows, http://m.google.com/se This may be a typo, but you see that those are not just one truncated to the other,

Re: best practices when writing controllers

2010-04-05 Thread Matt Feifarek
On Mon, Apr 5, 2010 at 10:34 AM, Mike Orr sluggos...@gmail.com wrote: Philosophically, the model shouldn't have any structural (WSGI- or HTTP-specific) or UI (HTML-specific) code in it. The input values are coming from POST parameters, which the model shouldn't know about. The model

Re: DOS attacks

2010-04-07 Thread Matt Feifarek
On Tue, Apr 6, 2010 at 6:45 PM, gazza burslem2...@yahoo.com wrote: I was told to use mod evasive with apache? I dont have any firewall I'm running on a VPS on linux with a pylons web server. If indeed it is small numbers of IPs, don't forget about tcpwrappers (hosts.allow and hosts.deny);

Re: Advanced/complex form design strategies in Pylons (vs Django)

2010-04-10 Thread Matt Feifarek
On Sat, Apr 10, 2010 at 9:12 AM, Marius Gedminas mar...@gedmin.as wrote: Maybe I'm tilting at windmills here and should just 'go with the flow' - however I'd be interested in hearing feedback from others on this. Are there any specific features of Pylons that improve over this default

Re: YUI CSS grids deprecated in 3.1?

2010-04-26 Thread Matt Feifarek
On Sat, Apr 24, 2010 at 3:21 PM, JohnWShipman j...@nmt.edu wrote: Should I stay with 2.8.0r4? Can anyone tell me why this package is deprecated, or suggest a suitable alternative that has the features of YUI's CSS Reset stylesheet and a grid layout? First, notice that Reset (and Fonts) has

Re: YUI CSS grids deprecated in 3.1?

2010-04-26 Thread Matt Feifarek
On Mon, Apr 26, 2010 at 1:29 PM, Jens Hoffrichter jens.hoffrich...@gmail.com wrote: We have worked now for a couple of projects with Blueprint, http://www.blueprintcss.org/ - I can really recommend that, it makes I really like the ideas of Blueprint and also the 960 one mentioned earlier.

Re: helpers and link_to

2010-05-17 Thread Matt Feifarek
On Mon, May 17, 2010 at 11:10 AM, gazza burslem2...@yahoo.com wrote: [${h_link_to('review order',h.url_for(controller='client',action='clientorderlist',id=c.id))}] Can't you just to the following? ${h_link_to('review order', 'span%s/span' %

Re: __after__() to return response

2010-05-18 Thread Matt Feifarek
On Tue, May 18, 2010 at 12:23 PM, Melih Onvural melih.onvu...@gmail.comwrote: However, it looks as if I do: def __after__(self): return render(/api/apiresponse.xml) It isn't actually pushing it back as the response to the call. Is this possible with Pylons? I think Pylons expects

Re: Simple POST with JSON as the body of the request.

2010-06-01 Thread Matt Feifarek
This firefox plug-in is nice for this sort of debugging: https://addons.mozilla.org/en-US/firefox/addon/2691/ https://addons.mozilla.org/en-US/firefox/addon/2691/ -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send

  1   2   >