[web2py] Compile web2py application in release mode

2011-09-28 Thread vortex
How do I compile web2py application in release mode?

[web2py] Re: instruct web2py only to alter table.

2011-09-13 Thread vortex
gt; to rebuild metadata. Once done, remove the fake_migrate option. > > On Sep 9, 4:19 am,vortex wrote: > > > > > > > > > What should be the definition so that web2py only alters the mysql > > table to correspond to the new definition but if

[web2py] Re: instruct web2py only to alter table.

2011-09-12 Thread vortex
Can it be a problem with permissions? Does web2py need to create a database for migration or something? Because it can create the table just never alters it. On Sep 12, 11:12 am, vortex wrote: > I don't understand. I was working with sqlite and it worked OK. Now I > am using m

[web2py] Re: instruct web2py only to alter table.

2011-09-12 Thread vortex
ot know it means something is wrong with the > database metadata and needs rebuilding. You can do > > db.define_tables(...,migrate=True,fake_migrate=True) > > to rebuild metadata. Once done, remove the fake_migrate option. > > On Sep 9, 4:19 am,vortex wrote: > > > > >

[web2py] instruct web2py only to alter table.

2011-09-09 Thread vortex
What should be the definition so that web2py only alters the mysql table to correspond to the new definition but if it exists not to create it. db_server.define_table('db_version', Field('major', 'integer', default = 0), Field('minor', 'integer', default

[web2py] Replicated and master database

2011-02-17 Thread vortex
How do I create a remote master database and a replicated local database with DAL?

[web2py] Re: Issue 172 needs to be reopened

2011-02-16 Thread vortex
Am I allowed to reopen it? On Feb 16, 4:29 pm, Massimo Di Pierro wrote: > Please do so and I will take care. > > On Feb 16, 10:16 am, vortex wrote: > > > I have made tests and bug of issue 172 seems to be still present in > > the windows version of the code. > >

[web2py] Issue 172 needs to be reopened

2011-02-16 Thread vortex
I have made tests and bug of issue 172 seems to be still present in the windows version of the code.

[web2py] Re: web2py 1.92.1 is OUT

2011-02-16 Thread vortex
I just downloaded and it says: version 1.91.6 Also I think issue 172 is still present in the windows version. On Feb 16, 3:04 pm, Marin Pranjic wrote: > I wanted to update from admin app but it gives me neverending "Checking for > upgrades..." > Not sure what is the problem, so better to repo

[web2py] Re: How to do the following query?

2011-02-16 Thread vortex
I just downloaded the windows version and I think this issue still continues in that version. On Jan 31, 3:22 pm, vortex wrote: > It has been reported as issue 172. > > On Jan 31, 2:56 pm,vortex wrote: > > > I will do that now. > > > Thanks. > > > O

[web2py] How to retrieve data from FieldStorage

2011-02-08 Thread vortex
I would like to obtain the filename string from request.vars.xls_file such as: filename = request.vars.xls_file "filename" 'backup_2011-02-08_11h24.xls' but I get the FieldStorage: filename = request.vars.xls_file "filename" FieldStorage: FieldStorage('xls_file', 'backup_2011-02-08_11h

[web2py] How do I explicitly close a database connection?

2011-02-04 Thread vortex
How do I explicitly close a database connection?

[web2py] Re: bug?

2011-02-04 Thread vortex
Never mind. I think this is due to IS_HEX24 function. On Feb 4, 10:39 am, vortex wrote: > I am setting a table column 'code' as Unique. When I insert repeated > rows it doesn't raise exception. > > db.define_table('tag', >     Field('code&#

[web2py] bug?

2011-02-04 Thread vortex
I am setting a table column 'code' as Unique. When I insert repeated rows it doesn't raise exception. db.define_table('tag', Field('code', 'string', length=24, unique=True, requires=[ IS_HEX24(error_message=err_is_hex24)]), Field('of_client', 'reference client', requires=IS_IN_D

[web2py] Defualt values with DAL and define_table

2011-02-02 Thread vortex
Is it possible to make the default value of one column the mathematical result of two other columns?

[web2py] Re: How to do the following query?

2011-01-31 Thread vortex
It has been reported as issue 172. On Jan 31, 2:56 pm, vortex wrote: > I will do that now. > > Thanks. > > On Jan 31, 2:27 pm, Massimo Di Pierro > wrote: > > > You found a bug. What is the model? > > > Can you post the model (just relevant field) and th

[web2py] Re: How to do the following query?

2011-01-31 Thread vortex
I will do that now. Thanks. On Jan 31, 2:27 pm, Massimo Di Pierro wrote: > You found a bug. What is the model? > > Can you post the model (just relevant field) and this example as an > issue in google code. I will fix it asap. > > Massimo > > On Jan 31, 7:42 am, vortex

[web2py] Re: How to do the following query?

2011-01-31 Thread vortex
More info on this: the (db.read.of_section != db.item.of_section) part is translating into: (rfid_read.of_section IS NOT NULL) On Jan 31, 1:26 pm, vortex wrote: > SELECT * FROM item JOIN read on read.of_item=item.id WHERE > item.of_section <> read.of_section > > I tried:

[web2py] Re: Best way to implement network database system with web2py

2011-01-31 Thread vortex
... > > Mart :) > > On Jan 31, 5:13 am, vortex wrote: > > > Let me rephrase my question: > > > I need to implement a inventory management system with web2py. Is it > > practical to have a local web2py database for each store which allows > > users to read and writ

[web2py] How to do the following query?

2011-01-31 Thread vortex
SELECT * FROM item JOIN read on read.of_item=item.id WHERE item.of_section <> read.of_section I tried: db((db.item.id == db.read.of_of_item) & (db.read.of_section != db.item.of_section)).select() but I don't want a join. I just want the where cause to be: (db.read.of_section != db.item.of_sectio

[web2py] _extra keyword

2011-01-31 Thread vortex
Can't find anything about using _extra with DAL in the official web2py documentation. It seems a very powerful method and I wanted to know more on how to use it.

[web2py] Re: Best way to implement network database system with web2py

2011-01-31 Thread vortex
Let me rephrase my question: I need to implement a inventory management system with web2py. Is it practical to have a local web2py database for each store which allows users to read and write and then synchronize all the different databases across the network? On Jan 28, 2:56 pm, vortex wrote

[web2py] Re: create table as select.

2011-01-29 Thread vortex
, DenesL wrote: > It can be done, but why do you want to do it?. > > On Jan 28, 10:42 am, vortex wrote: > > > Is it possible to join to tables and create a new table based on this > > join using only DAL? > > > CREATE TABLE newtable AS SELECT  ta.key, ta.col1, tb.

[web2py] create table as select.

2011-01-28 Thread vortex
Is it possible to join to tables and create a new table based on this join using only DAL? CREATE TABLE newtable AS SELECT ta.key, ta.col1, tb.col2 FROM ta JOIN tb.col1 on (ta.key=tb.key)

[web2py] Best way to implement network database system with web2py

2011-01-28 Thread vortex
Hi, I would like to implement a system of several databases on for each store and then have the master database stored at a sever for all company. Each store can read/write data to the local database and then synchronize the databases. Or should I enforce read/write only on master server database

[web2py] Re: How to do a count distinct with DAL?

2011-01-28 Thread vortex
Thank you very much! On Jan 28, 2:43 pm, Massimo Di Pierro wrote: > This is not supported because I am not sure all supported RDBS support > count(distinct ...). > > As a way around it you can do > > len(db().select(db.item.of_variant,distinct=True)) > > Massimo > &

[web2py] How to do a count distinct with DAL?

2011-01-28 Thread vortex
How to do a count distinct with DAL? like: db().count(db.item.of_variant, distinct=True)

[web2py] How do I do the following select with DAL?

2011-01-21 Thread vortex
SELECT code FROM tags WHERE code NOT IN (SELECT code FROM tags JOIN items ON tags.id=items.of_tag);