[Zope-Checkins] SVN: Zope/trunk/lib/python/OFS/dtml/importExport.dtml Typo: identicial in export object screen. Had been annoying me.

2008-11-20 Thread Matthew Wilkes
Log message for revision 93183:
  Typo: identicial in export object screen.  Had been annoying me.

Changed:
  U   Zope/trunk/lib/python/OFS/dtml/importExport.dtml

-=-
Modified: Zope/trunk/lib/python/OFS/dtml/importExport.dtml
===
--- Zope/trunk/lib/python/OFS/dtml/importExport.dtml2008-11-20 16:42:28 UTC 
(rev 93182)
+++ Zope/trunk/lib/python/OFS/dtml/importExport.dtml2008-11-20 18:07:23 UTC 
(rev 93183)
@@ -15,7 +15,7 @@
 bNote:/b
 Zope can export/import objects in two dfferent formats: a binary format (called
 ZEXP) and as XML. The ZEXP format is the officially supported export/import
-format for moving data between uidenticial/u Zope installations (it is not 
a migration tool).
+format for moving data between uidentical/u Zope installations (it is not 
a migration tool).
 The XML export/import is unsupported (and possibly broken under certain 
circumstances) - use it
 at your own risk.
 /p

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


[Zope-Checkins] SVN: Products.Five/branches/1.5/viewlet/manager.py Forward-ported viewlet manager directive fix (see c69896).

2008-11-20 Thread Malthe Borch
Log message for revision 93212:
  Forward-ported viewlet manager directive fix (see c69896).

Changed:
  U   Products.Five/branches/1.5/viewlet/manager.py

-=-
Modified: Products.Five/branches/1.5/viewlet/manager.py
===
--- Products.Five/branches/1.5/viewlet/manager.py   2008-11-21 00:20:26 UTC 
(rev 93211)
+++ Products.Five/branches/1.5/viewlet/manager.py   2008-11-21 00:20:56 UTC 
(rev 93212)
@@ -12,6 +12,8 @@
 class ViewletManagerBase(origManagerBase, Acquisition.Explicit):
 A base class for Viewlet managers to work in Zope2
 
+template = None
+
 def __getitem__(self, name):
 See zope.interface.common.mapping.IReadMapping
 # Find the viewlet
@@ -64,9 +66,10 @@
 return sorted(viewlets, lambda x, y: cmp(aq_base(x[1]), aq_base(y[1])))
 
 def ViewletManager(name, interface, template=None, bases=()):
-
+attrDict = {'__name__': name}
+
 if template is not None:
-template = ZopeTwoPageTemplateFile(template)
+attrDict['template'] = ZopeTwoPageTemplateFile(template)
 
 if ViewletManagerBase not in bases:
 # Make sure that we do not get a default viewlet manager mixin, if the
@@ -76,8 +79,7 @@
 bases = bases + (ViewletManagerBase,)
 
 ViewletManager = type(
-'ViewletManager providing %s' % interface.getName(),
-bases,
-{'template': template, '__name__': name})
+'ViewletManager providing %s' % interface.getName(), bases, attrDict)
+
 zope.interface.classImplements(ViewletManager, interface)
 return ViewletManager

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins