Permalink
Browse files

big namespace refactor

  • Loading branch information...
ralphbean committed Feb 4, 2011
1 parent c55c38d commit c0df4f54946d24d08842a53ff578ab08e0af6023
Showing with 26 additions and 27 deletions.
  1. +2 −2 MANIFEST.in
  2. +7 −7 README.rst
  3. +5 −5 setup.py
  4. 0 tw2/{jquery → jqplugins}/__init__.py
  5. 0 tw2/{jquery/plugins → jqplugins}/ui/__init__.py
  6. +2 −2 tw2/{jquery/plugins → jqplugins}/ui/base.py
  7. 0 tw2/{jquery/plugins → jqplugins}/ui/defaults.py
  8. 0 tw2/{jquery/plugins → jqplugins}/ui/samples.py
  9. BIN ...uery/plugins → jqplugins}/ui/static/jquery/ui/1.8.1/css/smoothness/images/ui-anim_basic_16x16.gif
  10. BIN ...ugins → jqplugins}/ui/static/jquery/ui/1.8.1/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
  11. BIN ...gins → jqplugins}/ui/static/jquery/ui/1.8.1/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
  12. BIN ...gins → jqplugins}/ui/static/jquery/ui/1.8.1/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
  13. BIN ...gins → jqplugins}/ui/static/jquery/ui/1.8.1/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
  14. BIN ...gins → jqplugins}/ui/static/jquery/ui/1.8.1/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png
  15. BIN ...gins → jqplugins}/ui/static/jquery/ui/1.8.1/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
  16. BIN ...gins → jqplugins}/ui/static/jquery/ui/1.8.1/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
  17. BIN ...plugins}/ui/static/jquery/ui/1.8.1/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
  18. BIN .../plugins → jqplugins}/ui/static/jquery/ui/1.8.1/css/smoothness/images/ui-icons_222222_256x240.png
  19. BIN .../plugins → jqplugins}/ui/static/jquery/ui/1.8.1/css/smoothness/images/ui-icons_2e83ff_256x240.png
  20. BIN .../plugins → jqplugins}/ui/static/jquery/ui/1.8.1/css/smoothness/images/ui-icons_454545_256x240.png
  21. BIN .../plugins → jqplugins}/ui/static/jquery/ui/1.8.1/css/smoothness/images/ui-icons_888888_256x240.png
  22. BIN .../plugins → jqplugins}/ui/static/jquery/ui/1.8.1/css/smoothness/images/ui-icons_cd0a0a_256x240.png
  23. 0 tw2/{jquery/plugins → jqplugins}/ui/static/jquery/ui/1.8.1/css/smoothness/jquery-ui.css
  24. 0 tw2/{jquery/plugins → jqplugins}/ui/static/jquery/ui/1.8.1/js/jquery-ui.js
  25. 0 tw2/{jquery/plugins → jqplugins}/ui/static/jquery/ui/1.8.1/js/jquery-ui.min.js
  26. 0 tw2/{jquery/plugins → jqplugins}/ui/static/jquery/ui/custom/js/catcomplete.js
  27. 0 tw2/{jquery/plugins → jqplugins}/ui/templates/__init__.py
  28. 0 tw2/{jquery/plugins → jqplugins}/ui/templates/accordion.html
  29. 0 tw2/{jquery/plugins → jqplugins}/ui/templates/accordion.mak
  30. 0 tw2/{jquery/plugins → jqplugins}/ui/templates/autocomplete.html
  31. 0 tw2/{jquery/plugins → jqplugins}/ui/templates/autocomplete.mak
  32. 0 tw2/{jquery/plugins → jqplugins}/ui/templates/button.html
  33. 0 tw2/{jquery/plugins → jqplugins}/ui/templates/button.mak
  34. 0 tw2/{jquery/plugins → jqplugins}/ui/templates/catcomplete.html
  35. 0 tw2/{jquery/plugins → jqplugins}/ui/templates/catcomplete.mak
  36. 0 tw2/{jquery/plugins → jqplugins}/ui/templates/datepicker.html
  37. 0 tw2/{jquery/plugins → jqplugins}/ui/templates/datepicker.mak
  38. 0 tw2/{jquery/plugins → jqplugins}/ui/templates/dialog.html
  39. 0 tw2/{jquery/plugins → jqplugins}/ui/templates/dialog.mak
  40. 0 tw2/{jquery/plugins → jqplugins}/ui/templates/generic_jq_ui_js.html
  41. 0 tw2/{jquery/plugins → jqplugins}/ui/templates/generic_jq_ui_js.mak
  42. 0 tw2/{jquery/plugins → jqplugins}/ui/templates/ghost_text.html
  43. 0 tw2/{jquery/plugins → jqplugins}/ui/templates/ghost_text.mak
  44. 0 tw2/{jquery/plugins → jqplugins}/ui/templates/progressbar.html
  45. 0 tw2/{jquery/plugins → jqplugins}/ui/templates/progressbar.mak
  46. 0 tw2/{jquery/plugins → jqplugins}/ui/templates/slider.html
  47. 0 tw2/{jquery/plugins → jqplugins}/ui/templates/slider.mak
  48. 0 tw2/{jquery/plugins → jqplugins}/ui/templates/tabs.html
  49. 0 tw2/{jquery/plugins → jqplugins}/ui/templates/tabs.mak
  50. +10 −10 tw2/{jquery/plugins → jqplugins}/ui/widgets.py
  51. +0 −1 tw2/jquery/plugins/__init__.py
