Hi Simone, Simone Deponti wrote:
> I personally find the scipt.aculo.us API very unflexible.
I have nearly no idea of ECMAScript aka JavaScript, but as I found the
ruins of script.aculo.us integration in ``kss.core`` and liked the
examples on the web pages (in the sense of style and ease-of-use), I
just tried it. That does of course not mean, that this library is the
best or only one, one could use to archieve simple client-sided effects.
In fact I'd love to have plenty different KSS-packages (plugins)
available, that could serve for different purposes and depending on the
use-case.
> That's why, a while ago, I wrote a not-so-simple plugin to add the
> YAHOO UI animation package to KSS.
> It's substantially feature complete, although there are missing demos
> for some animations.
> The plugin was mostly designed to be flexible yet easy enough to use
> so that a webdesigner could handle the task.
> It defines a set of basic animations that, by tweaking parameters,
> allows us to have all the proper effects.
Nice to hear :-) I didn't find your package before, because it was not
published on cheeseshop. As you certainly know, Zope packages make heavy
use of PyPI. Could you consider to publish the package on PyPI? That
would make usage in other packages much easier :-)
Is there BTW a list of other available KSS-packages somewhere? Looks
like there are some treasures to unhide.
[snip: examples of kss.animation.yui]
The chaining of effects with YUI is certainly a really nice feature.
> I hope that someone would find this code useful, as it turned out for
> me to be mostly an exercise to properly learn Javascript (people
> suddenly stopped to ask me to implement fancy effects), and I'm very
> much open to contributions, suggestions and critics.
Sure. I noticed that you didn't declared the namespace packages as such.
You might want to replace the empty `__init__` modules in `kss` and
`kss/animation` with the following (or a similar) boilerplate::
# namespace package boilerplate (__init__.py)
try:
import pkg_resources
pkg_resources.declare_namespace(__name__)
except ImportError, e:
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
This avoids trouble when someone wants to use your package as an egg
and when publishing the package on PyPI.
Thanks for the hint and kind regards,
--
Uli
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
_______________________________________________ Kss-devel mailing list [email protected] http://codespeak.net/mailman/listinfo/kss-devel
