[Booki-dev] ott in booki

Lachlan Musicman datakid at gmail.com
Tue Oct 5 21:00:15 PDT 2010


Ignore my email, I will add more info to the ticket:

"wikibooks sometimes imports more than one chapter with the same name."
http://booki-dev.flossmanuals.net/ticket/267

cheers
L.

On Wed, Oct 6, 2010 at 14:57, Lachlan Musicman <datakid at gmail.com> wrote:
> ok, first problem:
>
> http://www.booki.cc/translation-tools/_v/1.0/introduction/
>
> gets a "multiple objects returned error":
>
>
>
> Environment:
>
> Request Method: GET
> Request URL: http://www.booki.cc/translation-tools/_v/1.0/introduction/
> Django Version: 1.3 pre-alpha SVN-13637
> Python Version: 2.5.2
> Installed Applications:
> ['django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.sessions',
>  'django.contrib.sites',
>  'django.contrib.admin',
>  'booki.editor',
>  'booki.account',
>  'booki.reader',
>  'booki.portal',
>  'sputnik']
> Installed Middleware:
> ('django.middleware.common.CommonMiddleware',
>  'django.contrib.sessions.middleware.SessionMiddleware',
>  'django.contrib.auth.middleware.AuthenticationMiddleware')
>
>
> Traceback:
> File "/var/www/booki-www/lib/django/django/core/handlers/base.py" in
> get_response
>  100.                     response = callback(request,
> *callback_args, **callback_kwargs)
> File "/var/www/booki-www/lib/booki/reader/views.py" in view_chapter
>  75.     content = models.Chapter.objects.get(version=book_version,
> url_title = chapter)
> File "/var/www/booki-www/lib/django/django/db/models/manager.py" in get
>  132.         return self.get_query_set().get(*args, **kwargs)
> File "/var/www/booki-www/lib/django/django/db/models/query.py" in get
>  343.                 % (self.model._meta.object_name, num, kwargs))
>
> Exception Type: MultipleObjectsReturned at
> /translation-tools/_v/1.0/introduction/
> Exception Value: get() returned more than one Chapter -- it returned
> 3! Lookup parameters were {'version': <BookVersion: 1.0 (initial)>,
> 'url_title': u'introduction'}
>
> On Wed, Oct 6, 2010 at 14:53, Lachlan Musicman <datakid at gmail.com> wrote:
>> great, sorry I'm late to this - I've been busy!
>>
>> cheers
>> L.
>>
>> On Fri, Sep 24, 2010 at 17:36, adam hyde <adam at flossmanuals.net> wrote:
>>> give it a go:
>>> http://www.booki.cc/groups/floss-manuals/
>>>
>>> :)
>>>
>>> adam
>>>
>>>
>>>
>>> --
>>> Adam Hyde
>>> Founder FLOSS Manuals &
>>> Booki Project Manager
>>>
>>> Contact Information
>>> German mobile : + 49 177 4935122
>>> Email : adam at flossmanuals.net
>>> irc : irc.freenode.net #flossmanuals
>>>
>>>
>>> "Free manuals for free software"
>>> http://www.flossmanuals.net/about
>>>
>>> Free Software for making Free Books
>>> http://www.booki.cc/
>>>
>>>
>>
>>
>>
>> --
>> These simple functions belong to a sub-class known as strictly
>> dominating functions, meaning that their output is always bigger than
>> their inputs. A striking fact, known as the complementation theorem,
>> holds for all such functions. It says there is always an infinite
>> collection of inputs that when fed into the function will produce a
>> collection of outputs that is precisely the non-inputs.
>> - http://bit.ly/d3Fsrw
>>
>
>
>
> --
> These simple functions belong to a sub-class known as strictly
> dominating functions, meaning that their output is always bigger than
> their inputs. A striking fact, known as the complementation theorem,
> holds for all such functions. It says there is always an infinite
> collection of inputs that when fed into the function will produce a
> collection of outputs that is precisely the non-inputs.
> - http://bit.ly/d3Fsrw
>



-- 
These simple functions belong to a sub-class known as strictly
dominating functions, meaning that their output is always bigger than
their inputs. A striking fact, known as the complementation theorem,
holds for all such functions. It says there is always an infinite
collection of inputs that when fed into the function will produce a
collection of outputs that is precisely the non-inputs.
- http://bit.ly/d3Fsrw



More information about the Booki-dev mailing list