explicit display_name import stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 01 Jul 2009 16:39:55 +0200
branchstable
changeset 2217 3a8cee8f8778
parent 2216 b44b06520ddc
child 2218 b5d00053a7fe
explicit display_name import
view.py
web/views/primary.py
--- a/view.py	Wed Jul 01 14:58:09 2009 +0200
+++ b/view.py	Wed Jul 01 16:39:55 2009 +0200
@@ -19,7 +19,7 @@
 from cubicweb.selectors import require_group_compat, accepts_compat
 from cubicweb.appobject import AppRsetObject
 from cubicweb.utils import UStringIO, HTMLStream
-
+from cubicweb.schema import display_name
 
 # robots control
 NOINDEX = u'<meta name="ROBOTS" content="NOINDEX" />'
--- a/web/views/primary.py	Wed Jul 01 14:58:09 2009 +0200
+++ b/web/views/primary.py	Wed Jul 01 16:39:55 2009 +0200
@@ -14,10 +14,10 @@
 
 from cubicweb import Unauthorized
 from cubicweb.view import EntityView
+from cubicweb.schema import display_name
 from cubicweb.web import uicfg
 
 
-
 class PrimaryView(EntityView):
     """the full view of an non final entity"""
     id = 'primary'