[Checkins] SVN: grokcore.annotation/trunk/ Use grok 1.0b2 as version list in buildout.
Sylvain Viollon
sylvain at infrae.com
Fri Sep 18 04:31:14 EDT 2009
Log message for revision 104270:
Use grok 1.0b2 as version list in buildout.
Add test on annotation containement.
Redefine the IGrokcoreAnnotationAPI.
Changed:
U grokcore.annotation/trunk/CHANGES.txt
U grokcore.annotation/trunk/buildout.cfg
U grokcore.annotation/trunk/src/grokcore/annotation/interfaces.py
U grokcore.annotation/trunk/src/grokcore/annotation/tests/annotation/annotation.py
U grokcore.annotation/trunk/src/grokcore/annotation/tests/annotation/name.py
D grokcore.annotation/trunk/versions.cfg
-=-
Modified: grokcore.annotation/trunk/CHANGES.txt
===================================================================
--- grokcore.annotation/trunk/CHANGES.txt 2009-09-18 08:13:15 UTC (rev 104269)
+++ grokcore.annotation/trunk/CHANGES.txt 2009-09-18 08:31:13 UTC (rev 104270)
@@ -5,9 +5,11 @@
----------------
* The annotation object become really a contained object to be aware
- of its context [thefunny42 and trollfot].
+ of its context, and name.
-* Brought versions.cfg into line with the 1.0 grok versions.cfg.
+* Use 1.0b1 versions.cfg in Grok's release info instead of a local
+ copy; a local copy for all grokcore packages is just too hard to
+ maintain.
1.0.1 (2009-06-30)
------------------
Modified: grokcore.annotation/trunk/buildout.cfg
===================================================================
--- grokcore.annotation/trunk/buildout.cfg 2009-09-18 08:13:15 UTC (rev 104269)
+++ grokcore.annotation/trunk/buildout.cfg 2009-09-18 08:31:13 UTC (rev 104270)
@@ -1,9 +1,12 @@
[buildout]
develop = .
parts = interpreter test
-extends = versions.cfg
+extends = http://grok.zope.org/releaseinfo/grok-1.0b1.cfg
versions = versions
+[versions]
+grokcore.annotation =
+
[interpreter]
recipe = zc.recipe.egg
eggs = grokcore.annotation
Modified: grokcore.annotation/trunk/src/grokcore/annotation/interfaces.py
===================================================================
--- grokcore.annotation/trunk/src/grokcore/annotation/interfaces.py 2009-09-18 08:13:15 UTC (rev 104269)
+++ grokcore.annotation/trunk/src/grokcore/annotation/interfaces.py 2009-09-18 08:31:13 UTC (rev 104270)
@@ -13,8 +13,17 @@
##############################################################################
"""Grok interfaces
"""
+
from zope import interface
-class IGrokcoreAnnotationAPI(interface.Interface):
+
+class IBaseClasses(interface.Interface):
+ """grokcore.annotation base classes.
+ """
Annotation = interface.Attribute("Base class for persistent annotations.")
+
+class IGrokcoreAnnotationAPI(IBaseClasses):
+ """grokcore.annotation API description.
+ """
+
Modified: grokcore.annotation/trunk/src/grokcore/annotation/tests/annotation/annotation.py
===================================================================
--- grokcore.annotation/trunk/src/grokcore/annotation/tests/annotation/annotation.py 2009-09-18 08:13:15 UTC (rev 104269)
+++ grokcore.annotation/trunk/src/grokcore/annotation/tests/annotation/annotation.py 2009-09-18 08:31:13 UTC (rev 104270)
@@ -12,6 +12,18 @@
>>> branding.addBrand('mine')
>>> branding.addBrand('yours')
+We can access the context by using __parent__:
+
+ >>> branding.__parent__
+ <grokcore.annotation.tests.annotation.annotation.Mammoth object at ...>
+ >>> branding.__parent__ is manfred
+ True
+
+And the name with __name__, here the default one:
+
+ >>> branding.__name__
+ 'grokcore.annotation.tests.annotation.annotation.Branding'
+
Regetting the adapter will yield the same annotation storage:
>>> brands = IBranding(manfred).getBrands()
Modified: grokcore.annotation/trunk/src/grokcore/annotation/tests/annotation/name.py
===================================================================
--- grokcore.annotation/trunk/src/grokcore/annotation/tests/annotation/name.py 2009-09-18 08:13:15 UTC (rev 104269)
+++ grokcore.annotation/trunk/src/grokcore/annotation/tests/annotation/name.py 2009-09-18 08:31:13 UTC (rev 104270)
@@ -28,6 +28,12 @@
>>> 'mammoth.branding' in IAnnotations(manfred)
True
+And the name is stored in __name__:
+
+ >>> ann.__name__
+ 'mammoth.branding'
+
+
"""
import grokcore.annotation as grok
Deleted: grokcore.annotation/trunk/versions.cfg
===================================================================
--- grokcore.annotation/trunk/versions.cfg 2009-09-18 08:13:15 UTC (rev 104269)
+++ grokcore.annotation/trunk/versions.cfg 2009-09-18 08:31:13 UTC (rev 104270)
@@ -1,115 +0,0 @@
-# This is a copy of grok/versions.cfg revision 102959.
-#
-# Don't make local modifications here, just override it explicitly in
-# your buildout's [versions] part.
-
-[versions]
-ClientForm = 0.2.9
-grokcore.component = 1.7
-grokcore.formlib = 1.2
-grokcore.security = 1.1
-grokcore.view = 1.9
-grokcore.viewlet = 1.1
-grokui.admin = 0.3.2
-martian = 0.11
-mechanize = 0.1.7b
-pytz = 2007k
-RestrictedPython = 3.4.2
-simplejson = 1.7.1
-z3c.autoinclude = 0.2.2
-z3c.flashmessage = 1.0
-z3c.testsetup = 0.4
-zc.catalog = 1.2.0
-ZConfig = 2.5.1
-zc.recipe.testrunner = 1.0.0
-zdaemon = 2.0.2
-ZODB3 = 3.8.2
-zodbcode = 3.4.0
-zope.annotation = 3.4.1
-zope.app.apidoc = 3.4.3
-zope.app.applicationcontrol = 3.4.3
-zope.app.appsetup = 3.4.1
-zope.app.authentication = 3.4.4
-zope.app.basicskin = 3.4.0
-zope.app.broken = 3.4.0
-zope.app.catalog = 3.5.1
-zope.app.component = 3.4.1
-zope.app.container = 3.5.6
-zope.app.content = 3.4.0
-zope.app.debug = 3.4.1
-zope.app.dependable = 3.4.0
-zope.app.error = 3.5.1
-zope.app.exception = 3.4.1
-zope.app.file = 3.4.4
-zope.app.folder = 3.4.0
-zope.app.form = 3.4.1
-zope.app.generations = 3.4.1
-zope.app.http = 3.4.1
-zope.app.i18n = 3.4.4
-zope.app.interface = 3.4.0
-zope.app.intid = 3.4.1
-zope.app.keyreference = 3.4.1
-zope.app.locales = 3.4.5
-zope.app.onlinehelp = 3.4.1
-zope.app.pagetemplate = 3.4.1
-zope.app.preference = 3.4.1
-zope.app.principalannotation = 3.4.0
-zope.app.publication = 3.4.3
-zope.app.publisher = 3.5.1
-zope.app.renderer = 3.4.0
-zope.app.rotterdam = 3.4.1
-zope.app.schema = 3.4.0
-zope.app.security = 3.5.2
-zope.app.securitypolicy = 3.4.6
-zope.app.server = 3.4.2
-zope.app.session = 3.5.1
-zope.app.skins = 3.4.0
-zope.app.testing = 3.4.3
-zope.app.tree = 3.4.0
-zope.app.twisted = 3.4.1
-zope.app.wsgi = 3.4.1
-zope.app.zapi = 3.4.0
-zope.app.zcmlfiles = 3.4.3
-zope.app.zopeappgenerations = 3.4.0
-zope.cachedescriptors = 3.4.1
-zope.component = 3.4.0
-zope.configuration = 3.4.0
-zope.contentprovider = 3.4.0
-zope.contenttype = 3.4.0
-zope.copypastemove = 3.4.0
-zope.datetime = 3.4.0
-zope.deferredimport = 3.4.0
-zope.deprecation = 3.4.0
-zope.dottedname = 3.4.2
-zope.dublincore = 3.4.0
-zope.error = 3.5.1
-zope.event = 3.4.0
-zope.exceptions = 3.4.0
-zope.filerepresentation = 3.4.0
-zope.formlib = 3.4.0
-zope.hookable = 3.4.0
-zope.i18n = 3.4.0
-zope.i18nmessageid = 3.4.3
-zope.index = 3.4.1
-zope.interface = 3.4.1
-zope.lifecycleevent = 3.4.0
-zope.location = 3.4.0
-zope.minmax = 1.1.0
-zope.modulealias = 3.4.0
-zope.pagetemplate = 3.4.0
-zope.proxy = 3.4.2
-zope.publisher = 3.4.9
-zope.schema = 3.4.0
-zope.security = 3.4.1
-zope.securitypolicy = 3.4.1
-zope.server = 3.4.3
-zope.session = 3.4.1
-zope.size = 3.4.0
-zope.structuredtext = 3.4.0
-zope.tal = 3.4.1
-zope.tales = 3.4.0
-zope.testbrowser = 3.4.2
-zope.testing = 3.7.6
-zope.thread = 3.4
-zope.traversing = 3.4.1
-zope.viewlet = 3.4.2
More information about the checkins
mailing list