view.py
branchtls-sprint
changeset 985 6a25c58a1c23
parent 962 1cc3c240b2d5
parent 881 18e6c8db7bc5
child 986 e24b45bf92cc
--- a/view.py	Mon Mar 02 20:44:14 2009 +0100
+++ b/view.py	Mon Mar 02 21:03:54 2009 +0100
@@ -304,7 +304,22 @@
     def create_url(self, etype, **kwargs):
         """ return the url of the entity creation form for a given entity type"""
         return self.req.build_url('add/%s'%etype, **kwargs)
+<<<<<<< /home/syt/src/fcubicweb/cubicweb/view.py
     
+=======
+
+
+# concrete views base classes #################################################
+
+class EntityView(View):
+    """base class for views applying on an entity (i.e. uniform result set)
+    """
+    __registerer__ = accepts_registerer
+    __selectors__ = (accept,)
+    accepts = ('Any',)
+    category = 'entityview'
+
+>>>>>>> /tmp/view.py~other.mliJlS
     def field(self, label, value, row=True, show_label=True, w=None, tr=True):
         """ read-only field """
         if w is None: