diff -r 92ead039d3d0 -r 94cc7cad3d2d view.py
--- a/view.py Mon Nov 23 14:13:53 2009 +0100
+++ b/view.py Thu Dec 03 17:17:43 2009 +0100
@@ -179,6 +179,7 @@
if rset is None:
raise NotImplementedError, self
wrap = self.templatable and len(rset) > 1 and self.add_div_section
+ # XXX propagate self.extra_kwars?
for i in xrange(len(rset)):
if wrap:
self.w(u'
')
@@ -200,7 +201,7 @@
return True
def is_primary(self):
- return self.__regid__ == 'primary'
+ return self.extra_kwargs.get('is_primary', self.__regid__ == 'primary')
def url(self):
"""return the url associated with this view. Should not be
@@ -323,7 +324,10 @@
else:
w(u'%s ' % label)
if table:
- w(u'
%s | ' % value)
+ if not (show_label and label):
+ w(u'%s | ' % value)
+ else:
+ w(u'%s | ' % value)
else:
w(u'%s' % value)