Zope3 UI Layer, resource and viewlets bundles for ExtJS v3 JavaScript library.
Project description
Zope3 UI Layer, resource and viewlets bundles for ExtJS v3 JavaScript library
Introduction
Download ExtJS v3.x (http://extjs.com/products/extjs/download.php) and put it in your operating system anywhere. For example for me it is the following path: /usr/lib/ext-3 Within this folder must be located extracted ExtJS v3 framework distribution.
Anywhere in you project register resource directory has named as ext-3. For example:
<resourceDirectory layer="falkolab.ext3.layer.IExtJSLayer" name="ext-3" directory="/usr/lib/ext-3" />
This package will looking for the resourceDirectory named ext-3, so it’s important that you use the same name in the resourceDirectory statement.
How to use?
This package provide two Viewlet Managers: IExtLayerCSS and IExtLayerJavaScript. You may use it in you project skin template. For example like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" i18n:domain="mysite"> <head> ... <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="pragma" content="no-cache" /> <tal:block replace="structure provider:IExtLayerCSS" /> <tal:block replace="structure provider:IExtLayerJavaScript" /> </head> <body> ... </body> </html>
Or derive/implement your own managers for falkolab.ext3.layer.IExtLayerCSS and falkolab.ext3.layer.IExtLayerJavaScript interfaces.
NOTE: For necessary script including order, please use ordered manager: zope.viewlet.manager.WeightOrderedViewletManager
This package contain several viewlet bunles for ExtJS. Use one of them according base library you use:
ext-all.css |
All ExtJS library CSS styles. |
ext-standalone |
ExtJS library with own adapter (without any external dependences). IExtStandaloneLayer and IExtStandaloneDebugLayer layers. |
ext-jquery |
ExtJS library with jQuery adapter (WARNING: read note below). IExtJQueryLayer and IExtJQueryDebugLayer layers. |
ext-yui |
ExtJS library with YUI adapter (WARNING: read note below). IExtYUILayer and IExtYUIDebugLayer layers. |
ext-prototype |
ExtJS library with Prototype adapter (WARNING: read note below). IExtPrototypeLayer and IExtPrototypeDebugLayer layers. |
NOTE: For bundles which dependet on external library jQuery, YUI or Prototype you must manualy register corresponding resources in your project and place it to your template before this package inclusions. Please see http://extjs.com/learn/Ext_Getting_Started#What_is_the_proper_include_order_for_my_JavaScript_files.3F for details.
Skin layer system example:
from z3c.layer.pagelet import IPageletBrowserLayer from zope.viewlet.interfaces import IViewletManager from zope.publisher.interfaces.browser import IBrowserRequest from falkolab.ext3.layer import IExtJQueryLayer, IExtJQueryDebugLayer from falkolab.ext3.layer.interfaces import IExtLayerCSS, IExtLayerJavaScript class myskin(IExtJQueryLayer): """ layer for skin base components """ class IMySkin(myskin, IPageletBrowserLayer): """ IMySkin skin """ class IMyDebugSkin(IExtJQueryDebugLayer, IMySkin): """ IMySkin debug skin """ class ITitle(IViewletManager): """Title viewlet manager.""" # This two interfaces for case when you use own Viewlet Managers # registration for combine site templete and falkolab.ext3.layer viewlets. class ICSS(IExtLayerCSS): """CSS viewlet manager.""" class IJavaScript(IExtLayerJavaScript): """JavaScript viewlet manager."""
CHANGES
1.0.1 (2009-09-30)
- bugfix: Replacement adapter script name for viewlets
in compliance with debug version
1.0.0a (2009-06-05)
Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for falkolab.ext3.layer-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ebdf3bd0da7d62c6e5f98432789bfdf1ef8b77c00ef48da84263e92a80fca93 |
|
MD5 | bd188de86e59fe4015d2480f5da57b2e |
|
BLAKE2b-256 | defaf9b13a221bc3aee4b4de513548d92c1748f07da061821058fcb4bc6b8250 |
Hashes for falkolab.ext3.layer-1.0.1-py2.6.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5487d82c66a965e6fb2c7c5cbc54779aa9465a85297702248123c8210a91f1d8 |
|
MD5 | f5368001f22eb13e51deeb0d4d529287 |
|
BLAKE2b-256 | c966d3f655f16b30c03a29a2af82211b2033cb7aaeb0c83b6000e4e3067da6f8 |
Hashes for falkolab.ext3.layer-1.0.1-py2.5.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 976d3e86176036efd368cff96a44941d0bd640556261a3e268f959c050329ad7 |
|
MD5 | 48d5559b419711b1a4a4882e49bd70c4 |
|
BLAKE2b-256 | 67a21c78e315513fa79ae18bfde06cc815b618165b2618b1c39c55aeb6ac2503 |
Hashes for falkolab.ext3.layer-1.0.1-py2.4.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 694037f01691d34ec349f02a4d3ce6eda89de69ddb9acbe43c666c6288b113a1 |
|
MD5 | 7e0fc2c7aead7b37d3731b3d222f2a12 |
|
BLAKE2b-256 | 9ab0dad2edc96b3b9da0f3d78746fcc68a4f6a8fe17ed6c6dcddd0b13b6269dc |