[web2py] Re: smartgrid example problem

2016-03-08 Thread Jim S
I cut your db.py, default.py and manage_songs.html code and pasted into a new app and it worked fine for me. When I click on Add Record from http://127.0.0.1:8000/songs/default/manage_songs/song it goes to http://127.0.0.1:8000/songs/default/manage_songs/song/new/song So, I think your sample

[web2py] Re: for those of us who do not understand ...

2016-03-08 Thread Dave S
On Tuesday, March 8, 2016 at 1:04:50 PM UTC-8, Massimo Di Pierro wrote: > > I would like to buy a .ham.burger > http://mdipierro.github.io/stupid.css/themes/hamburger.html > Oh, my! /dps > > > On Thursday, 3 March 2016 01:27:57 UTC-6, Massimo Di Pierro wrote: >> >> A damn simple and easy

[web2py] How to know if the scheduler is running?

2016-03-08 Thread Anthony
You can create a cron job that starts the scheduler on restart of the OS. Anthony -- 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 Issues) --- You received this

[web2py] How to know if the scheduler is running?

2016-03-08 Thread Alfonso Serra
In order to run a scheduler task, the scheduler must be running using web2py.py -K myapp Its all good but sometimes servers are stopped for mantainance or they kill processes if they are running for too long. So if i have a controller that assigns a task, how do i detect if the scheduler is

Re: [web2py] bug in IS_NOT_EMPTY() ?

2016-03-08 Thread Anthony
On Tuesday, March 8, 2016 at 3:01:48 PM UTC-5, Richard wrote: > > For instance how someone can acheive the same than NullBooleanField of > Django : > > > https://docs.djangoproject.com/en/1.9/ref/models/fields/#django.db.models.NullBooleanField > >

[web2py] Re: for those of us who do not understand ...

2016-03-08 Thread Massimo Di Pierro
I would like to buy a .ham.burger http://mdipierro.github.io/stupid.css/themes/hamburger.html On Thursday, 3 March 2016 01:27:57 UTC-6, Massimo Di Pierro wrote: > > A damn simple and easy css framework ... stupid.css > > https://t.co/9vB48IjYJK > > No promise of backward compatibility is

Re: [web2py] bug in IS_NOT_EMPTY() ?

2016-03-08 Thread Richard Vézina
For instance how someone can acheive the same than NullBooleanField of Django : https://docs.djangoproject.com/en/1.9/ref/models/fields/#django.db.models.NullBooleanField http://stackoverflow.com/questions/10440937/what-is-wrong-with-the-django-forms-booleanfield-unit-test-case One part of the

[web2py] Re: IOError: [Errno 30] Read-only file system: web2py/web2py.log

2016-03-08 Thread Niphlod
just remove logging.conf alltogether or remove the handler that writes to a file. GAE has not a writable FS On Tuesday, March 8, 2016 at 7:33:29 PM UTC+1, Krishna Bavandlapally wrote: > > Not able to run GAE dev_server > > $ python working/google_appengine/dev_appserver.py working/web2py/ >

Re: [web2py] bug in IS_NOT_EMPTY() ?

2016-03-08 Thread Richard Vézina
To me, Francisco is rigth... In boolean case, I assume that IS_NOT_EMPTY() would make sure that field don't get a NULL value, so the database get hit with True or False value when you set IS_NOT_EMPTY() and default=False... Richard On Thu, Dec 4, 2014 at 6:27 AM, Kiran Subbaraman

[web2py] Re: for those of us who do not understand ...

2016-03-08 Thread Ron Chatterjee
I see. It also has a downlink and spits out a random.html. I am guessing we pretty much use this as a template to create a layout as explained here: http://www.web2pyslices.com/slice/show/1516/adapt-a-css-template-to-web2py-layouthtml Am I correct? On Tuesday, March 8, 2016 at 12:31:31 PM

[web2py] Cascading fields from table row

