Hi guys!

I have a page (AddSomething), this page insert some data in a database
and  I store the data on a session too. This is like a shopping cart,
the products view and some products addition.

I have 2 actions methods, update_view and insert_data, the first update
the data on the session and shows the same page, the second insert the
data on the database and shows a proper message.

I want to subclass the AddSomething class to a EditSomething class, the
data shown is the same but the actions should differ. I may reimplement
the insert_data method to do the update of the data reater then the
insertion... I may reimplement the products menu (where I list which
product can I insert) to redirect to proper page.

The problem is that when I subclass the AddSomething and try to access
the insert_data or the update_view methods, it give back the
AddSomething page even if I reimplement the methods:

...
def update_view(self):
  for k, v in self.request().fields().items():
    self.session().setValue(k, v)
self.writeHTML()
...

What can I do to fix it? Thanks for help...

=====
--
Michel Thadeu Sabchuk
Curitiba/PR


        
        
                
_______________________________________________________
Yahoo! Mail agora com 100MB, anti-spam e antiv�rus gr�tis!
http://br.info.mail.yahoo.com/


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to