Thank you Massimo, it is working again :)
On Friday, October 5, 2012 9:36:21 AM UTC+8, Massimo Di Pierro wrote:
>
> Fixed in trunk. Please check the outcome.
>
> On Thursday, 4 October 2012 07:09:51 UTC-5, Massimo Di Pierro wrote:
>>
>> I opened a ticket about this. Will try resolve it today.
>>
>> On Wednesday, 3 October 2012 22:59:37 UTC-5, lyn2py wrote:
>>>
>>> I compile app very often to move it to production, and I would like to
>>> do it via command line (or a sh script). I tried
>>>
>>> python -c "import gluon.compileapp;
>>> gluon.compileapp.compile_application('applications/<appname>')"
>>>
>>> From Thadeus' blog but it throws an error:
>>>
>>> Traceback (most recent call last):
>>> File "<string>", line 1, in <module>
>>> File "gluon/compileapp.py", line 677, in compile_application
>>> compile_views(folder)
>>> File "gluon/compileapp.py", line 440, in compile_views
>>> data = parse_template(file, path)
>>> File "gluon/template.py", line 767, in parse_template
>>> return str(TemplateParser(text, context=context, path=path,
>>> lexers=lexers, delimiters=delimiters))
>>> File "gluon/template.py", line 303, in __init__
>>> self.parse(text)
>>> File "gluon/template.py", line 740, in parse
>>> self.extend(extend)
>>> File "gluon/template.py", line 458, in extend
>>> text = self._get_file_text(filename)
>>> File "gluon/template.py", line 419, in _get_file_text
>>> context["response"] = current.response
>>> AttributeError: 'thread._local' object has no attribute 'response'
>>>
>>> Then I saw Massimo's solution to do
>>> python -c "from gluon.admin import app_compile
>>> app_compile(request.application, request)"
>>>
>>> I would like to create a file (shell? python? in web2py or not?) to
>>> perform "clean", "Compile", "Pack Compiled"(and initiates a download in a
>>> browser). Is this possible?
>>> How should I go about this?
>>>
>>> Thank you!!!
>>>
>>
--