I found this just right now,
http://niallohiggins.com/2009/12/21/autocomplete-with-python-pylons-sqlalchemy-and-jquery/
Its kinda like magic for me right now. For deform, is this the part
that actually calls the python function/view? ()
deform.addCallback(
All you have to do is override templates/sequence.pt and pass the repeat
variable through rndr. The exact line you'll have to edit is this one:
div tal:repeat=tup subfields tal:replace=structure rndr(item_tmpl,
field=tup[1], cstruct=tup[0], parent=field) /
Here you can pass any variable (in
Hi,
I'm trying to generate a custom 404 view for my application. I've read:
https://pylonsproject.org/projects/pyramid/dev/narr/hooks.html#changing-the-notfound-view
However, I want to be able to have the 404 use a Chameleon template with
macros and so forth in order to fit in with the overall
On Tue, 2011-09-13 at 15:05 +0100, Benjamin Sims wrote:
Hi,
I'm trying to generate a custom 404 view for my application. I've
read:
https://pylonsproject.org/projects/pyramid/dev/narr/hooks.html#changing-the-notfound-view
However, I want to be able to have the 404 use a Chameleon
I'm using a HiddenWidget to pass a CSRF token in a deform form.
I've noticed that when the CSRF token is wrong, at the top of
the re-displayed form I get:
There was a problem with your submission
Errors have been highlighted below
But the error isn't highlighted below.
Is this a bug or am I
I have a question about deploying a Pyramid app to multiple application
servers. My personal preference is to check out the code from SVN
directly into production, but that's not the issue here. The virtualenv
and dependencies are the issue.
Some deps come with extensions that need to be
I am trying to store a session factory in the apps settings object,
following this:
https://docs.pylonsproject.org/projects/pyramid_cookbook/dev/sqla.html#using-a-non-global-session
Below is my code, copied and pasted:
# request.py
from pyramid.request import Request
from pyramid.decorator
This is a subtle error that is on the docket to get fixed in the future. The
issue here is that the settings stored by Pyramid is a *copy* of the dict
you passed to the Configurator. Thus any modifications you do to the
original dict are irrelevant.
Either modify your setup code to mutate the
I see. That clears it. So can you clarify what you mean by mutating
the settings? could you provide an example? Thank you very much for
your reply.
On Sep 13, 9:51 pm, Michael Merickel mmeri...@gmail.com wrote:
This is a subtle error that is on the docket to get fixed in the future. The
issue
Thanks Chris, that works great.
Sorry for the follow on question, but is there a similar way to handle
Python errors/500?
I have set up pyramid_exclog to send any errors to me by email. I also have
the following lines in my ini:
[pipeline:main]
pipeline =
tm
myapp
[filter:weberror]
Ok I get what you mean by mutate now! Okay I have resolved it thanks!
On Sep 13, 10:13 pm, AwaisMuzaffar awais1...@googlemail.com wrote:
I see. That clears it. So can you clarify what you mean by mutating
the settings? could you provide an example? Thank you very much for
your reply.
On Sep
The way to think about this is that Pyramid is at the end of a WSGI
pipeline. It supports a way for catching and handling any exceptions that
occur within Pyramid itself via exception views. You have seen one exception
view already via the HTTPNotFound exception. You may add an exception view
for
Hello All,
I've got a controller that acts as a API service for some devices. The
devices exchange simple json messages with the API. The problem I have is
that after a while there are so many beaker session files in my tmp
directory that the app start to fail, too many inodes. I did find
i am complete newb with chameleon (downloaded 30 minutes ago) and am
having a problem with basic use.
based on the docs,
http://chameleon.repoze.org/docs/latest/library.html#getting-started
i do (in python 2.7.1)
from chameleon import PageTemplate
template = PageTemplate(divHello,
On Sep 13, 4:08 pm, ru...@yahoo.com ru...@yahoo.com wrote:
i am complete newb with chameleon (downloaded 30 minutes ago) and am
having a problem with basic use.
based on the docs,
http://chameleon.repoze.org/docs/latest/library.html#getting-started
i do (in python 2.7.1)
from chameleon
You lost the $ before {name}
the variables in chameleon must be started with a '$'
~
On 9月14日, 上午6时08分, ru...@yahoo.com ru...@yahoo.com wrote:
i am complete newb with chameleon (downloaded 30 minutes ago) and am
having a problem with basic use.
based on the
16 matches
Mail list logo