1. Michael Merickel
  2. pyramid_simpleform

Commits

danjac  committed 4fd6bfd

doc fixes

  • Participants
  • Parent commits 8ccfcd6
  • Branches default

Comments (0)

Files changed (1)

File docs/index.rst

View file
                  renderer='edit.html')
     def edit(self):
 
-        item_id = self.request.matchdict['item_id']
+        item_id = request.matchdict['item_id']
         item = session.query(MyModel).get(item_id)
 
-        form = Form(self.request, 
+        form = Form(request, 
                     schema=MyModelSchema, 
                     obj=item)
 
                  renderer='submit.html')
     def add(self):
         
-        form = Form(self.request, 
+        form = Form(request, 
                     defaults={"name" : "..."},
                     schema=MyModelSchema)