~ubuntu-branches/debian/sid/web2py/sid

« back to all changes in this revision

Viewing changes to .pc/gtk_gui/gluon/widget.py

  • Committer: Bazaar Package Importer
  • Author(s): José L. Redrejo Rodríguez
  • Date: 2011-06-02 16:55:29 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110602165529-wq73zmx3zy9pc3ul
Tags: 1.96.1-1
* New upstream version
* Move wsgihandler.py from python-web2py to examples of python-gluon
* Added subwsgihandler.py to python-gluon examples (as a patch)
* Added web2py.apache-subdir and updated web2py.apache and README.Debian
* Refreshed debian/patches/avoid_upgrading 

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
except NameError:
41
41
    BaseException = Exception
42
42
 
43
 
ProgramName = 'web2py Enterprise Web Framework'
 
43
ProgramName = 'web2py Web Framework'
44
44
ProgramAuthor = 'Created by Massimo Di Pierro, Copyright 2007-2011'
45
45
versioninfo = open('VERSION', 'r')
46
46
ProgramVersion = versioninfo.read().strip()
698
698
                      default=None,
699
699
                      help='should be followed by a list of arguments to be passed to script, to be used with -S, -A must be the last option')
700
700
 
 
701
    parser.add_option('--no-banner',
 
702
                      action='store_true',
 
703
                      default=False,
 
704
                      dest='nobanner',
 
705
                      help='Do not print header banner')
 
706
 
701
707
    msg = 'listen on multiple addresses: "ip:port:cert:key;ip2:port2:cert2:key2;..." (:cert:key optional; no spaces)'
702
708
    parser.add_option('--interfaces',
703
709
                      action='store',
768
774
 
769
775
    (options, args) = console()
770
776
 
771
 
    print ProgramName
772
 
    print ProgramAuthor
773
 
    print ProgramVersion
 
777
    if not options.nobanner:
 
778
        print ProgramName
 
779
        print ProgramAuthor
 
780
        print ProgramVersion
774
781
 
775
782
    from dal import drivers
776
 
    print 'Database drivers available: %s' % ', '.join(drivers)
 
783
    if not options.nobanner:
 
784
        print 'Database drivers available: %s' % ', '.join(drivers)
777
785
 
778
786
 
779
787
    # ## if -L load options from options.config file
780
788
    if options.config:
781
789
        try:
782
 
            options2 = __import__(options.config, [], [], '')
 
790
            options2 = __import__(options.config, {}, {}, '')
783
791
        except Exception:
784
792
            try:
785
793
                # Jython doesn't like the extra stuff
786
 
                options = __import__(options.config)
 
794
                options2 = __import__(options.config)
787
795
            except Exception:
788
796
                print 'Cannot import config file [%s]' % options.config
789
797
                sys.exit(1)
880
888
    if not root and options.password == '<ask>':
881
889
        options.password = raw_input('choose a password:')
882
890
 
883
 
    if not options.password:
 
891
    if not options.password and not options.nobanner:
884
892
        print 'no password, no admin interface'
885
893
 
886
894
    # ## start server
887
895
 
888
896
    (ip, port) = (options.ip, int(options.port))
889
897
 
890
 
    print 'please visit:'
891
 
    print '\thttp://%s:%s' % (ip, port)
892
 
    print 'use "kill -SIGTERM %i" to shutdown the web2py server' % os.getpid()
 
898
    if not options.nobanner:
 
899
        print 'please visit:'
 
900
        print '\thttp://%s:%s' % (ip, port)
 
901
        print 'use "kill -SIGTERM %i" to shutdown the web2py server' % os.getpid()
893
902
 
894
903
    server = main.HttpServer(ip=ip,
895
904
                             port=port,