Skip to content

Commit

Permalink
Exposing flot_js.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Jun 16, 2011
1 parent bf46c57 commit 499cd17
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -11,7 +11,7 @@

setup(
name='tw2.jqplugins.flot',
version='2.0a3',
version='2.0a4',
description='toscawidgets2 wrapper for the flot jQuery plugin',
long_description=long_description,
author='Ralph Bean',
Expand Down
4 changes: 4 additions & 0 deletions tests/test_imports.py
@@ -0,0 +1,4 @@


def test_import_js():
from tw2.jqplugins.flot import flot_js
1 change: 1 addition & 0 deletions tw2/jqplugins/flot/__init__.py
Expand Up @@ -4,3 +4,4 @@
"""

from widgets import *
from base import flot_js
5 changes: 3 additions & 2 deletions tw2/jqplugins/flot/base.py
@@ -1,11 +1,12 @@

import tw2.core as twc
import tw2.jquery.base as twjq_c
import tw2.jquery
import defaults

flot_js = twc.JSLink(
modname=__name__,
filename='static/jqplugins/flot/0.7/jquery.flot.min.js'
filename='static/jqplugins/flot/0.7/jquery.flot.min.js',
resources = [tw2.jquery.jquery_js],
)

__all__ = ['flot_js']

0 comments on commit 499cd17

Please sign in to comment.