perfect. I got home just now :)

On Thursday, February 28, 2013 8:06:08 PM UTC+1, OJ wrote:
>
> Hi,
>
> It worked! Thank you so much!
>
> -Oj
>
> On Thursday, February 28, 2013 8:07:58 PM UTC+2, LightDot wrote:
>>
>> A couple of bugs has crept in... Assuming you've already followed the 
>> instructions (as pasted above):
>>
>> 1) to the top of applications/benchmark/controllers/tests.py add:
>> import os
>>
>> 2) in applications/benchmark/views/tests/hellos.html and in 
>> applications/benchmark/views/tests/hellodb.html change:
>> {{ extend base.html }}
>> to
>> {{ extend 'base.html' }}
>>
>> 3) in applications/benchmark/views/tests/hellodb.html change:
>> {{ for row in rows }}
>> to
>> {{ for row in rows: }}
>> and in the same file, change:
>> {{ endfor }}
>> to
>> {{ pass }}
>>
>> Then (note, the first link is also different):
>>
>> python web2py.py -a chooseapassword &
>> open http://127.0.0.1:8000/benchmark/tests/hellodb2 
>> <http://127.0.0.1:8000/benchmark/tests/hello>
>> open http://127.0.0.1:8000/benchmark/tests/hellos
>> open http://127.0.0.1:8000/benchmark/tests/hellodb
>>
>>
>> The database is created when you access the first link for the first time 
>> - so "hellodb2" must be accessed once, before "hellodb" starts to work. The 
>> "hellos" works from the beginning.
>>
>> Let us know if you need the step-by-step instructions with fixes included.
>>
>> Regards,
>> Ales
>>
>> On Thursday, February 28, 2013 2:50:28 PM UTC+1, OJ wrote:
>>>
>>> @Niphlod Souds great!
>>>
>>> -Oj
>>>
>>> On Thursday, February 28, 2013 3:13:42 PM UTC+2, Niphlod wrote:
>>>>
>>>> @OJ: I will as soon as I get home if in the meantime nobody else will 
>>>> (still at work, no python available). We'll solve the issue in a moment.
>>>>
>>>> On Thursday, February 28, 2013 1:29:14 PM UTC+1, OJ wrote:
>>>>>
>>>>> models/ is empty, controller/ - has appadmin.py, default.py and 
>>>>> tests.py 
>>>>>
>>>>> I deleted others but tests.py and still same result. I'm running into 
>>>>> this problem: 
>>>>> Traceback (most recent call last):
>>>>>   File "/home/test/web2py/web2py/gluon/main.py", line 543, in wsgibase
>>>>>     serve_controller(request, response, session)
>>>>>   File "/home/test/web2py/web2py/gluon/main.py", line 227, in 
>>>>> serve_controller
>>>>>     run_view_in(response._view_environment)
>>>>>   File "/home/test/web2py/web2py/gluon/compileapp.py", line 672, in 
>>>>> run_view_in
>>>>>     context=environment)
>>>>>   File "/home/test/web2py/web2py/gluon/template.py", line 785, in 
>>>>> parse_template
>>>>>     return str(TemplateParser(text, context=context, path=path, 
>>>>> lexers=lexers, delimiters=delimiters))
>>>>>   File "/home/test/web2py/web2py/gluon/template.py", line 316, in 
>>>>> __init__
>>>>>     self.parse(text)
>>>>>   File "/home/test/web2py/web2py/gluon/template.py", line 756, in parse
>>>>>     self.extend(extend)
>>>>>   File "/home/test/web2py/web2py/gluon/template.py", line 471, in 
>>>>> extend
>>>>>     text = self._get_file_text(filename)
>>>>>   File "/home/test/web2py/web2py/gluon/template.py", line 436, in 
>>>>> _get_file_text
>>>>>     filename = eval(filename, context)
>>>>>   File "<string>", line 1, in <module>
>>>>> NameError: name 'base' is not defined
>>>>>
>>>>> I followed Massimos example carefully. If you do the same, is 
>>>>> everything working in your machines?
>>>>>
>>>>> -Oj
>>>>>
>>>>> On Thursday, February 28, 2013 6:57:33 AM UTC+2, rh wrote:
>>>>>>
>>>>>> On Wed, 27 Feb 2013 13:15:22 -0800 (PST) 
>>>>>> OJ <[email protected]> wrote: 
>>>>>>
>>>>>> > Massimo, sorry for stalking you, but could you (or somebody) make 
>>>>>> > this work: 
>>>>>> > 
>>>>>> > 
>>>>>> > I cant even debug it to work. It seems (for me) that web2py is too 
>>>>>> > smart for me to do simple application :) Sorry for bothering you 
>>>>>> guys. 
>>>>>>
>>>>>> What errors do you get? 
>>>>>>
>>>>>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to