[web2py] user-created documentation

2017-03-06 Thread Alex Glaros
I built a quick and dirty user-created documentation system where for each topic, there is 1:M stakeholder-perspective content. Am asking the group if there might be a little less-dirty, less quick method. Here is what currently exists: Example, for inventory system documentation there is for

[web2py] Re: Custom form errors?

2017-03-06 Thread LoveWeb2py
If I'm reading this correctly: http://web2py.com/books/default/chapter/29/07/forms-and-validators#Hide-errors It looks like everything is now handled in the view and NOT the controller, so I'd need to do all of my checks in the view. Does that sound right? On Tuesday, March 7, 2017 at 1:31:32

[web2py] Re: Custom form errors?

2017-03-06 Thread LoveWeb2py
Thank you, Anthony, but I'm using a custom form via the "user" controller. Here is my code {{=form.custom.begin}} {{form.custom.widget.username.update(_placeholder="Username")}} {{=form.custom.widget.username}}

[web2py] Re: Custom form errors?

2017-03-06 Thread Anthony
See http://web2py.com/books/default/chapter/29/07/forms-and-validators#The-process-and-validate-methods and http://web2py.com/books/default/chapter/29/07/forms-and-validators#Hide-errors. After processing, errors are stored in form.errors (to get the error for a given field, use

[web2py] Custom form errors?

2017-03-06 Thread LoveWeb2py
Hello, I have some custom login forms and I'm something like this: {{=form.custom.begin}}Image name: {{=form.custom.widget.name}}Image file: {{=form.custom.widget.file}}Click here to upload: {{=form.custom.submit}}{{=form.custom.end}} How can I check for errors here? I'm lost at where form

[web2py] Re: pythonanywhere configuration domain web2py application

2017-03-06 Thread Jim S
Login to your pythonanywhere account. Click on the Web tab. Click on your web app on the left. It should show you something like this: DNS setup: How to point your domain at your website. CNAME: webapp-xx.pythonanywhere.com where xx is a 6 digit number. Go to you DNS setup with

[web2py] Re: limitby question

2017-03-06 Thread Dave S
On Monday, March 6, 2017 at 5:50:05 PM UTC-8, Anthony wrote: > > What is your question? If you want to do an offset, you need two numbers > -- either the two endpoints of the interval or one endpoint plus the size > of the interval. Whichever pair of numbers you have, it is a single >

[web2py] Re: ajax_trap=False behavior on ajax loaded component

2017-03-06 Thread Anthony
Then load it as an Ajax component and the form will not be trapped. Anthony On Friday, March 3, 2017 at 3:38:55 PM UTC-5, Carlos Cesar Caballero wrote: > > Hi, I am using a component who has a form like this: > > > > Option 1 > Option 2 > > Go > > >

[web2py] Re: limitby question

2017-03-06 Thread Anthony
What is your question? If you want to do an offset, you need two numbers -- either the two endpoints of the interval or one endpoint plus the size of the interval. Whichever pair of numbers you have, it is a single arithmetic operation to get the alternative pair. It might help if you explain

[web2py] Re: Feature request [?]

2017-03-06 Thread Anthony
Why not just use alternative delimiters with Vue -- so in your Vue templates, instead of @{{...}}, you might have @{...}@, or any other alternative? Anthony On Monday, March 6, 2017 at 3:48:09 PM UTC-5, marco mansilla wrote: > > Hi, I'm a long time web2py user and most of us. Latety I've been

[web2py] pythonanywhere configuration domain web2py application

2017-03-06 Thread Alessio Varalta
Hi, I have buy a domain on aruba and paid account on pythonanywhere. My domain is www.asdbluestars-bz.it My application run on https://alessiovic.pythonanywhere.com/bluestars/ So I rename in Web of pythonanywhere the application like www.asdbluestars-bz.it and after i see a new field Dns setup

[web2py] limitby question

2017-03-06 Thread Richard
Hello, I may not understanding something... I am desapointed that I can't simply manipulate offset of the sql... Or should I just manipulate the limit... I mean if I do repetitively thise query in sql : select * form table order by desc limit 10 offset 0 select * form table order by desc limit

[web2py] Feature request [?]

2017-03-06 Thread marco mansilla
Hi, I'm a long time web2py user and most of us. Latety I've been deep learning about useful js libraries and frameworks, I've worked a lot with jQuery and it just works fine, then went to test ractive, reactjs and angular, did some small stuff with the latest. But the issue most of the times

[web2py] Re: Unpickling error

2017-03-06 Thread Jordan Myers
It would help if you gave us some more context. Where does this error occur? What are you trying to do? The error seems to be when you are creating tables in the file db2.py, what are the contents of this file? On Monday, March 6, 2017 at 10:08:04 AM UTC-6, Maurice Waka wrote: > > Am getting

[web2py] web2py + apache2 can't load Theano (Ubuntu Server 14.04)

2017-03-06 Thread Jordan Myers
Hello I've migrated my code to start using Apache2 after successful setup just using built-in Rocket server, but now for some reason loading Theano leads to import error. I thought maybe the issue was with Cython or something, but it will successfully import NumPy, Scipy, Gensim, and other

[web2py] Re: how to open web2py console shell on my windows 8 ??

2017-03-06 Thread Dave S
On Monday, March 6, 2017 at 10:41:25 AM UTC-8, Dave S wrote: > > > > On Saturday, March 4, 2017 at 10:50:41 PM UTC-8, Paul Ellis wrote: >> >> Hi Anthony, >> >> I am using Windows 10 and have replaced web2py.py with web2py.exe and am >> getting this error: >> >> python web2py.exe -s

[web2py] Re: how to open web2py console shell on my windows 8 ??

2017-03-06 Thread Dave S
On Saturday, March 4, 2017 at 10:50:41 PM UTC-8, Paul Ellis wrote: > > Hi Anthony, > > I am using Windows 10 and have replaced web2py.py with web2py.exe and am > getting this error: > > python web2py.exe -s [application] -m > SyntaxError: Non-ASCII character '\x90' in file web2py.exe on line 1,

Re: [web2py] initialize component via js

2017-03-06 Thread Manuele Pesenti
Il 06/03/17 17:27, Richard Vézina ha scritto: > See at the end of LOAD section in the book > : > http://web2py.com/books/default/chapter/29/12/components-and-plugins?search=web2py_component#LOAD Wow! Thanks... I'll give it a try. M. -- Resources: - http://web2py.com -

[web2py] Re: ajax_trap=False behavior on ajax loaded component

2017-03-06 Thread LightDot
Perhaps someone can make an alternative suggestion if you explain what exactly does a form do if it isn't trapped by ajax_trap. Does it refresh the page, redirect, something else..? Regards On Friday, March 3, 2017 at 9:38:55 PM UTC+1, Carlos Cesar Caballero wrote: > > Hi, I am using a

Re: [web2py] Re: Autoincrement which resets each month (not primary id)

2017-03-06 Thread Richard Vézina
Anthony is right... In my case I had to manage such kind of custom primary key generation... I use onvalidation() make a callback and find the sequence field and increment it... I have some function to generate the item id or custom primary key that contains the logic to increment properly the

Re: [web2py] initialize component via js

2017-03-06 Thread Richard Vézina
See at the end of LOAD section in the book : http://web2py.com/books/default/chapter/29/12/components-and-plugins?search=web2py_component#LOAD On Mon, Mar 6, 2017 at 11:25 AM, Richard Vézina wrote: > web2py_component() ?? > > Richard > > On Mon, Mar 6, 2017 at

Re: [web2py] initialize component via js

2017-03-06 Thread Richard Vézina
web2py_component() ?? Richard On Mon, Mar 6, 2017 at 11:07 AM, Manuele Pesenti wrote: > Hi! > > Would it be possible to initialize a new component via javascript? > > I would like to dinamically define a component inside a bootstrap modal > object and than initialize

[web2py] Unpickling error

2017-03-06 Thread Maurice Waka
Am getting this web2py error in Ubuntu: Traceback (most recent call last): File "/home/mwk/web2py/gluon/restricted.py", line 227, in restricted exec ccode in environment File "/home/mwk/web2py/applications/britamintell/models/db2.py", line 15, in auth.signature) File

[web2py] initialize component via js

2017-03-06 Thread Manuele Pesenti
Hi! Would it be possible to initialize a new component via javascript? I would like to dinamically define a component inside a bootstrap modal object and than initialize it. I've tryied with reload command but it does not work... it gave me this error: TypeError: jQuery(...).get(...).reload is

[web2py] Re: Autoincrement which resets each month (not primary id)

2017-03-06 Thread Anthony
The problem with any solution that inspects the current records in the database table in order to figure out the ID for a new record is that you will not be able to account for deleted records (i.e., you might end up re-using IDs that were previously used by records that were later deleted).

[web2py] Re: Python web2py console

2017-03-06 Thread Anthony
If using the Windows binary, the .exe file includes the Python interpreter, so you don't run it using your system's installed Python. Instead, it would be: web2py.exe -S application -M Also, note that S and M are capitalized. Anyway, the point of the binary .exe file is for systems that do

Re: [web2py] Re: new experimental feature in trunk - rows.join(...)

2017-03-06 Thread Marlysson Silva
It ever good have the software tested. Desenvolvedor Frontend com um pé no Backend , e vice-versa. Github: github.com/Marlysson Email : marlyss...@gmail.com Portfolio: marlysson.github.io/portfolio 2017-03-06 12:24 GMT-03:00 Richard Vézina : > I would not say it

