[Checkins] SVN: megrok.layout/trunk/ Release 1.0.2 - bugfix
Souheil CHELFOUH
souheil at chelfouh.com
Mon Oct 18 06:00:39 EDT 2010
Log message for revision 117675:
Release 1.0.2 - bugfix
Changed:
U megrok.layout/trunk/docs/HISTORY.txt
U megrok.layout/trunk/setup.py
U megrok.layout/trunk/src/megrok/layout/components.py
-=-
Modified: megrok.layout/trunk/docs/HISTORY.txt
===================================================================
--- megrok.layout/trunk/docs/HISTORY.txt 2010-10-18 10:00:31 UTC (rev 117674)
+++ megrok.layout/trunk/docs/HISTORY.txt 2010-10-18 10:00:38 UTC (rev 117675)
@@ -1,6 +1,14 @@
Changelog
=========
+1.0.2 (2010-02-26)
+------------------
+
+- The existence test for the `application_url` site-lookup was
+ wrongly using a "if not" statement. In a case of a container, the object
+ is evaluated to False if it's empty. We now use a proper "if .. is
+ None". [trollfot]
+
1.0.1 (2010-02-25)
------------------
Modified: megrok.layout/trunk/setup.py
===================================================================
--- megrok.layout/trunk/setup.py 2010-10-18 10:00:31 UTC (rev 117674)
+++ megrok.layout/trunk/setup.py 2010-10-18 10:00:38 UTC (rev 117675)
@@ -11,12 +11,13 @@
'zope.schema',
'zope.security',
'zope.session',
+ 'zope.site',
'zope.testing',
'zope.traversing',
]
setup(name='megrok.layout',
- version='1.0.1',
+ version='1.0.2',
description="A layout component package for zope3 and Grok.",
long_description = long_description,
classifiers=[
@@ -49,6 +50,5 @@
'zope.component >= 3.9.1',
'zope.interface',
'zope.publisher',
- 'zope.site',
],
)
Modified: megrok.layout/trunk/src/megrok/layout/components.py
===================================================================
--- megrok.layout/trunk/src/megrok/layout/components.py 2010-10-18 10:00:31 UTC (rev 117674)
+++ megrok.layout/trunk/src/megrok/layout/components.py 2010-10-18 10:00:38 UTC (rev 117675)
@@ -10,7 +10,7 @@
from z3c.flashmessage.interfaces import IMessageSource
from zope.interface import Interface
from zope.publisher.publish import mapply
-from zope.site.hooks import getSite
+from zope.component.hooks import getSite
class UtilityView(object):
@@ -21,7 +21,7 @@
"""Return the URL of the nearest site.
"""
site = getSite()
- if not site:
+ if site is None:
raise zope.component.ComponentLookupError("No site found.")
return self.url(site, name)
More information about the checkins
mailing list