[web2py] pygraphviz library not found (site5 webhosting)

2013-06-01 Thread Tomáš Slobodník
Hi everybody, I am running web2py 2.4.7 on site5 webhosting and I recently run into the following issue: I would like to use 'graph model' feature but pygraphviz is not available on the site5 servers. I've installed graphviz in my home directory and also pygraphviz using easy_install.

[web2py] Re: response.flash is going to center in web2py 2.4.7

2013-06-01 Thread 黄祥
yes, i see the flash is on the center (test on 1024x768 on centos and lubuntu). btw, thank you for the explaination. best regards -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails

[web2py] Re: web2py 2.4.7 admin Recent Tweets not loaded

2013-06-01 Thread 黄祥
thank you so much for your fast response massimo. btw, i think the code is not error, if i'm not wrong when i tested it using my own twitter account, if you have posted tweet more than 2 days then the posted is not appear. best regards On Friday, May 31, 2013 9:15:59 PM UTC+7, Massimo Di

Re: [web2py] Re: Random, wrong strings in Content-Type Response header for .css

2013-06-01 Thread Niphlod
wonderful, thanks for checking that out. On Saturday, June 1, 2013 6:02:40 AM UTC+2, Andriy wrote: Yes, *^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*)* works. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this

[web2py] Re: Nested dictionaries / JSON to nested HTML-lists

2013-06-01 Thread D.
Thank you so much for your help - I was twisting my head around the nested recursing :-) Since I just use this one-line-tree-codehttps://gist.github.com/hrldcpr/2012250 to create my structure, modifying it proved difficult. I got it to work based on your code by checking the length of the

[web2py] Re: Ajax-form-submission: pass ALL form-elements

2013-06-01 Thread D.
Excellent, thanks! I think this should go into the documentation! Am Freitag, 31. Mai 2013 22:21:01 UTC+2 schrieb Niphlod: see https://groups.google.com/forum/?fromgroups=#!searchin/web2py/ajax$20anthony/web2py/sYFJWdLoO3g/V-g6KB6XfqYJ -- --- You received this message because you are

Re: [web2py] Re: psycopg2 or pg8000

2013-06-01 Thread Mariano Reingart
I don't get errors nor any difference: db = DAL('postgres:pg8000://reingart:1234@localhost/pg8000',pool_size=1,check_reserved=['all']) db.define_table('thing',Field('name')) def test1(): value = r\' id = db.thing.insert(name=value) value = db(db.thing.id==id).select().first().name

[web2py] Very nice DataGrid for Twitter Boostrap ...

2013-06-01 Thread David Marko
http://o5.github.io/grido-sandbox/ live example is here http://grido.bugyik.cz/example/ -- --- 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] Re: pygraphviz library not found (site5 webhosting)

2013-06-01 Thread Massimo Di Pierro
Are you using web2py source? On Saturday, 1 June 2013 02:36:09 UTC-5, Tomáš Slobodník wrote: Hi everybody, I am running web2py 2.4.7 on site5 webhosting and I recently run into the following issue: I would like to use 'graph model' feature but pygraphviz is not available on the site5

Re: [web2py] Re: psycopg2 or pg8000

2013-06-01 Thread Massimo Di Pierro
Looks like I am wrong and there is no problem with pg8000. On Saturday, 1 June 2013 09:09:54 UTC-5, Mariano Reingart wrote: I don't get errors nor any difference: db = DAL('postgres:pg8000://reingart:1234@localhost/pg8000',pool_size=1,check_reserved=['all'])

[web2py] Re: Very nice DataGrid for Twitter Boostrap ...

2013-06-01 Thread Massimo Di Pierro
Indeed! thanks for posting. On Saturday, 1 June 2013 13:52:40 UTC-5, David Marko wrote: http://o5.github.io/grido-sandbox/ live example is here http://grido.bugyik.cz/example/ -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To

[web2py] web2py Safety discussion

2013-06-01 Thread BlueShadow
Hi, Overall web2py is pretty save as far as I know. https://scanmyserver.com/ shows for my web2py app 6 low priority risks. As far as I'm concerned they are very low priority but since I startet to record all errors (code 400 404 500) in an database table I get a little concerned since my very

[web2py] Re: Very nice DataGrid for Twitter Boostrap ...

2013-06-01 Thread villas
Requires Nette Framework 2.0 (PHP 5.3) http://nette.org I guess it can be adapted, but pity they don't advertise and promote it as 'independent'. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop

[web2py] Re: web2py Safety discussion

