Just wanted to note that as of 2.8.0 (just released), you can now
embed Python code blocks in templates.
This makes it easy to enter the debugger from inside a template:
?python import pdb; pdb.set_trace() ?
div tal:condition=...
...
/div
It works best if you're running in debug-mode
Until debugtoolbar released to pypi you can install it from the git repo or
add the git tarball url to your setup.py dependency links and reinstall
your app.
On Wednesday, 29 February 2012 02:06:50 UTC-5, Bruce Coble wrote:
Sounds good Blaise...should I be updating any packages to access that
Hello all,
I have been using Python for a few weeks. I've done some development
with Google App Engine.
But this is my first time to work on any Python framework besides GAE.
Currently I am having problem setting up pyramid.
My environment is I have Mac OS.
I have CentOS 5.7 running on Virtual
I have been following the instruction in this
pagehttp://readthedocs.org/docs/pyramid/en/latest/tutorials/modwsgi/index.html
.
My environment.
Server: Ubuntu 11.04
Python 2.7.1
Installed mod_wsgi with the command *sudo apt-get install
libapache2-mod-wsgi*
cd /home/hmkcreative
virtualenv
I think that what you are looking for is here:
http://packages.python.org/distribute/easy_install.html#multiple-python-versions
When using virtualenv itself, you can specify which python you wish to use
to create the environment:
Here is your problem (typo in pyramid.wsgi):
Le 29 févr. 2012 à 14:56, Edward h...@hmkcreative.com a écrit :
[Wed Feb 29 22:36:37 2012] [error] [client 192.168.0.5] File
/home/hmkcreative/envp/pyramid.wsgi, line 1
[Wed Feb 29 22:36:37 2012] [error] [client 192.168.0.5] fromm
Throwing this out there.. woes with Python 3.2 sysconfig and more..
I recently started migrating a Pyramid app to py3.2 and hit a uWSGI build issue
with the python installer;
sysconfig.get_config_var returns 'gcc-4.2', which doesn't exist on my system,
but py2.7 reports 'llvm-gcc-4.2'
Uber! This should be the final call to translate my 10K Genshi
templates to Chameleon.
Are there any auto migration tool out there?
Jerry
On Feb 29, 4:32 pm, Malthe Borch mbo...@gmail.com wrote:
Just wanted to note that as of 2.8.0 (just released), you can now
embed Python code blocks in
On Wed, Feb 29, 2012 at 03:01:59PM +, Simon Yarde wrote:
Then hit another error; Pip error info didn't help me much, but
easy_install reports 'ld: library not found for -lpython3.2m'.
lpython3.2m doesn't exist but python3.2m does.
It's looking for libpython3.2m.so in $LD_LIBRARY_PATH.
At
Thanks, I'll look into the signed cookies. That might be good enough
for my current needs.
I should have been more clear...
The cookie structure is basically:
PAYLOAD[ 2-way-encryption + date ]::CHECKSUM
I added the checksum for lightweight validation, before doing anything
on the payload
On Wednesday, February 29, 2012 5:01:38 PM UTC, Marius Gedminas wrote:
It's looking for libpython3.2m.so in $LD_LIBRARY_PATH.
At least that's what it would be on Linux. I never worked on Mac OS X.
It's $DYLD_LIBRARY_PATH on OS X
so something like:
Thanks Graham and Marius, much appreciated.
I'll get stuck into this tomorrow and report back.
On 29 Feb 2012, at 17:42, Graham Higgins gjhigg...@gmail.com wrote:
On Wednesday, February 29, 2012 5:01:38 PM UTC, Marius Gedminas wrote:
It's looking for libpython3.2m.so in $LD_LIBRARY_PATH.
Thank you Ronan.
Now it works!
Edward
On Wed, Feb 29, 2012 at 11:06 PM, Ronan Amicel ronan.ami...@gmail.comwrote:
Here is your problem (typo in pyramid.wsgi):
Le 29 févr. 2012 à 14:56, Edward h...@hmkcreative.com a écrit :
[Wed Feb 29 22:36:37 2012] [error] [client 192.168.0.5] File
Hi guys,
I have been using Genshi for a long time and I really like it. To use
Genshi with Pyramid, I tried to install pyramid_chameleon_genshi, but
it appears its support to Genshi is broken, it can't handle some
Genshi tag correctly (such as py:match or what). So, I wrote my own
Genshi
On Wed, 2012-02-29 at 18:43 -0800, Victor Lin wrote:
Hi guys,
I have been using Genshi for a long time and I really like it. To use
Genshi with Pyramid, I tried to install pyramid_chameleon_genshi, but
it appears its support to Genshi is broken, it can't handle some
Genshi tag correctly
Thanks for that Blaise!
And damn that [param]... :)
Cheers,
Bruce
On Thursday, 1 March 2012 00:43:03 UTC+11, Blaise Laflamme wrote:
Until debugtoolbar released to pypi you can install it from the git repo
or add the git tarball url to your setup.py dependency links and reinstall
your
I am trying to use of SQLAlchemy event outside of web app.
SQLAlchemy event functions are in their own module --
from sqlalchemy import event
from pyramid.threadlocal import get_current_registry
event.listen(model.User, 'after_update', after_update_listener)
def after_update_listener(mapper,
17 matches
Mail list logo