[Checkins] SVN: zc.sourcefactory/trunk/ - make non-ASCII terms work
(with test)
Benji York
benji at zope.com
Tue Sep 11 16:25:58 EDT 2007
Log message for revision 79576:
- make non-ASCII terms work (with test)
- nail revisions for reproducable buildouts
Changed:
U zc.sourcefactory/trunk/buildout.cfg
U zc.sourcefactory/trunk/src/zc/sourcefactory/browser/README.txt
U zc.sourcefactory/trunk/src/zc/sourcefactory/policies.py
-=-
Modified: zc.sourcefactory/trunk/buildout.cfg
===================================================================
--- zc.sourcefactory/trunk/buildout.cfg 2007-09-11 19:51:42 UTC (rev 79575)
+++ zc.sourcefactory/trunk/buildout.cfg 2007-09-11 20:25:58 UTC (rev 79576)
@@ -2,7 +2,91 @@
develop = .
parts = test
find-links = http://download.zope.org/distribution/
+versions = versions
[test]
recipe = zc.recipe.testrunner
eggs = zc.sourcefactory [test]
+
+[versions]
+RestrictedPython = 3.4.2
+ZConfig = 2.5
+ZODB3 = 3.9.0-dev-r77011
+docutils = 0.4
+pytz = 2007f
+setuptools = 0.6c7
+zc.buildout = 1.0.0b30
+zc.recipe.egg = 1.0.0b6
+zc.recipe.testrunner = 1.0.0b8
+zdaemon = 2.0.0
+zodbcode = 3.4.0b1dev-r75670
+zope.annotation = 3.4.0
+zope.app.applicationcontrol = 3.4-dev-r73715
+zope.app.appsetup = 3.4.0a1
+zope.app.authentication = 3.4.0b1
+zope.app.basicskin = 3.4.0a1
+zope.app.broken = 3.4.0a1
+zope.app.component = 3.4.0b3
+zope.app.container = 3.5.0a1
+zope.app.content = 3.4.0a1
+zope.app.debug = 3.4.0a1
+zope.app.dependable = 3.4.0a1
+zope.app.error = 3.4.0a1
+zope.app.exception = 3.4.0a1
+zope.app.folder = 3.4.0a1
+zope.app.form = 3.4.0b2.dev-r77626
+zope.app.generations = 3.4.0a1
+zope.app.http = 3.4.0a1
+zope.app.i18n = 3.4.0a1
+zope.app.interface = 3.4.0a1
+zope.app.intid = 3.4.0a2
+zope.app.keyreference = 3.5.0b1
+zope.app.locales = 3.4.0b1.dev-r77033
+zope.app.pagetemplate = 3.4.0b1dev-r75616
+zope.app.principalannotation = 3.4.0a1
+zope.app.publication = 3.4.0a1-2
+zope.app.publisher = 3.5.0a2
+zope.app.renderer = 3.4.0a1
+zope.app.rotterdam = 3.4.0a1
+zope.app.schema = 3.4.0a1
+zope.app.security = 3.4.0a1-1
+zope.app.session = 3.5.0dev-r77333
+zope.app.testing = 3.4.0b1-r78707
+zope.app.wsgi = 3.4.0b1dev-r75415
+zope.app.zapi = 3.4.0a1
+zope.app.zcmlfiles = 3.4.0a1
+zope.app.zopeappgenerations = 3.4.0a1
+zope.cachedescriptors = 3.4.0
+zope.component = 3.4.0a1
+zope.configuration = 3.4.0b1
+zope.contenttype = 3.4.0a1
+zope.copypastemove = 3.4.0a1
+zope.datetime = 3.4.0
+zope.deferredimport = 3.4.0
+zope.deprecation = 3.4.0
+zope.dottedname = 3.4.0
+zope.dublincore = 3.4.0a1
+zope.event = 3.4.0
+zope.exceptions = 3.4.0b2
+zope.filerepresentation = 3.4.0a1
+zope.formlib = 3.4.0a1
+zope.hookable = 3.4.0
+zope.i18n = 3.4.0b5.dev-r78840
+zope.i18nmessageid = 3.4.0
+zope.interface = 3.4.0
+zope.lifecycleevent = 3.4.0
+zope.location = 3.4.0b2
+zope.minmax = 1.0b2
+zope.modulealias = 3.4.0a1
+zope.pagetemplate = 3.4.0a1
+zope.proxy = 3.4.0
+zope.publisher = 3.5.0a1.dev-r78838
+zope.schema = 3.4.0b1dev-r77624
+zope.security = 3.4.0b5
+zope.size = 3.4.0
+zope.structuredtext = 3.4.0
+zope.tal = 3.4.0b1
+zope.tales = 3.4.0a1
+zope.testing = 3.5.1
+zope.thread = 3.4
+zope.traversing = 3.5.0a1.dev-r78730
Modified: zc.sourcefactory/trunk/src/zc/sourcefactory/browser/README.txt
===================================================================
--- zc.sourcefactory/trunk/src/zc/sourcefactory/browser/README.txt 2007-09-11 19:51:42 UTC (rev 79575)
+++ zc.sourcefactory/trunk/src/zc/sourcefactory/browser/README.txt 2007-09-11 20:25:58 UTC (rev 79576)
@@ -41,6 +41,11 @@
>>> terms.getTerm('d')
<zc.sourcefactory.browser.source.FactoredTerm object at 0x...>
+Unicode values are allowed as well:
+
+ >>> terms.getTerm(u'\xd3')
+ <zc.sourcefactory.browser.source.FactoredTerm object at 0x...>
+
Our terms are ITitledTokenizedTerm-compatible::
>>> import zope.schema.interfaces
@@ -51,8 +56,8 @@
In the most simple case, the title of a term is the string representation of
the object::
- >>> terms.getTerm('a').title # XXX This should return unicode.
- 'a'
+ >>> terms.getTerm('a').title
+ u'a'
If an adapter from the value to IDCDescriptiveProperties exists, the title
will be retrieved from this adapter::
Modified: zc.sourcefactory/trunk/src/zc/sourcefactory/policies.py
===================================================================
--- zc.sourcefactory/trunk/src/zc/sourcefactory/policies.py 2007-09-11 19:51:42 UTC (rev 79575)
+++ zc.sourcefactory/trunk/src/zc/sourcefactory/policies.py 2007-09-11 20:25:58 UTC (rev 79576)
@@ -55,7 +55,7 @@
if md:
title = md.title
else:
- title = str(value)
+ title = unicode(value)
return title
More information about the Checkins
mailing list