Reputation: 6470
I'm using pyramid_formalchemy 0.4.1...well I'm trying to use it.
When requests come in to my app I keep seeing pyramid_formalchemy making strange assumptions about what will be in the request object. My requests fail because in pyramid_formalchemy.views (starting at line: 58) the ModelView class has a constructor with the following code:
def __init__(self, context, request):
self.context = context
self.request = request
self.session = request.session_factory
self.fieldset_class = request.forms.FieldSet
self.grid_class = request.forms.Grid
The thing is my request object has a 'session' not a 'session_factory'. It also doesn't have 'forms'
Here is what I've done:
What am I missing in my setup? Any ideas?
Thanks.
Upvotes: 2
Views: 138