Re: [web2py] Re: how to define DAL in pythonanywhere ????

2016-06-02 Thread Anthony
If you're getting that error, either this code is not in a web2py model or controller file, or something is very wrong with your setup. We need more details. Anthony On Thursday, June 2, 2016 at 1:42:08 AM UTC-4, prashant joshi wrote: > > it is not work it show error "NameError: name 'DAL'

Re: [web2py] WEB2PY Creating Controls Dynamically

2016-06-02 Thread Fabiano Almeida
Hi! See http://www.web2pyslices.com/slice/show/1724/cascading-dropdowns-simplified 2016-05-25 14:43 GMT-03:00 Venkat : > Hi > > I have a requirement of displaying data from database from 4 tables i used > join to pull all the data but i should display that data in dropdown for > each column, h

[web2py] Re: Mercurial Error

2016-06-02 Thread Dave S
On Wednesday, June 1, 2016 at 8:37:38 PM UTC-7, greenpoise wrote: > > Thanks but is this to work from the shell? I would love to use the version > control from web2py admin interface. > > Thanks again > >From the command line. The web shell web2py has provided is deprecated, and is a Python

[web2py] web2py 1.89.5

2016-06-02 Thread Frank Camp
Using google I found this one. http://www.imperiasoft.com/office-tools/pdf/web2py-1-89-5.html# Like everything downloaded from the internet, check before you use. You never know what is inside an archive. Frank -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http

[web2py] method not allowed

2016-06-02 Thread Eduardo Pereira
I am having a strange problem. I'm am running a my application in webfaction server with the following configuration: Apache/2.4.16 (Unix) mod_wsgi/4.4.13 Python/2.7.11, Python 2.7.11 And my restful return method not allowed However the same application is running without problem with the

[web2py] Is there a way to make scheduler tasks be picked by workers up even quicker?

2016-06-02 Thread Mark Smith
So I've been struggling with this issue for a while. Here's the scenario: The user selects their desired options and then clicks submit. The javascript then sends a POST request to a controller that adds a task to the task database. The javascript then polls every second to check on the status

[web2py] How to pass label and value from controller IS_IN_SET validator

2016-06-02 Thread Tadas Talaikis
Hey guys, For example, I have this field in the SQLFORM: Field('things[]', requires=IS_IN_SET([e for e in lthings_ist], multiple=True)) where e is a dict of values. How I can pass option label and option value in this selection list when I *don't* use the view? -- Resources: - http://web2py.

[web2py] How do I display a link to an 'upload' field in my table?

2016-06-02 Thread Steven Vannoy
I have a DAL table that contains an upload field. After a user fills in the form and selects a file via the "Choose File" button, I want to display the form the just filled out but not in an editable form. So I have a controller/view pair called "view_the_form" In view_the_form.html I want to h

[web2py] How to insert values into list:string

2016-06-02 Thread lonihiat
New user question: How we push values into field that are defined list:string. For example db.define('mytable', Field('myfield', 'list:string')) in the controller, db.mytable.insert(myfield = ['mystring1', 'mystring2'...) doesn't get the same result as I would insert them from admin panel. Can

[web2py] Is it possible to hide some value inside set of the field?

2016-06-02 Thread Tadas Talaikis
Hey guys, For example, I have a bunch of rows with IS_IN_SET validator inside the field an want to dispaly some columns, but hide others. More specifically, is it possible to hide them and still have them available for later use? Thanks. -- Resources: - http://web2py.com - http://web2py.com/b

[web2py] Re: web2py 1.89.5

2016-06-02 Thread Roman Molotkovski
Just checked the version file. It's says Version 2.14.6-stable+timestamp.2016.05.10.00.21.47. :( On Thursday, June 2, 2016 at 10:28:55 PM UTC+3, Frank Camp wrote: > > Using google I found this one. > http://www.imperiasoft.com/office-tools/pdf/web2py-1-89-5.html# > > Like everything downloaded

[web2py] Re: Is it possible to hide some value inside set of the field?

2016-06-02 Thread Anthony
What do you mean by "rows"? Are you using the grid? In general, you should show some code. In this case, show whatever code is producing your output as well as any relevant model definitions. Anthony On Thursday, June 2, 2016 at 3:28:54 PM UTC-4, Tadas Talaikis wrote: > > Hey guys, > > For exam

[web2py] Re: How to insert values into list:string

2016-06-02 Thread Anthony
> db.define('mytable', Field('myfield', 'list:string')) > > in the controller, db.mytable.insert(myfield = ['mystring1', > 'mystring2'...) > Looks correct so far. Is that your *real* code? > doesn't get the same result as I would insert them from admin panel. > What does "same result" mean?

[web2py] Re: How to pass label and value from controller IS_IN_SET validator

2016-06-02 Thread Anthony
As noted at the very end of this section , you can pass a list of tuples or dictionaries to specify labels for each value. Not sure what you mean by "when I *don't* use the view". Anthony On

[web2py] reading values from request.vars

2016-06-02 Thread ktesr123456
I am getting selected values from View to Controller using request.vars I can see the values are coming as key value pair but not able to figure out how to read each value and insert them in DB -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2p

[web2py] Re: Append fields within form, iteratively add fields inside form, List:string append, custom forms

2016-06-02 Thread Mark Graves
Hey Ron, This looks like an architectural issue to me. You have to maintain state somehow for the form2 vars. You can either do this via javascript on the client side, then have only one form server side, which has a dynamic set of fields. If i were to do it this way, I would use a javascript

[web2py] Re: How do I display a link to an 'upload' field in my table?

2016-06-02 Thread Dave S
On Thursday, June 2, 2016 at 12:28:54 PM UTC-7, Steven Vannoy wrote: > > I have a DAL table that contains an upload field. After a user fills in > the form and selects a file via the "Choose File" button, I want to display > the form the just filled out but not in an editable form. So I have a

[web2py] Re: method not allowed

2016-06-02 Thread Dave S
On Thursday, June 2, 2016 at 12:28:55 PM UTC-7, Eduardo Pereira wrote: > > I am having a strange problem. > I'm am running a my application in webfaction server with the following > configuration: > > Apache/2.4.16 (Unix) mod_wsgi/4.4.13 Python/2.7.11, Python 2.7.11 > > And my restful return

[web2py] Re: reading values from request.vars

2016-06-02 Thread Anthony
Please show some code and explain exactly what you want to do. To get a particular value from request.vars, just do request.vars.name_of_variable. Anthony On Thursday, June 2, 2016 at 8:07:13 PM UTC-4, ktesr123...@gmail.com wrote: > > I am getting selected values from View to Controller using re

[web2py] Re: How do I display a link to an 'upload' field in my table?

2016-06-02 Thread Steven Vannoy
On Thursday, June 2, 2016 at 9:14:38 PM UTC-4, Dave S wrote: > > > > On Thursday, June 2, 2016 at 12:28:54 PM UTC-7, Steven Vannoy wrote: >> >> I have a DAL table that contains an upload field. After a user fills in >> the form and selects a file via the "Choose File" button, I want to display

[web2py] Re: reading values from request.vars

2016-06-02 Thread ktesr123456
Anthony I wanted to iterate all the values from request.vars these values are passed using ajax function from View, in the View each row will have 3 drop downs and 1 textbox to take input from user there can be minimum 1 row. I am passing all the control names thru ajax function View ===