27 |
# NOTES: |
# NOTES: |
28 |
# |
# |
29 |
|
|
30 |
from Base import BaseCommand |
from Base import BaseCommand, CommandError |
31 |
|
|
32 |
class Command(BaseCommand): |
class Command(BaseCommand): |
33 |
|
SHORT = "Runs another GNUe SQL script file" |
34 |
def call(self, args): |
def call(self, args): |
35 |
if len(args) != 1: |
if not len(args): |
36 |
raise CommandError, _("call requires a filename to be passed") |
raise CommandError, _("CALL requires a filename to be passed as its first argument") |
37 |
self.instance.processFile(args[0]) |
self.instance.processFile(args[0]) |