Ignore:
Timestamp:
30 Jun 2008, 17:01:14 (16 years ago)
Author:
adiwidjaja
Message:

Implemented basic viewlet structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/trunk/src/waeup/baseitem.py

    r3528 r3530  
    11import grok
     2from waeup.viewlets import MainArea
    23
    34class BaseItem(grok.Model):
     
    1213        grok.EditForm.update(self)
    1314
    14 class Index(grok.DisplayForm):
    15 
    16     def update(self):
    17         self.form_fields = grok.AutoFields(self.context.__class__)
    18         grok.DisplayForm.update(self)
     15#class Content(grok.Viewlet, grok.DisplayForm):
     16#    grok.viewletmanager(MainArea)
     17#
     18#    def update(self):
     19#        self.form_fields = grok.AutoFields(self.context.__class__)
     20#        grok.DisplayForm.update(self)
Note: See TracChangeset for help on using the changeset viewer.