misc typos found on my way: NameError / SyntaxError / double __select__, <sigh ...>
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Thu, 04 Feb 2010 10:17:15 +0100
changeset 4451 65f4665233e6
parent 4450 8000abf9c9d3
child 4458 6151849f41e0
misc typos found on my way: NameError / SyntaxError / double __select__, <sigh ...>
entity.py
web/views/igeocodable.py
web/views/schema.py
--- a/entity.py	Wed Feb 03 21:11:50 2010 +0100
+++ b/entity.py	Thu Feb 04 10:17:15 2010 +0100
@@ -274,7 +274,7 @@
 
     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)
--- a/web/views/igeocodable.py	Wed Feb 03 21:11:50 2010 +0100
+++ b/web/views/igeocodable.py	Thu Feb 04 10:17:15 2010 +0100
@@ -70,7 +70,6 @@
     __regid__ = 'gmap-view'
     __select__ = implements(IGeocodable)
 
-    __select__ = implements(IGeocodable)
     paginable = False
 
     def call(self, gmap_key, width=400, height=400, uselabel=True, urlparams=None):
--- a/web/views/schema.py	Wed Feb 03 21:11:50 2010 +0100
+++ b/web/views/schema.py	Thu Feb 04 10:17:15 2010 +0100
@@ -25,7 +25,7 @@
 
 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):