Changeset 4557
- Timestamp:
- 05/04/08 08:29:00 (4 months ago)
- Files:
-
- trunk/docs/2.0/DownloadInstall.rst (modified) (2 diffs)
- trunk/docs/2.0/RoughDocs/StaticFile.rst (deleted)
- trunk/docs/2.0/StaticFile.rst (added)
- trunk/docs/2.0/ToscaWidgets/Cookbook.rst (modified) (6 diffs)
- trunk/docs/2.0/ToscaWidgets/ToscaWidgets.rst (modified) (1 diff)
- trunk/docs/conf.py (modified) (9 diffs)
- trunk/docs/index.rst (modified) (4 diffs)
- trunk/docs/modules (added)
- trunk/docs/modules/pylons (added)
- trunk/docs/modules/pylons/commands.rst (added)
- trunk/docs/modules/pylons/configuration.rst (added)
- trunk/docs/modules/pylons/controllers_core.rst (added)
- trunk/docs/modules/pylons/controllers.rst (added)
- trunk/docs/modules/pylons/controllers_util.rst (added)
- trunk/docs/modules/pylons/controllers_xmlrpc.rst (added)
- trunk/docs/modules/pylons/decorators_cache.rst (added)
- trunk/docs/modules/pylons/decorators_rest.rst (added)
- trunk/docs/modules/pylons/decorators.rst (added)
- trunk/docs/modules/pylons/decorators_secure.rst (added)
- trunk/docs/modules/pylons/error.rst (added)
- trunk/docs/modules/pylons/i18n_translation.rst (added)
- trunk/docs/modules/pylons/log.rst (added)
- trunk/docs/modules/pylons/middleware.rst (added)
- trunk/docs/modules/pylons/templating.rst (added)
- trunk/docs/modules/pylons/test.rst (added)
- trunk/docs/modules/pylons/util.rst (added)
- trunk/docs/modules/pylons/wsgiapp.rst (added)
- trunk/docs/modules/tgcontroller.rst (added)
- trunk/docs/modules/tgdecorators.rst (added)
- trunk/docs/modules/tgflash.rst (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/docs/2.0/DownloadInstall.rst
r4554 r4557 78 78 Then you have installed TurboGears 2. 79 79 80 .. note:: if you have installed old dependency packages, you could remove them from:: 81 82 {python_path}/site-packages/easy_install.pth 83 80 .. note:: if you have installed old dependency packages, you could remove them from ``{python_path}/site-packages/easy_install.pth`` 84 81 85 82 Validate the installation: … … 104 101 105 102 . $ sudo easy_install -U -f http://toscawidgets.org/download/wo_speedups/ RuleDispatch 103 106 104 If you get the following error when starting a project with ``paster serve``:: 107 105 108 106 . AttributeError: 'WSGIRequest' object has no attribute 'accept_language' 107 109 108 update your Pylons checkout with ``hg update`` and try again. 110 109 trunk/docs/2.0/ToscaWidgets/Cookbook.rst
r4396 r4557 1 1 #format rst 2 2 3 3 ToscaWidgets Cookbook 4 4 ===================== 5 6 Here you will find information about how to do common tasks involving ToscaWidgets. 7 8 Ajax Widgets 9 ------------ 10 11 Ajax Forms 12 ~~~~~~~~~~~~~~~~~~ 13 How to use ActiveForm to create a dynamic forms using JSON. 14 15 `(ActiveForm Tutorial) <./Cookbook/ActiveForm.html.html>`_ 16 5 6 Here you will find information about how to do common tasks involving ToscaWidgets. 7 8 Javascript Library Specific Widgets 9 ----------------------------------------- 10 11 ExtJS 12 ~~~~~~~~ 13 14 TreeView 15 ````````` 16 Learn how to use the ext widget library to create a dynamically loading TreeView. 17 18 `(ExtTreeView Tutorial) </ExtTreeView>`_ 19 20 21 .. image:: http://docs.turbogears.org/2.0/RoughDocs/ToscaWidgets/Cookbook/ExtItemSelector?action=AttachFile&do=get&target=itemselector1.png 22 23 :height: 140 24 25 ItemSelector 26 ```````````` 27 How to use the ext ItemSelector which allows multiple selection by shuttling items between source and destination lists. It supports full drag and drop and ordering of items. 28 29 `(ItemSelector Tutorial) </ExtItemSelector>`_ 30 31 32 .. image:: http://docs.turbogears.org/2.0/RoughDocs/ToscaWidgets/Cookbook/ExtSingleSelectCombo?action=AttachFile&do=get&target=singleselectcombo-small.png 33 :height: 120 34 35 SingleSelectCombo 36 ````````````````` 37 Create a ComboBox using Ext which also does autocompletion. 38 39 `(SingleSelectCombo Tutorial) </ExtSingleSelectCombo>`_ 40 41 jQuery 42 ~~~~~~~ 17 43 18 44 .. image:: http://docs.turbogears.org/2.0/RoughDocs/ToscaWidgets/Cookbook/AutoComplete?action=AttachFile&do=get&target=autocomplete_small.png … … 21 47 22 48 AutoComplete Field 23 ~~~~~~~~~~~~~~~~~~ 49 `````````````````` 24 50 Create a field which automatically completes the user entry as they type. Based on tw.jquery AutoComplete widget. 25 51 26 52 27 `(AutoComplete Tutorial) < ./AutoComplete.html>`_53 `(AutoComplete Tutorial) </AutoComplete>`_ 28 54 29 55 … … 33 59 34 60 FlexiGrid 61 ````````` 62 How to create an Ajax Data Grid with support for pagination, sorting, searching and column resizing. This widget is based on the jQuery FlexiGrid Plugin. 63 64 `(FlexiGrid Tutorial) </FlexiGrid>`_ 65 66 Ajax Form 67 ```````````` 68 How to use AjaxForm to create a dynamic form. 69 70 `(jQueryAjaxForm Tutorial) </JQueryAjaxForm>`_ 71 72 Flot 73 ```````````` 74 How to create dynamic graphs using the powerful Flot library. 75 76 `(Flot Tutorial) </Flot>`_ 77 78 79 .. image:: http://docs.turbogears.org/2.0/RoughDocs/ToscaWidgets/Cookbook/TreeView?action=AttachFile&do=get&target=treeview.png 80 :align: right 81 :height: 120 82 83 84 Tree View 85 ``````````` 86 How to create a simple tree view of an unordered list where the branches can be expanded or collapsed to present a good view of a document tree structure. This widget is based on the jQuery Treeview Plugin. 87 88 `(TreeView Tutorial) </TreeView>`_ 89 90 91 Ajax Graphs 92 ````````````` 93 How to add an ajax graph to your system using tw.jquery and flot. 94 95 `(FlotWidget Tutorial) </FlotWidget>`_ 96 97 98 .. image :: http://docs.turbogears.org/2.0/RoughDocs/ToscaWidgets/Using?action=AttachFile&do=get&target=stars.png 99 :align: right 100 101 Ajax Star Rating 102 ```````````````` 103 How to a simple star rating widget to your application. 104 105 `(StarRating Tutorial) <../Using>`_ 106 107 Prototype 35 108 ~~~~~~~~~ 36 How to create an Ajax Data Grid with support for pagination, sorting, searching and column resizing. This widget is based on the jQuery FlexiGrid Plugin. 37 38 `(FlexiGrid Tutorial) <./Cookbook/FlexiGrid.html>`_ 39 40 Ajax Graphs 41 ~~~~~~~~~~~~~~~~~~~ 42 How to add an ajax graph to your system using tw.jquery and flot. 43 44 `(FlotWidget Tutorial) <./Cookbook/FlotWidget.html>`_ 45 46 Ajax Star Rating 47 ~~~~~~~~~~~~~~~~ 48 How to a simple star rating widget to your application. 49 50 `(StarRating Tutorial) <../Using.html>`_ 51 52 Ajax Select Shuttle 53 ~~~~~~~~~~~~~~~~~~~ 54 How to create a select shuttle field in your code and make it work with ajax in the back end. 55 56 `(SelectShuttle Tutorial) <./Cookbook/AjaxSelectShuttle.html>`_ 57 109 110 Ajax Form 111 ```````````` 112 How to use AjaxForm to create a dynamic form. 113 114 `(ActiveForm Tutorial) </ActiveForm>`_ 115 116 117 Dojo 118 ~~~~~ 119 120 Need some basic widgets here. 121 122 JSUnit 123 ~~~~~~ 124 125 .. image:: http://docs.turbogears.org/2.0/RoughDocs/ToscaWidgets/Cookbook/JSUnit?action=AttachFile&do=get&target=jsunit.png 126 :align: right 127 :height: 120 128 :alt: example JSUnit Widget 129 130 JSUnit and Runner Widget 131 ```````````````````````` 132 Create a widget for in-browser testing of javascript code using the `JSUnit Javascript Unit Testing Framework <http://www.jsunit.net/>`_. 133 134 135 `(JSUnit Tutorial) </JSUnit>`_ 136 137 138 To Be Done 139 ~~~~~~~~~~~~ 58 140 59 141 Ajax Related Select Fields 60 ~~~~~~~~~~~~~~~~~~~~~~~~~~ 142 `````````````````````````````` 61 143 How to create select fields which change based on the choices made on other select fields. 62 144 63 `(Related SelectShuttle Tutorial) < ./Cookbook/RelatedSelectShuttle.html>`_145 `(Related SelectShuttle Tutorial) </RelatedSelectShuttle>`_ 64 146 65 147 Ajax Progress Bar 66 ~~~~~~~~~~~~~~~~~ 148 ````````````````` 67 149 How to create a progress bar with server-side progress indicator 68 150 69 `(ProgressBar Tutorial) < ./Cookbook/ProgressBar.html>`_151 `(ProgressBar Tutorial) </ProgressBar>`_ 70 152 71 153 Ajax File Upload with Progress Bar 72 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 154 ````````````````````````````````````` 73 155 74 156 How to create a file upload with a progress bar. 75 157 76 `(FileProgressBar Tutorial) < ./Cookbook/FileProgressBar.html>`_158 `(FileProgressBar Tutorial) </FileProgressBar>`_ 77 159 78 160 tw.forms 79 161 -------- 80 162 163 Basic Form usage (no ajax) 164 ~~~~~~~~~~~~~~~~~~~~~~~~~~ 165 81 166 .. image:: http://docs.turbogears.org/2.0/RoughDocs/ToscaWidgets/Cookbook/PasswordValidation?action=AttachFile&do=get&target=passwordverify.png 82 167 :align: right … … 84 169 85 170 Password Validation 86 ~~~~~~~~~~~~~~~~~~~~~~~~~~ 171 ```````````````````` 87 172 How to create a simple registration form with that makes sure the user typed the correct password 88 173 89 `(Password Validation Tutorial) < ./Cookbook/PasswordValidation.html>`_174 `(Password Validation Tutorial) </PasswordValidation>`_ 90 175 91 176 .. image:: http://docs.turbogears.org/2.0/RoughDocs/ToscaWidgets/Cookbook/ReCaptcha?action=AttachFile&do=get&target=recaptcha_field.jpg … … 94 179 95 180 ReCaptcha 96 ~~~~~~~~~~ 181 `````````` 97 182 A Description on how to add a tw.recaptcha field to your public forms an keep spammers at bay. 98 183 99 `(Recaptcha Tutorial) < ./Cookbook/ReCaptcha.html>`_184 `(Recaptcha Tutorial) </ReCaptcha>`_ 100 185 101 186 … … 104 189 How to create a select field which changes based on the entry in a database table. 105 190 106 `(Dynamic Select Field Tutorial) <./Cookbook/DynamicSelect.html>`_ 107 108 Other Valuable Widgets 109 ---------------------- 110 191 `(Dynamic Select Field Tutorial) </DynamicSelect>`_ 192 193 Other Valuable Widgets (no JS library) 194 ---------------------------------------- 195 196 Css based 197 ~~~~~~~~~~ 111 198 Tabber 112 ~~~~~~~ 199 `````````` 113 200 114 201 How to easily add Tabbed Browsing to your website. 115 202 116 `(Tabber Tutorial) <./Cookbook/TabbedBrowsing.html>`_ 117 118 .. image:: http://docs.turbogears.org/2.0/RoughDocs/ToscaWidgets/Cookbook/TreeView?action=AttachFile&do=get&target=treeview.png 119 :align: right 120 :height: 120 121 122 Tree View 123 ~~~~~~~~~ 124 How to create a simple tree view of an unordered list where the branches can be expanded or collapsed to present a good view of a document tree structure. This widget is based on the jQuery Treeview Plugin. 125 126 `(TreeView Tutorial) <./Cookbook/TreeView.html>`_ 203 `(Tabber Tutorial) </TabbedBrowsing>`_ trunk/docs/2.0/ToscaWidgets/ToscaWidgets.rst
r4396 r4557 8 8 9 9 Using 10 Forms10 forms 11 11 Creation 12 12 ExistingLibraries trunk/docs/conf.py
r4370 r4557 1 1 # -*- coding: utf-8 -*- 2 2 # 3 # T urboGears2 documentation build configuration file, created by4 # sphinx-quickstart .py on Wed Mar 26 10:27:342008.3 # TG2 documentation build configuration file, created by 4 # sphinx-quickstart on Sat May 3 11:00:38 2008. 5 5 # 6 6 # This file is execfile()d with the current directory set to its containing dir. … … 12 12 # serve to show the default value. 13 13 14 import sys 15 import os 16 execfile(os.path.join("../tg", "release.py")) 14 import sys, os 17 15 18 # If your extensions are in another directory, add it here. 19 #sys.path.append('some/directory') 16 # If your extensions are in another directory, add it here. If the directory 17 # is relative to the documentation root, use os.path.abspath to make it 18 # absolute, like shown here. 19 #sys.path.append(os.path.abspath('some/directory')) 20 20 21 21 # General configuration … … 24 24 # Add any Sphinx extension module names here, as strings. They can be extensions 25 25 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. 26 #extensions = []26 extensions = ['sphinx.ext.autodoc'] 27 27 28 28 # Add any paths that contain templates here, relative to this directory. … … 36 36 37 37 # General substitutions. 38 project = 'T urboGears'39 copyright = '2008, TurboGears Doc Team'38 project = 'TG2' 39 copyright = '2008, TurboGears DocTeam' 40 40 41 41 # The default replacements for |version| and |release|, also used in various … … 43 43 # 44 44 # The short X.Y version. 45 version = version45 version = '1.9.7' 46 46 # The full version, including alpha/beta/rc tags. 47 release = version47 release = '1.9.7' 48 48 49 49 # There are two options for replacing |today|: either, you set today to some … … 77 77 # must exist either in Sphinx' static/ path, or in one of the custom paths 78 78 # given in html_static_path. 79 html_style = 'default.css' 79 html_style = 'tg.css' 80 81 # The name for this set of Sphinx documents. If None, it defaults to 82 # "<project> v<release> documentation". 83 #html_title = None 84 85 # The name of an image file (within the static path) to place at the top of 86 # the sidebar. 87 html_logo = 'tg.png' 80 88 81 89 # Add any paths that contain custom static files (such as style sheets) here, … … 92 100 #html_use_smartypants = True 93 101 94 # Content template for the index page.95 #html_index = ''96 97 102 # Custom sidebar templates, maps document names to template names. 98 103 #html_sidebars = {} … … 108 113 #html_copy_source = True 109 114 115 # If true, an OpenSearch description file will be output, and all pages will 116 # contain a <link> tag referring to it. 117 #html_use_opensearch = False 118 110 119 # Output file base name for HTML help builder. 111 htmlhelp_basename = 'T urboGears2doc'120 htmlhelp_basename = 'TG2doc' 112 121 113 122 … … 123 132 # Grouping the document tree into LaTeX files. List of tuples 124 133 # (source start file, target name, title, author, document class [howto/manual]). 125 #latex_documents = [] 134 latex_documents = [ 135 ('index', 'TG2.tex', 'TG2 Documentation', 'TurboGears DocTeam', 'manual'), 136 ] 137 138 # The name of an image file (relative to this directory) to place at the top of 139 # the title page. 140 #latex_logo = None 126 141 127 142 # Additional stuff for the LaTeX preamble. trunk/docs/index.rst
r4410 r4557 18 18 2.0/QuickStart 19 19 2.0/BasicMoves 20 2.0/WhatsNew 20 21 21 22 Tutorials … … 86 87 2.0/ToscaWidgets/Using 87 88 2.0/SimpleWidgetForm 88 2.0/RoughDocs/StaticFile 89 89 90 90 91 General TG tools … … 107 108 2.0/TGandPyAMF 108 109 2.0/RoutesIntegration 110 2.0/StaticFile 109 111 110 112 … … 120 122 2.0/License 121 123 2.0/TGandPylons 122 2.0/RoughDocs/WhatsNew123 124 124 125 Indices and tables