Hi, Is there a particular reason for you to go with Pylons rather than Pyramid? My understanding is that new development in better done in Pyramid, the "future of Pylon-style web application development".
Ben On 29 May 2012 05:59, Pinakee Biswas <[email protected]> wrote: > Hi, > > I am new to Pylons and learning it reading the Pylons book and the > SimpleSite tutorial. > > I am using Pylons 1.0.1 which goes with Python 2.7 (I think) and the > tutorial is a bit outdated w.r.t the Pylons version. > > I getting the following error (traceback): > > Module simplesite.controllers.page:2 in create view > Module pylons.decorators:123 in wrapper view > >> return func(self, *args, **kwargs) > Module simplesite.controllers.page:66 in create view > >> for k, v in self.form_result.items(): > AttributeError: 'PageController' object has no attribute 'form_result' > > Following is the code: > > #@restrict('POST') > @validate(schema=NewPageForm(), form='new') > def create(self): > # Add the new page to the database > page = model.Page() > for k, v in self.form_result.items(): > setattr(page, k, v) > meta.Session.add(page) > meta.Session.commit() > # Issue an HTTP redirect > response.status_int = 302 > response.headers['location'] = h.url_for(controller='page', > action='view', id=page.id) > return "Moved temporarily" > > I would really appreciate your support on the above. Also, please let > me know where I can get the latest tutorial or some book on Pylons > 1.0.1. > > We are creating a platform where we plan to use Pylons framework. > > Looking forward to your support and response... > > Thanks, > Pinakee Biswas > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/pylons-discuss?hl=en. > > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