Re: [web2py] Re: new experimental feature in trunk - rows.join(...)

2017-03-06 Thread Richard Vézina
I would not say it good practice but not all contrib that have been include are tested... But it definitly a good idea to test it properly and have test, so if the core change and you code break you know were it from (which commit to the core) as long as these tests are included in test suit.

Re: [web2py] Re: new experimental feature in trunk - rows.join(...)

2017-03-06 Thread Marlysson Silva
The tests in contrib module are made by creator of module ( the core developer of web2py don't test them ) . Desenvolvedor Frontend com um pé no Backend , e vice-versa. Github: github.com/Marlysson Email : marlyss...@gmail.com Portfolio: marlysson.github.io/portfolio 2017-03-06 12:19 GMT-03:00

Re: [web2py] Re: new experimental feature in trunk - rows.join(...)

2017-03-06 Thread Jurgis Pralgauskis
I'd like to. But it needs review and tests, I guess. 2017-03-06 17:00 "Richard Vézina" rašė: > Hello Jurgis, maybe it could be included as a contrib?? > > Because as Giovanni mention, your proposal would make the DAL more of an > ORM in case it been included. > >

Re: [web2py] Re: new experimental feature in trunk - rows.join(...)

2017-03-06 Thread Richard Vézina
Hello Jurgis, maybe it could be included as a contrib?? Because as Giovanni mention, your proposal would make the DAL more of an ORM in case it been included. Richard On Sun, Mar 5, 2017 at 11:44 PM, Jurgis Pralgauskis < jurgis.pralgaus...@gmail.com> wrote: > You can try mu plugin > >

Re: [web2py] Re: Python web2py console

2017-03-06 Thread Marlysson Silva
python web2py.exe -S your_application -M Em segunda-feira, 6 de março de 2017 11:14:53 UTC-3, Paul Ellis escreveu: > > Yes. I want an interactive shell with my application loaded. > > I know I can run a 'Test' page with output to the console, but it would be > much easier (and I know possible)

Re: [web2py] Re: Python web2py console

2017-03-06 Thread Marlysson Silva
try: python web2py.exe -S your_application -M Em segunda-feira, 6 de março de 2017 11:14:53 UTC-3, Paul Ellis escreveu: > > Yes. I want an interactive shell with my application loaded. > > I know I can run a 'Test' page with output to the console, but it would be > much easier (and I know

Re: [web2py] Re: Python web2py console

2017-03-06 Thread Paul Ellis
Yes. I want an interactive shell with my application loaded. I know I can run a 'Test' page with output to the console, but it would be much easier (and I know possible) if I could use an interactive shell. I have seen Massimo using it in his videos. But I can' t get the command to work. On

[web2py] Re: Python web2py console

2017-03-06 Thread Marlysson Silva
Try just double click in web2py.exe , it open a server in a screen. Or are you trying accessing models of application via shell? Em segunda-feira, 6 de março de 2017 09:14:34 UTC-3, Paul Ellis escreveu: > > Hello, > > I know this question has been asked before, but didn't solve the problem >

[web2py] Re: Python web2py console

2017-03-06 Thread Marlysson Silva
Try just double click in web2py.exe , it open a screen server. Em segunda-feira, 6 de março de 2017 09:14:34 UTC-3, Paul Ellis escreveu: > > Hello, > > I know this question has been asked before, but didn't solve the problem > for me. > > I am using Windows 10 and web2py binary and have

Re: [web2py] Re: Autoincrement which resets each month (not primary id)

2017-03-06 Thread Kiran Subbaraman
For the trigger ... you could also consider using the web2py support for on insert / on update callbacks: http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#callbacks-on-record-insert-delete-and-update Kiran Subbaraman

Re: [web2py] Re: VirtualField in select?

2017-03-06 Thread Jurgis Pralgauskis
my solution https://github.com/dz0/web2py_grand_helpers/blob/72910a0b82e7e50de6d09b635cfd7855f85abc65/plugins/controllers/plugin_AnySQLFORM.py#L544 2017-03-05 09:23 "Jurgis Pralgauskis" rašė: > Sorry for no example. I want sth like: > > dbset.smart_select(field1,

[web2py] Python web2py console

2017-03-06 Thread Paul Ellis
Hello, I know this question has been asked before, but didn't solve the problem for me. I am using Windows 10 and web2py binary and have replaced web2py.py with web2py.exe in the command python web2py.py -s [applicaiton] -m and am getting this error: python web2py.exe -s [application] -m

Re: [web2py] Re: Autoincrement which resets each month (not primary id)

2017-03-06 Thread Paul Ellis
Hey Brian, Doing it on the fly won't work because I want the number to be set at record creation and be a part of the dataset. Also, this is what I am already doing. Using a database trigger is something I don't know anything about. So thank you for the nudge, I will research this option. Paul