[Checkins] SVN: zc.sourcefactory/trunk/src/zc/sourcefactory/browser/README.txt be a little bit more explicit about the title

Christian Zagrodnick cz at gocept.com
Mon Oct 15 06:34:03 EDT 2007


Log message for revision 80876:
  be a little bit more explicit about the title

Changed:
  U   zc.sourcefactory/trunk/src/zc/sourcefactory/browser/README.txt

-=-
Modified: zc.sourcefactory/trunk/src/zc/sourcefactory/browser/README.txt
===================================================================
--- zc.sourcefactory/trunk/src/zc/sourcefactory/browser/README.txt	2007-10-15 10:32:44 UTC (rev 80875)
+++ zc.sourcefactory/trunk/src/zc/sourcefactory/browser/README.txt	2007-10-15 10:34:02 UTC (rev 80876)
@@ -86,7 +86,7 @@
 
   >>> class DemoSourceWithTitles(DemoSource):
   ...     def getTitle(self, value):
-  ...         return value.custom_title
+  ...         return 'Custom title ' + value.custom_title
   >>> source2 = DemoSourceWithTitles()
   >>> terms2 = zope.component.getMultiAdapter(
   ...     (source2, request), zope.app.form.browser.interfaces.ITerms)
@@ -95,10 +95,11 @@
   >>> o2 = MyObject()
   >>> o2.custom_title = u"Object two"
   >>> terms2.getTerm(o1).title
-  u'Object one'
+  u'Custom title Object one'
   >>> terms2.getTerm(o2).title
-  u'Object two'
+  u'Custom title Object two'
 
+
 Extended use: provide your own tokens
 =====================================
 



More information about the Checkins mailing list