[Zope3-checkins] CVS: Zope3/src/zope/app/publisher/browser - viewmeta.py:1.23.6.1

Steve Alexander steve@cat-box.net
Wed, 14 May 2003 13:44:42 -0400


Update of /cvs-repository/Zope3/src/zope/app/publisher/browser
In directory cvs.zope.org:/tmp/cvs-serv32636/src/zope/app/publisher/browser

Modified Files:
      Tag: stevea-decorators-branch
	viewmeta.py 
Log Message:
Decorators are now really roughly integrated into zope on this branch.
Still to do:

  * The decorator registry needs an interface and some tests.

  * The decorator registry should be using a type registry rather than
    a simple dict, so that you don't need to keep declaring decorators
    for all the different subtypes of a container that doesn't manage
    its own context.

  * Fix various tests that explicitly use ZopeContainerAdapter.

  * Document use of decorators in Zope 3.

  * Get this work reviewed and discussed.

The first three points should be complete by the end of tomorrow.



=== Zope3/src/zope/app/publisher/browser/viewmeta.py 1.23 => 1.23.6.1 ===
--- Zope3/src/zope/app/publisher/browser/viewmeta.py:1.23	Fri May  2 14:27:07 2003
+++ Zope3/src/zope/app/publisher/browser/viewmeta.py	Wed May 14 13:44:11 2003
@@ -361,7 +361,7 @@
 
         try:
             cname = str(name)
-        except:
+        except:  # XXX This should catch Unicode error kind of things.
             cname = "GeneratedClass"
 
         newclass = type(cname, bases, cdict)