Commits

George Notaras committed a4b4692

Added initial code.

  • Participants

Comments (0)

Files changed (30)

+django-taggit-autocomplete-modified Authors and Contributors
+------------------------------------------------------------------------
+django-taggit-autocomplete-modified has been developed by:
+
+ * George Notaras <gnot [at] g-loaded.eu>, CodeTRAX.org
+
+The following people have contributed to this project in one way or another:
+
+ *
+django-taggit-autocomplete-modified Installation Instructions
+========================================================================
+
+This section contains information about how to download and install
+django-taggit-autocomplete-modified in your system. It also contains brief instructions about how
+to build the included documentation.
+
+
+Requirements
+============
+
+This application requires Python_ 2.4 or later and a functional installation
+of Django_.
+
+.. _Python: http://python.org
+.. _Django: http://www.djangoproject.com
+
+Detailed information about the minimum supported Django version and other
+Python modules that may be required in order to run this software is shown
+below:
+
+.. literalinclude:: ../requirements.txt
+
+This information exists in the ``requirements.txt`` file inside the
+django-taggit-autocomplete-modified distribution package. If ``pip`` is used to install this software,
+then all these dependencies will also be installed, if they are not already
+installed in your system.
+
+
+Download
+========
+
+You can download the latest django-taggit-autocomplete-modified releases from the `releases page`_ at
+the *Python Package Index* (PyPI).
+
+.. _`releases page`: http://pypi.python.org/pypi/django-taggit-autocomplete-modified
+
+Alternatively, you can clone the project's public source code repository
+and then check-out any stable release, all of which are tagged::
+
+    hg clone https://source.codetrax.org/hgroot/django-taggit-autocomplete-modified
+    hg tags
+    hg update 0.1.0
+
+
+Install
+=======
+
+To install django-taggit-autocomplete-modified, use the provided installation script::
+
+    python setup.py install
+
+You can install ``django-taggit-autocomplete-modified`` using ``pip``::
+
+    pip install django-taggit-autocomplete-modified
+
+Or use ``easy_install``::
+
+    easy_install -Z django-taggit-autocomplete-modified
+
+Note: the ``-Z`` flag is required to force ``easy_install`` to do a normal
+source install rather than a zipped egg; django-taggit-autocomplete-modified cannot be
+used from a zipped egg install.
+
+Alternatively, you can simply place the ``taggit_autocomplete_modified`` directory,
+which exists under the ``src`` directory, somewhere on your Python path
+or symlink to it from somewhere on your Python path.
+
+Finally, it is also possible to install this application directly from
+the `source code repository`_ using ``pip``::
+
+    pip install -e hg+https://source.codetrax.org/hgroot/django-taggit-autocomplete-modified#egg=django-taggit-autocomplete-modified
+
+The above command will install the latest development release of
+django-taggit-autocomplete-modified.
+
+To install a stable release directly from the `source code repository`_,
+for instance, the ``0.1.0`` release, run the following command::
+
+    pip install -e hg+https://source.codetrax.org/hgroot/django-taggit-autocomplete-modified@0.1.0#egg=django-taggit-autocomplete-modified-0.1.0
+
+Please note that the mercurial_ source control management tool is required
+for this operation.
+
+.. _mercurial: http://mercurial.selenic.com/
+.. _`source code repository`: https://source.codetrax.org/hgroot/django-taggit-autocomplete-modified
+
+
+How to build the documentation
+==============================
+
+This project's documentation is located in source form under the ``docs``
+directory. In order to convert the documentation to a format that is
+easy to read and navigate you need the ``sphinx`` package.
+
+You can install ``sphinx`` using ``pip``::
+
+    pip install sphinx
+
+Or ``easy_install``::
+
+    easy_install sphinx
+
+Once ``sphinx`` is installed, change to the ``docs`` directory, open a shell
+and run the following command::
+
+    make html
+
+This will build a HTML version of the documentation. You can read the
+documentation by opening the following file in any web browser::
+
+    docs/_build/html/index.html
+
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+include AUTHORS
+include INSTALL
+include LICENSE
+include NOTICE
+include README
+include MANIFEST.in
+include requirements.txt
+include setup.cfg
+include setup.py
+recursive-include src/taggit_autocomplete_modified *.py *.json *.mo *.po *.html
+graft docs
+This product includes software developed at:
+
+* CodeTRAX (http://www.codetrax.org/)
+* G-Loaded Journal (http://www.g-loaded.eu/)
+
+Copyright 2011 George Notaras <gnot [at] g-loaded.eu>
+
+Brand names include, but are not limited to:
+
+* django-taggit-autocomplete-modified
+* taggit_autocomplete_modified
+* CodeTRAX
+* G-Loaded Journal
+
+The aforementioned names must not appear in the names of products derived from
+this software without prior written permission of George Notaras.
+
+For license information, please read the LICENSE file.
+
+Django is a registered trademark of the Django Software Foundation.
+django-taggit-autocomplete-modified
+========================================================================
+
+| **Author**: `George Notaras <http://www.g-loaded.eu/>`_
+| **Development Web Site**: `django-taggit-autocomplete-modified project <http://www.codetrax.org/projects/django-taggit-autocomplete-modified>`_
+| **Source Code Repository**: `django-taggit-autocomplete-modified source code <https://source.codetrax.org/hgroot/django-taggit-autocomplete-modified>`_
+| **Documentation**: `django-taggit-autocomplete-modified documentation <http://packages.python.org/django-taggit-autocomplete-modified>`_
+| **Downloads**: `django-taggit-autocomplete-modified releases <http://pypi.python.org/pypi/django-taggit-autocomplete-modified>`_
+
+DESCRIPTION_DESCRIPTION_DESCRIPTION
+
+Licensed under the *Apache License version 2.0*. More licensing information
+exists in the license_ section.
+
+
+Features
+========
+
+- Feature A
+- Feature B
+
+
+Documentation
+=============
+
+Apart from the `django-taggit-autocomplete-modified Online Documentation`_, more information about the
+installation, configuration and usage of this application may be available
+at the project's wiki_.
+
+.. _`django-taggit-autocomplete-modified Online Documentation`: http://packages.python.org/django-taggit-autocomplete-modified
+.. _wiki: http://www.codetrax.org/projects/django-taggit-autocomplete-modified/wiki
+
+
+Donations
+=========
+
+This software is released as free-software and provided to you at no cost. However,
+a significant amount of time and effort has gone into developing this software
+and writing this documentation. So, the production of this software has not
+been free from cost. It is highly recommended that, if you use this software
+*in production*, you should consider making a donation.
+
+To make a donation, please visit the CodeTRAX `donations page`_ which contains
+a PayPal_ *donate* button.
+
+Thank you for considering making a donation to django-taggit-autocomplete-modified.
+
+.. _`donations page`: https://source.codetrax.org/donate.html
+.. _PayPal: https://www.paypal.com
+
+
+Bugs and feature requests
+=========================
+
+In case you run into any problems while using this application or think that
+a new feature should be implemented, it is highly recommended you submit_ a new
+report about it at the project's `issue tracker`_.
+
+Using the *issue tracker* is the recommended way to notify the authors about
+bugs or make feature requests. Also, before submitting a new report, please
+make sure you have read the `new issue guidelines`_.
+
+.. _submit: http://www.codetrax.org/projects/django-taggit-autocomplete-modified/issues/new
+.. _`issue tracker`: http://www.codetrax.org/projects/django-taggit-autocomplete-modified/issues
+.. _`new issue guidelines`: http://www.codetrax.org/NewIssueGuidelines
+
+
+Support
+=======
+
+CodeTRAX does not provide support for django-taggit-autocomplete-modified.
+
+You can still get community support at the `Community Support Forums`_:
+
+.. _`Community Support Forums`: http://www.codetrax.org/projects/django-taggit-autocomplete-modified/boards
+
+
+License
+=======
+
+Copyright 2011 George Notaras <gnot [at] g-loaded.eu>
+
+Licensed under the *Apache License, Version 2.0* (the "*License*");
+you may not use this file except in compliance with the License.
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+A copy of the License exists in the product distribution; the *LICENSE* file.
+For copyright and other important notes regarding this release please read
+the *NOTICE* file.

File docs/Makefile

+# Makefile for Sphinx documentation
+#
+
+# You can set these variables from the command line.
+SPHINXOPTS    =
+SPHINXBUILD   = sphinx-build
+PAPER         =
+BUILDDIR      = _build
+
+# Internal variables.
+PAPEROPT_a4     = -D latex_paper_size=a4
+PAPEROPT_letter = -D latex_paper_size=letter
+ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
+
+.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
+
+help:
+	@echo "Please use \`make <target>' where <target> is one of"
+	@echo "  html       to make standalone HTML files"
+	@echo "  dirhtml    to make HTML files named index.html in directories"
+	@echo "  singlehtml to make a single large HTML file"
+	@echo "  pickle     to make pickle files"
+	@echo "  json       to make JSON files"
+	@echo "  htmlhelp   to make HTML files and a HTML help project"
+	@echo "  qthelp     to make HTML files and a qthelp project"
+	@echo "  devhelp    to make HTML files and a Devhelp project"
+	@echo "  epub       to make an epub"
+	@echo "  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
+	@echo "  latexpdf   to make LaTeX files and run them through pdflatex"
+	@echo "  text       to make text files"
+	@echo "  man        to make manual pages"
+	@echo "  changes    to make an overview of all changed/added/deprecated items"
+	@echo "  linkcheck  to check all external links for integrity"
+	@echo "  doctest    to run all doctests embedded in the documentation (if enabled)"
+
+clean:
+	-rm -rf $(BUILDDIR)/*
+
+html:
+	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
+	@echo
+	@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
+
+dirhtml:
+	$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
+	@echo
+	@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
+
+singlehtml:
+	$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
+	@echo
+	@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
+
+pickle:
+	$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
+	@echo
+	@echo "Build finished; now you can process the pickle files."
+
+json:
+	$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
+	@echo
+	@echo "Build finished; now you can process the JSON files."
+
+htmlhelp:
+	$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
+	@echo
+	@echo "Build finished; now you can run HTML Help Workshop with the" \
+	      ".hhp project file in $(BUILDDIR)/htmlhelp."
+
+qthelp:
+	$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
+	@echo
+	@echo "Build finished; now you can run "qcollectiongenerator" with the" \
+	      ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
+	@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/django-taggit-autocomplete-modified.qhcp"
+	@echo "To view the help file:"
+	@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/django-taggit-autocomplete-modified.qhc"
+
+devhelp:
+	$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
+	@echo
+	@echo "Build finished."
+	@echo "To view the help file:"
+	@echo "# mkdir -p $$HOME/.local/share/devhelp/django-taggit-autocomplete-modified"
+	@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/django-taggit-autocomplete-modified"
+	@echo "# devhelp"
+
+epub:
+	$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
+	@echo
+	@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
+
+latex:
+	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+	@echo
+	@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
+	@echo "Run \`make' in that directory to run these through (pdf)latex" \
+	      "(use \`make latexpdf' here to do that automatically)."
+
+latexpdf:
+	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+	@echo "Running LaTeX files through pdflatex..."
+	make -C $(BUILDDIR)/latex all-pdf
+	@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
+
+text:
+	$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
+	@echo
+	@echo "Build finished. The text files are in $(BUILDDIR)/text."
+
+man:
+	$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
+	@echo
+	@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
+
+changes:
+	$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
+	@echo
+	@echo "The overview file is in $(BUILDDIR)/changes."
+
+linkcheck:
+	$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
+	@echo
+	@echo "Link check complete; look for any errors in the above output " \
+	      "or in $(BUILDDIR)/linkcheck/output.txt."
+
+doctest:
+	$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
+	@echo "Testing of doctests in the sources finished, look at the " \
+	      "results in $(BUILDDIR)/doctest/output.txt."

File docs/conf.py

+# -*- coding: utf-8 -*-
+#
+# django-taggit-autocomplete-modified documentation build configuration file, created by
+# sphinx-quickstart on Sun Nov 14 09:50:21 2010.
+#
+# This file is execfile()d with the current directory set to its containing dir.
+#
+# Note that not all possible configuration values are present in this
+# autogenerated file.
+#
+# All configuration values have a default; values that are commented out
+# serve to show the default.
+
+import sys, os
+sys.path.insert(0, os.path.abspath(os.path.join('..', 'src')))
+from taggit_autocomplete_modified import get_version
+
+# This required in order to make autodoc extension work.
+from django.conf import settings
+settings.configure()
+
+# If extensions (or modules to document with autodoc) are in another directory,
+# add these directories to sys.path here. If the directory is relative to the
+# documentation root, use os.path.abspath to make it absolute, like shown here.
+#sys.path.insert(0, os.path.abspath('.'))
+
+# -- General configuration -----------------------------------------------------
+
+# If your documentation needs a minimal Sphinx version, state it here.
+#needs_sphinx = '1.0'
+
+# Add any Sphinx extension module names here, as strings. They can be extensions
+# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
+extensions = ['sphinx.ext.autodoc', 'sphinx.ext.todo']
+
+# Add any paths that contain templates here, relative to this directory.
+#templates_path = ['_templates']
+
+# The suffix of source filenames.
+source_suffix = '.rst'
+
+# The encoding of source files.
+#source_encoding = 'utf-8-sig'
+
+# The master toctree document.
+master_doc = 'index'
+
+# General information about the project.
+project = u'django-taggit-autocomplete-modified'
+copyright = u'2011, George Notaras'
+
+# The version info for the project you're documenting, acts as replacement for
+# |version| and |release|, also used in various other places throughout the
+# built documents.
+#
+# The short X.Y version.
+version = get_version()
+# The full version, including alpha/beta/rc tags.
+release = get_version()
+
+# The language for content autogenerated by Sphinx. Refer to documentation
+# for a list of supported languages.
+#language = None
+
+# There are two options for replacing |today|: either, you set today to some
+# non-false value, then it is used:
+#today = ''
+# Else, today_fmt is used as the format for a strftime call.
+#today_fmt = '%B %d, %Y'
+
+# List of patterns, relative to source directory, that match files and
+# directories to ignore when looking for source files.
+exclude_patterns = ['_build']
+
+# The reST default role (used for this markup: `text`) to use for all documents.
+#default_role = None
+
+# If true, '()' will be appended to :func: etc. cross-reference text.
+#add_function_parentheses = True
+
+# If true, the current module name will be prepended to all description
+# unit titles (such as .. function::).
+#add_module_names = True
+
+# If true, sectionauthor and moduleauthor directives will be shown in the
+# output. They are ignored by default.
+#show_authors = False
+
+# The name of the Pygments (syntax highlighting) style to use.
+pygments_style = 'sphinx'
+
+# A list of ignored prefixes for module index sorting.
+#modindex_common_prefix = []
+
+
+# -- Options for HTML output ---------------------------------------------------
+
+# The theme to use for HTML and HTML Help pages.  See the documentation for
+# a list of builtin themes.
+html_theme = 'default'
+
+# Theme options are theme-specific and customize the look and feel of a theme
+# further.  For a list of options available for each theme, see the
+# documentation.
+#html_theme_options = {}
+
+# Add any paths that contain custom themes here, relative to this directory.
+#html_theme_path = []
+
+# The name for this set of Sphinx documents.  If None, it defaults to
+# "<project> v<release> documentation".
+#html_title = None
+
+# A shorter title for the navigation bar.  Default is the same as html_title.
+#html_short_title = None
+
+# The name of an image file (relative to this directory) to place at the top
+# of the sidebar.
+#html_logo = None
+
+# The name of an image file (within the static path) to use as favicon of the
+# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
+# pixels large.
+#html_favicon = None
+
+# Add any paths that contain custom static files (such as style sheets) here,
+# relative to this directory. They are copied after the builtin static files,
+# so a file named "default.css" will overwrite the builtin "default.css".
+#html_static_path = ['_static']
+
+# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
+# using the given strftime format.
+#html_last_updated_fmt = '%b %d, %Y'
+
+# If true, SmartyPants will be used to convert quotes and dashes to
+# typographically correct entities.
+#html_use_smartypants = True
+
+# Custom sidebar templates, maps document names to template names.
+#html_sidebars = {}
+
+# Additional templates that should be rendered to pages, maps page names to
+# template names.
+#html_additional_pages = {}
+
+# If false, no module index is generated.
+#html_domain_indices = True
+
+# If false, no index is generated.
+#html_use_index = True
+
+# If true, the index is split into individual pages for each letter.
+#html_split_index = False
+
+# If true, links to the reST sources are added to the pages.
+#html_show_sourcelink = True
+
+# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
+#html_show_sphinx = True
+
+# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
+#html_show_copyright = True
+
+# If true, an OpenSearch description file will be output, and all pages will
+# contain a <link> tag referring to it.  The value of this option must be the
+# base URL from which the finished HTML is served.
+#html_use_opensearch = ''
+
+# This is the file name suffix for HTML files (e.g. ".xhtml").
+#html_file_suffix = None
+
+# Output file base name for HTML help builder.
+htmlhelp_basename = 'django-taggit-autocomplete-modifieddoc'
+
+
+# -- Options for LaTeX output --------------------------------------------------
+
+# The paper size ('letter' or 'a4').
+#latex_paper_size = 'letter'
+
+# The font size ('10pt', '11pt' or '12pt').
+#latex_font_size = '10pt'
+
+# Grouping the document tree into LaTeX files. List of tuples
+# (source start file, target name, title, author, documentclass [howto/manual]).
+latex_documents = [
+  ('index', 'django-taggit-autocomplete-modified.tex', u'django-taggit-autocomplete-modified Documentation',
+   u'George Notaras', 'manual'),
+]
+
+# The name of an image file (relative to this directory) to place at the top of
+# the title page.
+#latex_logo = None
+
+# For "manual" documents, if this is true, then toplevel headings are parts,
+# not chapters.
+#latex_use_parts = False
+
+# If true, show page references after internal links.
+#latex_show_pagerefs = False
+
+# If true, show URL addresses after external links.
+#latex_show_urls = False
+
+# Additional stuff for the LaTeX preamble.
+#latex_preamble = ''
+
+# Documents to append as an appendix to all manuals.
+#latex_appendices = []
+
+# If false, no module index is generated.
+#latex_domain_indices = True
+
+
+# -- Options for manual page output --------------------------------------------
+
+# One entry per manual page. List of tuples
+# (source start file, name, description, authors, manual section).
+man_pages = [
+    ('index', 'django-taggit-autocomplete-modified', u'django-taggit-autocomplete-modified Documentation',
+     [u'George Notaras'], 1)
+]
+
+
+# -- Options for Epub output ---------------------------------------------------
+
+# Bibliographic Dublin Core info.
+epub_title = u'django-taggit-autocomplete-modified'
+epub_author = u'George Notaras'
+epub_publisher = u'George Notaras'
+epub_copyright = u'2011, George Notaras'
+
+# The language of the text. It defaults to the language option
+# or en if the language is not set.
+#epub_language = ''
+
+# The scheme of the identifier. Typical schemes are ISBN or URL.
+#epub_scheme = ''
+
+# The unique identifier of the text. This can be a ISBN number
+# or the project homepage.
+#epub_identifier = ''
+
+# A unique identification for the text.
+#epub_uid = ''
+
+# HTML files that should be inserted before the pages created by sphinx.
+# The format is a list of tuples containing the path and title.
+#epub_pre_files = []
+
+# HTML files shat should be inserted after the pages created by sphinx.
+# The format is a list of tuples containing the path and title.
+#epub_post_files = []
+
+# A list of files that should not be packed into the epub file.
+#epub_exclude_files = []
+
+# The depth of the table of contents in toc.ncx.
+#epub_tocdepth = 3
+
+# Allow duplicate toc entries.
+#epub_tocdup = True

File docs/configuration.rst

+
+=============
+Configuration
+=============
+
+This section contains information about how to configure your Django projects
+to use *django-taggit-autocomplete-modified* and also contains a quick reference of the available
+*settings* that can be used in order to customize the functionality of this
+application.
+
+
+Configuring your project
+========================
+
+In the Django project's ``settings`` module, add ``taggit_autocomplete_modified`` to the
+``INSTALLED_APPS`` setting::
+
+    INSTALLED_APPS = (
+        ...
+        'taggit_autocomplete_modified',
+    )
+
+
+Reference of the application settings
+=====================================
+
+The following settings can be specified in the Django project's ``settings``
+module to customize the functionality of *django-taggit-autocomplete-modified*.
+
+``SETTING_A``
+    Setting A ...
+
+
+Synchronize the project database
+================================
+
+Finally, synchronize the project's database using the following command::
+
+    python manage.py syncdb
+

File docs/faq.rst

+
+==========================
+Frequently Asked Questions
+==========================
+
+This section contains answers to frequently asked questions or to questions
+every new user would like to ask the author of django-taggit-autocomplete-modified.
+
+
+Donations
+=========
+
+**Is this software free?**
+    django-taggit-autocomplete-modified is released under the terms of the *Apache License version 2*,
+    therefore it is free software, which you can download, use or build upon.
+    However, a significant amount of time and effort has gone into developing
+    this software and writing this documentation. So, the production of this
+    software has not been free from cost. It is highly recommended that, if
+    you use this software *in production*, you should consider making a
+    donation.
+
+**Please define use-in-production**
+    *Use-in-production* refers to using this software to power a web site
+    or to develop derivative works which are used to power a web site
+    on the internet or in a corporate intranet.
+
+**How much should I donate?**
+    This is totally up to you. If we all made a one dollar donation to each
+    piece of free software we use in production, this world would have been
+    a better place for the developers of free software.
+
+**How do I make a donation?**
+    Please visit the CodeTRAX `donations page`_ which contains a PayPal_
+    *donate* button. Thank you for considering making a
+    donation to django-taggit-autocomplete-modified.
+
+.. _`donations page`: https://source.codetrax.org/donate.html
+.. _PayPal: https://www.paypal.com
+
+**What is CodeTRAX?**
+    CodeTRAX_ is a private project hosting service. It was launched by
+    *George Notaras* in the first quarter of 2007 to facilitate the
+    centralized management and organization of his software and
+    documentation projects.
+
+.. _CodeTRAX: http://www.codetrax.org/
+
+
+Licensing
+=========
+
+**Is django-taggit-autocomplete-modified free-software?**
+    django-taggit-autocomplete-modified is released under the terms of the *Apache License version 2*,
+    therefore it is free software. Please read the included ``LICENSE`` file
+    carefully for the full legal text and also the ``NOTICE`` file
+    which contains copyright and other important notes and statements that
+    govern your use of this software, especially if you plan to release
+    works that derive from this software.
+
+**What name should I use for works that derive from your software?**
+    You can use any name you like as long as it *does not contain the name
+    of the original project*. This is clearly stated in the ``NOTICE`` file.
+    Please note that this restriction also applies to public forks of the
+    original project's source code repository. A different name must be used
+    to name your fork.
+
+
+Contributions
+=============
+
+**This looks like an interesting project, how can I contribute?**
+    The best way to contribute to the project is to test the software for
+    possible bugs and also suggest new features or provide feedback
+    regarding the current feature set at the project's `issue tracker`_.
+    Patches are also much appreciated.
+    
+**How do I submit patches?**
+    Please open a ticket at the project's `issue tracker`_ and attach
+    your patches there. Patches sent via personal email are not generally
+    accepted. The patch must be contributed to the project using a
+    public facility, either an issue tracker or a mailing list.
+
+.. _`issue tracker`: http://www.codetrax.org/projects/django-taggit-autocomplete-modified/issues
+
+**Can I license my contributed patches under a different license?**
+    This is not possible. All contributions to this project are under
+    the terms and conditions of the *Apache License version 2* and no
+    additional terms can be set by the contributor.
+
+**Is there a mailing list?**
+    Currently there is no dedicated mailing list for this project. You
+    may ask your questions in the project's `Community Support Forums`_.
+    
+.. _`Community Support Forums`: http://www.codetrax.org/projects/django-taggit-autocomplete-modified/boards
+
+**I have a question related to the development of this software. Can I email you?**
+    Certainly. But, please, note that it might take a while until I get back
+    to you. Unfortunately, I am not always available via email. Thanks for
+    your understanding.
+
+
+Support
+=======
+
+**I have a support question. Can I email you?**
+    No. It is not possible to answer questions via email about how to integrate
+    this application into your Django project or into your own Django app. This
+    is not because I do not want to, but because I do not have the time to do
+    so. Sorry.
+
+**I have asked a question in the public forums but noone has answered**
+    Please understand that this might happen in forums that are supported
+    by a community of volunteers.
+
+**I am looking for commercial support**
+    Unfortunately, commercial support is not available at this time.
+
+
+Various
+=======
+
+**Which URL should I use to link to django-taggit-autocomplete-modified?**
+    Several places on the web are used to make the django-taggit-autocomplete-modified
+    releases, source code, documentation available to the public and also
+    provide public facilities for project management, issue tracking and
+    community support forums. All this information being scattered in several
+    web sites can bring confusion when you want to refer to this project.
+    Please, use the URL to the page of the development website::
+    
+        http://www.codetrax.org/projects/django-taggit-autocomplete-modified
+    
+    This page contains links to all the public facilities used by
+    django-taggit-autocomplete-modified. Thank you and apologies for the inconvenience.
+

File docs/index.rst

+.. django-taggit-autocomplete-modified documentation master file, created by
+   sphinx-quickstart on Sun Nov 14 09:50:21 2010.
+   You can adapt this file completely to your liking, but it should at least
+   contain the root `toctree` directive.
+
+===================================================
+django-taggit-autocomplete-modified's documentation
+===================================================
+
+Copyright 2011 `George Notaras`_ <gnot [at] g-loaded.eu>
+
+.. _`George Notaras`: http://www.g-loaded.eu/
+
+Welcome to the *django-taggit-autocomplete-modified*'s documentation!
+
+
+About this project
+==================
+
+DESCRIPTION_DESCRIPTION_DESCRIPTION
+
+| **Author**: `George Notaras <http://www.g-loaded.eu/>`_
+| **Development Web Site**: `django-taggit-autocomplete-modified project <http://www.codetrax.org/projects/django-taggit-autocomplete-modified>`_
+| **Source Code Repository**: `django-taggit-autocomplete-modified source code <https://source.codetrax.org/hgroot/django-taggit-autocomplete-modified>`_
+| **Documentation**: `django-taggit-autocomplete-modified documentation <http://packages.python.org/django-taggit-autocomplete-modified>`_
+| **Downloads**: `django-taggit-autocomplete-modified releases <http://pypi.python.org/pypi/django-taggit-autocomplete-modified>`_
+
+*django-taggit-autocomplete-modified* is based on `django-taggit-autocomplete-modified`_.
+
+.. _`django-taggit-autocomplete-modified`: https://source.codetrax.org/hgroot/django-tagging-autocomplete-modified/
+
+
+About this guide
+================
+
+This guide provides an introduction to the *django-taggit-autocomplete-modified* |version| release,
+including instructions about how to install, configure and use it in
+Django projects or individual Django applications.
+
+The contents of this documentation (the "*Documentation*") are subject to the
+*Apache License, Version 2.0* (the "*License*"); you may only use this
+Documentation if you comply with the terms of this License.
+
+A copy of the License exists in the product distribution; the *LICENSE* file.
+For copyright and other important notes regarding this release please read
+the *NOTICE* file.
+
+
+Contents:
+
+.. toctree::
+   :maxdepth: 2
+   
+   introduction
+   installation
+   configuration
+   usage
+   faq
+
+
+Indices and tables
+==================
+
+* :ref:`genindex`
+* :ref:`modindex`
+* :ref:`search`
+
+
+.. seealso::
+
+    * All projects_ published by CodeTRAX.
+    * The official `Django Documentation`_.
+
+.. _projects: http://www.codetrax.org/projects
+.. _`Django Documentation`: http://docs.djangoproject.com/en/
+

File docs/installation.rst

+
+============
+Installation
+============
+
+This section contains information about how to download and install
+django-taggit-autocomplete-modified in your system. It also contains brief instructions about how
+to build the included documentation.
+
+
+Requirements
+============
+
+This application requires Python_ 2.4 or later and a functional installation
+of Django_.
+
+.. _Python: http://python.org
+.. _Django: http://www.djangoproject.com
+
+Detailed information about the minimum supported Django version and other
+Python modules that may be required in order to run this software is shown
+below:
+
+.. literalinclude:: ../requirements.txt
+
+This information exists in the ``requirements.txt`` file inside the
+django-taggit-autocomplete-modified distribution package. If ``pip`` is used to install this software,
+then all these dependencies will also be installed, if they are not already
+installed in your system.
+
+
+Download
+========
+
+You can download the latest django-taggit-autocomplete-modified releases from the `releases page`_ at
+the *Python Package Index* (PyPI).
+
+.. _`releases page`: http://pypi.python.org/pypi/django-taggit-autocomplete-modified
+
+Alternatively, you can clone the project's public source code repository
+and then check-out any stable release, all of which are tagged::
+
+    hg clone https://source.codetrax.org/hgroot/django-taggit-autocomplete-modified
+    hg tags
+    hg update 0.1.0
+
+
+Install
+=======
+
+To install django-taggit-autocomplete-modified, use the provided installation script::
+
+    python setup.py install
+
+You can install ``django-taggit-autocomplete-modified`` using ``pip``::
+
+    pip install django-taggit-autocomplete-modified
+
+Or use ``easy_install``::
+
+    easy_install -Z django-taggit-autocomplete-modified
+
+Note: the ``-Z`` flag is required to force ``easy_install`` to do a normal
+source install rather than a zipped egg; django-taggit-autocomplete-modified cannot be
+used from a zipped egg install.
+
+Alternatively, you can simply place the ``taggit_autocomplete_modified`` directory,
+which exists under the ``src`` directory, somewhere on your Python path
+or symlink to it from somewhere on your Python path.
+
+Finally, it is also possible to install this application directly from
+the `source code repository`_ using ``pip``::
+
+    pip install -e hg+https://source.codetrax.org/hgroot/django-taggit-autocomplete-modified#egg=django-taggit-autocomplete-modified
+
+The above command will install the latest development release of
+django-taggit-autocomplete-modified.
+
+To install a stable release directly from the `source code repository`_,
+for instance, the ``0.1.0`` release, run the following command::
+
+    pip install -e hg+https://source.codetrax.org/hgroot/django-taggit-autocomplete-modified@0.1.0#egg=django-taggit-autocomplete-modified-0.1.0
+
+Please note that the mercurial_ source control management tool is required
+for this operation.
+
+.. _mercurial: http://mercurial.selenic.com/
+.. _`source code repository`: https://source.codetrax.org/hgroot/django-taggit-autocomplete-modified
+
+
+How to build the documentation
+==============================
+
+This project's documentation is located in source form under the ``docs``
+directory. In order to convert the documentation to a format that is
+easy to read and navigate you need the ``sphinx`` package.
+
+You can install ``sphinx`` using ``pip``::
+
+    pip install sphinx
+
+Or ``easy_install``::
+
+    easy_install sphinx
+
+Once ``sphinx`` is installed, change to the ``docs`` directory, open a shell
+and run the following command::
+
+    make html
+
+This will build a HTML version of the documentation. You can read the
+documentation by opening the following file in any web browser::
+
+    docs/_build/html/index.html
+

File docs/introduction.rst

+
+============
+Introduction
+============
+
+This section contains an introduction to *django-taggit-autocomplete-modified*, including general
+information about how to submit bug reports and make feature requests.
+
+DESCRIPTION_DESCRIPTION_DESCRIPTION
+
+*django-taggit-autocomplete-modified* is based on `django-taggit-autocomplete-modified`_.
+
+.. _`django-taggit-autocomplete-modified`: https://source.codetrax.org/hgroot/django-tagging-autocomplete-modified/
+
+Licensed under the *Apache License version 2.0*. More licensing information
+exists in the license_ section.
+
+
+Features
+========
+
+- Feature A
+- Feature B
+
+
+Documentation
+=============
+
+Apart from the `django-taggit-autocomplete-modified Online Documentation`_, more information about the
+installation, configuration and usage of this application may be available
+at the project's wiki_.
+
+.. _`django-taggit-autocomplete-modified Online Documentation`: http://packages.python.org/django-taggit-autocomplete-modified
+.. _wiki: http://www.codetrax.org/projects/django-taggit-autocomplete-modified/wiki
+
+
+Donations
+=========
+
+This software is released as free-software and provided to you at no cost. However,
+a significant amount of time and effort has gone into developing this software
+and writing this documentation. So, the production of this software has not
+been free from cost. It is highly recommended that, if you use this software
+*in production*, you should consider making a donation.
+
+To make a donation, please visit the CodeTRAX `donations page`_ which contains
+a PayPal_ *donate* button.
+
+Thank you for considering making a donation to django-taggit-autocomplete-modified.
+
+.. _`donations page`: https://source.codetrax.org/donate.html
+.. _PayPal: https://www.paypal.com
+
+
+Bugs and feature requests
+=========================
+
+In case you run into any problems while using this application or think that
+a new feature should be implemented, it is highly recommended you submit_ a new
+report about it at the project's `issue tracker`_.
+
+Using the *issue tracker* is the recommended way to notify the authors about
+bugs or make feature requests. Also, before submitting a new report, please
+make sure you have read the `new issue guidelines`_.
+
+.. _submit: http://www.codetrax.org/projects/django-taggit-autocomplete-modified/issues/new
+.. _`issue tracker`: http://www.codetrax.org/projects/django-taggit-autocomplete-modified/issues
+.. _`new issue guidelines`: http://www.codetrax.org/NewIssueGuidelines
+
+
+Support
+=======
+
+CodeTRAX does not provide support for django-taggit-autocomplete-modified.
+
+You can still get community support at the `Community Support Forums`_:
+
+.. _`Community Support Forums`: http://www.codetrax.org/projects/django-taggit-autocomplete-modified/boards
+
+
+License
+=======
+
+Copyright 2011 George Notaras <gnot [at] g-loaded.eu>
+
+Licensed under the *Apache License, Version 2.0* (the "*License*");
+you may not use this file except in compliance with the License.
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+A copy of the License exists in the product distribution; the *LICENSE* file.
+For copyright and other important notes regarding this release please read
+the *NOTICE* file.

File docs/make.bat

+@ECHO OFF
+
+REM Command file for Sphinx documentation
+
+if "%SPHINXBUILD%" == "" (
+	set SPHINXBUILD=sphinx-build
+)
+set BUILDDIR=_build
+set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
+if NOT "%PAPER%" == "" (
+	set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
+)
+
+if "%1" == "" goto help
+
+if "%1" == "help" (
+	:help
+	echo.Please use `make ^<target^>` where ^<target^> is one of
+	echo.  html       to make standalone HTML files
+	echo.  dirhtml    to make HTML files named index.html in directories
+	echo.  singlehtml to make a single large HTML file
+	echo.  pickle     to make pickle files
+	echo.  json       to make JSON files
+	echo.  htmlhelp   to make HTML files and a HTML help project
+	echo.  qthelp     to make HTML files and a qthelp project
+	echo.  devhelp    to make HTML files and a Devhelp project
+	echo.  epub       to make an epub
+	echo.  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter
+	echo.  text       to make text files
+	echo.  man        to make manual pages
+	echo.  changes    to make an overview over all changed/added/deprecated items
+	echo.  linkcheck  to check all external links for integrity
+	echo.  doctest    to run all doctests embedded in the documentation if enabled
+	goto end
+)
+
+if "%1" == "clean" (
+	for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
+	del /q /s %BUILDDIR%\*
+	goto end
+)
+
+if "%1" == "html" (
+	%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
+	if errorlevel 1 exit /b 1
+	echo.
+	echo.Build finished. The HTML pages are in %BUILDDIR%/html.
+	goto end
+)
+
+if "%1" == "dirhtml" (
+	%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
+	if errorlevel 1 exit /b 1
+	echo.
+	echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
+	goto end
+)
+
+if "%1" == "singlehtml" (
+	%SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml
+	if errorlevel 1 exit /b 1
+	echo.
+	echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.
+	goto end
+)
+
+if "%1" == "pickle" (
+	%SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
+	if errorlevel 1 exit /b 1
+	echo.
+	echo.Build finished; now you can process the pickle files.
+	goto end
+)
+
+if "%1" == "json" (
+	%SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
+	if errorlevel 1 exit /b 1
+	echo.
+	echo.Build finished; now you can process the JSON files.
+	goto end
+)
+
+if "%1" == "htmlhelp" (
+	%SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
+	if errorlevel 1 exit /b 1
+	echo.
+	echo.Build finished; now you can run HTML Help Workshop with the ^
+.hhp project file in %BUILDDIR%/htmlhelp.
+	goto end
+)
+
+if "%1" == "qthelp" (
+	%SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
+	if errorlevel 1 exit /b 1
+	echo.
+	echo.Build finished; now you can run "qcollectiongenerator" with the ^
+.qhcp project file in %BUILDDIR%/qthelp, like this:
+	echo.^> qcollectiongenerator %BUILDDIR%\qthelp\django-taggit-autocomplete-modified.qhcp
+	echo.To view the help file:
+	echo.^> assistant -collectionFile %BUILDDIR%\qthelp\django-taggit-autocomplete-modified.ghc
+	goto end
+)
+
+if "%1" == "devhelp" (
+	%SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp
+	if errorlevel 1 exit /b 1
+	echo.
+	echo.Build finished.
+	goto end
+)
+
+if "%1" == "epub" (
+	%SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub
+	if errorlevel 1 exit /b 1
+	echo.
+	echo.Build finished. The epub file is in %BUILDDIR%/epub.
+	goto end
+)
+
+if "%1" == "latex" (
+	%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
+	if errorlevel 1 exit /b 1
+	echo.
+	echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
+	goto end
+)
+
+if "%1" == "text" (
+	%SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text
+	if errorlevel 1 exit /b 1
+	echo.
+	echo.Build finished. The text files are in %BUILDDIR%/text.
+	goto end
+)
+
+if "%1" == "man" (
+	%SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
+	if errorlevel 1 exit /b 1
+	echo.
+	echo.Build finished. The manual pages are in %BUILDDIR%/man.
+	goto end
+)
+
+if "%1" == "changes" (
+	%SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
+	if errorlevel 1 exit /b 1
+	echo.
+	echo.The overview file is in %BUILDDIR%/changes.
+	goto end
+)
+
+if "%1" == "linkcheck" (
+	%SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
+	if errorlevel 1 exit /b 1
+	echo.
+	echo.Link check complete; look for any errors in the above output ^
+or in %BUILDDIR%/linkcheck/output.txt.
+	goto end
+)
+
+if "%1" == "doctest" (
+	%SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
+	if errorlevel 1 exit /b 1
+	echo.
+	echo.Testing of doctests in the sources finished, look at the ^
+results in %BUILDDIR%/doctest/output.txt.
+	goto end
+)
+
+:end

File docs/usage.rst

+
+=====
+Usage
+=====
+
+This section contains information, including examples, about how to use
+*django-taggit-autocomplete-modified* in your existing Django projects or applications.
+

File requirements.txt

+django-taggit-autocomplete-modified
+Django
+Sphinx
+[install]
+optimize = 1
+
+[bdist_rpm]
+doc_files = AUTHORS LICENSE NOTICE README docs
+group = Development/Libraries
+
+[build_sphinx]
+source-dir = docs/
+all_files  = 1
+#! /usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+#  This file is part of django-taggit-autocomplete-modified.
+#
+#  DESCRIPTION_DESCRIPTION_DESCRIPTION
+#
+#  Development Web Site:
+#    - http://www.codetrax.org/projects/django-taggit-autocomplete-modified
+#  Public Source Code Repository:
+#    - https://source.codetrax.org/hgroot/django-taggit-autocomplete-modified
+#
+#  Copyright 2011 George Notaras <gnot [at] g-loaded.eu>
+#
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#
+#  NOTES
+#
+#  Create source distribution tarball:
+#    python setup.py sdist --formats=gztar
+#
+#  Create binary distribution rpm:
+#    python setup.py bdist --formats=rpm
+#
+#  Create binary distribution rpm with being able to change an option:
+#    python setup.py bdist_rpm --release 7
+#
+#  Test installation:
+#    python setup.py install --prefix=/usr --root=/tmp
+#
+#  Install:
+#    python setup.py install
+#  Or:
+#    python setup.py install --prefix=/usr
+#
+
+import sys
+import os
+sys.path.insert(0, os.path.abspath('src'))
+
+from setuptools import setup
+
+from taggit_autocomplete_modified import get_version
+
+def read(fname):
+    """Utility function to read the README file."""
+    return open(os.path.join(os.path.dirname(__file__), fname)).read()
+
+if __name__=='__main__':
+    setup(
+        name = 'django-taggit-autocomplete-modified',
+        version = get_version(),
+        license = 'Apache License version 2',
+        author = 'George Notaras',
+        author_email = 'gnot [at] g-loaded.eu',
+        maintainer = 'George Notaras',
+        maintainer_email = 'gnot [at] g-loaded.eu',
+        url = 'http://www.codetrax.org/projects/django-taggit-autocomplete-modified',
+        description = 'DESCRIPTION_DESCRIPTION_DESCRIPTION',
+        long_description = read('README'),
+        download_url = 'https://source.codetrax.org/hgroot/django-taggit-autocomplete-modified',
+        platforms=['any'],
+        classifiers = [
+            'Development Status :: 4 - Beta',
+            'Environment :: Web Environment',
+            'Framework :: Django',
+            'Intended Audience :: Developers',
+            'License :: OSI Approved :: Apache Software License',
+            'Natural Language :: English',
+            'Operating System :: OS Independent',
+            'Programming Language :: Python',
+            'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
+            'Topic :: Software Development :: Libraries :: Application Frameworks',
+            'Topic :: Software Development :: Libraries :: Python Modules',
+        ],
+        package_dir = {'': 'src'},
+        packages = [
+            'taggit_autocomplete_modified',
+            #'taggit_autocomplete_modified.templatetags',
+            #'taggit_autocomplete_modified.management',
+            #'taggit_autocomplete_modified.management.commands',
+        ],
+        include_package_data = True,
+        #install_requires=read('requirements.txt').splitlines(),
+        zip_safe = False,
+    )
+

File src/taggit_autocomplete_modified/__init__.py

+# -*- coding: utf-8 -*-
+#
+#  This file is part of django-taggit-autocomplete-modified.
+#
+#  DESCRIPTION_DESCRIPTION_DESCRIPTION
+#
+#  Development Web Site:
+#    - http://www.codetrax.org/projects/django-taggit-autocomplete-modified
+#  Public Source Code Repository:
+#    - https://source.codetrax.org/hgroot/django-taggit-autocomplete-modified
+#
+#  Copyright 2011 George Notaras <gnot [at] g-loaded.eu>
+#
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#
+
+VERSION = (0, 1, 0, 'final', 0)
+
+def get_version():
+    version = '%d.%d.%d' % (VERSION[0], VERSION[1], VERSION[2])
+    return version
+

File src/taggit_autocomplete_modified/admin.py

+# -*- coding: utf-8 -*-
+#
+#  This file is part of django-taggit-autocomplete-modified.
+#
+#  DESCRIPTION_DESCRIPTION_DESCRIPTION
+#
+#  Development Web Site:
+#    - http://www.codetrax.org/projects/django-taggit-autocomplete-modified
+#  Public Source Code Repository:
+#    - https://source.codetrax.org/hgroot/django-taggit-autocomplete-modified
+#
+#  Copyright 2011 George Notaras <gnot [at] g-loaded.eu>
+#
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#
+
+from django.contrib import admin
+from django.db.models.loading import cache
+

File src/taggit_autocomplete_modified/forms.py

+# -*- coding: utf-8 -*-
+#
+#  This file is part of django-taggit-autocomplete-modified.
+#
+#  DESCRIPTION_DESCRIPTION_DESCRIPTION
+#
+#  Development Web Site:
+#    - http://www.codetrax.org/projects/django-taggit-autocomplete-modified
+#  Public Source Code Repository:
+#    - https://source.codetrax.org/hgroot/django-taggit-autocomplete-modified
+#
+#  Copyright 2011 George Notaras <gnot [at] g-loaded.eu>
+#
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#
+
+from django import forms
+

File src/taggit_autocomplete_modified/models.py

+# -*- coding: utf-8 -*-
+#
+#  This file is part of django-taggit-autocomplete-modified.
+#
+#  DESCRIPTION_DESCRIPTION_DESCRIPTION
+#
+#  Development Web Site:
+#    - http://www.codetrax.org/projects/django-taggit-autocomplete-modified
+#  Public Source Code Repository:
+#    - https://source.codetrax.org/hgroot/django-taggit-autocomplete-modified
+#
+#  Copyright 2011 George Notaras <gnot [at] g-loaded.eu>
+#
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#
+
+from django.db import models
+from django.db.models import signals
+from django.utils.translation import ugettext_lazy as _

File src/taggit_autocomplete_modified/settings.py

+# -*- coding: utf-8 -*-
+#
+#  This file is part of django-taggit-autocomplete-modified.
+#
+#  DESCRIPTION_DESCRIPTION_DESCRIPTION
+#
+#  Development Web Site:
+#    - http://www.codetrax.org/projects/django-taggit-autocomplete-modified
+#  Public Source Code Repository:
+#    - https://source.codetrax.org/hgroot/django-taggit-autocomplete-modified
+#
+#  Copyright 2011 George Notaras <gnot [at] g-loaded.eu>
+#
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#
+
+from django.conf import settings
+
+
+MY_APP_SETTING = getattr(settings, 'MY_APP_SETTING', '...')
+

File src/taggit_autocomplete_modified/signal_cb.py

+# -*- coding: utf-8 -*-
+#
+#  This file is part of django-taggit-autocomplete-modified.
+#
+#  DESCRIPTION_DESCRIPTION_DESCRIPTION
+#
+#  Development Web Site:
+#    - http://www.codetrax.org/projects/django-taggit-autocomplete-modified
+#  Public Source Code Repository:
+#    - https://source.codetrax.org/hgroot/django-taggit-autocomplete-modified
+#
+#  Copyright 2011 George Notaras <gnot [at] g-loaded.eu>
+#
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#
+
+from django.db.models.loading import cache
+
+
+def signal_callback(sender, **kwargs):
+    instance = kwargs['instance']   # app_label.ModelName instance
+    

File src/taggit_autocomplete_modified/static/taggit_autocomplete_modified/jquery.autocomplete.css

+.ac_results {
+	padding: 0px;
+	border: 1px solid black;
+	background-color: white;
+	overflow: hidden;
+	z-index: 99999;
+}
+
+.ac_results ul {
+	width: 100%;
+	list-style-position: outside;
+	list-style: none;
+	padding: 0;
+	margin: 0;
+}
+
+.ac_results li {
+	margin: 0px;
+	padding: 2px 5px;
+	cursor: default;
+	display: block;
+	/* 
+	if width will be 100% horizontal scrollbar will apear 
+	when scroll mode will be used
+	*/
+	/*width: 100%;*/
+	font: menu;
+	font-size: 12px;
+	/* 
+	it is very important, if line-height not setted or setted 
+	in relative units scroll will be broken in firefox
+	*/
+	line-height: 16px;
+	overflow: hidden;
+}
+
+.ac_loading {
+	background: white url('indicator.gif') right center no-repeat;
+}
+
+.ac_odd {
+	background-color: #eee;
+}
+
+.ac_over {
+	background-color: #0A246A;
+	color: white;
+}

File src/taggit_autocomplete_modified/static/taggit_autocomplete_modified/jquery.autocomplete.js

+/*
+ * jQuery Autocomplete plugin 1.1
+ *
+ * Copyright (c) 2009 Jörn Zaefferer
+ *
+ * Dual licensed under the MIT and GPL licenses:
+ *   http://www.opensource.org/licenses/mit-license.php
+ *   http://www.gnu.org/licenses/gpl.html
+ *
+ * Revision: $Id: jquery.autocomplete.js 15 2009-08-22 10:30:27Z joern.zaefferer $
+ */;(function($){$.fn.extend({autocomplete:function(urlOrData,options){var isUrl=typeof urlOrData=="string";options=$.extend({},$.Autocompleter.defaults,{url:isUrl?urlOrData:null,data:isUrl?null:urlOrData,delay:isUrl?$.Autocompleter.defaults.delay:10,max:options&&!options.scroll?10:150},options);options.highlight=options.highlight||function(value){return value;};options.formatMatch=options.formatMatch||options.formatItem;return this.each(function(){new $.Autocompleter(this,options);});},result:function(handler){return this.bind("result",handler);},search:function(handler){return this.trigger("search",[handler]);},flushCache:function(){return this.trigger("flushCache");},setOptions:function(options){return this.trigger("setOptions",[options]);},unautocomplete:function(){return this.trigger("unautocomplete");}});$.Autocompleter=function(input,options){var KEY={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var $input=$(input).attr("autocomplete","off").addClass(options.inputClass);var timeout;var previousValue="";var cache=$.Autocompleter.Cache(options);var hasFocus=0;var lastKeyPressCode;var config={mouseDownOnSelect:false};var select=$.Autocompleter.Select(options,input,selectCurrent,config);var blockSubmit;$.browser.opera&&$(input.form).bind("submit.autocomplete",function(){if(blockSubmit){blockSubmit=false;return false;}});$input.bind(($.browser.opera?"keypress":"keydown")+".autocomplete",function(event){hasFocus=1;lastKeyPressCode=event.keyCode;switch(event.keyCode){case KEY.UP:event.preventDefault();if(select.visible()){select.prev();}else{onChange(0,true);}break;case KEY.DOWN:event.preventDefault();if(select.visible()){select.next();}else{onChange(0,true);}break;case KEY.PAGEUP:event.preventDefault();if(select.visible()){select.pageUp();}else{onChange(0,true);}break;case KEY.PAGEDOWN:event.preventDefault();if(select.visible()){select.pageDown();}else{onChange(0,true);}break;case options.multiple&&$.trim(options.multipleSeparator)==","&&KEY.COMMA:case KEY.TAB:case KEY.RETURN:if(selectCurrent()){event.preventDefault();blockSubmit=true;return false;}break;case KEY.ESC:select.hide();break;default:clearTimeout(timeout);timeout=setTimeout(onChange,options.delay);break;}}).focus(function(){hasFocus++;}).blur(function(){hasFocus=0;if(!config.mouseDownOnSelect){hideResults();}}).click(function(){if(hasFocus++>1&&!select.visible()){onChange(0,true);}}).bind("search",function(){var fn=(arguments.length>1)?arguments[1]:null;function findValueCallback(q,data){var result;if(data&&data.length){for(var i=0;i<data.length;i++){if(data[i].result.toLowerCase()==q.toLowerCase()){result=data[i];break;}}}if(typeof fn=="function")fn(result);else $input.trigger("result",result&&[result.data,result.value]);}$.each(trimWords($input.val()),function(i,value){request(value,findValueCallback,findValueCallback);});}).bind("flushCache",function(){cache.flush();}).bind("setOptions",function(){$.extend(options,arguments[1]);if("data"in arguments[1])cache.populate();}).bind("unautocomplete",function(){select.unbind();$input.unbind();$(input.form).unbind(".autocomplete");});function selectCurrent(){var selected=select.selected();if(!selected)return false;var v=selected.result;previousValue=v;if(options.multiple){var words=trimWords($input.val());if(words.length>1){var seperator=options.multipleSeparator.length;var cursorAt=$(input).selection().start;var wordAt,progress=0;$.each(words,function(i,word){progress+=word.length;if(cursorAt<=progress){wordAt=i;return false;}progress+=seperator;});words[wordAt]=v;v=words.join(options.multipleSeparator);}v+=options.multipleSeparator;}$input.val(v);hideResultsNow();$input.trigger("result",[selected.data,selected.value]);return true;}function onChange(crap,skipPrevCheck){if(lastKeyPressCode==KEY.DEL){select.hide();return;}var currentValue=$input.val();if(!skipPrevCheck&&currentValue==previousValue)return;previousValue=currentValue;currentValue=lastWord(currentValue);if(currentValue.length>=options.minChars){$input.addClass(options.loadingClass);if(!options.matchCase)currentValue=currentValue.toLowerCase();request(currentValue,receiveData,hideResultsNow);}else{stopLoading();select.hide();}};function trimWords(value){if(!value)return[""];if(!options.multiple)return[$.trim(value)];return $.map(value.split(options.multipleSeparator),function(word){return $.trim(value).length?$.trim(word):null;});}function lastWord(value){if(!options.multiple)return value;var words=trimWords(value);if(words.length==1)return words[0];var cursorAt=$(input).selection().start;if(cursorAt==value.length){words=trimWords(value)}else{words=trimWords(value.replace(value.substring(cursorAt),""));}return words[words.length-1];}function autoFill(q,sValue){if(options.autoFill&&(lastWord($input.val()).toLowerCase()==q.toLowerCase())&&lastKeyPressCode!=KEY.BACKSPACE){$input.val($input.val()+sValue.substring(lastWord(previousValue).length));$(input).selection(previousValue.length,previousValue.length+sValue.length);}};function hideResults(){clearTimeout(timeout);timeout=setTimeout(hideResultsNow,200);};function hideResultsNow(){var wasVisible=select.visible();select.hide();clearTimeout(timeout);stopLoading();if(options.mustMatch){$input.search(function(result){if(!result){if(options.multiple){var words=trimWords($input.val()).slice(0,-1);$input.val(words.join(options.multipleSeparator)+(words.length?options.multipleSeparator:""));}else{$input.val("");$input.trigger("result",null);}}});}};function receiveData(q,data){if(data&&data.length&&hasFocus){stopLoading();select.display(data,q);autoFill(q,data[0].value);select.show();}else{hideResultsNow();}};function request(term,success,failure){if(!options.matchCase)term=term.toLowerCase();var data=cache.load(term);if(data&&data.length){success(term,data);}else if((typeof options.url=="string")&&(options.url.length>0)){var extraParams={timestamp:+new Date()};$.each(options.extraParams,function(key,param){extraParams[key]=typeof param=="function"?param():param;});$.ajax({mode:"abort",port:"autocomplete"+input.name,dataType:options.dataType,url:options.url,data:$.extend({q:lastWord(term),limit:options.max},extraParams),success:function(data){var parsed=options.parse&&options.parse(data)||parse(data);cache.add(term,parsed);success(term,parsed);}});}else{select.emptyList();failure(term);}};function parse(data){var parsed=[];var rows=data.split("\n");for(var i=0;i<rows.length;i++){var row=$.trim(rows[i]);if(row){row=row.split("|");parsed[parsed.length]={data:row,value:row[0],result:options.formatResult&&options.formatResult(row,row[0])||row[0]};}}return parsed;};function stopLoading(){$input.removeClass(options.loadingClass);};};$.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function(row){return row[0];},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(value,term){return value.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>");},scroll:true,scrollHeight:180};$.Autocompleter.Cache=function(options){var data={};var length=0;function matchSubset(s,sub){if(!options.matchCase)s=s.toLowerCase();var i=s.indexOf(sub);if(options.matchContains=="word"){i=s.toLowerCase().search("\\b"+sub.toLowerCase());}if(i==-1)return false;return i==0||options.matchContains;};function add(q,value){if(length>options.cacheLength){flush();}if(!data[q]){length++;}data[q]=value;}function populate(){if(!options.data)return false;var stMatchSets={},nullData=0;if(!options.url)options.cacheLength=1;stMatchSets[""]=[];for(var i=0,ol=options.data.length;i<ol;i++){var rawValue=options.data[i];rawValue=(typeof rawValue=="string")?[rawValue]:rawValue;var value=options.formatMatch(rawValue,i+1,options.data.length);if(value===false)continue;var firstChar=value.charAt(0).toLowerCase();if(!stMatchSets[firstChar])stMatchSets[firstChar]=[];var row={value:value,data:rawValue,result:options.formatResult&&options.formatResult(rawValue)||value};stMatchSets[firstChar].push(row);if(nullData++<options.max){stMatchSets[""].push(row);}};$.each(stMatchSets,function(i,value){options.cacheLength++;add(i,value);});}setTimeout(populate,25);function flush(){data={};length=0;}return{flush:flush,add:add,populate:populate,load:function(q){if(!options.cacheLength||!length)return null;if(!options.url&&options.matchContains){var csub=[];for(var k in data){if(k.length>0){var c=data[k];$.each(c,function(i,x){if(matchSubset(x.value,q)){csub.push(x);}});}}return csub;}else
+if(data[q]){return data[q];}else
+if(options.matchSubset){for(var i=q.length-1;i>=options.minChars;i--){var c=data[q.substr(0,i)];if(c){var csub=[];$.each(c,function(i,x){if(matchSubset(x.value,q)){csub[csub.length]=x;}});return csub;}}}return null;}};};$.Autocompleter.Select=function(options,input,select,config){var CLASSES={ACTIVE:"ac_over"};var listItems,active=-1,data,term="",needsInit=true,element,list;function init(){if(!needsInit)return;element=$("<div/>").hide().addClass(options.resultsClass).css("position","absolute").appendTo(document.body);list=$("<ul/>").appendTo(element).mouseover(function(event){if(target(event).nodeName&&target(event).nodeName.toUpperCase()=='LI'){active=$("li",list).removeClass(CLASSES.ACTIVE).index(target(event));$(target(event)).addClass(CLASSES.ACTIVE);}}).click(function(event){$(target(event)).addClass(CLASSES.ACTIVE);select();input.focus();return false;}).mousedown(function(){config.mouseDownOnSelect=true;}).mouseup(function(){config.mouseDownOnSelect=false;});if(options.width>0)element.css("width",options.width);needsInit=false;}function target(event){var element=event.target;while(element&&element.tagName!="LI")element=element.parentNode;if(!element)return[];return element;}function moveSelect(step){listItems.slice(active,active+1).removeClass(CLASSES.ACTIVE);movePosition(step);var activeItem=listItems.slice(active,active+1).addClass(CLASSES.ACTIVE);if(options.scroll){var offset=0;listItems.slice(0,active).each(function(){offset+=this.offsetHeight;});if((offset+activeItem[0].offsetHeight-list.scrollTop())>list[0].clientHeight){list.scrollTop(offset+activeItem[0].offsetHeight-list.innerHeight());}else if(offset<list.scrollTop()){list.scrollTop(offset);}}};function movePosition(step){active+=step;if(active<0){active=listItems.size()-1;}else if(active>=listItems.size()){active=0;}}function limitNumberOfItems(available){return options.max&&options.max<available?options.max:available;}function fillList(){list.empty();var max=limitNumberOfItems(data.length);for(var i=0;i<max;i++){if(!data[i])continue;var formatted=options.formatItem(data[i].data,i+1,max,data[i].value,term);if(formatted===false)continue;var li=$("<li/>").html(options.highlight(formatted,term)).addClass(i%2==0?"ac_even":"ac_odd").appendTo(list)[0];$.data(li,"ac_data",data[i]);}listItems=list.find("li");if(options.selectFirst){listItems.slice(0,1).addClass(CLASSES.ACTIVE);active=0;}if($.fn.bgiframe)list.bgiframe();}return{display:function(d,q){init();data=d;term=q;fillList();},next:function(){moveSelect(1);},prev:function(){moveSelect(-1);},pageUp:function(){if(active!=0&&active-8<0){moveSelect(-active);}else{moveSelect(-8);}},pageDown:function(){if(active!=listItems.size()-1&&active+8>listItems.size()){moveSelect(listItems.size()-1-active);}else{moveSelect(8);}},hide:function(){element&&element.hide();listItems&&listItems.removeClass(CLASSES.ACTIVE);active=-1;},visible:function(){return element&&element.is(":visible");},current:function(){return this.visible()&&(listItems.filter("."+CLASSES.ACTIVE)[0]||options.selectFirst&&listItems[0]);},show:function(){var offset=$(input).offset();element.css({width:typeof options.width=="string"||options.width>0?options.width:$(input).width(),top:offset.top+input.offsetHeight,left:offset.left}).show();if(options.scroll){list.scrollTop(0);list.css({maxHeight:options.scrollHeight,overflow:'auto'});if($.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var listHeight=0;listItems.each(function(){listHeight+=this.offsetHeight;});var scrollbarsVisible=listHeight>options.scrollHeight;list.css('height',scrollbarsVisible?options.scrollHeight:listHeight);if(!scrollbarsVisible){listItems.width(list.width()-parseInt(listItems.css("padding-left"))-parseInt(listItems.css("padding-right")));}}}},selected:function(){var selected=listItems&&listItems.filter("."+CLASSES.ACTIVE).removeClass(CLASSES.ACTIVE);return selected&&selected.length&&$.data(selected[0],"ac_data");},emptyList:function(){list&&list.empty();},unbind:function(){element&&element.remove();}};};$.fn.selection=function(start,end){if(start!==undefined){return this.each(function(){if(this.createTextRange){var selRange=this.createTextRange();if(end===undefined||start==end){selRange.move("character",start);selRange.select();}else{selRange.collapse(true);selRange.moveStart("character",start);selRange.moveEnd("character",end);selRange.select();}}else if(this.setSelectionRange){this.setSelectionRange(start,end);}else if(this.selectionStart){this.selectionStart=start;this.selectionEnd=end;}});}var field=this[0];if(field.createTextRange){var range=document.selection.createRange(),orig=field.value,teststring="<->",textLength=range.text.length;range.text=teststring;var caretAt=field.value.indexOf(teststring);field.value=orig;this.selection(caretAt,caretAt+textLength);return{start:caretAt,end:caretAt+textLength}}else if(field.selectionStart!==undefined){return{start:field.selectionStart,end:field.selectionEnd}}};})(jQuery);

