David,
> In an application I have, each request generates a temporary .png file
> containing custom data which is served only once. Is there a way in
> pylons to delete this file right after it has been completely
> transmitted to the requesting browser?
a python tempfile would be one way (http:
On Oct 4, 8:22 pm, Ben Bangert <[EMAIL PROTECTED]> wrote:
> There are 2 leaks present in the latest Pylons, both of them in
> dependent packages Paste and Beaker. The Beaker one can leak rapidly
> depending on what you're doing, while the Paste leak occurs during
> 404 and other errors (which co
Hi,
when using file uploads I get strange connection resets.
The affected form contains the following element:
The controller handling the file looks like this:
class FileController(BaseController):
def read_file(self):
data_file = request.POST['data_file']
return "done"
s
I have to collect a lot od data from users, the forms used are
separate but interconnected. This has me coding for every form, a
processing function and a "display form" function in the controllers
and then both functions have to be defined in the routes
configuration, is there some cleaner and l
John_Nowlan wrote:
> Taken from:
>
> http://wiki.pylonshq.com/display/pylonsdocs/Unit+Testing
>
> Is this still true? I can't find a ticket on this. Is it something that
> a non-expert might be able to work on? Any pointers?
I'm guessing if it was ever true, and I suppose it was, it was the
sc
Taken from:
http://wiki.pylonshq.com/display/pylonsdocs/Unit+Testing
Is this still true? I can't find a ticket on this. Is it something that
a non-expert might be able to work on? Any pointers?
--~--~-~--~~~---~--~~
You received this message because you are subsc
short snippet of what i would like to do
def action(self)
myc = c._current_obj()
myg = g._current_obj()
def stream()
yield render('/something.mako')
yield render('/somethingelse.mako')
return stream()
i ca
My apologies, I didn't pay close attention to your issue. I have my
files stored outside of the project directory but I've pasted the
relevant parts that may help..
Just as example this is part of my uploading controller:
def upload(self, environ):
myfile = request.POST['myfile']
fileNam
Ken,
thanks for your reply.
> I would recommend using fileapp to handle file uploads.
If I got the docs right, fileapp is intended to support sending file
content from the server to the browser. My problem is related to the
other direction (a user uploads a client-local file to the server via
t
On Thu, 2007-10-11 at 20:12 +, david wrote:
> Hi,
>
> In an application I have, each request generates a temporary .png file
> containing custom data which is served only once. Is there a way in
> pylons to delete this file right after it has been completely
> transmitted to the requesting br
short snippet of what i would like to do
def action(self)
myc = c._current_obj()
myg = g._current_obj()
def stream()
yield render('/something.mako')
yield render('/somethingelse.mako')
return stream()
i ca
I would recommend using fileapp to handle file uploads.
from paste import fileapp
On 10/12/07, Clemens Hermann <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> when using file uploads I get strange connection resets.
> The affected form contains the following element:
>
>
> The controller handling the fi
Tried this:
easy_install -U Pylons
..
Best match: Pylons 0.9.6.1
..
Best match: simplejson 1.7.3
...
error: Setup script exited with error: The .NET Framework SDK needs to
be installed before building extensions for Python.
Hmm, so I need not just a C compiler but the whole .NET SDK.
After poking
Well, I guess I wasn't completely clear. And maybe I am leading to an
answer to my own question
Currently, during the request, I generate the temp .png file, and an
html page which references the file via something like . It is the *html* which is sent to the browser
at this time. When the
I would actually do things a little differently. Rather than using a
separate controller for each step, I would combine all the steps into
one controller because a lot of the data is going to be shared.
Each page would be rendered simply by rendering a different template.
Your program state will
Actually thats what I meant, different functions in one controller,
its just that I have two functions for each step, one to render the
form and one to save and process the data. Hidden variables? I have
been trying my best to avoid those. You mention in your blog this:
"Each page in the wizard w
Greetings Pyloneers,
I'm still working on deployment and I'd like to tweak the generated
.ini before I spit it out to a user when he does
paster make-config theapp
I know I can package a custom `paste_deploy_config.ini_tmpl` with all
my added fields but I'd like to push it a bit further an
here is my current, though not optimal, solution.
the templates don't have to be rewritten (maintain c and g and other
template includes), and they will still work with other pylon
controllers
def action(self)
myc = c._current_obj()
myg = g._current_obj()
def stream()
f
18 matches
Mail list logo