[web2py] Field type list:string in SQLFORM.grid problem new entries.

2016-07-14 Thread Alex Santana
Helo,

I created a basic table where one of the fields are a list:string.
I use the SQLFORM.grid to manage the data.
In development mode, using the Web2py application and server, everything is 
ok.
I am able to insert new values in the form just pressing "enter".
When enter is pressed, a new input field appears below the previous.

The problem is after deployment, using apache2+mod_wsgi.
When I try to insert a new entry in the form (pressing "enter") it submits 
the form.
It does not show a new input field!

I am using:
Debian 3.16.7
Apache2 2.4.10
Web2py 1.99.7 (in development, it is the current package at Debian Jessy 
repository)
Web2py 2.14 (in production)

Any suggestion about why this is happening?
Thanks in advanced!

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Field type list:string in SQLFORM.grid problem new entries.

2016-07-21 Thread Alex Santana
Updating:

I the development environment, I upgraded the web2py 1.99.7 to the 2.12.3.
Now, the issue is in both. (development and production).

I will upgrade to the latest version 2.14.6.

On Thursday, July 14, 2016 at 4:17:25 PM UTC+2, Alex Santana wrote:
>
> Helo,
>
> I created a basic table where one of the fields are a list:string.
> I use the SQLFORM.grid to manage the data.
> In development mode, using the Web2py application and server, everything 
> is ok.
> I am able to insert new values in the form just pressing "enter".
> When enter is pressed, a new input field appears below the previous.
>
> The problem is after deployment, using apache2+mod_wsgi.
> When I try to insert a new entry in the form (pressing "enter") it submits 
> the form.
> It does not show a new input field!
>
> I am using:
> Debian 3.16.7
> Apache2 2.4.10
> Web2py 1.99.7 (in development, it is the current package at Debian Jessy 
> repository)
> Web2py 2.14 (in production)
>
> Any suggestion about why this is happening?
> Thanks in advanced!
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Field type list:string in SQLFORM.grid problem new entries.

2016-07-21 Thread Alex Santana
I updated the source to the version 2.14.6, the problem persists!

I created a new application to test this isolated:
Model:
db.define_table('testes',
   Field('name',length=255, unique=True,label=T("Name")),
   Field('test','list:string',label=T("Test")),
   format = '%(name)s')

Controller:
def index():
response.flash = "Welcome to web2py!"
return dict(message=T('Hello World'),grid=SQLFORM.grid(db.testes,
user_signature=False))

View:
{{left_sidebar_enabled,right_sidebar_enabled=False,True}}
{{extend 'layout.html'}}


{{=grid}}

This small example does not work!
I am not able to insert a list of strings.


On Thursday, July 21, 2016 at 2:25:19 PM UTC+2, Alex Santana wrote:
>
> Updating:
>
> I the development environment, I upgraded the web2py 1.99.7 to the 2.12.3.
> Now, the issue is in both. (development and production).
>
> I will upgrade to the latest version 2.14.6.
>
> On Thursday, July 14, 2016 at 4:17:25 PM UTC+2, Alex Santana wrote:
>>
>> Helo,
>>
>> I created a basic table where one of the fields are a list:string.
>> I use the SQLFORM.grid to manage the data.
>> In development mode, using the Web2py application and server, everything 
>> is ok.
>> I am able to insert new values in the form just pressing "enter".
>> When enter is pressed, a new input field appears below the previous.
>>
>> The problem is after deployment, using apache2+mod_wsgi.
>> When I try to insert a new entry in the form (pressing "enter") it 
>> submits the form.
>> It does not show a new input field!
>>
>> I am using:
>> Debian 3.16.7
>> Apache2 2.4.10
>> Web2py 1.99.7 (in development, it is the current package at Debian Jessy 
>> repository)
>> Web2py 2.14 (in production)
>>
>> Any suggestion about why this is happening?
>> Thanks in advanced!
>>
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Field type list:string in SQLFORM.grid problem new entries.

2016-07-21 Thread Alex Santana


Okay, but where is the "+" button in this image?


<https://lh3.googleusercontent.com/-MK_19sfrx6Q/V5DhNhNSj9I/AsQ/UX5RNvIM2PYgocwbbZ31U_bmyKtNFqupQCLcB/s1600/Captura%2Bde%2Bpantalla%2B-%2B210716%2B-%2B16%253A47%253A43.png>

<https://lh3.googleusercontent.com/-MK_19sfrx6Q/V5DhNhNSj9I/AsQ/UX5RNvIM2PYgocwbbZ31U_bmyKtNFqupQCLcB/s1600/Captura%2Bde%2Bpantalla%2B-%2B210716%2B-%2B16%253A47%253A43.png>


