Re: [web2py] Re: Autocomplete Widget "changed" after upgrade

2011-11-18 Thread Ole Martin Maeland
gt; it directly, does it return a ticket? > > On Nov 17, 1:53 am, Ole Martin Maeland wrote: >> Hi Massimo, >> >> upgrade from version 1.89.5 (2010-11-21), so old version. >> >> I have tried to substitute the built in autocomplete with s-cubism >> suggest_widget. I

Re: [web2py] Re: Autocomplete Widget "changed" after upgrade

2011-11-16 Thread Ole Martin Maeland
, 2011 at 7:47 AM, Massimo Di Pierro wrote: > what did you upgrade from? > > On Nov 16, 3:07 pm, Ole Martin Maeland wrote: >> Hi, >> >> I upgraded web2py to latest version. everything works fine exept the >> autocomplete widget >> >> I use MySQL as my datab

[web2py] Autocomplete Widget "changed" after upgrade

2011-11-16 Thread Ole Martin Maeland
Hi, I upgraded web2py to latest version. everything works fine exept the autocomplete widget I use MySQL as my database. The autocomplete is reading from a db VIEW. The reason for this is that I have 2 columns in a db: short_name and ISIN that is the name, and ISIN that is the ID. By doing unio

Re: [web2py] Callable as Field.default

2011-01-27 Thread Ole Martin Maeland
instead of default=now use default = request.now also change default = now in modified_on to update=request.now regards Martin On Wed, Jan 26, 2011 at 1:36 AM, Bernd Rothert wrote: > A table definition from the DAL chapter of the Web2py book: > > db.define_table('person', >Field('uuid', len

Re: [web2py] autocomplete - style: widht hard coded ??

2010-12-27 Thread Ole Martin Maeland
the code. > > On Mon, Dec 27, 2010 at 11:28 AM, Ole Martin Maeland > wrote: > > Hi, > > > > I have a autocomplete field in a form, and I would like it to be wider. > > Looking at the code it looks like it is hard coded - width: 200px, how do > I > > ov

[web2py] autocomplete - style: widht hard coded ??

2010-12-27 Thread Ole Martin Maeland
Hi, I have a autocomplete field in a form, and I would like it to be wider. Looking at the code it looks like it is hard coded - width: 200px, how do I overriede that in CSS ?? jQuery('#_autocomplete_paper_div').fadeOut('slow');" type="text">

Re: [web2py] How to do this in web2py..?

2010-12-21 Thread Ole Martin Maeland
http://www.web2pyslices.com/main/slices/take_slice/85 On Mon, Dec 20, 2010 at 10:13 AM, Fabiano wrote: > Hi, > > I am new to web2py and sure not if I am doing things the best way. I > am designing an app and would like your opinion on my choices and also > how could I implement some stuff in web

Re: [web2py] Create table without id field

2010-12-13 Thread Ole Martin Maeland
Create a table in web2py, migrate=False create table in db, no autincrement.. thats it. regards Martin On Mon, Dec 13, 2010 at 11:11 AM, demetrio wrote: > Hi everyone, > > i've searched if there is any way to create a table without an id > field. I've tryed with: param "primarykey = None" bu

[web2py] Re: ajax search "select" field using crud or sqlform

2010-12-08 Thread Ole Martin Maeland
at is working fine, but I cant get access to the view from web2py. I tried to make a "fake" table" with to fields and Migrate=False, but it looks in the db.table On Tue, Dec 7, 2010 at 6:00 PM, Ole Martin Maeland wrote: > Hi, > > I would like to create a form were I get a dro

[web2py] ajax search "select" field using crud or sqlform

2010-12-07 Thread Ole Martin Maeland
Hi, I would like to create a form were I get a dropdown list that search 3 rows in one table. it should then pick the .id field for the record. It would be similar to the ajax search with autocomplete: http://web2pyslices.com/main/slices/take_slice/51 I could use that, but how do I "embed" it in

Re: [web2py] Name error, but only if I run it in view..

2010-11-24 Thread Ole Martin Maeland
Hi, That will not work. I just read the output from dict - companies - that is a query on db.newcomp. So only keys in dict will be the database names - id, uuid, address. It works for id and uuid, but not for name and address. state that it is not defined, but it's in the db, it's in the db model.

[web2py] Name error, but only if I run it in view..

2010-11-19 Thread Ole Martin Maeland
Hi, If anyone have a answer - pls. reply: *My model:* db.define_table('newcomp', Field('uuid', length=64, default=uuid.uuid1()), Field('name'), Field('address')) db.newcomp.uuid.writable=False when I run this directly from the controller, or in db admin tool is works fine. When I

Re: [web2py] Re: Standalone DAL - connection to sqlite db - running web2py

2010-11-19 Thread Ole Martin Maeland
("sqlite://storage.sqlite", folder="{0}/blueLite/ > db_storage".format(tail)) > bluedb.define_table('cmdObjects', > SQLField('name'), > SQLField('pyModule'), > SQLField('pyPath'), > SQLFiel

Re: [web2py] Re: Standalone DAL - connection to sqlite db - running web2py

2010-11-18 Thread Ole Martin Maeland
Thu, Nov 18, 2010 at 3:06 PM, mdipierro wrote: > I think you do not have write access on this file/folder > > On Nov 18, 7:36 am, Ole Martin Maeland wrote: > > Hi, > > > > I am trying to connect to sqlite db that works fine with a small web2py > > applicait

[web2py] Standalone DAL - connection to sqlite db - running web2py

2010-11-18 Thread Ole Martin Maeland
Hi, I am trying to connect to sqlite db that works fine with a small web2py applicaiton. connection parameters: >>> dbfolder='C:\web2py\web2py\applications\teqb\databases' >>> db = dal.DAL('sqlite://storage', folder=dbfolder) error message: Traceback (most recent call last): File "", line