[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

[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) -

[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

[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

[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

[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

[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 na

[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

[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

[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,

[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

[web2py] Re: Modification in version 2.14.6 not documented ?

2016-06-06 Thread omicron
e grid parameters, but > within a dictionary keyed for each table of the smartgrid. Nothing has > changed. > > Anthony > > On Friday, June 3, 2016 at 3:33:36 PM UTC-4, omicron wrote: >> >> It's on smartgrid for my application >> >> Le vendredi 3 juin 201

[web2py] Re: Modification in version 2.14.6 not documented ?

2016-06-03 Thread omicron
It's on smartgrid for my application Le vendredi 3 juin 2016 20:24:41 UTC+2, Niphlod a écrit : > > is this on grid or smartgrid ? > > On Friday, June 3, 2016 at 7:15:33 PM UTC+2, omicron wrote: >> >> I have just seen this modification for parameter 'exportclasses' in

[web2py] Modification in version 2.14.6 not documented ?

2016-06-03 Thread omicron
I have just seen this modification for parameter 'exportclasses' in grids. The manual say "If you pass a dict like dict(xml=False, html=False) you will disable the xml and html export formats", but with the last version you must change you code to pass a dict like this dict(tablename =

[web2py] Re: Cannot import module 'lpod'

2012-11-27 Thread omicron
And with CentOS 6.3 and his Python 2.6, this problem doesn't exist !!! Le jeudi 15 novembre 2012 12:24:16 UTC+1, omicron a écrit : I use an Ubuntu 12.04LTS, python 2.7 and web2py 2.2.1 lpod is installed in /usr/local/lib/python2.7/dist-packages, and it's an egg import lpod.document

[web2py] Re: Cannot import module 'lpod'

2012-11-15 Thread omicron
wrote: Does it work if you simply do: import lpod.document ? On Tuesday, 13 November 2012 04:37:43 UTC-6, omicron wrote: With web2py 1.99.7 this import was Ok : import lpod.document as oodoc But with version 2.2.1, I have this error : File /home/myhome/Applications/web2py/gluon

[web2py] Cannot import module 'lpod'

2012-11-13 Thread omicron
With web2py 1.99.7 this import was Ok : import lpod.document as oodoc But with version 2.2.1, I have this error : File /home/myhome/Applications/web2py/gluon/custom_import.py, line 77, in custom_importer raise ImportError, 'Cannot import module %s' % str(e) ImportError: Cannot import

[web2py] Re: Modules: how to access db

2012-02-09 Thread omicron
With the last version, you can do this : from gluon import current dba = current.globalenv['db']

Re: [web2py] Workflow engine for web2py

2012-02-07 Thread omicron
This library is small and easy to use: http://www.hforge.org/itools/docs/workflow/

[web2py] Re: Web2py MVC and Qooxdoo

2011-10-20 Thread omicron
Why not jsonrpc ? In web2py, i use decorator like this : @service.jsonrpc def insert(code, libelle, cours=1.0): try: id = dba.devise.insert(code=code, libelle=libelle) except: dba.rollback() raise Exception(sys.exc_info()[1]) else: dba.commit()

[web2py] Re: Error: Start as Windows Service

2011-10-20 Thread omicron
And if you change ip = '0.0.0.0' and comment the line 'interfaces' ? On 20 oct, 08:36, toan75 toa...@gmail.com wrote: Yes, i renamed options_std.py to options.py. import socket import os ip = '192.168.0.1' port = 80

[web2py] Re: Web2py MVC and Qooxdoo

2011-10-20 Thread omicron
will try to replace with JSON RPC. Can you also list me advantages? Thanks. Phyo. On 10/20/11, omicron jacques.bouss...@gmail.com wrote: Why not jsonrpc ? In web2py, i use decorator like this : @service.jsonrpc def insert(code, libelle, cours=1.0):     try:         id

[web2py] Gluon contrib json encoder

2011-05-06 Thread omicron
Before, the encoder have : Implementation of JSONEncoder Modified by Massimo Di Pierro to handle datetime and now it's not the case in the last stable version ?

[web2py] Re: Gluon contrib json encoder

2011-05-06 Thread omicron
response.json(...stuff to return...) The datetime encoder is not in there anymore and it was causing me trouble. This corrected the issue. On May 6, 8:20 am, omicron jacques.bouss...@gmail.com wrote: Before, the encoder have : Implementation of JSONEncoder Modified by Massimo Di Pierro

[web2py] Re: Application logging

2010-04-27 Thread omicron
In 'models' folder, i create the file named '0.py' like this : def _init_log(): import os, logging, logging.handlers logger = logging.getLogger(request.application) logger.setLevel(logging.DEBUG) handler =

[web2py:36808] Re: testing web2py's jsonrpc service using the python interactive shell

2009-12-08 Thread omicron
Two things to verifiy : 1/ Try this : s = jsonrpclib.ServerProxy(http://localhost:8000/ pledgedrives/default/call/jsonrpc,verbose=1) 2/ The call function is defined ? def call(): session.forget() return service() On 8 déc, 19:58, johntynan jgty...@gmail.com wrote: I am looking in the

[web2py:34604] Maintain backward compatibility, but ...

2009-11-04 Thread omicron
With version 1.71.1 I have two problems: * Rows object has no longer attribute response ? Before Rows.response was what I want to send to QooxDoo to populate table models. Now I must construct my list with iterator ? * I have a pb with json_rpc : Example I call a function with parameters, for

[web2py:34619] Re: Maintain backward compatibility, but ...

2009-11-04 Thread omicron
On 4 nov, 19:28, mdipierro mdipie...@cs.depaul.edu wrote: On Nov 4, 12:22 pm, omicron jacques.bouss...@gmail.com wrote: With version 1.71.1 I have two problems:  * Rows object has no longer attribute response ? Before Rows.response was what I want to send to QooxDoo to populate table

[web2py:33509] Re: cross doman json-rpc

2009-10-23 Thread omicron
I'm using QooxDoo / Web2Py with JSonRpc in several applications and don't need special features in Web2py. If you want crossdomain feature in QooxDoo you must set the crossDomain property to true: var rpc = new qx.io.remote.Rpc(http://targetdomain.com/appname/ function/call/jsonrpc);

[web2py:33442] A bug in version 1.68

2009-10-22 Thread omicron
I think a bug was inserted in version with the DAL insert procedure. With version 1.67 and a Postgresql database encoded in UTF8, i can insert french characters with accents without any conversion. But with version 1.68.1 and 1.68.2 it's not possible. But i can update records with french accents

[web2py:33448] Re: A bug in version 1.68

2009-10-22 Thread omicron
mdipie...@cs.depaul.edu wrote: I am sure nothing changed in this respect. Are you using IS_UPPER, IS_LOWER validators? Other validators? What kind of errors do you get? On Oct 22, 1:16 pm, omicron jacques.bouss...@gmail.com wrote: I think a bug was inserted in version with the DAL insert