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 =
logging.handlers.RotatingFileHandler(os.path.join(request.folder,'static','a
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 !
fd))
On 22 oct, 20:32, mdipierro 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 wrote:
>
> > I think a bug was inserted in version
e.id
> elif ft == 'string' and isinstance(value,
> (str,unicode)):
> value = value[:field.length]
> vs.append(sql_represent(value, ft, fd))
>
> Massimo
>
> On Oct 22, 1:57 pm, omicron wrote:
>
> > I don't us
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");
rpc
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
On 4 nov, 19:28, mdipierro wrote:
> On Nov 4, 12:22 pm, omicron 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
> &
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 wrote:
> I am looking in the admin and do no
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 impor
dnesday, 14 November 2012 08:26:09 UTC-6, Massimo Di Pierro 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 :
>>
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
&g
This library is small and easy to use:
http://www.hforge.org/itools/docs/workflow/
With the last version, you can do this :
from gluon import current
dba = current.globalenv['db']
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()
r
And if you change ip = '0.0.0.0' and comment the line 'interfaces' ?
On 20 oct, 08:36, toan75 wrote:
> Yes, i renamed options_std.py to options.py.
>
> import socket
> import os
>
> ip = '192.168.0.1'
> port = 80
> interfaces=[('0.0.0.0',80),('0.0.0.0',443,'ssl_private_key.pem','ssl_certif
> ica
try to replace with JSON RPC.
>
> Can you also list me advantages?
>
> Thanks.
>
> Phyo.
>
> On 10/20/11, omicron wrote:
>
>
>
>
>
>
>
> > Why not jsonrpc ?
>
> > In web2py, i use decorator like this :
> > @service.jsonrpc
> >
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 ?
gt;
> return 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 wrote:
>
>
>
> > Before, the encoder have :
>
> > """
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 = dict(xm
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
ct):
if table._tablename in kwargs[key]:
kwargs[key] = kwargs[key][table._tablename]
else:
del kwargs[key]
check = {}
So, to hide the export buttons I must adapt my controller between this 2
versions. If not, where i am
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]Incorr
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.h
In SQLFORM.grid is possible to order the results by a links field ?
Example :
links = [{'header':'ValueX2', 'body' : lambda row : row.value*2}]
orderby = HERE IS WHERE MY QUESTION GOES
grid = SQLFORM.grid(db.mydb , links=links,orderby=orderby)
--
Resources:
- http://web2py.com
- http://web2py.c
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 (So
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/i
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 Issue
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 (Documenta
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
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
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 upg
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 (Documen
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
33 matches
Mail list logo