app/django/db/backends/sqlite3/client.py
author Sverre Rabbelier <srabbelier@gmail.com>
Sat, 29 Nov 2008 21:58:34 +0000
changeset 617 9cc42981d40a
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Now invited users can create a new Host profile Before the invited user had to be a developer for this to work. Now, instead the default checkIsDeveloper check for the 'edit Host', a custom checkIsInvite check is used. Patch by: Sverre Rabbelier

from django.db.backends import BaseDatabaseClient
from django.conf import settings
import os

class DatabaseClient(BaseDatabaseClient):
    executable_name = 'sqlite3'

    def runshell(self):
        args = ['', settings.DATABASE_NAME]
        os.execvp(self.executable_name, args)