[Kss-devel] plone.app.kss sprint after the Plone Conference in Naples (13-14-15 October)
Massimo Azzolini
massimo.azzolini at gmail.com
Thu Sep 13 12:07:53 CEST 2007
hi balatz, hi all,
On 9/12/07, Balazs Ree <ree at ree.hu> wrote:
> The sprint track will be lead by Balazs Ree and Jeroen Vloothuis, and
> will be targeted at AJAX functionality for Plone 3.5: the development of
> the plone.app.kss and archetypes.kss products, and custom kss plugins.
in the last month a student (nicola senno) spent his stage in our
company. we projected an "add-on" for plone3 and kss using DnD (drag
and drop, not dungeons and dragons :).
the project implements this functionality:
since you can define (using kss) that some objects are draggable and
others are droppable, we started defining that everything in the
content area and in the navigation portlet is draggable and vice versa
(they are also droppable).
when you drag an obj A to another obj B, a div appears near the
dropping point, asking if you want to copy, move or cancel operation
(obviously you can copy or move depending on your access to both
objects and if objA can be moved/copied into B). The behaviour is the
same as in ms explorer or in konqueror..
after that the system completes the operation refreshing the parts of
the plone interface that are involved in the operation.
we planned to define which kind of div/actions we have to
draw/implement depending on the area you are dropping.
I try to explain it better: if I drag a page on a folder (inside the
navigator) the action is obviously "I want to move/copy the page in
that folder", but if I drag a an event to "march 19, 2007" on the
calendar portlet, which is my goal?
It could be: " I want to change the start/end date of the event" so
the div should ask me to choose between if I wanna change the start or
end date.
In the same way we can write a shopping-cart-portlet and add item to it..
So we (nicola..) are trying to coding it using adapters which adapts a
"INavigator"/"ICalendar"/"IMyPortlet" to a obj that draws the div and
implements the underlying rules.
we had some problem with the dnd implementation (as balatz said, there
were problems..) but we relied on the fact that you surely fix it in
the future..
If you may be interested in, we could extend/complete it during the sprint.
see you in naples
massimo
More information about the Kss-devel
mailing list