Hosting behind apache, not on root

2008-09-18 Thread Sean Davis
I have an application that runs fine from the development server. Now, I want to run it behind apache (I think I know how to do that), but how can I tell Routes, etc., that the root for the application now has a couple of extra path elements in it? In other words, on the development standalone

REST, filtering, and related resources

2008-06-20 Thread Sean Davis
I am developing a little application for some data management of a laboratory workflow. We have java, c++, Matlab, and R programmers as well as non-programmers. Therefore, I was planning on a web/web- services approach using REST approaches. It seems that dealing with single collections is

Firefox XUL and pylons

2007-06-21 Thread Sean Davis
I was shown a demo app using XUL as the front-end GUI and a java-based server side. The XUL generation looks pretty straightforward, but I wondered if there were any hints on producing such an application using Pylons on the server-side. Has anyone tried this? Does such a setup make sense?

Re: Pylons under mod_wsgi

2007-04-19 Thread Sean Davis
On 4/18/07, Graham Dumpleton [EMAIL PROTECTED] wrote: On Apr 18, 11:39 pm, Sean Davis [EMAIL PROTECTED] wrote: Just a simple question: It looks to me like each pylons application gets one-and-only-one interpreter under mod_wsgi. This implies that globals have the same behavior

Re: Pylon with Apache

2007-04-19 Thread Sean Davis
On 4/19/07, durumdara [EMAIL PROTECTED] wrote: ActiveRecord is a Ruby-on-Rails concept, although there are parallel ideas in any Object-Relational-Mapper, of which SQLObject and SQLAlchemy are two. There are not predefined views based on these in Pylons. You can certainly

Re: Pylon with Apache

2007-04-18 Thread Sean Davis
On 4/18/07, durumdara [EMAIL PROTECTED] wrote: Shannon -jj Behrens írta: 4. To deal with the reload problem, *in development* I like to set Apache's MaxRequestsPerChild to 1. Yes, this is the only way to get out from Module Reloading hell. But I don't know that this MaxRequestsPerChild

Pylons under mod_wsgi

2007-04-18 Thread Sean Davis
Just a simple question: It looks to me like each pylons application gets one-and-only-one interpreter under mod_wsgi. This implies that globals have the same behavior as with the standalone server (and is distinctly different from what would happen under mod_python, I think). I ask because I

Re: Pylon with Apache

2007-04-17 Thread Sean Davis
On 4/17/07, durumdara [EMAIL PROTECTED] wrote: Hi! Jose Galvez írta: as fare as odbc is concerned, pylons or any other web framework really has nothing to do with it, thats up to python and DB2 support. If your on the windows platform ODBC can be done with the win32all package and

[OT] backend processing of large jobs

2007-04-12 Thread Sean Davis
I have what is probably a pretty common situation. The user submits a file for processing to my application. It takes many minutes to process this file, so I would like to submit this file as a job to a backend server that can queue up the files as they come in, process them, maintain status

Re: [OT] backend processing of large jobs

2007-04-12 Thread Sean Davis
On 4/12/07, Alberto Valverde [EMAIL PROTECTED] wrote: On Apr 12, 2007, at 2:33 PM, Sean Davis wrote: I have what is probably a pretty common situation. The user submits a file for processing to my application. It takes many minutes to process this file, so I would like to submit

Re: really slow mod_python pylons pages? (the endless 'production' configuration quest)