2013-06-01 Thread Massimo Di Pierro
These are serious concerns. The safest option is to block admin+appdamin simply by not providing a password. Another open option is to configure the web server to only accept admin connections from localhost and require an ssh tunnel otherwise. The problem with adding timeout after 3

Re: [web2py] web2py Safety discussion

2013-06-01 Thread Kevin Bethke
How the ssh tunnel is probably the best and only real secure option. If anyone can point me towards a tutorial for this would be awesome. Thinking about another solution: how about adding a username. This would make bruteforce even harder. As far as my novice knowlege goes server like apache and

Re: [web2py] web2py Safety discussion

2013-06-01 Thread Anthony
I think we're already limiting admin to 5 failed logins per IP address per hour: https://code.google.com/p/web2py/source/browse/applications/admin/models/access.py#62 Anthony On Saturday, June 1, 2013 5:28:03 PM UTC-4, BlueShadow wrote: How the ssh tunnel is probably the best and only real

[web2py] is this a new feature?

2013-06-01 Thread webpypy
Hi, As i remember, one year ago, I had to include the referenced table in the query, so that it can be used in the select. now, 2.4.7, there is no need to mention the referenced tables in the query. Am i right or am i missing something? Regards, Ashraf -- --- You received this message

Re: [web2py] web2py Safety discussion

2013-06-01 Thread Massimo Di Pierro
oops. Had forgotten about that. Thanks Anthony. Looking at the code again. That stores login attempts in a file, not in DB: deny_file = os.path.join(request.folder, 'private', 'hosts.deny') On Saturday, 1 June 2013 16:38:57 UTC-5, Anthony wrote: I think we're already limiting admin to 5 failed

[web2py] Re: is this a new feature?

2013-06-01 Thread Massimo Di Pierro
? On Saturday, 1 June 2013 17:20:31 UTC-5, webpypy wrote: Hi, As i remember, one year ago, I had to include the referenced table in the query, so that it can be used in the select. now, 2.4.7, there is no need to mention the referenced tables in the query. Am i right or am i missing

[web2py] Beginning advice

2013-06-01 Thread Darin Lawson Hosking
I am new to web2py and python programming so bear with me. As a learning project (career change) I am trying to build a useful app based on my current skill set. I Would like to know if I am going in the right direction or is there an easier way? This a synopsis of what I want to model. Lets

Re: [web2py] Re: psycopg2 or pg8000

2013-06-01 Thread Ovidio Marinho
The books Learning Python in chapter Execution Optimization Tools pag.30 ...Execution Optimization Tools CPython, Jython, and IronPython all implement the Python language in similar ways: by compiling source code to byte code and executing the byte code on an appropriate virtual machine. Still

Re: [web2py] Beginning advice

2013-06-01 Thread joseph simpson
Darin... Interesting project Web2py is a great solution platform. Your process model is not clear to me... That said... One key advantage of Web2py is the database abstraction layer (DAL).. You can try many different approaches and any of the supported database systems with very

[web2py] Re: Beginning advice

2013-06-01 Thread Alex Glaros
Darin, The first issue is a data modeling problem. Can you please create multiple kinds of sample data for each table so we can understand how to help you model the data. After that, you could use smartgrid as you mentioned. It is simple to use and puts an app together for you quickly. The

[web2py] Invalid request when url for static file contains space

2013-06-01 Thread Alastair Medford
Hey, searched around I'm having the same problem as the following topic: https://groups.google.com/d/topic/web2py/yNwOUgOeKqI/discussion I get invalid request when I try to visit the following url: http://127.0.0.1:8000/myapp/static/skillPages/fall2012/MT%20Burk/MT%20Burk_2_01-06-13_R1.pdf; The

Re: [web2py] web2py Safety discussion

2013-06-01 Thread LightDot
Fail2ban is a popular python program that monitors log files for failed login attempts and blocks visitors, no need to write a new one from scratch. Assuming you use a linux server, it should be available as a package. It's quite versatile. Regards, Ales On Saturday, June 1, 2013 11:28:03 PM

[web2py] Re: Beginning advice

2013-06-01 Thread Massimo Di Pierro
Try this: @auth.requires_login() def manage(): return dict(grid=SQLFORM.smartgrid(db.issues)) On Saturday, 1 June 2013 18:30:49 UTC-5, Darin Lawson Hosking wrote: I am new to web2py and python programming so bear with me. As a learning project (career change) I am trying to build a

[web2py] dynamically generate table fields

2013-06-01 Thread Robin Manoli
# I have this code to create a table: *db.define_table('event',* *Field('event_type', length=8),* *Field('created', 'datetime', default=request.now),* *)* # Now, I have numerous fields (20 in real life) that should build up this table, which is why I would like to