[web2py] Re: web2py 2.15.3-stable: trying to re-bind a field?

2017-08-08 Thread Scott Hunter
How would I determine that, and what would I do about it? I upgraded using the "wizard". - Scott On Tuesday, August 8, 2017 at 11:09:42 PM UTC-4, Anthony wrote: > > Is it possible when you upgraded to 2.15.3, you failed to get the updated > pydal that goes with it? > > On Tuesday, August 8,

[web2py] Re: redirect fails with only an error ticket from deep inside the framework

2017-08-08 Thread Anthony
Looks like you don't have a Python MySQL driver installed on your system. It works in web2py because web2py includes pymysql in /gluon/contrib (but /gluon/contrib is not part of sys.path when running a Python program outside of the web2py context). Anthony On Tuesday, August 8, 2017 at

[web2py] Re: web2py 2.15.3-stable: trying to re-bind a field?

2017-08-08 Thread Anthony
Is it possible when you upgraded to 2.15.3, you failed to get the updated pydal that goes with it? On Tuesday, August 8, 2017 at 10:20:58 PM UTC-4, Scott Hunter wrote: > > I have code in my db.py model to add fields to auth_user: > > auth_extras = [ > Field('paid',

[web2py] Re: web2py with js framework

2017-08-08 Thread 黄祥
thanks for reference anthony, already seen and learned from web2py scaffold (vue + whoosh) but for me, it's complex i want to learn it start from simple first, perhaps there is another simple web2py app with whatever js framework (1 table with 1 field that have CRUD operation or GRID is enough

[web2py] web2py 2.15.3-stable: trying to re-bind a field?

2017-08-08 Thread Scott Hunter
I have code in my db.py model to add fields to auth_user: auth_extras = [ Field('paid', 'boolean',writable=False,readable=False), Field('paidwhen', 'date',writable=False,readable=False), Field('paidamount', 'float',writable=False,readable=False),

[web2py] Re: redirect fails with only an error ticket from deep inside the framework

2017-08-08 Thread 黄祥
seen the error you provide seems that there is no mysql driver python module installed RuntimeError: No driver of supported ones (\'MySQLdb\', \'pymysql\', \'mysqlconnector\') is available\n' perhaps installed mysql python module (using pip or etc) can solve the problem. best regards, stifan

[web2py] Re: redirect fails with only an error ticket from deep inside the framework

2017-08-08 Thread 'jim kaubisch' via web2py-users
I would have thought so, but it fails !!! What am I missing? about as basic as can be - a plain 2-line vanilla python app (with a running mysql db, created with the same "db = DAL('mysql://root:password@localhost/mfm_curr_lib', pool_size = 10) " and accessed happily by the web2py app)

[web2py] Re: redirect fails with only an error ticket from deep inside the framework

2017-08-08 Thread 'jim kaubisch' via web2py-users
On Monday, August 7, 2017 at 4:29:30 PM UTC-7, jim kaubisch wrote: > > Hi, > > The following failure suddenly started in a piece of code thats been > running error free for months. I can think of nothing I’ve changed that > would cause this to happen (famous last words, I know). > I've tried

[web2py] Re: redirect fails with only an error ticket from deep inside the framework

2017-08-08 Thread Anthony
Sure, you can access the same database from multiple applications (web2py or not). On Tuesday, August 8, 2017 at 6:29:30 PM UTC-4, jim kaubisch wrote: > > Thanks, I think you're right. But its working now, so I'll revisit it once > the delivery heat is off. > > Please, on the related topic of

[web2py] Re: $.web2py is undefined

2017-08-08 Thread Anthony
We probably need to see more code. It is not quite clear when/where you are getting that error. If all the code you have shown below is on the same page, you could not get that error with one tab but not the other, as obviously $.web2py is either defined or not on that page. Anthony On

[web2py] Re: web2py with js framework

2017-08-08 Thread Anthony
See if this helps: https://github.com/web2py/scaffold On Tuesday, August 8, 2017 at 8:54:12 PM UTC-4, 黄祥 wrote: > > is there any simple web2py app with js framework (whatever) that have a > CRUD or GRID example? > want to learn to combine it, but confuse, what is web2py job (define > models,

[web2py] web2py with js framework

2017-08-08 Thread 黄祥
is there any simple web2py app with js framework (whatever) that have a CRUD or GRID example? want to learn to combine it, but confuse, what is web2py job (define models, provide restful api, any others ?), what is js framework job (client side response) ? how about the form handling (web2py or

[web2py] Re: Select image path and content from a db(table).select()

2017-08-08 Thread Leonel Câmara
I haven't tested it, but you could do something like import base64 def my_awesome_api(): def b64representer(path, row): fname, stream = db.table_name.your_upload_field.retrieve(path) return {'filename': fname, 'data': base64.b64encode(stream.read())}

[web2py] Re: redirect fails with only an error ticket from deep inside the framework

2017-08-08 Thread 'jim kaubisch' via web2py-users
Thanks, I think you're right. But its working now, so I'll revisit it once the delivery heat is off. Please, on the related topic of my other post, I'm I missing something by thinking I should be able to access the SAME mysql db both from web2py as well as a standard Python program, assuming

[web2py] Select image path and content from a db(table).select()

2017-08-08 Thread Luciano Laporta Podazza
Hello, I was wondering how to do a web service (json) to select all rows from a table, where there's an 'upload' field type and return them in JSON, with "upload" field data (images) encoded in base64. The problem I'm having is that when I do the db(table_name).select() I'm only getting the

[web2py] pycharm and web2py - setup project

2017-08-08 Thread Kirill Shatalaev
Hello, I have Pycharm 2017.2 (Professional version). And autocompletion and Parameter info (ctrl+p) does not work out of the box for my project. But, when I install pyDAL package on my project interpreter options, and it starts to work (see attached screenshot). This is not the right way:

Re: [web2py] $.web2py is undefined

2017-08-08 Thread Filipe Reis
What I'm trying to do is to only load a tab content when its shown, then it loads with the web2py_component... Would you do differently? How so? It works on the first time... but then I get the undefined error... terça-feira, 8 de Agosto de 2017 às 20:38:05 UTC+1, Richard escreveu: > > I would

[web2py] Re: redirect fails with only an error ticket from deep inside the framework

2017-08-08 Thread Anthony
> > As I was developing the app, I realized that I was writing basically the > same code over and over and over, just with slight differences, e.g. the > table name, the criteria, the fields I wanted to return and their display > order... > so a couple of dictionaries to define (1) the

Re: [web2py] Re: Documenting a file with sphinx, that has local_import in it

2017-08-08 Thread Richard Vézina
Saddly never had time to integrate such tools in my project... I never really understand the concept of Epydoc for my part haha!! Richard On Tue, Aug 8, 2017 at 3:45 PM, Carl Hunter Roach wrote: > Thanks Richard. > Are you using an alernative to Sphinx with your web2py

Re: [web2py] Re: Documenting a file with sphinx, that has local_import in it

2017-08-08 Thread Carl Hunter Roach
Thanks Richard. Are you using an alernative to Sphinx with your web2py projects? I've tried epydoc which is straightforward but I found its docstring format a little labourious. On Tue, 8 Aug 2017 at 18:24, Richard Vézina wrote: > I look at sphinx a long time ago,

[web2py] Re: AttributeError: 'SQLite' object has no attribute 'file_open'

2017-08-08 Thread Lisandro
Same problem here, but using PostgreSQL. This is the function that I was using to connect to a database: def connect_db(db_host, db_name, db_user, db_user_password): # gets the table_hash from one of the .table files in the databases folder table_hash = None for file in

Re: [web2py] $.web2py is undefined

2017-08-08 Thread Richard Vézina
I would have embeded all the bts codes in the web2py component... You appears to try to apply bootstrap tabs feature over 2 differents web2py component, this doesn't make much sens, I guess it all coming from there... Richard On Tue, Aug 8, 2017 at 3:34 PM, Richard Vézina

Re: [web2py] $.web2py is undefined

2017-08-08 Thread Richard Vézina
Why doing that with web2py_component?? On Tue, Aug 8, 2017 at 5:56 AM, Filipe Reis wrote: > Hey guys what I'm trying to do is using bootstrap tabs load other views > using $.web2py.component() the first time it works but the the other > controllers or tabs gives me

[web2py] Re: redirect fails with only an error ticket from deep inside the framework

2017-08-08 Thread 'jim kaubisch' via web2py-users
Anthony, uninstalled pydal 17.07, installed 16.11 instead (seemed the most likely candidate for being the right version) - things now work normally! Thanks for the pointer to the problem On Monday, August 7, 2017 at 4:29:30 PM UTC-7, jim kaubisch wrote: > > Hi, > > The following failure

Re: [web2py] Re: Documenting a file with sphinx, that has local_import in it

2017-08-08 Thread Richard Vézina
I look at sphinx a long time ago, so you kind of lost me now... But I tought after I press send that fact that web2py doc is available with readthedoc which is (correct me if I am wrong) base on sphinx, so web2py is suppose to work with sphinx... But web2py apps, I guess it another story, for some

Re: [web2py] Re: Documenting a file with sphinx, that has local_import in it

2017-08-08 Thread Carl Hunter Roach
thanks Richard. I saw the changelog thanking Niphold wrt docstrings but only found Massimo's suggestion of additional code to add to each .py file to get Sphinx to "find" all my project files. Off the bat, after I point Sphinx at gluon, I get errors about request, current et al not being found.

Re: [web2py] Re: web2py 2.15.3 is OUT

2017-08-08 Thread Richard Vézina
Most of the time ticket unknown is the results of bad permissions settings if I recall.. Richard On Tue, Aug 8, 2017 at 7:01 AM, 黄祥 wrote: > Internal error > > Ticket issued: unknown > > *error shown in terminal (previous version shown in appadmin errors)* >

Re: [web2py] Re: Documenting a file with sphinx, that has local_import in it

2017-08-08 Thread Richard Vézina
I think web2py is sphinx compliant now, I recall that Simone (Niphold) had refactor docstring to do so... To be confirmed... Richard On Tue, Aug 8, 2017 at 11:06 AM, Carl Hunter Roach wrote: > Is this still the recommended workaround to get Sphinx to generate >

[web2py] Re: Documenting a file with sphinx, that has local_import in it

2017-08-08 Thread Carl Hunter Roach
Is this still the recommended workaround to get Sphinx to generate documentation for projects built upon Web2py? On Saturday, 28 May 2011 16:18:42 UTC+1, Massimo Di Pierro wrote: > > controllers and models in web2py are written in python but are not > python modules. They use objects >

[web2py] Re: web2py 2.15.3 is OUT

2017-08-08 Thread 黄祥
Internal error Ticket issued: unknown *error shown in terminal (previous version shown in appadmin errors)* ERROR:web2py:Traceback (most recent call last): File "/Users/MacBookPro/site/web2py/gluon/restricted.py", line 219, in restricted exec(ccode, environment) File

[web2py] Re: web2py 2.15.3 is OUT

2017-08-08 Thread 黄祥
already fixed leonel, the error caused by the sqlite database that already exist and fake_migrate settings (appears in terminal console that run web2py) the different behaviour is in previous version an error will recorded in appadmin errors, while in latest version it appears in terminal

[web2py] $.web2py is undefined

2017-08-08 Thread Filipe Reis
Hey guys what I'm trying to do is using bootstrap tabs load other views using $.web2py.component() the first time it works but the the other controllers or tabs gives me TypeError: $.web2py is undefined. Anyone knows how to fix this issue? $('.nav-tabs a[href="#tab_1"]').on('shown.bs.tab',

[web2py] Re: Error in appadmin (database admin) on python 3

2017-08-08 Thread Kirill Shatalaev
#1727 on web2py понедельник, 7 августа 2017 г., 18:20:30 UTC+4 пользователь Massimo Di Pierro написал: > > please open a ticket in web2py or pydal, I can fix this in either place. > > >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: web2py 2.15.3 is OUT

2017-08-08 Thread Leonel Câmara
stifan can you provide the application causing that unknown ticket error? -- 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