2007-02-21 Thread Sean Davis
On 2/20/07, Graham Dumpleton [EMAIL PROTECTED] wrote: Sean Davis wrote: On 2/19/07, John_Nowlan [EMAIL PROTECTED] wrote: The author of mod_python just released (and I haven't tried it, so this is empty advertising) mod_wsgi. You might want to look into it. It could potentially

Re: really slow mod_python pylons pages? (the endless 'production' configuration quest)

2007-02-20 Thread Sean Davis
On 2/19/07, John_Nowlan [EMAIL PROTECTED] wrote: Anyone run into the problem of really, really slow mod_python pylons pages? I.e. paster serve is 1s, but under mod_pyton is 10s? I had to create a virtual python installation and create various symbolic links across file systems to get

Re: popup window feedback to main window

2007-02-06 Thread Sean Davis
On 2/5/07, Shannon -jj Behrens [EMAIL PROTECTED] wrote: On 2/3/07, Sean Davis [EMAIL PROTECTED] wrote: I have a single page for creating/editing an object with foreign keys to several other smaller tables. When the user is working on the main page, I would like to let him/her have

Error with pylons app on newest Paste

2007-02-01 Thread Sean Davis
Hi, all. I just upgraded to paste 1.2 and started getting these errors. The same code works on paste 1.1.1. I can try posting to a paste list, if nothing obvious comes up here, as I think this is probably a Paste issue. Any thoughts? Thanks, sean Module pylons.error:*226* in respond

Small query language?

2007-01-26 Thread Sean Davis
I would like to build a small app akin to a filemaker database, but web-based, of course. One nice feature of filemaker is the ability to search based on pretty much any field (or combination). I know how to do the searches, but I would like to make a simple query language (things like 2..3, 3,

[ROUTES] map.resource and method case

2007-01-05 Thread Sean Davis
I have been using the relatively new map.resource, which is fantastic. It really enforces a clean API quite nicely. I have one small qualm, though. I think that Routes expects the method to be uppercase. This seems to be at odds with common practice (and perhaps even some standard) that does

Re: [ROUTES] map.resource and method case

2007-01-05 Thread Sean Davis
On 1/5/07, Philip Jenvey [EMAIL PROTECTED] wrote: On Jan 5, 2007, at 6:30 AM, Sean Davis wrote: I have been using the relatively new map.resource, which is fantastic. It really enforces a clean API quite nicely. I have one small qualm, though. I think that Routes expects the method

Re: [ROUTES] map.resource and method case

2007-01-05 Thread Sean Davis
On 1/5/07, Ben Bangert [EMAIL PROTECTED] wrote: On Jan 5, 2007, at 6:30 AM, Sean Davis wrote: I have been using the relatively new map.resource, which is fantastic. It really enforces a clean API quite nicely. I have one small qualm, though. I think that Routes expects the method

upload progress bar

2007-01-04 Thread Sean Davis
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 might be done? It looks like I need to use an iframe for the actual upload, an AJAX call to stat the filesize on a regular basis, and a way to read the

Re: RESTful applications

2007-01-01 Thread Sean Davis
On 1/1/07, Robert Ian Smit [EMAIL PROTECTED] wrote: REST gets a lot of press these days, it seems. However, I haven't found many examples of how it works in practice. It seems that put and delete methods need to be called via XMLHttpRequest (AJAX). Pylons and some other frameworks can

RESTful applications

2006-12-31 Thread Sean Davis
REST gets a lot of press these days, it seems. However, I haven't found many examples of how it works in practice. It seems that put and delete methods need to be called via XMLHttpRequest (AJAX). That means changing the way that at least I think about web applications. No longer is it a

SqlSoup under pylons

2006-12-22 Thread Sean Davis
I have a general lack of understanding of what the process of startup and threading is in pylons (I'm trying to learn, but there is a fair bit to it, it seems). I would like to give my app (or at least my controllers) access to a SqlSoup object defined based on a sqlalchemy.dburi in my .ini

file mime-type question

2006-12-20 Thread Sean Davis
This is a bit off-topic, but I haven't found a direct answer anywhere. I would like to make a simple CMS that allows upload of a file. A form gathers associated metadata. The files are stored on disk with unique names. The user can then download the file at a later time after searching the

Re: file mime-type question

2006-12-20 Thread Sean Davis
On 12/20/06, Ian Bicking [EMAIL PROTECTED] wrote: Sean Davis wrote: This is a bit off-topic, but I haven't found a direct answer anywhere. I would like to make a simple CMS that allows upload of a file. A form gathers associated metadata. The files are stored on disk with unique names

Re: SQLAlchemy, Again

2006-12-18 Thread Sean Davis
On 12/11/06, Ben Bangert [EMAIL PROTECTED] wrote: On Dec 11, 2006, at 3:25 PM, Sean Davis wrote: Unfortunately, I did. I just got a working example running without any of the config stuff working--the model has a hard-coded dsn in it right now. I can work backwards from that toward

Error importing kid from example

2006-12-11 Thread Sean Davis
I am in the process of moving over from Catalyst on the perl side to Pylons (yeah!!!). I am working with the simple example code in the Docs to include kid templating. I have modified the middleware.py file as suggested on that page. I used easy_install to install kid and can import it just

Re: Error importing kid from example

2006-12-11 Thread Sean Davis
On 12/11/06, Sean Davis [EMAIL PROTECTED] wrote: I am in the process of moving over from Catalyst on the perl side to Pylons (yeah!!!). I am working with the simple example code in the Docs to include kid templating. I have modified the middleware.py file as suggested on that page. I used

Re: Error importing kid from example

2006-12-11 Thread Sean Davis
On 12/11/06, James Gardner [EMAIL PROTECTED] wrote: Hi Sean, I expect you are missing the TurboKid package. You can install it manually with: easy_install TurboKid or, as is the case with all of the optional Pylons packages you can do: easy_install -U Pylons[kid] The

Re: Error importing kid from example

2006-12-11 Thread Sean Davis
On 12/11/06, James Gardner [EMAIL PROTECTED] wrote: Hi Sean, Thanks, James. Just a quick link on that page back to the install instructions would be helpful, although it is quite obvious on the install page that this needs to be done for kid templates to work. No problem, I've updated

Re: SQLAlchemy, Again

2006-12-11 Thread Sean Davis
On 12/11/06, Shannon -jj Behrens [EMAIL PROTECTED] wrote: On 12/11/06, Sean Davis [EMAIL PROTECTED] wrote: Despite a couple of days of reading and typing, I remain at a loss as to how to go about implementing SQLalchemy as a model using reflection. Does anyone have any complete examples

Re: SQLAlchemy, Again

2006-12-11 Thread Sean Davis
On 12/11/06, Ben Bangert [EMAIL PROTECTED] wrote: On Dec 11, 2006, at 3:25 PM, Sean Davis wrote: Unfortunately, I did. I just got a working example running without any of the config stuff working--the model has a hard-coded dsn in it right now. I can work backwards from that toward

routes dispatch examples

2006-12-06 Thread Sean Davis
I am relatively new to python web development (moving over from perl catalyst and cgi::application). I have not used Rails, but routes seems like a rational way to structure URLs within the application. However, I am working on a simple web framework to run under mod_python. I was wondering if