from sample.models import DBSession
from sample.models import MyModel
from pyramid.response import Response
from pyramid.view import view_config
def decorator(view,params):
def wrapper(request,params):
#doing something with params
return view(request)
On Mon, Jan 2, 2012 at 5:11 AM, uday gotou...@gmail.com wrote:
from sample.models import DBSession
from sample.models import MyModel
from pyramid.response import Response
from pyramid.view import view_config
def decorator(view,params):
def wrapper(request,params):
Hi all,
I was wondering if there is a way, using dispatch (and the new pyramid
config introspectables) to get a reference to the matched view class.
The only 'simple' way is through request.view_name. However, this
gives an empty string in a url dispatch scenario. So there is a route-
matched
Is there any module available for open id and oauth integrating with
pyramid? I've looked into velruse but I'm not sure how to get the security
principle into the context. Has any one tried openid or oauth with pyramid?
--
You received this message because you are subscribed to the Google
It seems to me you are confused about how pyramid separates authentication,
authorization and the login process.
The steps involved here are:
1. Is the user authenticated? This is done by checking if the
authentication policy can find valid credentials in a request. If they are
then great, skip
Thanks for the explanation. In theory I understand the flow, the only
missing point for me is when I setup velruse as a separate app in pyramid
how the session is shared between my app and velruse? BTW I'm using beaker
and mongodb to store all my session information. When I redirect to
I suggest using the unreleased master branch of velruse on github. It has
several major changes that make it simpler to integrate with pyramid. In
there is also a demo application with a simple pyramid project that uses
velruse.
On Jan 2, 2012 1:11 PM, Kesav Kumar Kolla kesavko...@gmail.com wrote:
2012/1/2 Knut Aksel Røysland knut...@gmail.com
I am using Chameleon and tal:repeat to generate a series of li
elements having CSS style display: inline-block; to generate a
thumbnail gallery. I have been using table for this purpose before,
but got inspired by images.google.com using li
Hi,
For the past two months I've been developing a service for developers
and consumers of Python packages:
- http://pythonpackages.com
(And as Pylons/Pyramid user, this service may be of interest to you).
Recently, we've added the ability for folks to login with their github
account. This
I ran into similar confusions as you a few weeks back.
What I realized is that Velruse - and some other packages - kind of
exist as standalone authentication micro-apps that wrap other auth
libraries, and not as libraries to build that functionality into your
own app as you would want. For some
I wish I was online over the holidays to take part in this discussion.
Here's my .02¢ :
- I think SqlAlchemy is the best ORM out there, and it's honestly been
the deciding factor for me going with Pylons and sticking with
Pyramid.
- I think Pyramid core really needs to have a concrete DB/ORM
i'm trying to use cornice to add an API to an existing pyramid
application, but i'm not sure whether this is an inteded use case.
Right now this is made difficult by things like the registration of a
static view at 'static' in cornice's 'includeme' (because it
overwrites a view my base app already
oops. fat-finger.
Should cornice be only used for standalone apps?
regards
robert
On Tue, Jan 3, 2012 at 8:55 AM, Robert Forkel xrotw...@googlemail.com wrote:
i'm trying to use cornice to add an API to an existing pyramid
application, but i'm not sure whether this is an inteded use case.
Right
13 matches
Mail list logo