On Thursday, July 21, 2016 at 4:41:13 PM UTC+2, Niphlod wrote:
>
> is it really a big issue to have to press the '+' button to make another 
> input appear 
>
> On Thursday, July 21, 2016 at 4:07:37 PM UTC+2, Alex Santana wrote:
>>
>> I updated the source to the version 2.14.6, the problem persists!
>>
>> I created a new application to test this isolated:
>> Model:
>> db.define_table('testes',
>>Field('name',length=255, unique=True,label=T("Name")),
>>Field('test','list:string',label=T("Test")),
>>format = '%(name)s')
>>
>> Controller:
>> def index():
>> response.flash = "Welcome to web2py!"
>> return dict(message=T('Hello World'),grid=SQLFORM.grid(db.testes,
>> user_signature=False))
>>
>> View:
>> {{left_sidebar_enabled,right_sidebar_enabled=False,True}}
>> {{extend 'layout.html'}}
>>
>>
>> {{=grid}}
>>
>> This small example does not work!
>> I am not able to insert a list of strings.
>>
>>
>> On Thursday, July 21, 2016 at 2:25:19 PM UTC+2, Alex Santana wrote:
>>>
>>> Updating:
>>>
>>> I the development environment, I upgraded the web2py 1.99.7 to the 
>>> 2.12.3.
>>> Now, the issue is in both. (development and production).
>>>
>>> I will upgrade to the latest version 2.14.6.
>>>
>>> On Thursday, July 14, 2016 at 4:17:25 PM UTC+2, Alex Santana wrote:
>>>>
>>>> Helo,
>>>>
>>>> I created a basic table where one of the fields are a list:string.
>>>> I use the SQLFORM.grid to manage the data.
>>>> In development mode, using the Web2py application and server, 
>>>> everything is ok.
>>>> I am able to insert new values in the form just pressing "enter".
>>>> When enter is pressed, a new input field appears below the previous.
>>>>
>>>> The problem is after deployment, using apache2+mod_wsgi.
>>>> When I try to insert a new entry in the form (pressing "enter") it 
>>>> submits the form.
>>>> It does not show a new input field!
>>>>
>>>> I am using:
>>>> Debian 3.16.7
>>>> Apache2 2.4.10
>>>> Web2py 1.99.7 (in development, it is the current package at Debian 
>>>> Jessy repository)
>>>> Web2py 2.14 (in production)
>>>>
>>>> Any suggestion about why this is happening?
>>>> Thanks in advanced!
>>>>
>>>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Field type list:string in SQLFORM.grid problem new entries.

2016-07-21 Thread Alex Santana
I looked at the source code.
The "+" button supposed to be next to the input field.
Even there is a TD tag for it, but it is empty.

 Test: 
 
 





On Thursday, July 21, 2016 at 4:41:13 PM UTC+2, Niphlod wrote:
>
> is it really a big issue to have to press the '+' button to make another 
> input appear 
>
> On Thursday, July 21, 2016 at 4:07:37 PM UTC+2, Alex Santana wrote:
>>
>> I updated the source to the version 2.14.6, the problem persists!
>>
>> I created a new application to test this isolated:
>> Model:
>> db.define_table('testes',
>>Field('name',length=255, unique=True,label=T("Name")),
>>Field('test','list:string',label=T("Test")),
>>format = '%(name)s')
>>
>> Controller:
>> def index():
>> response.flash = "Welcome to web2py!"
>> return dict(message=T('Hello World'),grid=SQLFORM.grid(db.testes,
>> user_signature=False))
>>
>> View:
>> {{left_sidebar_enabled,right_sidebar_enabled=False,True}}
>> {{extend 'layout.html'}}
>>
>>
>> {{=grid}}
>>
>> This small example does not work!
>> I am not able to insert a list of strings.
>>
>>
>> On Thursday, July 21, 2016 at 2:25:19 PM UTC+2, Alex Santana wrote:
>>>
>>> Updating:
>>>
>>> I the development environment, I upgraded the web2py 1.99.7 to the 
>>> 2.12.3.
>>> Now, the issue is in both. (development and production).
>>>
>>> I will upgrade to the latest version 2.14.6.
>>>
>>> On Thursday, July 14, 2016 at 4:17:25 PM UTC+2, Alex Santana wrote:
>>>>
>>>> Helo,
>>>>
>>>> I created a basic table where one of the fields are a list:string.
>>>> I use the SQLFORM.grid to manage the data.
>>>> In development mode, using the Web2py application and server, 
>>>> everything is ok.
>>>> I am able to insert new values in the form just pressing "enter".
>>>> When enter is pressed, a new input field appears below the previous.
>>>>
>>>> The problem is after deployment, using apache2+mod_wsgi.
>>>> When I try to insert a new entry in the form (pressing "enter") it 
>>>> submits the form.
>>>> It does not show a new input field!
>>>>
>>>> I am using:
>>>> Debian 3.16.7
>>>> Apache2 2.4.10
>>>> Web2py 1.99.7 (in development, it is the current package at Debian 
>>>> Jessy repository)
>>>> Web2py 2.14 (in production)
>>>>
>>>> Any suggestion about why this is happening?
>>>> Thanks in advanced!
>>>>
>>>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Field type list:string in SQLFORM.grid problem new entries.

