debian/0000755000000000000000000000000011373430124007164 5ustar debian/patches/0000755000000000000000000000000011373427506010625 5ustar debian/patches/series0000644000000000000000000000002311373215414012026 0ustar xapian-1.2-support debian/patches/xapian-1.2-support0000644000000000000000000000205611372732434014041 0ustar Xapian-1.2 support (see http://trac.xapian.org/browser/trunk/xapian-core/docs/deprecation.rst#id5) Index: python-django-djapian/src/djapian/resultset.py =================================================================== --- python-django-djapian.orig/src/djapian/resultset.py 2010-05-07 12:53:34.000000000 +0400 +++ python-django-djapian/src/djapian/resultset.py 2010-05-07 12:53:39.000000000 +0400 @@ -174,15 +174,15 @@ self._resultset_cache = [] for match in self._mset: - doc = match.get_document() + doc = match.document model = doc.get_value(2) model = get_model(*model.split('.')) pk = model._meta.pk.to_python(doc.get_value(1)) - percent = match.get_percent() - rank = match.get_rank() - weight = match.get_weight() + percent = match.percent + rank = match.rank + weight = match.weight tags = dict([(tag.prefix, tag.extract(doc))\ for tag in self._indexer.tags]) debian/watch0000644000000000000000000000034411373254764010234 0ustar version=3 opts=\ downloadurlmangle=s|.*[?]name=(.*?)&.*|http://djapian.googlecode.com/files/$1|,\ filenamemangle=s|[^/]+[?]name=(.*?)&.*|$1| \ http://code.google.com/p/djapian/downloads/detail[?]name=Djapian-([0-9.]+).tar.gz&.* debian/rules0000755000000000000000000000003711373210774010253 0ustar #!/usr/bin/make -f %: dh $@ debian/compat0000644000000000000000000000000211372732434010372 0ustar 7 debian/source/0000755000000000000000000000000011372732434010474 5ustar debian/source/format0000644000000000000000000000001411373427507011705 0ustar 3.0 (quilt) debian/control0000644000000000000000000000213411372732543010600 0ustar Source: python-django-djapian Priority: optional Maintainer: Mikhail Lukyanchenko Build-Depends: debhelper (>= 7.0.50) Build-Depends-Indep: python-support Standards-Version: 3.8.4 Section: python Homepage: http://code.google.com/p/djapian/ Vcs-Git: git://github.com/uptimebox/python-django-djapian.git Vcs-Browser: http://github.com/uptimebox/python-django-djapian Package: python-django-djapian Architecture: all Depends: ${python:Depends}, ${misc:Depends}, python-django (>= 1.1), python-xapian (>= 1.0.7) Description: Search API for Django using Xapian Djapian provides full-text search in your Django project. . Most features are provided by the Xapian library.  Djapian effectively serves as a Django-compatible adaptor for Xapian. . Djapian features . * High-level DSL for indexer declaration * Standard result pagination support * Indexing of field, method results and related model attributes * Entry filtering (by trigger function) * Term tagging * Spelling corrections * Stemming * Result ordering by fields * Indexers auto discovery * Index shell debian/changelog0000644000000000000000000000121611373262666011054 0ustar python-django-djapian (2.3.1-3) unstable; urgency=low * Updated debian/watch to comply with new Google Code downloads page layout (Closes: #581636) -- Mikhail Lukyanchenko Fri, 14 May 2010 19:00:42 +0400 python-django-djapian (2.3.1-2) unstable; urgency=low * Xapian 1.2 compatibility (Closes: #578903) Thanks to Olly Betts * Fixed maintainer email -- Mikhail Lukyanchenko Thu, 13 May 2010 12:17:55 +0400 python-django-djapian (2.3.1-1) unstable; urgency=low * Initial release (Closes: #528247) -- Mikhail Lukyanchenko Sun, 20 Dec 2009 13:59:05 +0300 debian/copyright0000644000000000000000000000664011372732770011140 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=59 Name: djapian Maintainer: Mikhail Lukyanchenko Source: http://code.google.com/p/djapian Files: * Copyright: 2007 - 2009 Rafael "SDM" Sierra 2007 - 2009 Alex Koshelev License: BSD Copyright (c) 2007-2009, Rafael Sierra and Alex Koshelev All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the organization nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY Rafael Sierra and Alex Koshelev ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Rafael Sierra and Alex Koshelev BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: 2009 Mikhail Lukyanchenko License: BSD Copyright (c) 2009 Mikhail Lukyanchenko. All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the author nor the names of other contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.