Hey William,
I wrote a blog on how I'm doing it myself (I don't use debugtoolbar in
prod):
http://www.alexconrad.org/2012/08/log-unique-request-ids-with-pyramid.html
Today, I don't subclass the request object but I rather use a reify'ed
add_request_method to the request object on a Pyramid
I'd recommend you log the time it takes for your pyramid views to respond,
as well as the model functions you call to make DB access to try to narrow
down where the bottleneck comes from.
2012/6/19 Ottavio otta...@campana.vi.it
Hi, I am testing heroku as a platform to deploy pyramid apps.
I
I am assuming you want to decorate a view.
Here is a simple performance logger to know how long a it took for a view
execute. As you can see, you have access to the request object. (not using
traversal in this case)
def perflog_view(func):
def wrapper(request):
chrono = time.time()
Oh, that's good to know! Thanks!
On Jun 19, 2012 10:22 PM, Michael Merickel mmeri...@gmail.com wrote:
So the generic (supported) way to write a decorator in pyramid that
will work with any view is to use the decorator argument to add_view
or view_config. This allows your decorator to have a
did you use the option --no-site-packages when you created your virtualenv?
2011/10/25 Vincent Catalano vinc...@vincentcatalano.com
During my recent attempt to install Pyramid on my Ubuntu box I received the
following error:
error: Installed distribution zope.interface 3.6.1 conflicts with
2011/8/23 Chris McDonough chr...@plope.com
Pyramid 1.2a1 has been released. This is the first alpha release in
the 1.2 series.
Congrats!
A What's New In Pyramid 1.2 document exists at
http://docs.pylonsproject.org/projects/pyramid/1.2/whatsnew-1.2.html
describing the differences between
I see mysql in here, so my hint would be that the mysql driver you
use to access you database may be buggy?
2011/3/25 Justin Francis jawed.youniversityventures@gmail.com:
in the case where paster exits without printing any error messages, it
is due to a segfault. i ran paster with strace,
I'm sorry to read that Mike. I hope you get better soon. I retweeted Jorge's
message:
http://twitter.com/#!/elpargo/status/45192992025358336
2011/3/8 Mike Orr sluggos...@gmail.com
I got sick again this weekend so I won't be able to go to Pycon. It's
the same kind of severe cough I had for
Hi,
I would make sure a site and a subsite is a resource in Routes.
RESTful really means that you are using the verbs available in HTTP,
that is, GET, POST, UPDATE, DELETE without wasting name spaces like
addsite, delsite, etc., in your URL. RESTful doesn't necessarily mean
that you must *not*
Hey,
2010/10/31 cd34 mcd...@gmail.com:
On Oct 31, 2:14 am, Alexandre Conrad alexandre.con...@gmail.com
wrote:
I would make sure a site and a subsite is a resource in Routes.
RESTful really means that you are using the verbs available in HTTP,
that is, GET, POST, UPDATE, DELETE without
It's not possible. tmpl_context lives on the server side whereas
Javascript runs on the client site. Unless you serialize your object
and send it over the wire, which is probably very insecure, there is
not way to do that.
What do you mean by I found the method to use in html ?
2010/10/30 anusha
2010/8/14 JohnWShipman j...@nmt.edu:
I bought Gardner's _The Definitive Guide to Pylons_, but it is already
out of date.
As an aside note, have you heard of this upgrading-to-1.0 link? This may help.
http://pylonshq.com/docs/en/1.0/upgrading/
--
Alex
twitter.com/alexconrad
--
You received
2010/8/4 karikris...@gmail.com karikris...@gmail.com:
I want to refresh pages for every 5 minutes. I aware that I need to
something like refresh header in the response.
Can any one point me how to add refresh header in response object?
I believe something like that should work:
Hello Krishnakant,
you will find answers to your questions by following the 1.0 upgrading
instructions:
http://pylonshq.com/docs/en/1.0/upgrading/
2010/5/30 Krishnakant Mane krm...@gmail.com:
for example now what is the syntax for h.url_for()
e.g., the link above says Change all instances of
That's more an SQLAlchemy related question. You'd better ask it on the
SQLAlchemy list.
Sent from my fantastic HTC Hero
On May 9, 2010 8:59 PM, Haron Media i...@haronmedia.com wrote:
I went through SQLAlchemy docs but I'm not sure how to pull this off.
There appears to be no way to create an
Hi Mike,
2010/5/8 Mike Orr sluggos...@gmail.com:
The routes created by map.resource include a 'formatted_*' route
alongside each regular route. The formatted routes have a '.FORMAT'
suffix at the end of the URL; e.g., /articles/1234.xml, which you can
access via the 'format' routing variable.
Hi list,
Every time I create a controller, the generated test contains multiple
url(formatted_*, ...), e.g.:
def test_edit_as_xml(self):
response = self.app.get(url('formatted_edit_article', id=1,
format='xml'), headers=self.headers)
I was wondering what this was supposed to be used for.
Hi,
I don't know the answer as I haven't really used caching, but I guess
the correct way to do it is to play with the HTTP headers, tweaking
the Cache-Control setting.
The headers can be changed with the response object, available in your
controller:
# Set HTTP response headers before
2009/7/6 schneck stefanoer...@googlemail.com:
thanks for the link, unfortunately, formalchemy seems not to do
introspection on elixir-models: i have many dropdowns containing the
object string representation instead of rendered form fields.
We're expecting that FormAlchemy will work with
This maybe:
http://pylonshq.com/docs/en/0.9.7/thirdparty/webhelpers/
2009/5/20 Chris Withers ch...@simplistix.co.uk:
...to http://pylonshq.com/WebHelpers/module-index.html
Where has this moved to?
cheers,
Chris
--
Simplistix - Content Management, Zope Python Consulting
-
Hi there,
I have forked the official Routes trunk, applied and pushed my changes
to my branch. Although, I'm not sure if patches should be provided
that way.
http://bitbucket.org/aconrad/routes/changeset/441be14adb55/
I first created a patch queue, but I'm not sure if it's meant for
that.
Alright !! Congrats ! :)
2009/2/23 Ben Bangert b...@groovie.org:
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
Cheers,
Ben
--~--~-~--~~~---~--~~
You
I'd install the PasteDeploy and PasteScript
from the distro's reposiroty as well:
yum install python-paste-deploy.noarch python-paste-script.noarch
That made things to work again (although now I have a decorator problem,
but that's another topic).
Regards,
--
Alexandre CONRAD
Mike Orr wrote:
On Thu, May 22, 2008 at 4:24 AM, Alexandre Conrad [EMAIL PROTECTED] wrote:
import paste
paste
module 'paste' (built-in)
built-in ??
rpm -qa | grep paste yield:
python-paste-1.6-1.fc9.noarch
I thought only C modules could be built in. How did they build in a
Python
Hello,
I've asked this question before on this same list. Please view the
following post:
http://groups.google.com/group/pylons-discuss/browse_thread/thread/ac6cb0a607b7b19b/
Hope this helps.
Reagrds,
--
Alexandre CONRAD
--~--~-~--~~~---~--~~
You received
to use FormAlchemy as I
have not much to offer right now. Everyone likes to do their own form
receipt and these merging form frameworks with different designs and
philosophy can only bring richness and diversity to the community.
Regards,
--
Alexandre CONRAD
to an underlying non-memory storage engine (on
disk or so), thus having .keys() method implemented would not be
efficient. Is this correct? Is there some way to know which keys are
present?
Regards,
--
Alexandre CONRAD
--~--~-~--~~~---~--~~
You received
:
return xmlrpc_fault(0, An internal server error
occurred)(environ, start_response)
finally:
Session.remove()
Note the call to the return value of xmlrpc_fault with (environ,
start_response)
HTH,
Chris
On Feb 4, 2008 5:53 AM, Alexandre Conrad
I'd like to put this post back up, hoping for a reply...
Alexandre Conrad wrote:
Hi,
I would like to know how errors should be handled having webservices
running with XMLRPCController.
Say I have a def login(self, user, password) method. If the login
fails, how should I return
it
anymore. Maybe this should be refered somewhere on the Pylons site,
under some understanding how Pylons works section.
Regards,
--
Alexandre CONRAD
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
pylons-discuss
'paste.wsgiwrappers.WSGIResponse' objects
Regards,
--
Alexandre CONRAD
--~--~-~--~~~---~--~~
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
Hello,
As the subject tells, Routes doesn't alter a POST request to if an
alternate _method was specified in the POST data. I've opened a ticket
for that:
http://routes.groovie.org/trac/routes/ticket/64
Regards,
--
Alexandre CONRAD
--~--~-~--~~~---~--~~
You
Sorry, I just realized there was a Routes 1.7.1 which seems to have this
issue fixed already.
Alexandre Conrad wrote:
Hello,
As the subject tells, Routes doesn't alter a POST request to if an
alternate _method was specified in the POST data. I've opened a ticket
for that:
http
to test if 'RAPid' exists in
your dict:
if 'RAPid' in request.params:
... do something useful ...
documentation for python dicts:
http://docs.python.org/lib/typesmapping.html
check out the table for all the possibilities with dicts.
Regards,
--
Alexandre CONRAD
if the website
is up-to-date, but here's the online version:
http://pythonpaste.org/class-paste.util.multidict.MultiDict.html
http://pythonpaste.org/class-paste.util.multidict.UnicodeMultiDict.html
Regards,
--
Alexandre CONRAD
--~--~-~--~~~---~--~~
You received
://formalchemy.googlecode.com
Mailing list: http://groups.google.com/group/formalchemy
Feedback is appreciated. :)
Regards,
--
Alexandre CONRAD
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post to this group
() / Session.close() rather than a try: finally: block, IMHO.
Regards,
--
Alexandre CONRAD
--~--~-~--~~~---~--~~
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
Mike Orr wrote:
I'm not happy with the model. prefix throughout the Data Queries
section. Some people will use this code in the model; others in the
controller. I think it's less jarring to have it without the prefix
and people can add it, rather than the other way around. Do others
Neil Blakey-Milner wrote:
proper imports returns the
session-and-Session-in-the-same-namespace problem, though.
Yes, that may lead to some user confusion.
By the way, the capital Session still irks me. Sure, it's a
(constructed) class, but it's being treated as a (non-class) object,
and
setup, setting SA
0.4 + Pylons 0.9.6rc2, the assign_mapper style, as I'm still using it as
well:
http://groups.google.com/group/pylons-devel/browse_thread/thread/2b82c7093f50afc4/a6c4d7986266ddb0#a6c4d7986266ddb0
Regards,
--
Alexandre CONRAD
updated in the process
but I get the same behaviour.
Tested with IE 7, FF 2 and Opera 9.23.
Any idea on how I could fix this ?
Regards,
--
Alexandre CONRAD
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
pylons
you set here is an existing method in your controller.
Regards,
--
Alexandre CONRAD
--~--~-~--~~~---~--~~
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
Daniel Tang wrote:
On 6/29/07, Walter Cruz [EMAIL PROTECTED] wrote:
h.redirect_to('/')
h.redirect_to('/')
I'm pretty sure you have to return h.redirect_to, not just call it
(unlike RoR, I believe)
Both should work as well.
Regards,
--
Alexandre CONRAD
Shannon -jj Behrens wrote:
Wish me luck with my fourth child which is due in two weeks!
Congrats to you Shannon, and the mother ! Good luck ! :)
Regards,
--
Alexandre CONRAD
--~--~-~--~~~---~--~~
You received this message because you are subscribed
user's
.has_privilege() method to check which parts of the application should
be displayed to the user.
Regards,
--
Alexandre CONRAD
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post
if changes were made by the
application itself).
Thanks!
HTH,
--
Alexandre CONRAD
On 5/28/07, Alexandre CONRAD [EMAIL PROTECTED] wrote:
On 5/27/07, Anil [EMAIL PROTECTED] wrote:
user = session[user]
alert = model.Alert(form_result[name])
user.alerts.append(alert)
user.save_or_update()
user.flush
, it seems to randomly return a previously returned object. It's
pretty confusing. Doing a .get_value(anonymous) always returns the
correct information, but the .has_key() method doesn't work.
Am I missing something ?
Regards,
--
Alexandre CONRAD
lists
ul, list items li and format the output with CSS instead of using
tables.
ul
% for item in c.links:
li${item}/li
% endfor
/ul
I like to point this link once in a while:
http://hotdesign.com/seybold/everything.html
Regards,
--
Alexandre CONRAD
to the
container object (in this case DBMContainer), which is in the package
MyghtyUtils, which is a single, unreadable, .egg file here.
Using:
- Beaker-0.6.3-py2.4.egg
- MyghtyUtils-0.52-py2.4.egg
Regards,
--
Alexandre CONRAD
--~--~-~--~~~---~--~~
You
differently.
ps1: AFAIU, roles should be hardcoded. I guess you can't really create
new roles in an application without modifying it's source code.
ps2: it's unclear for me what the difference is between roles and
groups in a user management system.
Regards,
--
Alexandre CONRAD
Great job ! Congrats pylonauts ! :)
--
Alexandre CONRAD
Ben Bangert wrote:
I'm thrilled to announce a new release of Pylons, with one of the
largest ticket fix counts of any Pylons release thus far. This
release and its associated updates have only been possible with the
growing
-based_Interfaces
Regards,
--
Alexandre CONRAD
--~--~-~--~~~---~--~~
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
[paste.config]
Hope this helps.
Regards,
--
Alexandre CONRAD
--~--~-~--~~~---~--~~
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
-1.fc6, Paste 1.2, Pylons
0.9.4.1, SQLALchemy 0.3.5.
I used `top -d 0.1 -p ` where is the pid number that paste
displays on server start up.
If you guys had any suggestion about how and where to start tracking
this down ?
Regards,
--
Alexandre CONRAD
to apply changes
at once (let's say the actual patch and an update of the test suite).
This documentation could be useful for the whole community.
Regards,
--
Alexandre CONRAD
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
James Gardner's Pylons documentation
Internationalization, Localization and Unicode.
if you ever forget the link, google for:
stupid programmer unicode
And when you'll be a big Unicode fan:
http://www.cafepress.com/cp/browse/store/nucleartacos.26746951
:)
Regards,
--
Alexandre CONRAD
was wondering if this had anything to do with my problem where
autohandler don't seem to catch the passed arguments.
Best regards,
--
Alexandre CONRAD
Alexandre CONRAD wrote:
Hello,
from my controller, I'm doing the following:
return render_response(browser/client/index.myt, client=client
,
h.url(controller=client, action=index, id=client.id_client)) %
/%method
--- browser/client/autohandler ---
Any help would be appreciated.
Regards,
--
Alexandre CONRAD - TLV FRANCE
Research Development
--~--~-~--~~~---~--~~
You received this message because you
! Thanks Ben !
Regards,
--
Alexandre CONRAD
--~--~-~--~~~---~--~~
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
= self.query.select()
return render('browser/client/list.myt', fragment=True)
All the javascript that is contained in list.myt was generated using
webhelpers.
Regards,
--
Alexandre CONRAD
--~--~-~--~~~---~--~~
You received this message because you
Alexandre CONRAD wrote:
$('client_form_5').innerHTML = '';
$('client_list').innerHTML = 'ul\n lia
href=\/client/index/5\blah/adiv id=\client_form_5\/div\n
div class=\'toolbar\'\n a href=\#\ onclick=\new
Ajax.Updater(\'client_form_5\', \'/client/edit/5\', {asynchronous:true
traceback, I get this message, which is useless.
So now I have to go through my modifications and try to see where the
problem occurs, which is like looking for a needle in a haystack.
Any suggestions ? Can this be fixed ? Is this a Pylons related problem ?
Paste ?
Regards,
--
Alexandre CONRAD
at all. I tryied the other
way around, the 2nd function alone, etc. Nothing.
Any idea what I could be doing wrong ?
Regards,
--
Alexandre CONRAD
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
pylons-discuss group
for
me. :)
ps: Joe, I agree with you, it's nicer to have SA tables and classes
together in the same file rather than having tables.py and models.py
files.
Regards,
--
Alexandre CONRAD
--~--~-~--~~~---~--~~
You received this message because you are subscribed
to do it, but I hope it is. :)
Regards,
--
Alexandre CONRAD
--~--~-~--~~~---~--~~
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
.
We'll probably come up with some more cool tips and ideas once we get
the CRUD basics clear and nested together.
Regards,
--
Alexandre CONRAD - TLV FRANCE
Research Development
--~--~-~--~~~---~--~~
You received this message because you are subscribed
/project/pylonshq/wiki/DocLayoutProposals
Any experience and/or code sample would be appreciated.
Regards,
--
Alexandre CONRAD
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post
/Database_normalization
One note though, normally people don't go beyond 3th-normal form or
BCNF.
I hope this helps,
It does. Thanks for pointing me out these references. I'll get deeper
into database logic.
Regards,
--
Alexandre CONRAD
hq = headquarters ? :)
hq = high quality ? :)
--
Alexandre CONRAD - TLV FRANCE
Research Development
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post to this group, send email
(SPAM), cliquez sur le lien suivant pour
le reclasser : http://127.0.0.1:6083/Panda?ID=pav_20414SPAM=true
---
--
Alexandre CONRAD - TLV FRANCE
Research Development
,
--
Alexandre CONRAD - TLV FRANCE
Research Development
--~--~-~--~~~---~--~~
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
I can protect actions this way:
...
@permissions(users=['god'], roles=['admin', 'manager'])
def index(self):
...
I can post this module somewhere if you are interested.
I am interested... :)
Regards,
--
Alexandre CONRAD - TLV
Research Development
tel : +33 1 30 80 55 05
fax : +33 1
submit a ticket for it on PylonsHQ so we can add
any compatibility methods that might ahve been missed.
Please don't use trunk on a production machine of course, but feel free
to check it out and give it a spin on a development machine.
Cheers,
Ben
--
Alexandre CONRAD - TLV
Research
none of these possibilities are
a problem now, but they might become one in a context I haven't
experienced yet and you guys and girls might be aware of.
Regards,
--
Alexandre CONRAD - TLV
Research Development
tel : +33 1 30 80 55 05
fax : +33 1 30 80 55 06
6, rue de la plaine
78860 - SAINT
you use a static file, so the routes should be:
map.connect('css', '/css/mp_v1.css', _static=True)
map.connect('img', '/img', _static=True)
Ok, thanks ! That made the trick.
Regards,
--
Alexandre CONRAD - TLV
Research Development
tel : +33 1 30 80 55 05
fax : +33 1 30 80 55 06
to have
it even easier plug and play ?
Regards,
--
Alexandre CONRAD - TLV
Research Development
tel : +33 1 30 80 55 05
fax : +33 1 30 80 55 06
6, rue de la plaine
78860 - SAINT NOM LA BRETECHE
FRANCE
--~--~-~--~~~---~--~~
You received this message because you
is a certainly a different approch.
Regards,
--
Alexandre CONRAD
--~--~-~--~~~---~--~~
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
77 matches
Mail list logo