While libraries provide abstract locations for objects of any type,
Kupu distinguishes objects by resource type. For example, a user might
Modified: kupu/trunk/kupu/plone/zmi_docs.pt
==============================================================================
--- kupu/trunk/kupu/plone/zmi_docs.pt (original)
+++ kupu/trunk/kupu/plone/zmi_docs.pt Thu Apr 26 02:03:06 2007
@@ -3,244 +3,6 @@
metal:use-macro="here/kupu_config/macros/master"
i18n:domain="plone">
-
-
-
-
Kupu Toolbar Configuration
+ Kupu Toolbar Configuration
Modified: kupu/trunk/kupu/plone/kupu_plone_layer/kupu_wysiwyg_support.html
==============================================================================
--- kupu/trunk/kupu/plone/kupu_plone_layer/kupu_wysiwyg_support.html (original)
+++ kupu/trunk/kupu/plone/kupu_plone_layer/kupu_wysiwyg_support.html Sat Apr 28 12:29:22 2007
@@ -436,18 +436,70 @@
-
-
-
+
Structured Text
-
+
HTML
-
+
Plain Text
Modified: kupu/trunk/kupu/plone/kupu_plone_layer/kupuplone.css.dtml
==============================================================================
--- kupu/trunk/kupu/plone/kupu_plone_layer/kupuplone.css.dtml (original)
+++ kupu/trunk/kupu/plone/kupu_plone_layer/kupuplone.css.dtml Sat Apr 28 12:29:22 2007
@@ -72,6 +72,11 @@
/* plone customizations regarding color and borders etc */
+/* hide the Plone table of contents if it is visible (inline edit) */
+dl.toc {
+ display: none;
+}
+
.kupu-tb {
background-color:&dtml-contentViewBackgroundColor;;
padding-bottom:0px; margin:0;
Modified: kupu/trunk/kupu/plone/kupu_references/referencebrowser.pt
==============================================================================
--- kupu/trunk/kupu/plone/kupu_references/referencebrowser.pt (original)
+++ kupu/trunk/kupu/plone/kupu_references/referencebrowser.pt Sat Apr 28 12:29:22 2007
@@ -180,7 +180,6 @@
value=""
id=""
tal:attributes="value obj/title_or_id;
- tabindex tabindex/next;
size python:test(widget.size=='', 30, widget.size);
id string:${fieldName}_label" readonly="readonly" />
@@ -204,11 +203,9 @@
tal:define="targets python:[(here.reference_catalog.lookupObject(u),u) for u in uids if u]">
+ size python:test(widget.size=='', 8, widget.size);">
@@ -85,10 +83,8 @@
type="radio"
name="text_format"
value="structured-text"
- tabindex=""
id="cb_structuredtext"
- tal:attributes="checked python:test(text_format=='structured-text', 1, None);
- tabindex tabindex;"
+ tal:attributes="checked python:test(text_format=='structured-text', 1, None);"
/>
Structured Text
@@ -96,10 +92,8 @@
type="radio"
name="text_format"
value="html"
- tabindex=""
id="cb_html"
- tal:attributes="checked python:test(text_format=='html', 1, None);
- tabindex tabindex;"
+ tal:attributes="checked python:test(text_format=='html', 1, None);"
/>
HTML
@@ -107,10 +101,8 @@
type="radio"
name="text_format"
value="plain"
- tabindex=""
id="cb_plain"
- tal:attributes="checked python:test(text_format=='plain', 1, None);
- tabindex tabindex;"
+ tal:attributes="checked python:test(text_format=='plain', 1, None);"
/>
Plain Text
Modified: kupu/trunk/kupu/plone/zmi_toolbar.pt
==============================================================================
--- kupu/trunk/kupu/plone/zmi_toolbar.pt (original)
+++ kupu/trunk/kupu/plone/zmi_toolbar.pt Sat Apr 28 12:29:22 2007
@@ -88,12 +88,10 @@
From duncan at codespeak.net Mon Apr 30 14:50:26 2007
From: duncan at codespeak.net (duncan at codespeak.net)
Date: Mon, 30 Apr 2007 14:50:26 +0200 (CEST)
Subject: [kupu-checkins] r42473 - kupu/trunk/kupu/plone/kupu_plone_layer
Message-ID: <20070430125026.4E6DC8077@code0.codespeak.net>
Author: duncan
Date: Mon Apr 30 14:50:25 2007
New Revision: 42473
Modified:
kupu/trunk/kupu/plone/kupu_plone_layer/resolveuid.py
Log:
Fix typo in resolveuid.py
Modified: kupu/trunk/kupu/plone/kupu_plone_layer/resolveuid.py
==============================================================================
--- kupu/trunk/kupu/plone/kupu_plone_layer/resolveuid.py (original)
+++ kupu/trunk/kupu/plone/kupu_plone_layer/resolveuid.py Mon Apr 30 14:50:25 2007
@@ -19,7 +19,7 @@
if not obj:
hook = getattr(context, 'kupu_resolveuid_hook', None)
if hook:
- obj = hook(uid)
+ obj = hook(uuid)
if not obj:
return context.standard_error_message(error_type=404,
error_message='''The link you followed appears to be broken''')
From duncan at codespeak.net Mon Apr 30 15:57:13 2007
From: duncan at codespeak.net (duncan at codespeak.net)
Date: Mon, 30 Apr 2007 15:57:13 +0200 (CEST)
Subject: [kupu-checkins] r42483 - kupu/branch/duncan-flash
Message-ID: <20070430135713.6AB57807A@code0.codespeak.net>
Author: duncan
Date: Mon Apr 30 15:57:13 2007
New Revision: 42483
Added:
kupu/branch/duncan-flash/
- copied from r42482, kupu/trunk/kupu/
Log:
Created a branch to add Flash support
From duncan at codespeak.net Mon Apr 30 16:22:35 2007
From: duncan at codespeak.net (duncan at codespeak.net)
Date: Mon, 30 Apr 2007 16:22:35 +0200 (CEST)
Subject: [kupu-checkins] r42487 - in kupu/branch/duncan-flash: common doc
plone plone/kupu_plone_layer
Message-ID: <20070430142235.935CD806B@code0.codespeak.net>
Author: duncan
Date: Mon Apr 30 16:22:35 2007
New Revision: 42487
Modified:
kupu/branch/duncan-flash/common/kupubasetools.js
kupu/branch/duncan-flash/doc/LIBRARIES.txt
kupu/branch/duncan-flash/doc/PLONE2.txt
kupu/branch/duncan-flash/plone/kupu_plone_layer/kupucollection.xml.pt
kupu/branch/duncan-flash/plone/librarytool.py
kupu/branch/duncan-flash/plone/plonedrawers.py
kupu/branch/duncan-flash/plone/plonelibrarytool.py
kupu/branch/duncan-flash/plone/resource_types.pt
Log:
Partially implemented support for Flash media.
So far: allows adding a Flash content type to resource library for media (probably just ATFlashMovie since that's what I'm using) and includes a new xml tag to distinguish flash from images.
To do: make xsl expose the media field to the javascript, fix up filtering to not remove the object tag.
Modified: kupu/branch/duncan-flash/common/kupubasetools.js
==============================================================================
--- kupu/branch/duncan-flash/common/kupubasetools.js (original)
+++ kupu/branch/duncan-flash/common/kupubasetools.js Mon Apr 30 16:22:35 2007
@@ -1271,6 +1271,13 @@
return img;
};
+ this.createObject = function(url, type, alttext, className, width, height) {
+ var ed = this.editor;
+ var obj = ed.newElement('object',
+ {src:url, alt:alttext, className:className, width:width, height:height, type:type}
+ [ed.newElement('param', {name:'movie', value:url})]);
+ }
+
this.setImageClass = function(imgclass) {
/* set the class of the selected image */
var currnode = this.editor.getSelectedNode();
Modified: kupu/branch/duncan-flash/doc/LIBRARIES.txt
==============================================================================
--- kupu/branch/duncan-flash/doc/LIBRARIES.txt (original)
+++ kupu/branch/duncan-flash/doc/LIBRARIES.txt Mon Apr 30 16:22:35 2007
@@ -120,7 +120,10 @@
& element label { text }?
&
## Icon to use in resource pane
- element icon { xsd:anyURI }?)
+ element icon { xsd:anyURI }?
+ &
+ ## Type of media to insert in document
+ element media { text }?)
## A list of collections and resources with an optional upload button at the end.
collectionItems =
@@ -405,13 +408,27 @@
- Go to the kupu configlet/resource types tab. Scroll to the bottom
of the page.
- - Under 'preview URLs' select the type 'Image' and under URL enter:
+ - Under 'preview URLs' select the type 'Image' and under preview enter:
string:${object_url}/image_thumb
- Hit the 'Save' button.
+Flash support
+-------------
+
+To support Flash you need a separate content type (such as ATFlashMovie).
+1. Add this content type to the mediaobject resource type.
+2. Add the type under the 'action urls' section at the bottom of the
+ resource types tab. Put in appropriate expressions for the urls (for
+ ATFlashMove the 'Normal Image' expression is:
+ 'string:${object_url}/download'. Select type 'flash'.
+
+N.B. This function is not yet fully implemented, so when you've done
+that it still won't work. Watch this space...
+
+
Futures
-------
Modified: kupu/branch/duncan-flash/doc/PLONE2.txt
==============================================================================
--- kupu/branch/duncan-flash/doc/PLONE2.txt (original)
+++ kupu/branch/duncan-flash/doc/PLONE2.txt Mon Apr 30 16:22:35 2007
@@ -339,6 +339,15 @@
Defaults to 'image'. N.B. This is a literal string, not a tal
expression.
+ classes
+ An optional list of class names to be allowed for this media
+ type. The class names will be applied in addition to
+ left/inline/right and captioned class names.
+
+ type
+ This controls whether kupu inserts an img tag or an object
+ tag. Only images and flash objects are supported at this time.
+
documentation tab
=================
Modified: kupu/branch/duncan-flash/plone/kupu_plone_layer/kupucollection.xml.pt
==============================================================================
--- kupu/branch/duncan-flash/plone/kupu_plone_layer/kupucollection.xml.pt (original)
+++ kupu/branch/duncan-flash/plone/kupu_plone_layer/kupucollection.xml.pt Mon Apr 30 16:22:35 2007
@@ -37,6 +37,9 @@
tal:content="info/url">URI
-
Kupu Resource Types
-
-While libraries provide abstract locations for objects of any type,
-Kupu distinguishes objects by resource type. For example, a user might
-request a library showing objects to link to or a library showing
-objects to be inserted into a document. The abstract location
-(library) might be the same, but the former library would contain
-documents, the latter images.
-
-This management screen allows you to define resource types using a
-list of portal types. A special resource type, collection,
-identifies portal types that are to be treated as collections.
-The resource type containsanchors is used to list types which
-may contain HTML anchors.
-
-Also on this screen are urls
-for each type which can be previewed as an image. The expression may
-use object_url and portal_type, but should
-not attempt to access the object directly. The resulting URL should
-ideally return an image no larger than 128 pixels square.
-
-
-Map resource types
-
-
-
-
-
-
-
-
-
+lang="en"
+metal:use-macro="here/kupu_config/macros/master"
+i18n:domain="kupuconfig">
+
+
+
+
Kupu Resource Types
+
+ While libraries provide abstract locations for objects of any type,
+ Kupu distinguishes objects by resource type. For example, a user might
+ request a library showing objects to link to or a library showing
+ objects to be inserted into a document. The abstract location
+ (library) might be the same, but the former library would contain
+ documents, the latter images.
+ This management screen allows you to define resource types using a
+ list of portal types. A special resource type, collection,
+ identifies portal types that are to be treated as collections.
+ The resource type containsanchors is used to list types which
+ may contain HTML anchors.
+
+ Also on this screen are urls
+ for each type which can be previewed as an image. The expression may
+ use object_url and portal_type, but should
+ not attempt to access the object directly. The resulting URL should
+ ideally return an image no larger than 128 pixels square.
+
+
+ Map resource types
+
+
+
+
+
+
+
+
+
-
-
From duncan at codespeak.net Mon Apr 30 16:35:24 2007
From: duncan at codespeak.net (duncan at codespeak.net)
Date: Mon, 30 Apr 2007 16:35:24 +0200 (CEST)
Subject: [kupu-checkins] r42488 - kupu/trunk/kupu/common/kupudrawers
Message-ID: <20070430143524.36FBB8075@code0.codespeak.net>
Author: duncan
Date: Mon Apr 30 16:35:23 2007
New Revision: 42488
Modified:
kupu/trunk/kupu/common/kupudrawers/drawer.xsl
Log:
Removed most of the illegal forms from drawer.xsl. Hopefully this will stop IE6 crashing.
(Left in the image upload form as that actually gets submitted. It needs fixing also, but that will be harder).
Modified: kupu/trunk/kupu/common/kupudrawers/drawer.xsl
==============================================================================
--- kupu/trunk/kupu/common/kupudrawers/drawer.xsl (original)
+++ kupu/trunk/kupu/common/kupudrawers/drawer.xsl Mon Apr 30 16:35:23 2007
@@ -299,25 +299,28 @@