2016-03-08 Thread Yoel Baez
Hi, i'm from DR (Dominican Republic) My question: It's possible get values from table row, if i select value in a dropdown list? My table: db.define_table('trees', Field('name',label=T('Especie')), Field('type','string',label=T('Type')),

[web2py] IOError: [Errno 30] Read-only file system: web2py/web2py.log

2016-03-08 Thread Krishna Bavandlapally
Not able to run GAE dev_server $ python working/google_appengine/dev_appserver.py working/web2py/ INFO 2016-03-08 04:58:36,097 api_server.py:205] Starting API server at: http://localhost:46588 INFO 2016-03-08 04:58:36,113 dispatcher.py:197] Starting module "default" running at:

[web2py] Re: Alternate way for ticket handling

2016-03-08 Thread Anthony
> def mycacher(f): > client = > Client('*') > try: > d = f() > return d > except: > client.captureException() > You probably want to re-raise the exception after calling

[web2py] Re: list:reference, multiple=True, validation error

2016-03-08 Thread Leonel Câmara
Do you have multiple=True as a keyword argument to your IS_IN_DB validator? -- 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 Issues) --- You received this message

[web2py] smartgrid example problem

2016-03-08 Thread JoeCodeswell
Dear web2py Community, I BELIEVE i am faithfully following the one-to-many SmartGrid example in the book (Example 34* Using a Smartgrid*). I'll show my code below. PROBLEM When I click on addRecord from "http://127.0.0.1:8000/w2psnips/default/manage_songs;, Firefox goes to

[web2py] Re: for those of us who do not understand ...

2016-03-08 Thread Dave S
On Tuesday, March 8, 2016 at 4:23:18 AM UTC-8, Ron Chatterjee wrote: > > Are more themes available or just the welcome theme? I guess, someone can > download a bootstrap theme and use this. > > The original page (not the web2py one) had a button for "Theme Generator", which I have not yet

[web2py] Re: Fields from multiple tables in a single form

2016-03-08 Thread Anthony
Your reference field definitions are wrong -- you have defined them as "integer" fields and passed "reference" as the third argument, which is the "length" argument, not the "type" argument. Should be: Field('project_id', 'references projects') Anthony On Sunday, March 6, 2016 at 10:40:00

[web2py] Re: list:reference, multiple=True, validation error

2016-03-08 Thread villas
As I would like to get this fixed (and cannot do so myself), I raised this as an issue on Github (issue 1203 ) where I hope someone will be able to look at it. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Fields from multiple tables in a single form

2016-03-08 Thread Ron Chatterjee
Here is another tip that you may or may not fine useful. http://www.web2pyslices.com/slice/show/1979/grid-custom-search-without-specifying-a-custom-search-widget On Monday, March 7, 2016 at 7:31:45 PM UTC-5, villas wrote: > Hi David > > Try these two... > > 1. In your table defs for project

[web2py] Re: for those of us who do not understand ...

2016-03-08 Thread Ron Chatterjee
Are more themes available or just the welcome theme? I guess, someone can download a bootstrap theme and use this. On Monday, March 7, 2016 at 12:46:49 PM UTC-5, Leonel Câmara wrote: > > How do you handle menus and submenus in touch devices where you don't > "hover"? > -- Resources: -

[web2py] Re: Auth User split by tables

2016-03-08 Thread Ron Chatterjee
This works fine. def after_profile(form): if form.vars.user_type == 'Job_Seeker': redirect(URL('default','edit_profile')) return locals() def edit_profile(): db.employee.employee_profile.default = auth.user_id record = db(db.employee.employee_profile==

Re: [web2py] Re: Dal Field Types

2016-03-08 Thread Mirek Zvolsky
I'm sorry, didn't know this. My (bad) idea was that all without underscore is reserved for db.table.fieldname. Now I see that there are additional names which I should avoid as field names, like "fields", "keys", "sqlsafe". Correct? 2016-03-04 12:12 GMT+01:00 Anthony : > On

[web2py] Re: Alternate way for ticket handling

2016-03-08 Thread Dave S
On Monday, March 7, 2016 at 6:11:42 PM UTC-8, luis.va...@metamaxzone.com wrote: > > I dont want to be anoying but i still need some help and didnt find any > information. My "solution" cant catch models or views errors. > > Thanks! > > I haven't had a chance to study it yet, but the ticket class

[web2py] Re: checkbox with label on the left side

2016-03-08 Thread Viator
Hello Paolo! Thank you very much for your Input. Looks promising. I will try it this way. Thorsten > >> -- 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 Issues)