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
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
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}}
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
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
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
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
>
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
>
>
>
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
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
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
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
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
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
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
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
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,
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
-
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
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
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
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
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
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
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).
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
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
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.
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
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.
>
>
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
>
>
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)
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
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
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
>
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
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
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,
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
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
40 matches
Mail list logo