Hello, John,
Just tested your case with Pylons 0.9.6.1 and it works. Upade pylons
with "easy_install -U pylons" maybe that will help. If it's default
project it should work.
--
Dalius
http://blog.sandbox.lt
--~--~-~--~~~---~--~~
You received this message because
That results in the same error. I've tried that previously and a few
other variations. I've also tried hard coding the URL
redirect_to('/test_redirect')
From what I can tell, based on my few days looking a Pylons, the
redirect_to is raising its exception correctly, but it isn't getting
ha
>
>
> class TestRedirectController(BaseController):
>
> def index(self):
> return "Hello, world!"
>
> def redirect(self):
> return redirect_to(action='index')
>
Try redirect_to(h.url_for(action='index')). redirect_to expects string IMHO.
--
Dalius
http://blog.sandbox.lt
Hi,
I've been struggling with this for days now. The documentation at http://wiki.pylonshq.com/display/pylonsdocs/Form+Handling
gives a simple use of redirect_to.
But no matter what I do, the HTTPFound exception is not getting caught!
Module pylons.error:245
in respond
<<
On Sep 29, 9:31 pm, Adrian Schmitt <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> i am wondering how to build a production server on a debian sarge or
> etch machine.
>
> I have read somewhere that mod_python is not able to do wsgi. (There
> is some workaround but it did not feel like an option to me)
>
> T
Now that there is a global response object floating around, what is
the correct way to return a non-200 status code?
Thanks!
jw
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to thi
I have a form that I use to capture and display user data, I would
like the user to submit the form, a controller saves the data and re-
render the filled in data in the same form, so I just redirect the
form to itself, strangely this does not work, is this the wrong way to
do this?
Thanks
--~
By the way, just wonder if you are asking the same question:
If it is not the problem of log, than maybe you are getting nothing
from wsgi-input because:
1) From paste implementation, if the header Content-Type shows that it
is normal form, it will read the wsgi-input and cleared the buffer.
2)
On Oct 1, 2007, at 2:02 PM, Mike Orr wrote:
Ben, can we get a list on the web of all the Pylons-related
repositories and their URLs, including
release/development/experimental branches? I'm getting confused
between the various repositories and two domains. For instance, "the
0.9.6.XX branch" ab
"Mike Orr" <[EMAIL PROTECTED]> writes:
> I took a quick look at AsciiDoc. My only concern is that Python is
> getting more and more text markup formats. ReStructured Text has
> been considered the emerging standard. AsciiDoc's syntax looks like
> a simplification of ReST in some aspects (exact
> It works for me, and the syntax looks correct.
Thank you very much for checking, that verifies
any problems *are* on my end.
> The only things I can think of are:
I will try these, thank you.
> My computer is running Pylons 0.9.6.1, Mako 0.1.8, Python 2.5.1, on
> Kubuntu Linux 7.04.
Ah.
On 10/1/07, Yannick Gingras <[EMAIL PROTECTED]> wrote:
> What features a
> documentation rendering system should have for you to adopt it?
I took a quick look at AsciiDoc. My only concern is that Python is
getting more and more text markup formats. ReStructured Text has been
considered the emer
On 10/1/07, Leo <[EMAIL PROTECTED]> wrote:
> Is there any module for user activity logging? To see referrers and
> pages they visit, for example.
Paste has a translogger that produces the common logfile format with
the referrer. Put the following in middleware.py:
from paste.translogger import
On 10/1/07, zunzun <[EMAIL PROTECTED]> wrote:
>
> This is a newbie question: At the Pylons Wiki page 'Getting Started'
>
> http://wiki.pylonshq.com/display/pylonsdocs/Getting+Started
>
> the section'6 Templates and the Request Cycle ' has an
> example Mako template that should display a
On 9/29/07, Adrian Schmitt <[EMAIL PROTECTED]> wrote:
> i am wondering how to build a production server on a debian sarge or
> etch machine.
I'm using mod_proxy on Ubuntu, with Supervisor 3.0a2 to manage the
Pylons (and Quixote) applications. To me, ProxyPass is simpler -- and
thus less error-pr
> On 9/29/07, Ben Bangert <[EMAIL PROTECTED]> wrote:
> > Ah, yes we have moved Pylons to Mercurial, there's the 0.9.6.XX branch
> that tracks hot-fixes and generally has no new features (and definitely
> nothing that would break compatibility!). There's also the pylons-dev
> branch, which tracks t
Is there any module for user activity logging? To see referrers and
pages they visit, for example. Or manual how to log sqlalchemy for
each session.
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"pylons-di
JD wrote:
> Hi folks
>
> I'm trying to use paste fixture to test some functionality that
> absolutely MUST have stuff in the session to provoke the behaviour I'm
> looking for.
>
> I know that fixture doesn't save the session after each request, so
> I'm looking for a way to pre-populate the ses
stupid question: I'm trying to launch a background process from a
Pylons controller, using the Python subprocess module in response to a
hit from a browser.
Funny thing is that Pylons seems to hold the browser connection open
until the subprocess has completed - even though I'm running the
proces
I've done this lots of times, especially for dynamically generated
images. The steps I usually follow are:
1) get your binary data into StringIO,
2) set your content type to the correct header
(response.headers['Content-type'] = 'image/jpeg'
3) return the binary data (return STringIO.StringIO.get
On Sep 30, 2:13 pm, mickolka <[EMAIL PROTECTED]> wrote:
> In general the task is to create a controller that will resize images
> availiable on the file system on demand providing thumbnails. I'm
> going to use PIL for this the only problem for me is how to return
> result to user, whould be grea
On Sep 30, 2:13 pm, mickolka <[EMAIL PROTECTED]> wrote:
> In general the task is to create a controller that will resize images
> availiable on the file system on demand providing thumbnails. I'm
> going to use PIL for this the only problem for me is how to return
> result to user, whould be grea
This is a newbie question: At the Pylons Wiki page 'Getting Started'
http://wiki.pylonshq.com/display/pylonsdocs/Getting+Started
the section'6 Templates and the Request Cycle ' has an
example Mako template that should display a couple of server
values, but does not do so for me. Here
Greetings Pyloneers,
The current Pylons templates set Pudge as a documentation formatter
for Pylons projects. Pudge does basically two things:
1) it renders to HTML .txt file formated in restructured text;
2) it extracts docstrings and produce javadoc-style internal
documentation.
Ascii
Daniele Paolella wrote:
> I tried this with Elixir revision 216 and SA 0.4.0 beta 6, but I
> got breaks here and there. Since Session.commit() won't work with
> non-transactional Session, I tried upgrading configuration:
Sorry, I didn't take a close look at my project before typing up that
last
Hi,
> i am wondering how to build a production server on a debian sarge or
> etch machine.
>
...
>
> There is a mod_wsgi but that seems quite young.
I'm using it for two months and have had no problems with mod_wsgi (on
Debian). While I use it only for my blog engine I'm going to use it
for other
On 27 Set, 19:59, Jonathan LaCour <[EMAIL PROTECTED]>
wrote:
>
> import elixir
>
> Session = elixir.session
> metadata = elixir.metadata
>
I tried this with Elixir revision 216 and SA 0.4.0 beta 6, but I got
breaks here and there.
Since Session.commit() won't work with non-transact
On 27 Set, 19:59, Jonathan LaCour <[EMAIL PROTECTED]>
wrote:
>
> import elixir
>
> Session = elixir.session
> metadata = elixir.metadata
>
I tried this with Elixir revision 216 and SA 0.4.0 beta 6, but I got
breaks here and there:
since Session.commit() won't work with non-transact
> On a debian production web server I could imagine doing the same -
> using the built in "paster serve" and controlling it via daemontools
> (or maybe via monit)
You may consider runit. It does exactly the same what daemontools, but
is easier to install (you must compile daemontools and they use
On 9/29/07, Ben Bangert <[EMAIL PROTECTED]> wrote:
>
> On Sep 27, 2007, at 4:58 PM, Waldemar Osuch wrote:
>
> I have noticed that you switched the version control to Mercurial.
> Is it a permanent change?
>
> The question is motivated by curiosity only. I did not notice any
> discussion on the lis
30 matches
Mail list logo