This release is a pre-release and may not be stable for production use.
Detailed Documentation
Clock widget for toscawidget and turbogears
This Widget encapsulates the epiclock JavaScript library http://code.google.com/p/epiclock for inserting clocks and countdowns contents in a standard-friendly manner.
The current epiclock version packaged with this widget is version 3.0 http://epiclock.googlecode.com/files/epiclock-3.0.fixed.tar.gz From within your controller, simply instantiate an Epiclock and return this instance to be rendered within your template:
from tw.epiclock import Epiclock
from tg import tmpl_context
...
tmpl_context.my_clock = Epiclock("my_clock")
From within your template, simply call the epiclock:
${tmpl_context.my_clock()}
Another common use is display server time somewhere in a header zone in lib/helpers.py:
from tw.epiclock import Epiclock
clock = Epiclock("clock", format="j-n-Y G:i:s")
anywhere in templates:
${h.clock()}
custom renderers (retros) are not available is this release
in static jquery.dateformat.js and jquery.epiclock.js are for documentation purpose only the minimized versions are actually injected in your code
Contributors
Main developpers
Nicolas Laurance <nicolas[dot]laurance[at]gmail[dot]com>
Change history
New in 0.1
First Release
Metadata
Release files for tw.epiclock 0.1a3dev-20110304
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tw.epiclock-0.1a3dev-20110304.tar.gz | 21.2 kB | Details |
Release files / tw.epiclock-0.1a3dev-20110304.tar.gz
| Download URL | tw.epiclock-0.1a3dev-20110304.tar.gz |
|---|---|
| Size | 21.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d2b3a2f84f987b73499f366a67e794ea31e4232ceb86494a3bd7d0bed0246386
|
|
BLAKE2b-256 checksum How to use checksums |
c15dd867ea5bbf473ff12156a476886547c260924e5f8e18104bcd7e489ab75c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |