Skip to main content

hurry.yui

Introduction

This library packages YUI for hurry.resource. It is aware of YUI’s dependency structure and different modes (normal, minified and debug) and resource rollups.

How to use?

You can import various bits of YUI from hurry.yui and .need them where you want these resources to be included on a page:

from hurry import yui

.. in your page or widget rendering code, somewhere ..

yui.datatable.need()

All the module names as listed here are available in the hurry.yui package. In addition rolled up modules are also available (such as reset_fonts_grids), but rollup inclusion will be done automatically so these need not to be referred to explicitly. See the hurry.resource documentation for more information.

This requires integration between your web framework and hurry.resource, and making sure that the original resources (shipped in the yui-build directory in hurry.yui) are published to some URL.

The package has already been integrated for Grok and Zope 3. If you depend on the hurry.zopeyui package in your setup.py, the above example should work out of the box. Starting with version 2.6.0.4 you do not need hurry.zopeyui anymore. Instead it is sufficient to depend on the hurry.zoperesource package in your setup.py.

Preparing hurry.yui before release

This section is only relevant to release managers of hurry.yui.

The javascript code that this package relies on is not checked into subversion to sidestep the copyright policy of svn.zope.org. Instead, just before release to pypi, an entry point is triggered that downloads the appropriate javascript code. To trigger this automated behavior you should do the release using bin/fullrelease, which uses zest.releaser configured with the appropriate entry points.

To update to a newer version of YUI, adjust the constants in hurry/yui/prepare.py.

CHANGES

2.7.0.1 (2010-07-29)

  • Compatibility with hurry.resource 0.10 and up.

  • Automate YUI download during release with zest.releaser.

2.7.0 (2009-09-07) (YUI version 2.7.0)

  • Updated to YUI version 2.7.0.

2.6.0.4 (2009-04-28) (YUI version 2.6.0)

  • Add ZCML configuration from hurry.zopeyui. With Zope you can now use hurry.yui without additional hurry.zopeyui. Please make sure, however, that hurry.zoperesource is available at runtime.

2.6.0.3 (2008-12-03) (YUI version 2.6.0)

  • Add the sam skin to hurry.yui. This is the consolidated minified SAM skin - the split up .css files would require more work to implement.

2.6.0.2 (2008-10-15) (YUI version 2.6.0)

  • Update to work with hurry.resource 0.3.

  • Extend tests to exercise minification of rolled up resources.

2.6.0.1 (2008-10-13) (YUI version 2.6.0)

  • Much improved documentation.

2.6.0 (2008-10-11) (YUI version 2.6.0)

  • Initial public release.

Download

Release files for hurry.yui 2.7.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hurry.yui 2.7.0.1
File Size Uploaded
hurry.yui-2.7.0.1.tar.gz 2.2 MB Details

Release files / hurry.yui-2.7.0.1.tar.gz

Download URL hurry.yui-2.7.0.1.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
db4662c36afd41af00d1ea8900434af18d7e8e42f1af18c9dbc4238b87df2f39
BLAKE2b-256 checksum
How to use checksums
86db7540fa5225b337f4144e5c23fa604aa4c5a449a6028aee27db3ff8904721
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

2.7.0.1 This release

1 release file

2.7.0

1 release file

2.6.0.4

1 release file

2.6.0.2

1 release file

2.6.0.1

1 release file

2.6.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page