File src/taggit_autocomplete_modified/tests.py

+# -*- coding: utf-8 -*-
+#
+#  This file is part of django-taggit-autocomplete-modified.
+#
+#  DESCRIPTION_DESCRIPTION_DESCRIPTION
+#
+#  Development Web Site:
+#    - http://www.codetrax.org/projects/django-taggit-autocomplete-modified
+#  Public Source Code Repository:
+#    - https://source.codetrax.org/hgroot/django-taggit-autocomplete-modified
+#
+#  Copyright 2011 George Notaras <gnot [at] g-loaded.eu>
+#
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#
+
+"""
+This file demonstrates two different styles of tests (one doctest and one
+unittest). These will both pass when you run "manage.py test".
+
+Replace these with more appropriate tests for your application.
+"""
+
+from django.test import TestCase
+
+class SimpleTest(TestCase):
+    def test_basic_addition(self):
+        """
+        Tests that 1 + 1 always equals 2.
+        """
+        self.failUnlessEqual(1 + 1, 2)
+
+__test__ = {"doctest": """
+Another way to test that 1 + 1 is equal to 2.
+
+>>> 1 + 1 == 2
+True
+"""}
+

File src/taggit_autocomplete_modified/urls.py

+# -*- coding: utf-8 -*-
+#
+#  This file is part of django-taggit-autocomplete-modified.
+#
+#  DESCRIPTION_DESCRIPTION_DESCRIPTION
+#
+#  Development Web Site:
+#    - http://www.codetrax.org/projects/django-taggit-autocomplete-modified
+#  Public Source Code Repository:
+#    - https://source.codetrax.org/hgroot/django-taggit-autocomplete-modified
+#
+#  Copyright 2011 George Notaras <gnot [at] g-loaded.eu>
+#
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#
+
+from django.conf.urls.defaults import *
+

File src/taggit_autocomplete_modified/utils.py

+# -*- coding: utf-8 -*-
+#
+#  This file is part of django-taggit-autocomplete-modified.
+#
+#  DESCRIPTION_DESCRIPTION_DESCRIPTION
+#
+#  Development Web Site:
+#    - http://www.codetrax.org/projects/django-taggit-autocomplete-modified
+#  Public Source Code Repository:
+#    - https://source.codetrax.org/hgroot/django-taggit-autocomplete-modified
+#
+#  Copyright 2011 George Notaras <gnot [at] g-loaded.eu>
+#
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#

File src/taggit_autocomplete_modified/views.py

+# -*- coding: utf-8 -*-
+#
+#  This file is part of django-taggit-autocomplete-modified.
+#
+#  DESCRIPTION_DESCRIPTION_DESCRIPTION
+#
+#  Development Web Site:
+#    - http://www.codetrax.org/projects/django-taggit-autocomplete-modified
+#  Public Source Code Repository:
+#    - https://source.codetrax.org/hgroot/django-taggit-autocomplete-modified
+#
+#  Copyright 2011 George Notaras <gnot [at] g-loaded.eu>
+#
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#