request.RedisCache = settings['RedisCache']
return render_to_response('templates/signup_hack.genshi',
request.c, request)
else:
try:
response = handler(request)
finally:
return response
return signup_hack_tween
Jerry
. Instead of checking
matched_route.name, which can quickly lose sync as the routes
structure changes, is there a cleaner way to achieve this?
Thanks.
Jerry
--
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post to this group, send email
From a quick skim of the documentation, webassets doesn't seem to be
as flexible or versatile as Fanstatic: Resource publishing for
Pythonistas [ http://www.fanstatic.org/en/latest/index.html ].
Any thoughts?
Jerry
On Jun 12, 2:34 pm, John Anderson son...@gmail.com wrote:
On Tue, Jun 12, 2012
If you like beaker, you might also want to take a look at retools
( http://pypi.python.org/pypi/retools/0.2 ), a newer caching library
specifically for Redis from the same author.
Jerry
On Jun 6, 3:36 am, Learner hello.bku...@gmail.com wrote:
Thanks Jason. I will take your suggestion.
But your
Check out a new adaptive CSS/JS Foundation framework (
http://foundation.zurb.com/
), with that you can have one-template-fit-all and impress your client
if they have not seen web page that automatically changes layout
according to screen size :)
Jerry
On Apr 17, 9:38 am, Theron Luhn
Just learnt the Django dogslow module ( http://pypi.python.org/pypi/dogslow
) from the Instagram architecture presentation. It's a middleware for
identifying slow process, is there anything similar in Pyramid?
Jerry
--
You received this message because you are subscribed to the Google Groups
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
appreciated.
Jerry
--
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to
pylons-discuss+unsubscr...@googlegroups.com.
For more options
appreciated.
Jerry
--
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to
pylons-discuss+unsubscr...@googlegroups.com.
For more options
Thanks Robert.
However, the cache needs to, at minimum, differentiate login users
from non-login users to serve different content, and only a Pyramid
app aware caching engine can do that.
Jerry
On Jan 31, 9:44 pm, Robert Forkel xrotw...@googlemail.com wrote:
hi jerry,
if you run your app via
Thanks Simon. Varnish is definitely worth exploring.
I'm also very interested in your second approach, how can you tell if
the user has JS enabled by looking at her request?
Jerry
On Jan 31, 11:45 pm, Simon Yarde simonya...@me.com wrote:
I wonder if this solves your issue with Varnish
#evalerror
egg:repoze.tm2#tm
myapp
As well as on the command line --
$ PYRAMID_DEBUG_ROUTEMATCH=true paster serve --reload prod_test.ini
But I still don't get any route debug message on the console.
What could be wrong?
Thanks.
Jerry
--
You received this message because you
I noticed that Pyramid (1.2.4) url dispatch route does not work with
%2F
So the below route --
config.add_route('date', '/date/{date})
does not match --
/date/2012%2F1%2F5
Is it a bug?
Thanks.
Jerry
--
You received this message because you are subscribed to the Google Groups
pylons
.
Any further pointer?
Jerry
On Jan 5, 4:33 pm, Michael Merickel mmeri...@gmail.com wrote:
You probably do not have the DEBUG level enabled for the pyramid package.
Make sure you have something along the lines of the default logging setup
in your ini.
http://docs.pylonsproject.org/projects
are more designer friendly than
their non-XML counterparts.
That's why I'm still with Genshi while waiting for Chameleon to be
ready for prime time.
Just another perspective.
Jerry
On Dec 18, 5:34 am, John Rusnak jrusna...@gmail.com wrote:
If you have ever tried full-up programming in XML or seen
I would appreciate some confirmation/explanation on the Pyramid event
system -- is event/subscribe restricted to Pyramid running on one
physical server?
Thanks.
Jerry
On Dec 14, 7:13 am, John Anderson son...@gmail.com wrote:
On Tue, Dec 13, 2011 at 5:10 PM, Vlad K. v...@haronmedia.com wrote
MyEvent(object):
def __call__(self):
do_something(v1, v2, ...)
def do_something(*args, **kw):
# do stuff
e = MyEvent()
e()
Any enlightenment will be much appreciated.
Jerry
On Dec 14, 5:25 pm, Chris McDonough chr...@plope.com wrote:
On Wed, 2011-12-14 at 01:11 -0800, jerry wrote
if we could get the assurance that it is in the road map.
Thanks again.
Jerry
On Dec 10, 4:15 am, Chris McDonough chr...@plope.com wrote:
Pyramid 1.3a1 has been released. This is the first major release in
the 1.3 series. Its primary features are:
- Python 3.2 compatibility.
- A new
of
formencode.FancyValidator that checks username for duplication. But
instead of hitting the database, I prefer first checking via a global
(Redis) cache variable in the request object.
How do I access this variable from my form?
Thanks.
Jerry
--
You received this message because you are subscribed to the Google
Hi Gael,
Indeed, app_iter does work flawlessly out-of-box with GridOut object.
It was some other elementary mistake I made that is triggering the
exception, my bad.
Jerry
On Nov 4, 12:04 am, Gael Pasgrimaud g...@gawel.org wrote:
On Thu, Nov 3, 2011 at 4:54 PM, jerry jerryji1...@gmail.com wrote
Hi John,
What's wrong with calling initialize_sql from Celery? I am calling
initialize_sql(engine, create_all=False) in my Celery tasks.py and
didn't notice any problem.
Jerry
On Nov 5, 8:05 pm, John Anderson son...@gmail.com wrote:
So I've been playing with celery configuration with Pyramid
implementation in Pyramid.
Thanks in advance.
Jerry
--
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to
pylons-discuss+unsubscr
, just define your task and do anywhere in your
view --
DownloadImageTask.delay(image_url)
for the task to be picked and handled by a standalone celeryd process.
Jerry
On Oct 17, 3:14 am, ravi teja raviteja2...@gmail.com wrote:
Hi,
I would like to do some background processing (like downloading
Hi,
I was constructing a paster command and couldn't figure out how to get
route_url() to work in the absence of a request.
Any pointer will be much appreciated!
Jerry
--
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post to this group
Hi Mike,
I'm curious to know where is this main() for Pyramid you were
referring to?
Thanks.
Jerry
On Jun 30, 5:30 am, Mike Orr sluggos...@gmail.com wrote:
On Wed, Jun 29, 2011 at 10:40 AM, hisan santosh.s...@gmail.com wrote:
how to call a function for evry 10 secs in python
I assume
()
What I'm not so sure is whether (PostgreSQL) savepoint is designed to
support millions of iteration before the grand final commit.
Jerry
On May 13, 2:06 pm, Chris Withers ch...@simplistix.co.uk wrote:
Hi Jerry,
On 13/05/2011 01:31, jerry wrote:
Everything is still wrapped in one big
couldn't get
the DBSession redefined no matter how I fiddle with the paster command
source. Is there a way to temporarily turn off transaction in a
Pyramid project?
Thanks in advance!
Jerry
--
You received this message because you are subscribed to the Google Groups
pylons-discuss group
(implicit)
2011-05-13 08:23:54,122 INFO sqlalchemy.engine.base.Engine.0x...68cc
SELECT ...
If I have 2 million items it's not going to be a robust design to
commit only once in the end after updating 1 million of them.
Is there a way to explicitly turn off the transaction (at least for
SELECT)?
Jerry
I'm using Pyramid with a bunch of unit/integration tests, how can I
ensure common test data is setup _only once_ before a complete test
run?
Thanks.
Jerry
--
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post to this group, send email
My working codes:
Twitter OAuth connect --
http://pylonshq.com/pasties/c549d2be586797da17c7fad5ae875372
Facebook OAuth2 connect --
http://pylonshq.com/pasties/e4b933da7f577c541cc2f2489f825fdd
Jerry
On Jan 16, 10:16 pm, Adam Klekotka adam.kleko...@gmail.com wrote:
Hello,
I'm new to Pyramid
__call__(self, value, system):
return self.tmpl.generate(**value).render('html')
myapp/__init__.py
How can I auto-restart pyramid whenever my template changes?
Thanks!
Jerry
--
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post
(route_name='account', renderer='templates/
account.genshi')
def account_view(request):
/account.py
If this is not considered a bug, maybe stating it explicitly in the
documentation could save others some time.
Thanks.
Jerry
--
You received this message because you are subscribed to the Google
ways. If I recall correctly,
Pylons' redirect_to() simply works out-of-the-box.
Thanks.
Jerry
--
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post to this group, send email to pylons-disc...@googlegroups.com.
To unsubscribe from this group
')
#request.path_info = '/user/42'
resp = views.user.user_view(request)
/test_user_view.py
I'm sure I must be missing something very simple there.
Thanks in advance!
Jerry
--
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post to this group, send
Thanks Chris.
Well, I thought routing will always happen after view functions are
decorated with view_config()
Allow me to step back one step and ask: How can routing be unit
tested?
Jerry
BTW, your attached a local URI, the public URL should be
http://docs.pylonshq.com/pyramid/dev/narr
Hi,
When a view returns HTTPFound, how should I write unit test that
follows the (possible multiple) redirection and asserts the final
response?
Thanks in advance!
Jerry
--
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post to this group
Since I'm using pyramid_beaker session, my unittest fails --
...
session = request.session
AttributeError: 'DummyRequest' object has no attribute 'session'
What best-practice solution would you recommend?
Thanks in advance.
Jerry
--
You received this message because you are subscribed
Thanks Chris. This /is/ what I am doing --
def DummyRequest():
req = testing.DummyRequest()
req.session = {} # dummy beaker session
return req
But would you consider adding the dummy session to the module?
Jerry
On Dec 9, 9:41 pm, Chris McDonough chr...@plope.com wrote:
You might
, 'templates'])])
tmpl = loader.load('template.genshi')
c = {'foo': 'bar'}
return Response(tmpl.generate(**c).render())
in every view function?
Thanks.
Jerry
--
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post to this group, send email to pylons
Does anyone have the roughest ball-park estimation on when pyramid
will be going beta?
Thanks.
Jerry
On Nov 15, 7:19 am, Ben Bangert b...@groovie.org wrote:
On Nov 14, 2010, at 1:54 PM, BrianTheLion wrote:
I've been away for a while and am trying to come up to speed on some
pretty
is the engineering
director, we all are marketing VPs.
Jerry
On Aug 25, 7:45 am, Ben Bangert b...@groovie.org wrote:
On Aug 24, 2009, at 4:13 PM, Iain Duncan wrote:
That's cool, but Ben still has to show some interest if you guys
want it
to happen. I would put time in, but I better see
can do it, we sure can as well.
Thoughts?
Jerry
On Jul 20, 5:11 am, Iain Duncan iaindun...@telus.net wrote:
Taking Ben's suggestion, I just went ahead created a new thread.
Mike Orr said:
I have started a Talking Points wiki page to gather the essential
points. Please add anything that's
modern unobstructive JavaScript libraries such as JQuery,
Prototype, etc.
Finally, I think you should show more effort by reading up on the HTML
basics first.
Jerry
On Mar 6, 4:34 am, menshikoval...@gmail.com
menshikoval...@gmail.com wrote:
Hello.
How to use JavaScript in template form?
I'v
My most sincere congratulations and tons of thanks to all the Pylons
heros!
Jerry
On Feb 23, 2:46 pm, Ben Bangert b...@groovie.org wrote:
Pylons 0.9.7 has been released, I've posted a full write-up on it on
the PylonsHQ
site:http://pylonshq.com/articles/archives/2009/2/pylons_097_released
Hi,
Have you tried --
not_tested
ForEach(Int(not_empty=True), ...)
/not_tested
Jerry
On Jan 26, 5:33 am, eleith ele...@gmail.com wrote:
for my schema, i want to handle
delete?id=100
delete?id=100id=101id=102
and throw an error for
delete
Jerry
On Jan 22, 7:20 am, Gustavo Narea m...@gustavonarea.net wrote:
Anyone?
On Sunday January 18, 2009 23:29:31 Gustavo Narea wrote:
Hello,
I've tried the tutorial at
http://wiki.pylonshq.com/display/pylonscookbook/Production+Deployment...
g+Apache, +FastCGI+and+mod_rewrite, but I can't
Yes.
And that's because if the same question is asked in a Django group,
you'll probably get far more similar trolls.
Jerry
On Jan 18, 7:05 pm, walterbyrd walterb...@iname.com wrote:
And if so, why?
--~--~-~--~~~---~--~~
You received this message because you
about entry points
post Run a request for the described application
request Run a request for the described application
serveServe the described application
setup-appSetup an application, given a config file
And your question was?
Jerry
On Jan 16, 10:22 am, Bryan
()')}/div
/body
/py:match
/html
view.html
?xml version=1.0 encoding=utf-8?
html xmlns=http://www.w3.org/1999/xhtml; xmlns:py=http://
genshi.edgewall.org/ xmlns:xi=http://www.w3.org/2001/XInclude;
xi:include href=index.xml parse=xml /
head /
body${c.page.content}/body
/html
--
Jerry
On Dec 24
Hi,
You should find this thread helpful --
http://groups.google.com/group/pylons-discuss/browse_thread/thread/70fb565a909c72f0/aae0f836d23e62a2?lnk=gstq=dataapp#aae0f836d23e62a2
Jerry
On Dec 8, 5:40 am, erowan [EMAIL PROTECTED] wrote:
Hello,
I have a web app that dynamically generates
need to do is stand taller than yesterday, in good times
or not [http://venturebeat.com/2008/10/10/the-sequoia-rip-good-times-
presentation-get-your-copy-here/].
Jerry
On Nov 3, 8:07 pm, [EMAIL PROTECTED] wrote:
Jerry, very inspiring. Well done.
I am where you were a year and a half ago.
Trying
One day, I'm going to start my own blog, even if just for correcting
all those broken links.
Jerry
On Nov 4, 2:23 pm, jerry [EMAIL PROTECTED] wrote:
Hi Zoogie,
First of all, congratulations on making the right decision with Pylons
(not saying other choices are wrong... :), whose learning
!
-- Joel the programmer
And if it cannot get running in 10 minutes - scrap it and start
over.
For seasoned developers like you who have rich experience in other
frameworks, I think it's possible.
Jerry
On Nov 4, 5:56 pm, MilesTogoe [EMAIL PROTECTED] wrote:
Garland, Ken R wrote:
Hey Jerry, I've
Hi Rech,
jQuery + markitup [http://markitup.jaysalvat.com/examples/]
Jerry
On Nov 4, 5:43 pm, Mr.Rech [EMAIL PROTECTED] wrote:
Hi all,
I'm starting to play with Pylons since I need to develop a web app
here at work. I've been reading the Pylons book, a lot of
documentation, many threads
'
.^
Isn't there a redundant single quote character there?
Jerry
On Nov 1, 7:05 pm, [EMAIL PROTECTED] wrote:
Hi all,
I'm new to pylons and getting the following error while trying to
follow the SQLAlchemy tutorial.
$ paster setup-app development.ini
17:48:27,604 INFO
used PostgreSQL and never even worked to join more than
2 tables before...
And the feeling of learning all those is really good, as good as
launching a site. :)
Jerry
On Oct 29, 6:27 pm, Matthew Woolnough [EMAIL PROTECTED] wrote:
Wow. That's quite a lot of effort. I know how it is to work
Hi,
As my paster server, no matter how its thread and process config
values are tweaked, can't even get above 20 [#/s], I've been
struggling to run my Pylons app under fapws2.
Does any kind soul have a quick Pylons+fapws2 configuration/tutorial
to share?
Thanks in advance.
Jerry
)
if request.is_xhr:
return render('ajax_fragment_template')
return render('full_page_template')
Jerry
On Oct 15, 10:26 am, przemek.ch [EMAIL PROTECTED] wrote:
Hi,
I've build two select boxes. Onchange method on the first selectbox I
fill with ajax the second one using
this recipe on the PylonsHQ?
Jerry
On Oct 8, 1:29 am, EricHolmberg [EMAIL PROTECTED] wrote:
to insert arbitrary literal XML markup fragments. However, I still
haven't figured
out a way to _process_ the Genshi sub-template string _from inside
another
Genshi template_, i.e., I want the following
='index',
id=None))}
when dynamically included in another Genshi template.
Jerry
On Oct 7, 8:03 pm, EricHolmberg [EMAIL PROTECTED] wrote:
Forgive me if I misunderstood, but couldn't you either query the DB
before the template is run or simply query the DB in the template?
Just put
=${h.url_for(controller='...', action='...', id='...')}
widget
/a
/div
/div
Any pointer will be greatly appreciated.
Many thanks in advance!
Jerry
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
pylons
multiple related lengthy
threads in this group. Proxy passing (Nginx) to paster serve is
working fine for me.
Jerry
On Sep 22, 2:52 pm, wellhong [EMAIL PROTECTED] wrote:
Hi all,
I'm new to pylons and python web development. I've started working on
an application on my workstation but:
1. would
I'm using No. 1, which I consider the (preferably only one) obvious
way.
No. 2 is too monkey-patching to me.
No. 3 is not really about auxiliary cron jobs for your application.
Jerry
On Sep 1, 7:17 am, Pavel Skvazh [EMAIL PROTECTED] wrote:
There seam to be different ways to get cron jobs
= True
Jerry
On 6 Jul, 23:42, kevin [EMAIL PROTECTED] wrote:
hello all,
thanks for the great help so far. my first pylons project is going
really well.
i'm looking for a way to make the session/session cookie expire after
a certain amount of time. an example of this behavior would be eBay
I suggest putting an import pdb; pdb.set_trace() before the execute
statement to inspect the type of WHChapter (and see for yourself that
it is incorrect :)
Jerry
On Jul 15, 1:12 pm, JOLINY [EMAIL PROTECTED] wrote:
Since i develope my application with pylons ,i have this question.
when i want
1. Thanks Mike, awesome!
2. messages stored in sessions mapped to a certain url -- I don't
get it.
3. Thanks Jonathan (and silly me for not knowing/being able to come up
with such a simple idea).
Sincerely,
Jerry
On Jul 10, 11:11 pm, Jonathan Vanasco [EMAIL PROTECTED] wrote:
There are 3 ways
Thanks Jonthan.
However, I wonder how an md5 string can be squeezed into a 10, or even
6-character field with no concern of (future) collision -- or am I mis-
understanding your db schema?
Sincerely,
Jerry
On Jul 5, 1:57 pm, Jonathan Vanasco [EMAIL PROTECTED] wrote:
On Jul 4, 8:58 pm, jerry
But how? What encryption/hashing method could be used to transform the
numeric IDs to something less obvious?
Sincerely,
Jerry
On Jul 4, 2:01 pm, Jonathan Vanasco [EMAIL PROTECTED] wrote:
just some points on 'hiding' ids-
- if you're doing a social media site, with numeric ids your
, self.start_response)
Jerry
On Jun 3, 5:05 pm, deezee [EMAIL PROTECTED] wrote:
Hello everybody!
I'm pretty new in Pylons world - today i downloaded and installed
software. So, some stupid question:
How to send (simplest way) image from PIL to template (browser)
without saving file?
I'm playing around
from paste.fileapp import DataApp
Jerry
On Jun 3, 8:38 pm, jerry [EMAIL PROTECTED] wrote:
class ImageController(BaseController):
def view(self):
image_content = binary data of your (generated) image /
app = DataApp(image_content, content_type='image/jpeg
controller found
on c object, returning empty string
''
Jerry
On May 28, 11:30 am, Mike Orr [EMAIL PROTECTED] wrote:
On Wed, May 28, 2008 at 3:50 AM, Christoph Haas [EMAIL PROTECTED] wrote:
Hi, Antonia...
first of all: please don't hijack threads. Start a new thread if you want
to post to this list
to encode url while
Paste uses unquote to decode url. So 1 + 1 gets encoded to 1+%2b+1
and it gets decoded to 1+++1. Is there any particular reason Paste
doesn't use unquote_plus?
Thanks!
--Michi
Jerry
--~--~-~--~~~---~--~~
You received this message because you
)),
./Routes-1.8-py2.5.egg/routes/util.py:
urllib.quote_plus(unicode(val).encode(encoding
Could that be a (known) Routes bug?
Many thanks in advance!
Jerry
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
pylons-discuss
will have to inherit the information of the existing parameters
q=1q=2, hence the demand.
However, it really doesn't seem to be an appealing design and I think
I'm probably better off sticking with the more RESTful URL like
details/1;2
Cheers,
Jerry
On Apr 29, 12:38 am, Mike Orr [EMAIL PROTECTED
Hi,
Is there a way to construct URLs like /controller/action/id?
q=1q=2 with url_for()?
Thanks in advance!
Jerry
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post to this group, send
have the file in case you need it.
Thanks,
Jerry Seutter
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from
76 matches
Mail list logo