Re: [web2py] Re: DAL is dropping column when not supposed to

2016-02-07 Thread Marin Pranjić
Hey Alex, could it be that you define the table twice in the code? Marin On Mon, Feb 8, 2016 at 6:56 AM, Alex Glaros wrote: > If that model is consistent with the current state of the database, run > the code once with fake_migrate so web2py will update the migration >

Re: [web2py] Re: DAL is dropping column when not supposed to

2016-02-07 Thread Alex Glaros
okay, just tested on PythonAnywherre and it works perfectly as Anthony and the manual describe. it is something related to my specific setup at home will test on different desktop tomorrow -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Yellow box on screen following update

2016-02-07 Thread Niphlod
it comes from the latest stable. it has been already fixed in trunk. On Sunday, February 7, 2016 at 6:34:09 AM UTC+1, Massimo Di Pierro wrote: > > Never see this before. Can you use chrome to check where the box comes > from? > > On Thursday, 4 February 2016 11:39:00 UTC-6, M Bailey wrote: >> >>

[web2py] Re: scheduler -- tracking the last time

2016-02-07 Thread Niphlod
as far as we're all on the same page, my job is done :P On Saturday, February 6, 2016 at 3:17:46 AM UTC+1, Dave S wrote: > > On Friday, February 5, 2016 at 3:38:17 PM UTC-8, Dave S wrote: >> >> [...] The conditional queuing is something that I had already gone ahead >> with, putting it in the

[web2py] Re: disk cache behind IIS

2016-02-07 Thread Niphlod
if for "disk cache" you mean "cache.disk" yes, it's shared among processes . On Sunday, February 7, 2016 at 3:24:08 AM UTC+1, Tim Richardson wrote: > > I have an app set up on Microsoft's IIS 8.5 which seems to use a process > pool to handle requests. > I also have a scheduler. > Does it make

[web2py] Re: ajax callback onchange for checkbox boolean

2016-02-07 Thread 黄祥
found the solution with redirect(current.request.env.http_web2py_component_location, client_side = True), never thought that more than one check box must reload the whole page to ensure the value is store in the session, it's so different with the form field text input type, doesn't matter how

[web2py] Re: Web2py Update

2016-02-07 Thread Niphlod
honestly you can find it yourself, but for the sake of recaps: - small or none support for application's unittesting. up until now there have been a few experiments but no one landed in the code - routes_onerror can be used to cook something that will display the error right away, and I'm not so

[web2py] Re: Can A(cid='...') replace the "loading..." text as LOAD(content='...') does?

