[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kupu-checkins
Subject:    [kupu-checkins] r51158 - in kupu/trunk/kupu: doc plone
From:       duncan () codespeak ! net
Date:       2008-01-31 16:00:27
Message-ID: 20080131160027.2AE391684DD () codespeak ! net
[Download RAW message or body]

Author: duncan
Date: Thu Jan 31 17:00:24 2008
New Revision: 51158

Modified:
   kupu/trunk/kupu/doc/CHANGES.txt
   kupu/trunk/kupu/plone/kupu_plone_layer/kupuploneeditor.js
   kupu/trunk/kupu/plone/plonedrawers.py
Log:
Plone ticket 7680: Kupu stripping out anchor to top of current page
Links to the current page now set href="#" instead of href="".



Modified: kupu/trunk/kupu/doc/CHANGES.txt
==============================================================================
--- kupu/trunk/kupu/doc/CHANGES.txt	(original)
+++ kupu/trunk/kupu/doc/CHANGES.txt	Thu Jan 31 17:00:24 2008
@@ -2,6 +2,19 @@
 Kupu changes
 ============
 
+- 1.4.8
+
+  - Tabbing key now takes you to next/previous field. However, plone
+    ticket #7727 might result in tab behaviour changing again.
+
+  - Plone tickets
+
+    * 7680 Kupu stripping out anchor to top of current page
+    * 7713 Kupu browser "Home" link goes to Plone root and not content
+      root.
+    * 7728 turning on "Link using UIDs" breaks indexing of rich text
+      fields that contain unicode characters out of the 128 range
+
 - 1.4.7
 
   - Added metadata.xml file to the Plone GenericSetup profile.

Modified: kupu/trunk/kupu/plone/kupu_plone_layer/kupuploneeditor.js
==============================================================================
--- kupu/trunk/kupu/plone/kupu_plone_layer/kupuploneeditor.js	(original)
+++ kupu/trunk/kupu/plone/kupu_plone_layer/kupuploneeditor.js	Thu Jan 31 17:00:24 2008
@@ -66,7 +66,7 @@
                 path[i++] = '#';
             }
             str = path.join('/');
-            if (anchor) {
+            if (anchor || str=="") {
                 str = [str,anchor].join('#');
             }
             str = tag + str+'"';

Modified: kupu/trunk/kupu/plone/plonedrawers.py
==============================================================================
--- kupu/trunk/kupu/plone/plonedrawers.py	(original)
+++ kupu/trunk/kupu/plone/plonedrawers.py	Thu Jan 31 17:00:24 2008
@@ -646,15 +646,15 @@
                 src = src[len(base):].lstrip('/')
             try:
                 obj = portal.restrictedTraverse(src)
+                if portal_types:
+                    while not shasattr(obj.aq_base, 'portal_type'):
+                        obj = obj.aq_parent
+                    while obj.portal_type not in portal_types:
+                        obj = obj.aq_parent
+                        if obj is portal:
+                            return []
             except (KeyError, AttributeError):
                 return []
-            if portal_types:
-                while not shasattr(obj.aq_base, 'portal_type'):
-                    obj = obj.aq_parent
-                while obj.portal_type not in portal_types:
-                    obj = obj.aq_parent
-                    if obj is portal:
-                        return []
         else:
             # src=<uid1> <uid2> ... <uidn>
             src = src.split(' ') # src is a list of uids.
_______________________________________________
kupu-checkins mailing list
kupu-checkins@codespeak.net
http://codespeak.net/mailman/listinfo/kupu-checkins
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic