Hi,

I have been trying to use a setuided python script to add some entries
to a Trac database using the Trac api over the sqlite backend.

But it seems to ignore the effective uid, so I cannot access the
database.

I have seen that sqlite_backend.py uses os.access in __init__()[0] to
check permissions. I have been trying some things with os.access and
as i have found in Python-Dev mailing list [1], os.access can "lie" in
some cases, like this one.

Should sqlite_backend.py use os.access?
Does exist any other way to access database with a setuided python
script?

Thanks,

Jaime.

[0] - sqlite_backend.py __init__ in trunk (Feb 21th 2007)
http://trac.edgewall.org/browser/trunk/trac/db/sqlite_backend.py#L151
[1] - Dont trust os.acces 
http://mail.python.org/pipermail/python-dev/2004-November/049937.html


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to