2016-02-07 Thread Niphlod
LOAD(...) has a "content" keyword just for it. A() doesn't use "loading..." but "working...". it's customizable too, using _disable_with On Saturday, February 6, 2016 at 12:10:15 AM UTC+1, Antonio Salazar wrote: > > LOAD(content=x) will replace the button with x (default content is >

[web2py] Web2py Update

2016-02-07 Thread Maurice Waka
Hi I have been using web2py for about 1 yr now. I love it. I recently came acros this crazy article about web2py advantages and disadvantages. My question is that have, these disadvantages been addressed since 6 yrs ago in your updates? Am working on and app and would love to launch it soon, in

[web2py] Re: Star Rating

2016-02-07 Thread Massimo Di Pierro
Thanks for checking the code! It helps us more than you think. On Sunday, 7 February 2016 09:41:28 UTC-6, Ron Chatterjee wrote: > > Yes. It works. My eyes fooled me as I copied and pasted from here: > > >

[web2py] Re: Yellow box on screen following update

2016-02-07 Thread Massimo Di Pierro
we should then release a new version soon. On Sunday, 7 February 2016 03:23:31 UTC-6, Niphlod wrote: > > it comes from the latest stable. it has been already fixed in trunk. > > On Sunday, February 7, 2016 at 6:34:09 AM UTC+1, Massimo Di Pierro wrote: >> >> Never see this before. Can you use

[web2py] Re: form.accepts fails with 'links' browser

2016-02-07 Thread Anthony
In fact, wrapping in the div with display:none may not be necessary anyway -- I think that itself was probably just a hack to deal with very old browsers in which hidden fields took up some space in the display. Anthony On Sunday, February 7, 2016 at 10:37:51 AM UTC-5, Anthony wrote: > > Are

Re: [web2py] Re: Web2py Update

2016-02-07 Thread Ron Chatterjee
You forgot to mention explicit vs. implicit Niphlod but pretty much you sum it up well. One thing I didn't understand is: "DAL is certainly improved in 6 years but still it won't ever be an ORM" In other words, ORM is better than DAL? If that's the case, someone can also use sqlalchemy like

[web2py] Re: web2py star rating

2016-02-07 Thread Ron Chatterjee
Yes. Thank you Massimo On Sunday, February 7, 2016 at 12:38:35 AM UTC-5, Massimo Di Pierro wrote: > > It does not get inserted because this: > > def index(): > form = SQLFORM(db.song) > return dict(form = form) > > should be > > def index(): > form = SQLFORM(db.song).process() >

[web2py] Re: Star Rating

2016-02-07 Thread Ron Chatterjee
Yes. It works. My eyes fooled me as I copied and pasted from here: https://github.com/mdipierro/web2py-recipes-source/blob/master/apps/04_advanced_forms/web2py.app.star_rating.w2p?raw=true

Re: [web2py] Re: Web2py Update

2016-02-07 Thread Maurice Waka
Thanks@Niphlod On Sun, Feb 7, 2016 at 12:21 PM, Niphlod wrote: > honestly you can find it yourself, but for the sake of recaps: > - small or none support for application's unittesting. up until now there > have been a few experiments but no one landed in the code > -

[web2py] Re: form.accepts fails with 'links' browser

2016-02-07 Thread Anthony
Are you using an old browser? I don't think this is a problem in modern browsers. Anthony On Sunday, February 7, 2016 at 12:32:03 AM UTC-5, ..mg.. wrote: > > Hi! > > I'm trying to run a simple web2py (2.13.4-stable) form from links > (2.8/2.12), > and I've found a strange bug. > > web2py's

Re: [web2py] Re: Web2py Update

2016-02-07 Thread Ron Chatterjee
So in a way, ORM is supported. Okay, next...it says lot about unit testing. And some I do agree. Some of web2py error reporting is hard to figure out and it doesn't get very specific about exactly where the issue is (not criticizing but constructively put). Having said that there is a test

[web2py] Re: OFF TOPIC: Collaborative data modeling environment

2016-02-07 Thread Val K
Hi Alex! Furtunaly, I'm thinking about the same! I mean the synchronization Postgres-DAL while developing. First of all, I belive you can find the script *extract_pgsql_models.py* in your web2py/scripts directiory, but it just generates models to stdout and you can improve it but why? So, I

Re: [web2py] Re: Web2py Update

2016-02-07 Thread Marin Pranjić
On Sun, Feb 7, 2016 at 4:49 PM, Ron Chatterjee wrote: > You forgot to mention explicit vs. implicit Niphlod but pretty much you > sum it up well. One thing I didn't understand is: > > "DAL is certainly improved in 6 years but still it won't ever be an ORM" > > In other

[web2py] DAL is dropping column when not supposed to

2016-02-07 Thread Alex Glaros
Problem trying to add a column when Postgres is the database When I add the column in DAL with fake_migrate or fake_migrate_all, nothing happens on Postgres side. I just get "column does not exist" from web2py error. I then add the column from within Postgres itself which makes error go away

[web2py] Re: DAL is dropping column when not supposed to

2016-02-07 Thread Anthony
We need to see some code. On Sunday, February 7, 2016 at 1:37:51 PM UTC-5, Alex Glaros wrote: > > Problem trying to add a column when Postgres is the database > > When I add the column in DAL with either migrate=True, fake_migrate, or > fake_migrate_all, nothing happens on Postgres side. I just

[web2py] Embedding Rapydscript

2016-02-07 Thread Val K
Hi! Coding Python with switching to coding JS - really painful. So, I tried Rapydscript (RS) and I like it very much! Unfortunately, I couldn't find how to automate compilation RS-files to pure JS. Here is my solution to embed RS to web2py 1. Download and install Node.js

[web2py] Re: DAL is dropping column when not supposed to

2016-02-07 Thread Alex Glaros
For db connection I've used every combination possbile below (migrate_enabled=True, fake_migrate, etc.) including every combination of deleting or leaving table w2p databases folder, dropping the table from Postgres, dropping from web2py, etc. db =

Re: [web2py] Re: disk cache behind IIS

2016-02-07 Thread Tim Richardson
I guess, for completeness sake, that cache.ram would not be shared among the IIS process pool. On 7 February 2016 at 20:25, Niphlod wrote: > if for "disk cache" you mean "cache.disk" yes, it's shared among processes > . > > > On Sunday, February 7, 2016 at 3:24:08 AM UTC+1,

Re: [web2py] Re: disk cache behind IIS

2016-02-07 Thread Tim Richardson
On 7 February 2016 at 20:25, Niphlod wrote: > if for "disk cache" you mean "cache.disk" yes, it's shared among processes > . Thanks, cache.disk is what I meant. -- Tim Richardson -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: DAL is dropping column when not supposed to

2016-02-07 Thread Anthony
We need to see the model code. On Sunday, February 7, 2016 at 10:46:17 PM UTC-5, Alex Glaros wrote: > > For db connection I've used every combination possbile below > (migrate_enabled=True, fake_migrate, etc.) including every combination of > deleting or leaving table w2p databases folder,

Re: [web2py] Re: DAL is dropping column when not supposed to

2016-02-07 Thread Alex Glaros
same results regardless of table or field. Example below where new field is added at bottom: BEFORE db.define_table('Reputation', Field('reputation_code', 'string'), Field('reputation_description', 'string')) AFTER db.define_table('Reputation', Field('reputation_code', 'string'),

Re: [web2py] Re: DAL is dropping column when not supposed to

2016-02-07 Thread Anthony
Specify the model as you want it. If that model is consistent with the current state of the database, run the code once with fake_migrate so web2py will update the migration metadata. If that model is not consistent with the database, then delete the relevant *.table file and run the code with

Re: [web2py] Re: DAL is dropping column when not supposed to

2016-02-07 Thread Alex Glaros
If that model is consistent with the current state of the database, run the code once with fake_migrate so web2py will update the migration metadata. Well,, I forced it to be consistent with model by creating the field on Postgres side. When ran fake_migrate, I received column