View
@@ -1,3 +1,3 @@
-recursive-include tw2/jquery/plugins/ui/static *
-recursive-include tw2/jquery/plugins/ui/templates *
+recursive-include tw2/jqplugins/ui/static *
+recursive-include tw2/jqplugins/ui/templates *
include README.rst
View
@@ -1,4 +1,4 @@
-tw2.jquery.plugins.ui
+tw2.jqplugins.ui
=====================
:Author: Ralph Bean <ralph.bean@gmail.com>
@@ -9,18 +9,18 @@ tw2.jquery.plugins.ui
.. _jQuery UI: http://jqueryui.com/
.. _jQuery: http://jquery.com/
-tw2.jquery.plugins.ui is a `toscawidgets2 (tw2)`_ wrapper for `jQuery UI`_.
+tw2.jqplugins.ui is a `toscawidgets2 (tw2)`_ wrapper for `jQuery UI`_.
Live Demo
---------
-Peep the `live demonstration <http://craftsman.rc.rit.edu/module?module=tw2.jquery.plugins.ui>`_.
+Peep the `live demonstration <http://craftsman.rc.rit.edu/module?module=tw2.jqplugins.ui>`_.
Links
-----
-Get the `source from github <http://github.com/ralphbean/tw2.jquery.plugins.ui>`_.
+Get the `source from github <http://github.com/ralphbean/tw2.jqplugins.ui>`_.
-`PyPI page <http://pypi.python.org/pypi/tw2.jquery.plugins.ui>`_
-and `bugs <http://github.com/ralphbean/tw2.jquery.plugins.ui/issues/>`_
+`PyPI page <http://pypi.python.org/pypi/tw2.jqplugins.ui>`_
+and `bugs <http://github.com/ralphbean/tw2.jqplugins.ui/issues/>`_
Description
-----------
@@ -41,5 +41,5 @@ advanced effects and high-level, themeable widgets, built on top of the
jQuery JavaScript Library, that you can use to build highly interactive
web applications.
-This module, tw2.jquery.plugins.ui, provides `toscawidgets2 (tw2)`_ access to
+This module, tw2.jqplugins.ui, provides `toscawidgets2 (tw2)`_ access to
`jQuery UI`_ widgets.
View
@@ -11,14 +11,14 @@
setup(
- name='tw2.jquery.plugins.ui',
- version='2.0b8',
+ name='tw2.jqplugins.ui',
+ version='2.0b9',
description='toscawidgets2 wrapper for jquery-ui',
long_description=long_description,
author='Ralph Bean',
author_email='ralph.bean@gmail.com',
license='MIT',
- url='http://github.com/ralphbean/tw2.jquery.plugins.ui',
+ url='http://github.com/ralphbean/tw2.jqplugins.ui',
install_requires=[
"tw2.core>=2.0b2",
"tw2.forms",
@@ -30,14 +30,14 @@
},
tests_require = ['BeautifulSoup', 'nose', 'FormEncode', 'WebTest',] + _extra_genshi + _extra_mako,
packages=find_packages(exclude=['ez_setup', 'tests']),
- namespace_packages = ['tw2', 'tw2.jquery.plugins'],
+ namespace_packages = ['tw2', 'tw2.jqplugins'],
zip_safe=False,
include_package_data=True,
test_suite = 'nose.collector',
entry_points="""
[tw2.widgets]
# Register your widgets so they can be listed in the WidgetBrowser
- widgets = tw2.jquery.plugins.ui
+ widgets = tw2.jqplugins.ui
""",
keywords = [
'toscawidgets.widgets',
File renamed without changes.
File renamed without changes.
@@ -8,13 +8,13 @@
from tw2.jquery.version import JSLinkMixin
# import from *this* package
-from tw2.jquery.plugins.ui import defaults
+from tw2.jqplugins.ui import defaults
### Links, etc...
class jQueryUIMixin(jQueryPluginLinkMixin):
dirname = defaults._ui_dirname_
basename='jquery-ui'
- modname = 'tw2.jquery.plugins.ui'
+ modname = 'tw2.jqplugins.ui'
class jQueryUIJSLink(twc.JSLink, jQueryUIMixin):
subdir = 'js'
File renamed without changes.
File renamed without changes.
@@ -5,7 +5,7 @@
from tw2.core.resources import encoder
# imports from this package
-from tw2.jquery.plugins.ui import base as uibase
+from tw2.jqplugins.ui import base as uibase
# TODO -- portlets justlikeat
# http://www.mail-archive.com/jquery-ui@googlegroups.com/msg12962.html
@@ -75,7 +75,7 @@ class AccordionWidget(uibase.JQueryUIWidget):
"""
- template = "tw2.jquery.plugins.ui.templates.accordion"
+ template = "tw2.jqplugins.ui.templates.accordion"
jqmethod = "accordion"
items = twc.Param(
@@ -124,7 +124,7 @@ class AutocompleteWidget(uibase.JQueryUIWidget, twf.TextField):
http://jqueryui.com/demos/autocomplete/ for more details, and
look at the various demos.
"""
- template = "tw2.jquery.plugins.ui.templates.autocomplete"
+ template = "tw2.jqplugins.ui.templates.autocomplete"
jqmethod = "autocomplete"
class CategoryAutocompleteWidget(AutocompleteWidget):
@@ -134,7 +134,7 @@ class CategoryAutocompleteWidget(AutocompleteWidget):
'label' and 'category' keys.
"""
- template = "tw2.jquery.plugins.ui.templates.catcomplete"
+ template = "tw2.jqplugins.ui.templates.catcomplete"
jqmethod = "catcomplete"
def prepare(self):
@@ -179,7 +179,7 @@ class ButtonWidget(uibase.JQueryUIWidget):
radio or checkbox
"""
- template = "tw2.jquery.plugins.ui.templates.button"
+ template = "tw2.jqplugins.ui.templates.button"
jqmethod = "button"
type = twc.Param(
@@ -464,7 +464,7 @@ class DatePickerWidget(uibase.JQueryUIWidget):
and the datepicker instance as parameters. this refers to the
associated input field.
"""
- template = "tw2.jquery.plugins.ui.templates.datepicker"
+ template = "tw2.jqplugins.ui.templates.datepicker"
jqmethod = "datepicker"
class DialogWidget(uibase.JQueryUIWidget):
@@ -603,7 +603,7 @@ class DialogWidget(uibase.JQueryUIWidget):
close -- JSSymbol (default: None) -- function(event, ui)
This event is triggered when the dialog is closed.
"""
- template = "tw2.jquery.plugins.ui.templates.dialog"
+ template = "tw2.jqplugins.ui.templates.dialog"
jqmethod = "dialog"
value = twc.Param('The HTML message for the dialog')
@@ -636,7 +636,7 @@ class ProgressBarWidget(uibase.JQueryUIWidget):
change -- JSSymbol (default: None) -- function(event, ui)
This event is triggered when the value of the progressbar changes.
"""
- template = "tw2.jquery.plugins.ui.templates.progressbar"
+ template = "tw2.jqplugins.ui.templates.progressbar"
jqmethod = "progressbar"
class SliderWidget(uibase.JQueryUIWidget):
@@ -715,7 +715,7 @@ class SliderWidget(uibase.JQueryUIWidget):
stop -- JSSymbol (default: None) -- function(event, ui)
This event is triggered when the user stops sliding.
"""
- template = "tw2.jquery.plugins.ui.templates.slider"
+ template = "tw2.jqplugins.ui.templates.slider"
jqmethod = "slider"
class TabsWidget(uibase.JQueryUIWidget):
@@ -825,7 +825,7 @@ class TabsWidget(uibase.JQueryUIWidget):
disable -- JSSymbol (default: None) -- function(event, ui)
This event is triggered when a tab is disabled.
"""
- template = "tw2.jquery.plugins.ui.templates.tabs"
+ template = "tw2.jqplugins.ui.templates.tabs"
jqmethod = "tabs"
items = twc.Param(
@@ -1 +0,0 @@
-__import__('pkg_resources').declare_namespace(__name__)

0 comments on commit c0df4f5

Please sign in to comment.