workers are external processes that have nothing in common with the
"web-serving process", otherwise a simple ajax call would do the trick.
workers needs to be started as ADDITIONAL processes, with the cmdline
web2py.py -K appname
If in need of multiple processes, start them with
web2py.py -K a
Il 06/09/15 22:25, kvthie0 ha scritto:
> Hello all,
>
> I'm learning the inner workings of web2py and try to make a custom
> validator called IS_TIME_IN_RANGE (based on the IS_DATE_IN_RANGE
> validator).
I suggest you to test the validator in a web2py console before using
it... in case of errors y
Hi everyone!
Is it a way to add python code to js in view?
I have autogenerated amount of checkboxes in the view.
I need to check the status of each of them via jquery and then pass values
for only checked checkboxes to another controller def.
So, this is my little piece of code in view^
$(d
How about this:
window.location.href='{{=URL('promo3')}}' + '?' + $.param({ids: ids});
--
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
Hi,
I'm trying to write a test to verify that all menu items are working. I
copied the Example from https://github.com/viniciusban/web2py.test to write
the first test.
The problem is that most of the menu items are only visible after a login.
Therefore I tried to login with auth.login_bare but
Can we see the full traceback? Where is that error being thrown?
--
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 because you are
Trying to use
window.location.href='{{=URL('promo3')}}' + '?' + $.param({ids: ids});
but the code is generated invalid link with additional symbols:
http://__/_/promo3?ids*%5B%5D*=3
Some manipulations and the code is work perfectly:
window.location.href="{{=URL('promo3_order_det'
*Another words, is there a way to select all rows form table that belongs
all id in request vars*
*http://___/promo3?ids=1,2,3*
*It's easy to select promo3?ids=1. But I failed to select **ids=3,8,15 for
example.*
*Where am I wrong?*
On Thursday, September 10, 2015 at 2:27:59 PM U
Hello,
I migrated a project from web2py 2.9 to 2.12. I moved over the css & js
files from the bootstrap welcome app, but my menu is really messed up. Is
there a way to get it back to the horizontal form? What other information
can I provide.
What files are necessary to migrate from the older v
it's always horizontal. the issue is that bs3 doesn't support nested menus
after the 2nd level.
On Thursday, September 10, 2015 at 3:08:15 PM UTC+2, LoveWeb2py wrote:
>
> Hello,
>
> I migrated a project from web2py 2.9 to 2.12. I moved over the css & js
> files from the bootstrap welcome app, bu
Hi Niphlod,
That was not my only issue. The second issue was that the menu is collapsed
by default on each page. I also have to click a button to drop the menu
down (similar to the welcome app). Was this by design?
On Thursday, September 10, 2015 at 9:22:28 AM UTC-4, Niphlod wrote:
>
> it's alw
bs3 doesn't do hover, so it's normal that to make a drop down appear you
have to click. what do you mean by "the menu is collapsed by default" ?
On Thursday, September 10, 2015 at 3:29:26 PM UTC+2, LoveWeb2py wrote:
>
> Hi Niphlod,
>
> That was not my only issue. The second issue was that the men
SOLVED!
I was so stupid! Sorry.
The decision is to add not just iterable values (ids=1,5,8) in request vars
but make multiple request vars (ids=1&ids=5&ids=8).
So the view code is:
$(document).ready(function() {
$("button").click(function(){
var selected_id = [];
$.each(
I just fixed an issue I was having - it used to work so much be a newer
version of web2py that introduced it (I think, cannot confirm that it
worked on earlier version)
I have a table with record versioning active. I'm updating it via
SQLFORM.grid but before the SQLFORM.grid call I was making
uhm. why the id should be set to not writable ? it is not writable by
default because it's an identity .
On Thursday, September 10, 2015 at 4:54:35 PM UTC+2, Jim S wrote:
>
> I just fixed an issue I was having - it used to work so much be a newer
> version of web2py that introduced it (I thi
Because I'm lazy.
In some of my code I do this:
# Set all fields as not editable
for field in db.contact.fields:
db.contact[field].writable = False
# Enable the specific fields that will be editable in the form
db.contact.first_name.writable = True
db.contact.last_name.writable = True
I c
Hi all,
is it possible to disable a field in the insert form that is created on de
SQLform grid?
thanks,
diego
--
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 Issue
Hello! I'm trying to use SQLFORM.grid (or something like this) to my
website, but this page doesnt have a database because it consumes all the
data form a service, so i ask the service for the list of records in a
table and i recieve it in json format and transform to dictionary.
What i want to
i think you can use condition for the field
e.g.
write_in_form = 'new' in request.args
best regards,
stifan
--
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)
--
Well there is, but, it's not pretty. You could create a DAL instance using
sqlite mem, then you put everything you get from the service there, then
you send a query in that DAL instance to the grid.
Frankly, this is not a good idea and you'll probably run into problems,
you're better off us
Hello,
I have an existing application and defined new functions in the controller
default.py and also defined the corresponding views. The view includes
{{extend 'layout.html'}}. However, when the function is invoked, the page
is displayed as if there is no view defined. It works fine for the
Well, that sounds like a big mess of db i/o, i think it will be better to
use javascript. Maybe this can be put in a "wish list" for future
development in web2py?
Thanks for your help!
El jueves, 10 de septiembre de 2015, 18:03:01 (UTC-4:30), Leonel Câmara
escribió:
>
> Well there is, but, it'
db.table.field.readable = False
db.table.field.writable = False
Richard
On Thu, Sep 10, 2015 at 5:53 PM, 黄祥 wrote:
> i think you can use condition for the field
> e.g.
> write_in_form = 'new' in request.args
>
> best regards,
> stifan
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.
When I tried to directly view the page, I am getting this error. Even
though the URL uses correct controller "resource", web2py is looking for
the function in he default.py controller
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2p
i think it related with your routes configuration
best regards,
stifan
--
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 because
If this only happens in production, is it possible you forgot to add the
views to source control so they don't exist on the server where you are
using a checked out version?
If not, where are the views you have created? Are they inside the
views/default folder?
--
Resources:
- http://web2py.c
it probably never came up because the usecase is indeed weird the only
change I can think of is that record archiving used to archive a row for
every modification, even if all the fields were unchanged. The "new" method
stores an archive row only if something changes, and I guess it's in th
Thank you Leonel and Stifan.
Initially, I had the function in default.py and the view in the default
folder. But, this view behaved as if I didn't include the {{extend
'layout.html'}}. Then, I moved the function to a new control resource.py
and also created a new view in the resource folder. So
28 matches
Mail list logo