2016-07-21 Thread Alex Santana
Updating:

I created to completely new applications.

The problem is with the applications created with the Web2py from debian 
repository.
Version 2.12.3-stable+timestamp.2015.08.19.00.18.03

Creating an application with the Web2py from Git
Version 2.14.6-stable+timestamp.2016.05.09.19.18.48
The button "+" (and minus) appears together with more files inside static 
folder (CSS files and JS).

Now I need to realize how to migrate my applications to the git version.

Thanks!

On Thursday, July 21, 2016 at 5:52:51 PM UTC+2, Niphlod wrote:
>
> imho you're missing web2py's styles or js scripts. does the same model 
> suffer the same issue with a FRESH welcome app coming from the latest 
> stable ? if yes, pack it and attach here, so we can inspect what's going on.
>
> On Thursday, July 21, 2016 at 4:58:30 PM UTC+2, Alex Santana wrote:
>>
>> I looked at the source code.
>> The "+" button supposed to be next to the input field.
>> Even there is a TD tag for it, but it is empty.
>>
>>  > "testes_test" id="testes_test__label">Test: 
>>  > style="list-style:none">> "test" type="text" value="" />
>>  
>> 
>>
>>
>>
>>
>> On Thursday, July 21, 2016 at 4:41:13 PM UTC+2, Niphlod wrote:
>>>
>>> is it really a big issue to have to press the '+' button to make another 
>>> input appear 
>>>
>>> On Thursday, July 21, 2016 at 4:07:37 PM UTC+2, Alex Santana wrote:
>>>>
>>>> I updated the source to the version 2.14.6, the problem persists!
>>>>
>>>> I created a new application to test this isolated:
>>>> Model:
>>>> db.define_table('testes',
>>>>Field('name',length=255, unique=True,label=T("Name")),
>>>>Field('test','list:string',label=T("Test")),
>>>>format = '%(name)s')
>>>>
>>>> Controller:
>>>> def index():
>>>> response.flash = "Welcome to web2py!"
>>>> return dict(message=T('Hello World'),grid=SQLFORM.grid(db.testes,
>>>> user_signature=False))
>>>>
>>>> View:
>>>> {{left_sidebar_enabled,right_sidebar_enabled=False,True}}
>>>> {{extend 'layout.html'}}
>>>>
>>>>
>>>> {{=grid}}
>>>>
>>>> This small example does not work!
>>>> I am not able to insert a list of strings.
>>>>
>>>>
>>>> On Thursday, July 21, 2016 at 2:25:19 PM UTC+2, Alex Santana wrote:
>>>>>
>>>>> Updating:
>>>>>
>>>>> I the development environment, I upgraded the web2py 1.99.7 to the 
>>>>> 2.12.3.
>>>>> Now, the issue is in both. (development and production).
>>>>>
>>>>> I will upgrade to the latest version 2.14.6.
>>>>>
>>>>> On Thursday, July 14, 2016 at 4:17:25 PM UTC+2, Alex Santana wrote:
>>>>>>
>>>>>> Helo,
>>>>>>
>>>>>> I created a basic table where one of the fields are a list:string.
>>>>>> I use the SQLFORM.grid to manage the data.
>>>>>> In development mode, using the Web2py application and server, 
>>>>>> everything is ok.
>>>>>> I am able to insert new values in the form just pressing "enter".
>>>>>> When enter is pressed, a new input field appears below the previous.
>>>>>>
>>>>>> The problem is after deployment, using apache2+mod_wsgi.
>>>>>> When I try to insert a new entry in the form (pressing "enter") it 
>>>>>> submits the form.
>>>>>> It does not show a new input field!
>>>>>>
>>>>>> I am using:
>>>>>> Debian 3.16.7
>>>>>> Apache2 2.4.10
>>>>>> Web2py 1.99.7 (in development, it is the current package at Debian 
>>>>>> Jessy repository)
>>>>>> Web2py 2.14 (in production)
>>>>>>
>>>>>> Any suggestion about why this is happening?
>>>>>> Thanks in advanced!
>>>>>>
>>>>>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Field type list:string in SQLFORM.grid problem new entries.

2016-07-22 Thread Alex Santana
Thanks Dave,

I was doing exactly this!

On Thursday, July 21, 2016 at 7:50:24 PM UTC+2, Dave S wrote:
>
>
> On Thursday, July 21, 2016 at 9:02:57 AM UTC-7, Alex Santana wrote:
>  
>
>> Now I need to realize how to migrate my applications to the git version.
>>
>
> It's mostly a matter of copying the controllers, models, and modules you 
> have.  If you have language files, copy those.  If you have an 
> application-level routes.py, that will probably copy.  If your database is 
> SQLite (okay for development and lightly used sites), then you may want to 
> export that data.  For other engines, you can probably just reuse the 
> connection string.  The old app probably used models/db.py to set up 
> configuration data, but now you can used appconfig (makes your code more 
> portable if you change server environments or between dev and production); 
> look at the welcome app to see how that is done.
>
>  /dps
>
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.