Tomas Pelka wrote:
> Still:
> Cannot import config file [options]
> 
> Btw I need to start web2py from script using:
> 
> gluon.widget.start(cron=True)
> 
> Is there any way how to preset options? 

I get it, I have to run directly HttpServer(option here).

Looking in source I can see that
> 
> 647      parser.add_option('-L',
> 648                        '--config',
> 649                        dest='config',
> 650                        default='',
> 651                        help='config file')
> 
> there is no default config, right?
> 
> Thanks
> 
> mdipierro wrote:
>> Looks like you are not doing anything wrong but test=false is missing
>> from the options file. I changed the source in trunk so that it does
>> not expect options.test
>>
>> Massimo
>>
>> On Apr 16, 5:14 pm, Tomas Pelka <tompe...@gmail.com> wrote:
>>> Hi all,
>>>
>>> python web2py -L options.py
>>> ends with:
>>>
>>> File "web2py.py", line 20, in <module>
>>>     gluon.widget.start(cron=True)
>>>   File "/home/tom/workspace/pyNetSim/web2py/gluon/widget.py", line 750,
>>> in start
>>>     if options.test:
>>> AttributeError: 'module' object has no attribute 'test'
>>>
>>> No -T option specified.
>>>
>>> Options.py looks like:
>>>
>>> import os
>>> ip = '10.8.0.10'
>>> port = 8888
>>> password = '<recycle>'
>>> pid_filename = 'httpserver.pid'
>>> log_filename = 'httpserver.log'
>>> profiler_filename = None
>>> ssl_certificate = 'secret/server.crt'
>>> ssl_private_key = 'secret/server.key'
>>> numthreads = 10
>>> server_name = 'NetSim'
>>> request_queue_size = 10
>>> timeout = 10
>>> shutdown_timeout = 5
>>> folder = os.getcwd()
>>> extcron = None
>>> nocron = None
>>>
>>> Am I doing anythin wrong?
>>>
>>> Thanks for answers (web2py 1.76.5).
>>>
>>> --
>>> Tom
>>>
>>> --
>>> Subscription settings:http://groups.google.com/group/web2py/subscribe?hl=en
> 
> 


-- 
Tom

Key fingerprint = 06C0 23C6 9EB7 0761 9807  65F4 7F6F 7EAB 496B 28AA

Reply via email to