r252394 - in collective.formlib.link/trunk: . collective/formlib/link

"Thomas Clement Mogensen" <svn-changes-z4DKO/[email protected]>
Newsgroups gmane.comp.web.zope.plone.collective.cvs
Message-ID <[email protected]>
Author: tmog
Date: Tue May 14 12:52:36 2013
New Revision: 252394

Modified:
   collective.formlib.link/trunk/README.txt
   collective.formlib.link/trunk/collective/formlib/link/field.py
Log:
plone 4.3 compatibility

Modified: collective.formlib.link/trunk/README.txt
==============================================================================
--- collective.formlib.link/trunk/README.txt	(original)
+++ collective.formlib.link/trunk/README.txt	Tue May 14 12:52:36 2013
@@ -41,7 +41,14 @@
 	 tal:content="link/pretty_title_or_uri" />
 
 Releases
+
 --------
+Unreleased
+~~~~~~~~~~~~~~~~
+
+- Plone 4.3 compatibility
+  [tmog]
+
 
 0.2 (2011-07-01)
 ~~~~~~~~~~~~~~~~

Modified: collective.formlib.link/trunk/collective/formlib/link/field.py
==============================================================================
--- collective.formlib.link/trunk/collective/formlib/link/field.py	(original)
+++ collective.formlib.link/trunk/collective/formlib/link/field.py	Tue May 14 12:52:36 2013
@@ -2,7 +2,10 @@
 from zope import component
 from zope import schema
 
-from zope.app.component.hooks import getSite
+try:
+    from zope.component.hooks import getSite
+except ImportError:
+    from zope.app.component.hooks import getSite
 
 from Products.CMFCore.utils import getToolByName
 

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.