[web2py] Multiple domains, one app

2014-04-05 Thread Kenneth
Hello, is it possible to build an app that handle multiple domains but totally different layouts. I'm thinking something like this: views/domain1/layout.html default/index.html .. views/domain2/layout.html default/index.h

Re: [web2py] How do I "SELECT * FROM table WHERE field IN (1,2,3,4,7)

2014-04-05 Thread Martin Weissenboeck
Try db(db.table.field.belongs([1,2,3,4,7]) & (db.table.field2=="3)).select() db(db.table.field1.belongs([1,2,3,4,7]) & (db.table.field2=="3")).delete() Regards, Martin 2014-04-06 5:49 GMT+02:00 Kurt Jensen : > How do I do : > > "SELECT * FROM table WHERE field IN (1,2,3,4,7) AND field2='3'""

Re: [web2py] Re: Web Editor Blank Screen

2014-04-05 Thread James Ryan
Derek, thank you so much. Appending the line below that you suggested to /etc/apache2/apache2.conf has fixed it! Header always append X-Frame-Options SAMEORIGIN On Tue, Apr 1, 2014 at 5:44 AM, Derek wrote: > also, make sure you have this line in your apache config... > > > Header always appe

[web2py] How do I "SELECT * FROM table WHERE field IN (1,2,3,4,7)

2014-04-05 Thread Kurt Jensen
How do I do : "SELECT * FROM table WHERE field IN (1,2,3,4,7) AND field2='3'"" AND / OR "DELETE FROM table WHERE field1 IN (1,2,3,4,7) AND field2='3'" in web2py DAL? I come from PHP and I am really struggling with DAL in web2py. -- Resources: - http://web2py.com - http://web2py.com/book (Doc

[web2py] Re: Delete in SQLFORM.grid does not update number of records

2014-04-05 Thread Massimo Di Pierro
Yes. Please open a ticket so we'll remember to fix it. On Saturday, 5 April 2014 18:21:35 UTC-5, horridohobbyist wrote: > > If I delete records in SQLFORM.grid, the number of records does not > change. Only if I explicitly refresh the browser page does the number of > records change. > > Have I

[web2py] Delete in SQLFORM.grid does not update number of records

2014-04-05 Thread horridohobbyist
If I delete records in SQLFORM.grid, the number of records does not change. Only if I explicitly refresh the browser page does the number of records change. Have I found a bug? (I'm using web2py 2.9.4.) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github

[web2py] Re: Python 3 Migration

2014-04-05 Thread Massimo Di Pierro
There is no Python 3 migration. Mind it is not a technical issue. web2py promises backward compatibility and we cannot port it to python 3 without breaking that promise. Almost none of the users have expressed an interest in helping moving existing code to Python 3. There will be some other fr

[web2py] Re: passing table name as parameter

2014-04-05 Thread Massimo Di Pierro
form = SQLFORM(db[request.get_vars.name]).process() anyway, make sure you validate access and the name variable. On Friday, 4 April 2014 00:13:17 UTC-5, Sharvil Katariya wrote: > > I want to basically pass URL?name='table_name' > > and create a form of the table name passed. > > but when i try to

[web2py] Re: Bad Request upload image in iPad/iOS to web2py server

2014-04-05 Thread ayresrichard
It is a multipart yes. I was able to use request.body.read() to read the requests' body in other platforms. It looks ok, and everything works. I even changed from using FormData in javascript to writing my custom body and so on. It all works fine except in iOS. There seems to be some kind of pr

[web2py] passing table name as parameter

2014-04-05 Thread Sharvil Katariya
I want to basically pass URL?name='table_name' and create a form of the table name passed. but when i try to do db.table_name i understand it will give me a error as it will search for a table with table_name 'table_name' But I can't think of work around this problem... The code snippet in defa

[web2py] SMARTGIRD is it possible to have a lambda function in LINKED_TABLES?

2014-04-05 Thread info . abicos
Hello, I'd like to give access to a subtable only if there is something to see in it (this is of course depending on the main table). So, I tried this which does not... myform = SQLFORM.smartgrid(db.my_main_table, linked_tables=dict(my_main_table= *lambda row:* ['my_sub_table'] if *my_cou

[web2py] Re: how to embed a d3.js script in a view correctly?

2014-04-05 Thread Martina Gruber
Hi Sihui, Just add a div with an id after extend layout and then select this id from d3. If you select "body" and append a circle it will go at the bottom of the page. {{response.files.append(URL(r=request,c='static',f='/js/d3.js'))}} > {{extend 'layout.html'}} > > > > > d3.select(

[web2py] Re: Install in hostgator

2014-04-05 Thread RTBS
You got it to work! How did you do it? What was wrong with it? http://moneytweak.com/welcome/default/index On Monday, March 10, 2014 5:21:42 AM UTC-7, Mạnh Trần Đức wrote: > > I 've bought Hatchling package hosting on hostgator. > I tried install web2py on subfolder public_html/web2py but it w

Re: [web2py] Re: New Windows Vista Install problem

2014-04-05 Thread Luigi D'Alessio
I have just tried to run this version... Now it's working fine on my Windows Vista. Thanks 2014-03-29 23:08 GMT+01:00 Massimo Di Pierro : > Can you please try the latest nightly build? > > http://web2py.com/examples/static/nightly/web2py_win.zip > > > > On Friday, 28 March 2014 14:06:37 UTC-5,

[web2py] Python 3 Migration

2014-04-05 Thread Hi-tech Robert
Hi, may I inquire about the status of python 3 migration? -- 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 subscr

[web2py] Re: Help defining architecture for app

2014-04-05 Thread Francisco Betancourt
I have not tuned Apache nor Postgres, their both vanilla installs through APT. I don't have the top or iostat output right now, I will simulate the load tomorrow that users don't work on the app and post back on monday. I will also enable PostgreSQL statistics and post them too. Thanks for the

[web2py] Re: Can't run web2py from App Engine Launcher

2014-04-05 Thread Massimo Di Pierro
Use trunk. We made some changes to fix appengine problems. Will release a 2.9.6 soon. It allows: web2py.py -G Which configures appending (app.yaml and gaehandler.py) for you. On Friday, 4 April 2014 19:54:03 UTC-5, gubbanoa wrote: > > I'm trying to run web2py 2.9.5 from Google App Engine Launc

[web2py] Re: Need a developer. Seattle Wa

2014-04-05 Thread samuel bonill
http://blogs.cisco.com/security/introducing-kvasir/ El viernes, 4 de abril de 2014 05:59:22 UTC, Brando escribió: > > It's pretty easy to find Django developers out there; however, I can't > seem to find web2py devs. I have an upcoming project to build an app for > data entry and report genera

[web2py] Re: Need a developer. Seattle Wa

2014-04-05 Thread samuel bonill
there is a web2py project built by cisco for Penetration Test Data Management https://github.com/KvasirSecurity/Kvasir El viernes, 4 de abril de 2014 05:59:22 UTC, Brando escribió: > > It's pretty easy to find Django developers out there; however, I can't > seem to find web2py devs. I have an

[web2py] Multiple tables select

2014-04-05 Thread Júlia Rizza
So I have this tables: if not "board" in db.tables: db.define_table("board", Field("title", label=T('Title')), Field("description", 'text', label=T('Description')), auth.signature, format = "%(title)s" ) if not "text_type" in db.tables: db.define_table("text_type", Field("title", label=T('Title')

[web2py] Re: Question about Web2py inner workings

2014-04-05 Thread Anthony
On Friday, April 4, 2014 5:51:11 PM UTC-4, Cliff Kachinske wrote: > > If I write a python module like this: > > # born_to_fail.py > foo = 'bar' > def main(): > print foo > if __name__=='__main__': main() > > The above shouldn't produce an error, but the following will: foo = 'bar' def main():

[web2py] What does this timeout error in pg8000 mean?

2014-04-05 Thread Mobility
Versionweb2py™Version 2.9.5-stable+timestamp.2014.03.16.02.35.39PythonPython 2.7.5: /usr/bin/python (prefix: /System/Library/Frameworks/Python.framework/Versions/2.7)Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. Traceback (most rec