Hi Ramos,
I found the problem.
using appconfig for formstyle doesn't work in older versions (it appears
that it doesn't recognize the underscore).
I hardcoded the formstyle in db1.py and updated the repo
You can refresh from the repo (there's been some other small enhancements)
or in models/db1.py change this
response.formstyle = myconf.get('forms.formstyle')
to this
response.formstyle = 'bootstrap3_inline'
that should work in older web2py versions
On Wednesday, March 23, 2016 at 2:27:04 PM UTC-4, Ramos wrote:
>
> 2.12.13
>
> 2016-03-23 17:15 GMT+00:00 Michael Beller <[email protected] <javascript:>
> >:
>
>> That may be a problem with an earlier version of web2py. I'm testing now
>> on trunk, i.e., the master branch of web2py. I noticed this earlier but
>> haven't been able to see what's changed in master vs. previous versions.
>> Anybody know?
>>
>> What version of web2py are you using?
>>
>> I should probably move Starter to the stable release.
>>
>> On Wednesday, March 23, 2016 at 1:08:10 PM UTC-4, Ramos wrote:
>>>
>>> error in login/register
>>> [image: Imagem inline 1]
>>>
>>> 2016-03-23 17:07 GMT+00:00 António Ramos <[email protected]>:
>>>
>>>> i cannot log in or register...
>>>>
>>>> 2016-03-23 12:13 GMT+00:00 Michael Beller <[email protected]>:
>>>>
>>>>> I just added the appconfig.ini to the repo since that will cause
>>>>> confusion. It contained the item for host_names supported by the current
>>>>> web2py in trunk.
>>>>>
>>>>> auth = Auth(db, host_names=myconf.get('host.name'))
>>>>>
>>>>> Since I'm not sure what that is for, I just changed it back to:
>>>>>
>>>>> auth = Auth(db)
>>>>>
>>>>> in /models/db1.py
>>>>>
>>>>> Update your appconfig.ini to include the host_names entry (the
>>>>> appconfig.ini in the repo on github contains the entry)
>>>>> OR
>>>>> Remove the host_names parameter from the call to Auth on line 58
>>>>> in /models/db1.py
>>>>>
>>>>> That should get your local copy working (and eliminate the confusion
>>>>> for future downloads or clones)
>>>>>
>>>>> On Wednesday, March 23, 2016 at 7:47:37 AM UTC-4, Ramos wrote:
>>>>>>
>>>>>> I already copied appconfig.ini to private
>>>>>>
>>>>>> but next error...
>>>>>>
>>>>>> [image: Imagem inline 1]
>>>>>> then i changed auth above to just
>>>>>> auth=auth(db)
>>>>>>
>>>>>> and now i could open the app but when i go to login or sign up i get
>>>>>> another error
>>>>>>
>>>>>> [image: Imagem inline 2]
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> 2016-03-23 11:41 GMT+00:00 Massimiliano <[email protected]>:
>>>>>>
>>>>>>> Just copy
>>>>>>>
>>>>>>> appconfic.ini from welcome/private to starter/private
>>>>>>>
>>>>>>> On Wednesday, March 23, 2016 at 11:19:23 AM UTC+1, Ramos wrote:
>>>>>>>>
>>>>>>>> Nice but i get an error installing it as "starter" application
>>>>>>>> any help ?
>>>>>>>>
>>>>>>>> [image: Imagem inline 1]
>>>>>>>>
>>>>>>>> 2016-03-23 9:40 GMT+00:00 Massimiliano <[email protected]>:
>>>>>>>>
>>>>>>>>> Very very nice.
>>>>>>>>>
>>>>>>>>> Thank you for sharing
>>>>>>>>>
>>>>>>>>> On Wed, Mar 23, 2016 at 3:17 AM, Michael Beller <[email protected]
>>>>>>>>> > wrote:
>>>>>>>>>
>>>>>>>>>> I created a new 'starter' app for the types of data and process
>>>>>>>>>> management apps I tend to build.
>>>>>>>>>>
>>>>>>>>>> I used https://almsaeedstudio.com/preview as the template and
>>>>>>>>>> I'm hosting a preview at
>>>>>>>>>> https://mjbeller.pythonanywhere.com/starter.
>>>>>>>>>>
>>>>>>>>>> I'd welcome any feedback but also wanted to share the code at
>>>>>>>>>> https://github.com/mjbeller/web2py-starter for anybody that may
>>>>>>>>>> want to explore.
>>>>>>>>>>
>>>>>>>>>> I started with the goal to create a new web2py app without using
>>>>>>>>>> the Welcome app to help me learn a little more about web2py. I
>>>>>>>>>> found
>>>>>>>>>> myself slowly adding more and more code (primarily CSS and JS) from
>>>>>>>>>> the
>>>>>>>>>> Welcome app to support some features such as Smartgrids. I'd like
>>>>>>>>>> to
>>>>>>>>>> evolve Starter to support the upcoming form.py and grid.py that the
>>>>>>>>>> core
>>>>>>>>>> team is evaluating and developing.
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Resources:
>>>>>>>>>> - http://web2py.com
>>>>>>>>>> - http://web2py.com/book (Documentation)
>>>>>>>>>> - http://github.com/web2py/web2py (Source code)
>>>>>>>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>>>>>>>> ---
>>>>>>>>>> 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/d/optout.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Massimiliano
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Resources:
>>>>>>>>> - http://web2py.com
>>>>>>>>> - http://web2py.com/book (Documentation)
>>>>>>>>> - http://github.com/web2py/web2py (Source code)
>>>>>>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>>>>>>> ---
>>>>>>>>> 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/d/optout.
>>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>> Resources:
>>>>>>> - http://web2py.com
>>>>>>> - http://web2py.com/book (Documentation)
>>>>>>> - http://github.com/web2py/web2py (Source code)
>>>>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>>>>> ---
>>>>>>> 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/d/optout.
>>>>>>>
>>>>>>
>>>>>> --
>>>>> Resources:
>>>>> - http://web2py.com
>>>>> - http://web2py.com/book (Documentation)
>>>>> - http://github.com/web2py/web2py (Source code)
>>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>>> ---
>>>>> 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/d/optout.
>>>>>
>>>>
>>>>
>>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
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/d/optout.