web/views/basecomponents.py
changeset 4004 c52619c738a5
parent 3890 d7a270f50f54
child 4023 eae23c40627a
--- a/web/views/basecomponents.py	Mon Dec 07 05:09:09 2009 -0800
+++ b/web/views/basecomponents.py	Mon Dec 07 06:39:35 2009 -0800
@@ -218,12 +218,11 @@
 
 class PdfViewComponent(component.EntityVComponent):
     __regid__ = 'pdfview'
-    __select__ = yes()
 
     context = 'ctxtoolbar'
 
     def cell_call(self, row, col, view):
-        entity = self.entity(row, col)
+        entity = self.cw_rset.get_entity(row, col)
         url = entity.absolute_url(vid=view.id, __template='pdf-main-template')
         iconurl = self.req.build_url('data/pdf_icon.gif')
         label = self.req._('Download page as pdf')
@@ -232,7 +231,7 @@
 
 
 class MetaDataComponent(component.EntityVComponent):
-    id = 'metadata'
+    __regid__ = 'metadata'
     context = 'navbottom'
     order = 1