OK,
I wrote up this page http://www.openvest.com/trac/wiki/PylonsJsonify
becuase in moving code from Turbogears to Pylons, I really wanted some
ready made json functionality.
Just thru ti together and haven't given it a through road test yet.
In short: check the link. It only takes a half doze
I have memory usage increases between 100 and 120 MB when I start my
Pylons app, are these values normal?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to
Yannick Gingras <[EMAIL PROTECTED]> writes:
> I can't get pudge to work on 0.9.6.
The pudge command is disabled by default, I had to activate it with
setup.py addcommand -p buildutils.pudge_command
which was not mentioned in docs/index.txt. I made a patch for
index.txt:
http://pylonshq.c
On Tue, Oct 02, 2007 at 01:08:34AM -0600, Philip Cooper wrote:
> I wrote up this page http://www.openvest.com/trac/wiki/PylonsJsonify
Quoting:
* The reason is that the return from a controller method is a call to
* render_response.
This isn't quite true. You could send a "Response()" object con
On Oct 1, 5:41 pm, zunzun <[EMAIL PROTECTED]> wrote:
>
> Ah. I am using the 7.10 beta with the default versions
> for Gutsy Gibbon, downloaded and updated to be current
> as of last night. "A Likely Suspect!", he thinks to himself...
Verified. Ubuntu 7.10 beta has an older version of Pylons.
Doing a clean install on my windows box at work, redirect_to works just
fine.
On my home linux machine, I've got a bunch of cruft in my site-packages
as I had attempted to use Turbogears2.0 a couple of weeks ago and had to
install a bunch of packages from subversion. I removed Pylons* from
site
On 10/2/07, John Lavoie <[EMAIL PROTECTED]> wrote:
>
> Doing a clean install on my windows box at work, redirect_to works just
> fine.
OK. At least it is step forward :)
> I removed Pylons* from
> site-packages and re-installed with easy_install. Same problem. What
> other dependencies would be
On Oct 2, 2007, at 3:42 AM, Christoph Haas wrote:
>
> On Tue, Oct 02, 2007 at 01:08:34AM -0600, Philip Cooper wrote:
>> I wrote up this page http://www.openvest.com/trac/wiki/PylonsJsonify
>
> Quoting:
>
> * The reason is that the return from a controller method is a call to
> * render_response.
I dug around and discovered:
pylons.response.status_code = 404 # or whatever you want to use.
jw
On Oct 1, 10:07 pm, "programmer.py" <[EMAIL PROTECTED]> wrote:
> Now that there is a global response object floating around, what is
> the correct way to return a non-200 status code?
>
> Thanks!
>
On Tue, 2007-10-02 at 02:17 +, voltron wrote:
> 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
No I fill in the form using Pylons c global and the request
variables. I use formencode for the bigger forms
On Oct 2, 4:24 pm, David Turner <[EMAIL PROTECTED]> wrote:
> On Tue, 2007-10-02 at 02:17 +, voltron wrote:
> > I have a form that I use to capture and display user data, I would
> >
Post code.
On Tue, 2007-10-02 at 14:41 +, voltron wrote:
> No I fill in the form using Pylons c global and the request
> variables. I use formencode for the bigger forms
>
> On Oct 2, 4:24 pm, David Turner <[EMAIL PROTECTED]> wrote:
> > On Tue, 2007-10-02 at 02:17 +, voltron wrote:
> >
On Oct 1, 2007, at 9:56 PM, John Lavoie wrote:
>
> Module pylons.controllers.core:81 in _inspect_call
> < httpe.code,
> exc_info=True)
> result = httpe.response(pylons.request.environ)
>
On wtorek 02 października 2007, Philip Cooper wrote:
> True, but if I knew I wanted json, the current decorator is ok. You
> are right about sending a Response() object but in practice, you
spend
> time in your method gathering up or creating data, (into "c" in
pylons)
> and render that in
Cezary Statkiewicz at about 10/2/07 12:07 PM said:
> You could achieve this in this way: make method which would return
> only data and wrap it with jsonifying method or templating method:
>
> from pylons.decorators import jsonify
>
> class MyController(BaseController): def __get_data(self, *par
Thanks a lot.
Hard to realize after java that string and bytes can be the same :)
I will think about which approach is better, Probably saving files in
public area might be also a good idea
On Oct 1, 7:51 pm, Jose Galvez <[EMAIL PROTECTED]> wrote:
> I've done this lots of times, especially for dy
On 2 oct, 04:17, voltron <[EMAIL PROTECTED]> wrote:
> 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 do
you can try os.system("mycmd &")
huy
> 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 h
That was the problem. I had eggs for 1.1 versions of Paste, PasteDeploy
and PasteScript along with recent eggs of the same packages installed.
Thanks Philip and Dalius for the help!
John
Philip Jenvey wrote:
> On Oct 1, 2007, at 9:56 PM, John Lavoie wrote:
>
>> Module pylons.controllers.co
Greetings Pyloneers,
We see a log of people on #pylons who try to put unicode content in
QuickWiki and immediately think that Pylons sucks at unicode. There
is no reason for that, Pylons is probably the framework with the most
transparent unicode support out there; it's just that QuickWiki, f
20 matches
Mail list logo