Commit be379c73 authored by Adrien Di Mascio's avatar Adrien Di Mascio
Browse files

misc typos found on my way: NameError / SyntaxError / double __select__, <sigh ...>

parent 8000abf9c9d3
......@@ -274,7 +274,7 @@ class Entity(AppObject, dict):
def view(self, __vid, __registry='views', **kwargs):
"""shortcut to apply a view on this entity"""
view = self._cw.vreg[__registry].select(vid, self._cw, rset=self.cw_rset,
view = self._cw.vreg[__registry].select(__vid, self._cw, rset=self.cw_rset,
row=self.cw_row, col=self.cw_col,
**kwargs)
return view.render(row=self.cw_row, col=self.cw_col, **kwargs)
......
......@@ -70,7 +70,6 @@ class GoogleMapsView(EntityView):
__regid__ = 'gmap-view'
__select__ = implements(IGeocodable)
__select__ = implements(IGeocodable)
paginable = False
def call(self, gmap_key, width=400, height=400, uselabel=True, urlparams=None):
......
......@@ -25,7 +25,7 @@ from cubicweb.web.views import primary, baseviews, tabs, management
ALWAYS_SKIP_TYPES = BASE_TYPES | SCHEMA_TYPES
SKIP_TYPES = (ALWAYS_SKIP_TYPES | META_RTYPES | SYSTEM_RTYPES | WORKFLOW_TYPES
INTERNAL_TYPES)
| INTERNAL_TYPES)
SKIP_TYPES.update(set(('CWUser', 'CWGroup')))
def skip_types(req):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment