Ok, I think I found the issue. Looking at the pootle_app_directory table, there were 3 entries with a null parent_id
(1, '', NULL, '/'), .... (291, 'testproj', NULL, '/nl/'testproj'/'), (292, 'testproj', NULL, '/lv/'testproj'/'), I deleted the two last ones and the error disappeared. It's possible that this can be a Pootle bug or it can be something the admin user broke? Thanks (and please excuse my bad english). -------------------------------------------------- From: <[email protected]> Sent: Saturday, April 17, 2010 10:18 PM To: <[email protected]> Subject: [translate-pootle] Pootle 2.0.3 error message > Hi, > > When I load the index page of my Pootle install, i get this error: > > > Server Error > An error has occurred. Thank you for your patience. > get() returned more than one Directory -- it returned 3! Lookup parameters > were {'parent': None} > > > Looking at the server logs I find this: > > [Sat Apr 17 20:43:52 2010] [error] Traceback (most recent call last): > [Sat Apr 17 20:43:52 2010] [error] File > "/usr/lib/python2.4/site-packages/django/core/handlers/base.py", line 92, > in > get_response > [Sat Apr 17 20:43:52 2010] [error] response = callback(request, > *callback_args, **callback_kwargs) > [Sat Apr 17 20:43:52 2010] [error] File > "/home/xxx/public_html/translate/local_apps/pootle_app/views/index/index.py", > line 86, in view > [Sat Apr 17 20:43:52 2010] [error] request.permissions = > get_matching_permissions(get_profile(request.user), > Directory.objects.root) > [Sat Apr 17 20:43:52 2010] [error] File > "/home/xxx/public_html/translate/local_apps/pootle_app/models/directory.py", > line 36, in _get_root > [Sat Apr 17 20:43:52 2010] [error] return self.get(parent=None) > [Sat Apr 17 20:43:52 2010] [error] File > "/usr/lib/python2.4/site-packages/django/db/models/manager.py", line 120, > in > get > [Sat Apr 17 20:43:52 2010] [error] return > self.get_query_set().get(*args, **kwargs) > [Sat Apr 17 20:43:52 2010] [error] File > "/usr/lib/python2.4/site-packages/django/db/models/query.py", line 306, in > get > [Sat Apr 17 20:43:52 2010] [error] raise > self.model.MultipleObjectsReturned("get() returned more than one %s -- it > returned %s! Lookup parameters were %s" > [Sat Apr 17 20:43:52 2010] [error] MultipleObjectsReturned: get() returned > more than one Directory -- it returned 2! Lookup parameters were > {'parent': > None} > > Previously it worked fine, but it's possible that the web admin has messed > the config a bit. Could you give me some advice on how to fix this? I've > searched in Google but I could not find anything related. > > Thanks. > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Translate-pootle mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/translate-pootle > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Translate-pootle mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/translate-pootle
