[web2py] Include javascript file in layout.html

2019-05-29 Thread Omicron VT
I am trying to include Tabulator JS in layout.html but i can not make it 
work.

If I include the files in the head section of view it works OK. 

But if I include them on the head section of layout.html and then in view i 
use extend 'layout.html' it can not find it.

In sure is me, but i can not figure out.

Thanks

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/b7d60f99-a1a0-4a3d-8fcb-12a6654bf83c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Can start cron in 2.17.1

2018-08-14 Thread Omicron VT
Trying to start the cron with -Y option gives me an error:

" TypeError: argument of type 'NoneType' is not iterable "

Any ideas. Thanks

-- 
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] DAL query CONVERT field

2018-03-12 Thread Omicron VT
Is possible to create a query in DAL to obtain this ?

SELECT * FROM table1 WHERE CONVERT(VARCHAR, field1) LIKE '%somestring%' 

where field1 is an INT type field ?

Thanks in advance.

-- 
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] SQLFORM - update record, save datetime to table field

2018-02-02 Thread Omicron VT
I have a db table with a datetime field to save last update/creation date.

Field('fecha_update', 'datetime', default=request.now)

My question is : How i can save the update time of a record when i do it 
through sqlform.grid ?


-- 
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: ERROR : ImportError: No module named gluon.utils in websocket_messaging.py after upgrade to 2.15.4

2017-11-03 Thread Omicron VT
Answer to myself:

Maybe solution to problem1 of this issue is the key : 
https://github.com/web2py/web2py/issues/1696

El miércoles, 1 de noviembre de 2017, 9:17:45 (UTC-3), Omicron VT escribió:
>
> I have been using websocket_messaging.py without problems in version 
> 2.14.6. After upgrading to 2.15.4 i can not start websocket_messaging 
> anymore, iget this error :
> ImportError: No module named gluon.utils
>
> Any help ? Thanks
>

-- 
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: websockets with web2py

2017-11-03 Thread Omicron VT
I think you have problem1 of this issue: 
https://github.com/web2py/web2py/issues/1696

El domingo, 25 de septiembre de 2016, 17:46:02 (UTC-3), José Borba escribió:
>
> Hello, there,
>
> I'm using web2py on Cloud9[1], and web2py works well. I'm working on an 
> app that need websockets, following a Bruno Rocha video [2]. So, when I 
> start the websockets module, python returns an error:  
>
>
> Traceback (most recent call last):
>   File "gluon/contrib/websocket_messaging.py", line 96, in 
> import gluon.utils
> ImportError: No module named gluon.utils
>
>
> The module is in the correct directory (web2py was installed with git 
> clone), and I can't understand where is the error. Maybe this is so basic 
> that I'm over there and can't see.
>
> Thanks for any help,
>
> [1] - https://c9.io
> [2] - 
> http://brunorocha.org/python/web2py/websockets-com-tornado-web2py-python-jquery.html
>
> -- 
> José Ricardo Borba
>
>

-- 
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: ERROR : ImportError: No module named gluon.utils in websocket_messaging.py after upgrade to 2.15.4

2017-11-01 Thread Omicron VT


El miércoles, 1 de noviembre de 2017, 9:17:45 (UTC-3), Omicron VT escribió:
>
> I have been using websocket_messaging.py without problems in version 
> 2.14.6. After upgrading to 2.15.4 i can not start websocket_messaging 
> anymore, iget this error :
> ImportError: No module named gluon.utils
>
> Any help ? Thanks
>

Yes, but no solution.

I think this lines(96-97) in messaging_websocket.py are the problem :
import gluon.utils
from gluon._compat import to_native, to_bytes, urlencode, urlopen

and if i try to import /gluon/utils.py from python console i get a similar 
error:
  File "utils.py", line 30, in 
from gluon._compat import basestring, pickle, PY2, xrange, to_bytes, 
to_native
ImportError: No module named gluon._compat


-- 
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] ERROR : ImportError: No module named gluon.utils in websocket_messaging.py after upgrade to 2.15.4

2017-11-01 Thread Omicron VT
I have been using websocket_messaging.py without problems in version 
2.14.6. After upgrading to 2.15.4 i can not start websocket_messaging 
anymore, iget this error :
ImportError: No module named gluon.utils

Any help ? Thanks

-- 
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] Pyfpdf - Split multicell from DB template

2017-06-15 Thread Omicron VT
Is it possible to use the split_multicell option to show a text field from 
a template stored in the DB ? Thanks.

-- 
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] websocket_messaging.py error on multiple connections

2017-01-23 Thread Omicron VT
Following the example in websocket_messaging.py i have this config:

A tv.html view that refresh its content when an event on client.html sends 
a message to group1

All of this works fine if tv.html is opened only 1 time. 

When i open tv.html more than one time when first message is sended, 
tv.html begins an infinite loop refreshing for ever.

Any ideas ?  

-- 
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] Connect to MSSQL with FreeTDS - [FreeTDS][SQL Server]Incorrect syntax near ';'. (102) (SQLExecDirect

2016-12-31 Thread Omicron VT
I an trying to connect to MSSQL DB.

Cannot connect using this string :
DB1 = DAL('mssql://user:pass@server/schema')

so i have found this string to work:
DB1 = DAL('mssql://user:pass@server/schema?DRIVER={FreeTDS}')

but reading records from a table get me this error :

[FreeTDS][SQL Server]Incorrect syntax near ';'. (102) (SQLExecDirectW)

Any ideas ? 

-- 
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.