Message2147
When I try to create a second private query, I am
unable to. I've looked at the code and I believe that
the problem is in the cgi/actions.py file. It looks
like it walks through the current user-created queries
and if it doesn't find one that matches it doesn't
create the new one.
My patch is:
205,212c205,211
< self.db.commit()
< return
< # create a query
< if not self.hasPermission('Create',
'query'):
< raise exceptions.Unauthorised,
self._(
< "You do not have permission
to store queries")
< qid =
self.db.query.create(name=queryname,
< klass=self.classname, url=url,
private_for=uid)
---
> else:
> # create a query
> if not
self.hasPermission('Create', 'query'):
> raise
exceptions.Unauthorised, self._(
> "You do not have
permission to store queries")
> qid =
self.db.query.create(name=queryname,
> klass=self.classname,
url=url, private_for=uid)
What I am doing is if I find a match, I'm renaming like
before, committing, and returning from the routine. If
I don't find it or there were any qids anyway, I'm
adding the new qid.
My email address is:
David.Byrne@cambridge-na.com
Thanks,
David Byrne |
|
Date |
User |
Action |
Args |
2009-02-03 14:21:37 | admin | link | issue1429368 messages |
2009-02-03 14:21:37 | admin | create | |
|