[web2py] Re: Web2py SOAP and local wsdl file

2013-06-17 Thread Barry Bridges
Hi Massimo, Your correct in that I need to create a server that is complaint with someone else's WSDL. I have to full spec of the API, but need to provide that to the client devices. If I use pysimplesoap, the WSDL is created for me but is not totally compliant/formted to the customers spec. So

Re: [web2py] Re: version2.5.1:Approximative date of version correcting smartgrid with links to several tables

2013-06-17 Thread Serge Bourgeois
smartgrids with linked_tables cannot be executed. As the problem has already been reported (Antony reacted on it proposing to include this situation in the non regression testing), I didn't document my own case. Serge 2013/6/17 Massimo Di Pierro > I am not aware of this. What is the problem

[web2py] Datepicker

2013-06-17 Thread tom
I am following some examples and created a table with a date of birth field. In my form I cannot seem to get the datepicker set to show when selecting that field. Is there something special to do to get that to work like that? Thanks -- --- You received this message because you are subscrib

[web2py] DatePicker

2013-06-17 Thread tom
I am a bit confused on what I may be missing but how do I have a datepicker in my form? My db.py: b.define_table('patient', Field('first_name', requires=IS_NOT_EMPTY()), Field('last_name', requires=IS_NOT_EMPTY()), Field('phone', requires=IS_NOT_EMPTY()), Field('date_of_birth',

[web2py] Re: smartgrid reference problem

2013-06-17 Thread Massimo Di Pierro
The difference between a grid and a smartgrid is that the former can represent the result of a join, the latter does not (even if it create links to linked tables). Your constraint creates a join. The output of the join is not like row[i].first_name but row[i].auth_user.first_name. The grid fai

[web2py] Re: SQLFORM.grid query widget not working

2013-06-17 Thread Massimo Di Pierro
There should be no difference on whether you use Windows or Linux. Perhaps there is a difference between the types of browsers. Which IE version are you using? Which web2py version? On Monday, 17 June 2013 15:58:44 UTC-5, ewon...@gmail.com wrote: > > Hi, > I started using web2py on Windows (wit

[web2py] Re: computed fields ... order of calculation?

2013-06-17 Thread Massimo Di Pierro
I believe they are computed in te order in which they are defined. I never tried this but a quick at the source shows that is the case. On Monday, 17 June 2013 14:32:55 UTC-5, Tim Richardson wrote: > > If I want a computer field which depends on another computed field, is > there a guaranteed or

[web2py] Re: Web2py SOAP and local wsdl file

2013-06-17 Thread Massimo Di Pierro
If you have WSDL service you can connect to is using suds (pip insall suds) from suds.client import Client client = Client(wsdl_service) result = client.service.function(input) here function is a service which must provided by in WSLD. I understand you have the opposite problem. Create a server

[web2py] Re: version2.5.1:Approximative date of version correcting smartgrid with links to several tables

2013-06-17 Thread Massimo Di Pierro
OK I reopened it. On Monday, 17 June 2013 11:51:06 UTC-5, dev.ld...@gmail.com wrote: > > > > On Monday, June 17, 2013 11:44:11 AM UTC-4, Massimo Di Pierro wrote: >> >> But that issue was closed. >> >> > Yes, I see that but I don't see any change set listed that that fixes it. > In my testing, the

[web2py] Re: @request.restful() endpoints 404 when not localhost

2013-06-17 Thread Massimo Di Pierro
The problem is thet your restful API probably uses JSON. you still need to create a view for it. For security reasons default generic views only work from localhost. On Monday, 17 June 2013 10:41:33 UTC-5, Eduardo Cruz wrote: > > I have made an restful api and it works perfectly on localhost but

[web2py] Re: passing variable and not string back to controller

2013-06-17 Thread funmanhk
Hi Anthony, Yes, you are right! Your suggestion works like a charm! I need to watch out for the {{}} in the future. How could I miss that :-) I guess that I definitely more practice. Thanks very much for your help. Best Regards, funman -- --- You received this message because you are sub

[web2py] Re: smartgrid reference problem

2013-06-17 Thread André Kablu
Well the img did not appeared, when I say referenced tables, I mean the links: Auth casesAuth events s Auth memberships Em segunda-feira, 17 de junho de 2013

[web2py] Re: Drop-down auto populate not working

2013-06-17 Thread villas
I think you need to get something simple working before you can make progress. I suggest you play around with something like this Paste this into controller/default.py def test(): optlist = [OPTION(x) for x in ['A','B']] testvar = SELECT(optlist, _id='idtest') return dict(testva

[web2py] smartgrid reference problem

2013-06-17 Thread André Kablu
Hi all, I am trying to create a grid with a query for auth_user table doing this: def controller1(): query = ((db.auth_user.id == db.auth_membership.user_id) & (db.auth_membership.group_id == 1)) grid = SQLFORM.smartgrid(db.auth_user, constraints

[web2py] Re: passing variable and not string back to controller

2013-06-17 Thread Anthony
> > url:'{{=URL(r=request,f='call',args=['json','get_one_purchase_order_item', > parent_row_id])}}' > ==> > http://127.0.0.1:8000/purchase/default/call/json/get_one_purchase_order_item/parent_row_id > ? > The problem is the the part inside the {{...}} delimiters is not Javascript

Re: [web2py] @request.restful() only works on localhost

2013-06-17 Thread Anthony
On Monday, June 17, 2013 4:47:30 PM UTC-4, Paolo valleri wrote: > that could be a problem of a generic view not correctly loaded due to the > following line in db.py > > response.generic_patterns = ['*'] if request.is_local else [] > > change it to > > response.generic_patterns = ['*'] > > > Thou

[web2py] Re: Can I have access to the LESS files that generate the welcome app css?

2013-06-17 Thread Ian W. Scott
Thanks Ales, but web2py_bootstrap.css (and maybe web2py.css) overrides some of those stock Bootstrap settings. I want to override some of those overrides (!), and this will be simplest if I have the LESS files behind web2py_bootstrap.css. This is assuming that I read the earlier post correctly,

[web2py] Re: example for validating input (using requires = IS_IN_DB) against form.vars before submit.

2013-06-17 Thread villas
Indeed, and of course you can create the METALS list from a table and then cache it (as long as it doesn't change so much). It works very efficiently. On Monday, 17 June 2013 19:14:29 UTC+1, André Kablu wrote: > > Hi, > > I don`t know why you are referencing another table, but if this is on

Re: [web2py] @request.restful() only works on localhost

2013-06-17 Thread Eduardo Cruz
Thanks that line was the problem! El lunes, 17 de junio de 2013 16:47:30 UTC-4, Paolo valleri escribió: > > that could be a problem of a generic view not correctly loaded due to the > following line in db.py > > response.generic_patterns = ['*'] if request.is_local else [] > > change it to > > re

[web2py] SQLFORM.grid query widget not working

2013-06-17 Thread ewong1111
Hi, I started using web2py on Windows (with IE) but realized that I needed to use Linux (with Firefox). SQLFORM.grids looked very nice on Windows, but now that I am using Linux, they look very plain, and more concerningly, do not seem to be working properly for me. In particular, the query bui

Re: [web2py] @request.restful() only works on localhost

2013-06-17 Thread Paolo valleri
that could be a problem of a generic view not correctly loaded due to the following line in db.py response.generic_patterns = ['*'] if request.is_local else [] change it to response.generic_patterns = ['*'] Paolo On Monday, June 17, 2013 9:50:58 PM UTC+2, Michele Comitini wrote: > > send exa

[web2py] Re: Can I have access to the LESS files that generate the welcome app css?

2013-06-17 Thread LightDot
The Bootstrap version included in web2py welcome app is completely stock, straight download from their page, so you can get LESS files from them. At the moment, welcome app is still using Bootstrap version 2.2.2, although 2.3.2 is pretty much a drop in replacement. Regards, Ales On Monday, Jun

[web2py] How to configure web2py server to http and https

2013-06-17 Thread Vinicius Assef
I'd like to configure web2py embedded server to work with http and https. Following this guideline[1] I can make everything work with https, but my apps don't work with http. When I try to http://localhost:8000/myapp I get a "Bad Request" error. What am I missing? [1] http://www.web2py.com/Alter

[web2py] passing variable and not string back to controller

2013-06-17 Thread funmanhk
Hi All, I have a variable in my javascript - "parent_row_id" that i want to make its value as the last argument of the url. Then my controller can take this, and return a bunch of data for the subgrid of this jqgrid. I found that the below turn my variable to simply a string using the variab

Re: [web2py] @request.restful() only works on localhost

2013-06-17 Thread Michele Comitini
send example code to reproduce the error please! model, controller and iff you have modified routes.py send that too. mic 2013/6/17 Eduardo Cruz > I have made an api using @request.restful() decorator but when I try to > use the api from another machine it gives me an 404, Im running web2py

[web2py] Can I have access to the LESS files that generate the welcome app css?

2013-06-17 Thread Ian W. Scott
Hi. I noticed on the forum here mention of LESS files that are used to generate the welcome app css but are not included in the web2py distribution. I'm trying to customize Bootstrap from the LESS files, and it would make things easier if I could have those LESS files. Is there any particular r

[web2py] computed fields ... order of calculation?

2013-06-17 Thread Tim Richardson
If I want a computer field which depends on another computed field, is there a guaranteed order of computation (such as alphabetical sorting of field names?) -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group

[web2py] Re: Web2py SOAP and local wsdl file

2013-06-17 Thread Derek
You aren't quite making sense. You want to create a soap server with web2py, but you want that to consume another soap server's api? why? On Monday, June 17, 2013 6:44:06 AM UTC-7, Barry Bridges wrote: > > > Hi all, > I'm trying to create a SOAP server which uses a local wsdl file supplied > by

[web2py] Re: Asynchronous logging

2013-06-17 Thread Niphlod
all operations on redis are atomic, so it's quite easy to write such a system, e.g. adding and popping a redis list. On Monday, June 17, 2013 8:20:55 PM UTC+2, ssuresh wrote: > > > > Since all my analytics will be done through the database, i require the > log data in the table(by end of day at

[web2py] Re: Asynchronous logging

2013-06-17 Thread ssuresh
Since all my analytics will be done through the database, i require the log data in the table(by end of day at least).. So if I write all logs to redis and then can I run scheduler to flush it to db? Do you think that would be the right approach? On Monday, June 17, 2013 9:10:31 PM UTC+5:30,

[web2py] Re: example for validating input (using requires = IS_IN_DB) against form.vars before submit.

2013-06-17 Thread André Kablu
Hi, I don`t know why you are referencing another table, but if this is only for populate that field and you know that those values will not change or increase, you may consider using lists: METALS = ( (1, 'silver'), (2, 'gold'), (3, 'iron'), (4, 'zinc') ) db.table.field1.require

[web2py] Re: example for validating input (using requires = IS_IN_DB) against form.vars before submit.

2013-06-17 Thread Anthony
If the dropdown for field2 depends on the value of field1, then you cannot specify the contents of the field2 dropdown on the server at the time the form is first created. Instead, you'll have to fill in the field2 dropdown via Ajax after a selection is made in field1. web2py does not include an

[web2py] Re: version2.5.1:Approximative date of version correcting smartgrid with links to several tables

2013-06-17 Thread dev . ldhughes
On Monday, June 17, 2013 11:44:11 AM UTC-4, Massimo Di Pierro wrote: > > But that issue was closed. > > Yes, I see that but I don't see any change set listed that that fixes it. In my testing, the test app still fails with the latest github version as do my apps. Dan -- --- You received th

[web2py] Re: example for validating input (using requires = IS_IN_DB) against form.vars before submit.

2013-06-17 Thread webpypy
Thank you, everybody. let me describe what i am trying to do. a table has field1 , field2 field1 is referenced in reftable1 field2 is referenced in reftable2 reftable2 has a field (reftable1_id) that is referenced in reftable1. field1 is entered through dropdown list by db.table.field1.require

Re: [web2py] Re: Fields being set to NULL on SQLFORM.grid update

2013-06-17 Thread Jim S
FWIW - My concern for this is primarily that as I add fields to tables months/years from now I may forget to set writable to False for them and therefore they would be set to NULL without my being aware. To get around this, I've added the following to my controllers that use SQLFORM.grid and c

[web2py] Web2py SOAP and local wsdl file

2013-06-17 Thread Barry Bridges
Hi all, I'm trying to create a SOAP server which uses a local wsdl file supplied by a third party. How can I use this within Web2py Thanks Barry -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop re

[web2py] @request.restful() endpoints 404 when not localhost

2013-06-17 Thread Eduardo Cruz
I have made an restful api and it works perfectly on localhost but when I try to use it from another machine all the api endpoints give me an 404, Im running web2py with the built-in server on 0.0.0.0 -- --- You received this message because you are subscribed to the Google Groups "web2py-us

[web2py] @request.restful() only works on localhost

2013-06-17 Thread Eduardo Cruz
I have made an api using @request.restful() decorator but when I try to use the api from another machine it gives me an 404, Im running web2py with the built-in server at 0.0.0.0 -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubsc

Re: [web2py] Re: web2canvas looks nice

2013-06-17 Thread samuel bonilla
http://web2canvas.agenciax4.com.br/ 2013/6/17 Martin Barnard > That would explain my confusion when changing the language didn't change > the menu :) > > > On Monday, June 10, 2013 5:06:25 AM UTC+3, Gustavo Souza wrote: > >> Hello guys, I'm the one responsible for this project, I intend to make

Re: [web2py] Re: admin access password file

2013-06-17 Thread Massimo Di Pierro
I think the port is set by your script: 9001 and it is the same for http and https. On Monday, 17 June 2013 09:24:36 UTC-5, Paolo valleri wrote: > > Hi Massimo, I've just tried but the issue hasn't gone :( > what can I do to debug it more, by who is the request.env.server_port > setter ? > > Pao

[web2py] Re: How to run the sheduler on AppFog?

2013-06-17 Thread Niphlod
appfog lets you run your own permanent processes ? if yes, there might be a way, if no, there's no way to run the scheduler. Generally, every "hosting" provider that does just hosting doesn't allow you to span additional processes of your own that aren't web-related Il giorno lunedì 17 giug

[web2py] Re: version2.5.1:Approximative date of version correcting smartgrid with links to several tables

2013-06-17 Thread Massimo Di Pierro
But that issue was closed. On Monday, 17 June 2013 09:09:54 UTC-5, dev.ld...@gmail.com wrote: > > > > On Monday, June 17, 2013 4:50:55 AM UTC-4, Massimo Di Pierro wrote: >> >> I am not aware of this. What is the problem with smartgrid in 2.5.1? >> > > Ticket 1527 describes one of the issues. > > D

[web2py] Re: Scheduler compatible with nginx/uwsgi?

2013-06-17 Thread Niphlod
the "error on popping task" is shown as soon as an exception is raised into the wrapped_pop_task() function. You can remove the try:except block to see what's the underlying error, but I really don't know what it could be just watching at logs. Il giorno lunedì 17 giugno 2013 15:18:54 UTC+2, Jo

[web2py] Re: Asynchronous logging

2013-06-17 Thread Niphlod
continous operations kinda don't play well with logs files issues are more prominent in a multiprocess environment. Redis can do it without hiccup, if you have it in your environment... Il giorno lunedì 17 giugno 2013 15:22:43 UTC+2, ssuresh ha scritto: > > hi, > I am planning to build so

[web2py] Re: web2py 2.5.1 is OUT

2013-06-17 Thread Josh Myers
Nice! Thanks Massimo! I'm excited about the Conditional Fields! -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For

Re: [web2py] Re: admin access password file

2013-06-17 Thread Paolo valleri
Hi Massimo, I've just tried but the issue hasn't gone :( what can I do to debug it more, by who is the request.env.server_port setter ? Paolo On Sunday, June 16, 2013 10:32:37 AM UTC+2, Massimo Di Pierro wrote: > > After > > uwsgi_param UWSGI_SCHEME $scheme; > > you must add > > uwsgi_para

[web2py] Re: version2.5.1:Approximative date of version correcting smartgrid with links to several tables

2013-06-17 Thread dev . ldhughes
On Monday, June 17, 2013 4:50:55 AM UTC-4, Massimo Di Pierro wrote: > > I am not aware of this. What is the problem with smartgrid in 2.5.1? > Ticket 1527 describes one of the issues. Dan -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group

[web2py] Errors in form, please check it out....... HOW?

2013-06-17 Thread REM
I'm attempting to understand a few things and decided to test out one of the items at: http://web2py.com/appliances Specifically, the video library example at the bottom of the page. I tried installing it from the URL feature on the admin page but I get the message: "Errors in form, please chec

[web2py] Re: impersonate any user

2013-06-17 Thread Kostas M
Just for the record, these two issues have been fixed at the latest revision. http://code.google.com/p/web2py/issues/detail?id=1530 http://code.google.com/p/web2py/issues/detail?id=1539 -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To

Re: [web2py] Re: Fields being set to NULL on SQLFORM.grid update

2013-06-17 Thread Jim Steil
Not what I wanted to hear, but that is what I figured was the issue. However, I think it should be noted in the book that when using SQLFORM.grid and custom forms that any field not included in the custom form will be set to NULL on every update of the form. On Mon, Jun 17, 2013 at 12:53 AM, Ma

[web2py] Asynchronous logging

2013-06-17 Thread ssuresh
hi, I am planning to build some sort of user action analytics into my system. For this, I need to log all user actions into the table . Since an additional db write for every function call can be a performance issue, my idea is to introduce an async batch write(say after every hundred lines of

[web2py] Re: Scheduler compatible with nginx/uwsgi?

2013-06-17 Thread Joe Barnhart
Hi Niphlod -- I can start with debugging... Here is the output: root@groomlake2:~# python /home/www-data/web2py/web2py.py -K swim_smarter -D 0 web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2013 Version 2.5.1-stable+timestamp.2013.06.06.15.39.19 Database drivers available: SQ

[web2py] How to run the sheduler on AppFog?

2013-06-17 Thread aabelyakov
-- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.

[web2py] Re: Drop-down auto populate not working

2013-06-17 Thread lesssugar
Yeah, I'm stuck. I don't know how to pass 'dpt' variable to my LOAD component correclty. Here's what I have now: script which passes 'dpt' variable to add_experience() function $("#seafarer_experience_department").change(function() { $("#seafarer_experience_rank").load("?dpt=" + $("#seafarer_

[web2py] Re: Drop-down auto populate not working

2013-06-17 Thread lesssugar
Yeah, I'm stuck. I don't know how to pass the request.vars.dpt correctly to my LOAD component. Here's what I have now: controller def add_experience(): add_experience = crud.create(db.seafarer_experience, next=(URL('seafarer', 'profile')), _class='formstyle') return dict(add_experience=add_ex

Re: [web2py] Re: web2canvas looks nice

2013-06-17 Thread Martin Barnard
That would explain my confusion when changing the language didn't change the menu :) On Monday, June 10, 2013 5:06:25 AM UTC+3, Gustavo Souza wrote: > > Hello guys, I'm the one responsible for this project, I intend to make it > multi language, is currently only in Portuguese. > > > 2013/6/8 sa

[web2py] Re: Importing files present in models in db.py

2013-06-17 Thread Anthony
Files in the /models folder are executed by the framework in a prepared environment, so they are not to be imported (i.e., they are not standard Python modules). Same goes for controllers. If you want to create a Python module and import it, put it in the /modules folder or anywhere on the PYTH

[web2py] Re: Importing files present in models in db.py

2013-06-17 Thread Apoorve Mohan
Hi The problem with modules is solved. I was missing __init__.py file. But how to import files present in models in db.py. This is still unclear. -- Thanks Apoorve On Monday, June 17, 2013 1:23:57 PM UTC+5:30, Apoorve Mohan wrote: > > Hello All > > In my applications i have several files prese

[web2py] Access MySQL PythonAnywhere

2013-06-17 Thread Ovidio Marinho
Is there anyone else who can not access MySQL in pythonanywhere or just me? Ovidio Marinho Falcao Neto ITJP.NET.BR ovidio...@gmail.com 83 8826 9088 - Oi 83 9336 3782 - Claro Brasil -- --- You

[web2py] Re: Spammers on web2pyslices.com

2013-06-17 Thread Paolo Betti
Hi, is a different solution but have you ever tried CloudFlare (cloudflare.com) service? It is a kind of proxy-cache online. I use it with my site that has very very low traffic :-) but open comments and spammers have disappeared. {the site is made with Plone but I have to upgrade to web2py a

[web2py] Re: example for validating input (using requires = IS_IN_DB) against form.vars before submit.

2013-06-17 Thread villas
If you simply wish to validate one field based on the value of another field, I would usually suggest using the onvalidation argument: http://web2py.com/books/default/chapter/29/07#onvalidation -- --- You received this message because you are subscribed to the Google Groups "web2py-users" g

[web2py] Re: DAL.executesql timeout..

2013-06-17 Thread Niphlod
make sure web2py doesn't handle migrations if you have users hitting your application. Don't know if there's a connection timeout check in psycopg2, that can eb set to 3 min and it auto-checks if every call to the database remains withing the limits you set Il giorno lunedì 17 giugno 2013 1

[web2py] DAL.executesql timeout..

2013-06-17 Thread hiro
I am using the DAL to connect to a Postgres server. This server is very big and under constant heavy load. The problem I am experiencing is that from time to time when the server is under really heavy load, or when the tables queried from the DAL are currently being recreated, the server just w

[web2py] Re: Drop-down auto populate not working

2013-06-17 Thread villas
Still isn't clear to me what you are doing. It seems to me that you should use a separate function to return your Options. I would suggest studying the Components section of the book. Use the web2py LOAD to get the Options from a separate function. On Monday, 17 June 2013 01:16:46 UTC+1

[web2py] Re: version2.5.1:Approximative date of version correcting smartgrid with links to several tables

2013-06-17 Thread Massimo Di Pierro
I am not aware of this. What is the problem with smartgrid in 2.5.1? On Monday, 17 June 2013 03:08:02 UTC-5, Serge Bourgeois wrote: > > At first, thanks a lot for the fantastic work around Web2py. Each time a > new version come, I iplemented it with excitation... > The last version 2.5.1 came wit

[web2py] Re: Move from VPS to Cloud? Too big to pack

2013-06-17 Thread Massimo Di Pierro
I would zip everything, rsync it there and unzip it. The only caveat is that when you zip the database, you must make sure the server is not running. On Monday, 17 June 2013 01:42:11 UTC-5, Mika Sjöman wrote: > > Hi > > I want to move my website from a VPS to Pythonanywhere. The problem is > th

[web2py] PyQt Model Views and gluon. Has anyone had any experience with this combination?

2013-06-17 Thread Simon Carr
Hello All, I am working on a application that uses PyQt for the GUI. I am also using gluon as my ORM. The next stage of the project is going to be working with much larger data sets and and unknown column headings so I want to start using QView objects. I have not used the Model View facility

[web2py] version2.5.1:Approximative date of version correcting smartgrid with links to several tables

2013-06-17 Thread Serge Bourgeois
At first, thanks a lot for the fantastic work around Web2py. Each time a new version come, I iplemented it with excitation... The last version 2.5.1 came with a regression in smartgrid functionalities. As I use smartgird in many situation, I'd like to know approximatively when the correction is

[web2py] Importing files present in models in db.py

2013-06-17 Thread Apoorve Mohan
Hello All In my applications i have several files present in models. I need to import this helper.py file in my db.py. So in db.py i have written "from helper import get_config_file" But when I do so it always gives an import error: * No module named modules.helper* Now the question is why is