示例#1
0
 def handle(self, *args, **options):
     app = options.get('checkers', args)
     if app:
         args += tuple(list_py2(app))
     if options['list']:
         rt.show(Checkers, column_names="value text")
     else:
         rt.startup()
         check_data(args=args, fix=options['fix'])
示例#2
0
 def handle(self, *args, **options):
     app = options.get('checkers', args)
     if app:
         args += tuple(list_py2(app))
     if options['list']:
         rt.show(Checkers, column_names="value text")
     else:
         rt.startup()
         check_data(args=args, fix=options['fix'])
示例#3
0
 def handle(self, *args, **options):
     if options["list"]:
         Checkers.show()
     else:
         rt.startup()
         check_plausibility(args=args, fix=options["fix"])
示例#4
0
文件: shell.py 项目: TonisPiip/lino
"""A shortcut import for usage in a Django shell or a :manage:`run`
script.

Typical usage::

    >>> from lino.api.shell import *

"""
from lino import AFTER17
if AFTER17:
    import django
    django.setup()
from django.conf import settings
from lino.api import ad, dd, rt
rt.startup()
globals().update(rt.modules)
示例#5
0
文件: checkdata.py 项目: DarioGT/lino
 def handle(self, *args, **options):
     if options['list']:
         Checkers.show()
     else:
         rt.startup()
         check_plausibility(args=args, fix=options['fix'])