[web2py] Re: Why does appadmin have css overflow: hidden in database results?

2014-04-13 Thread Paolo Caruccio
If you mean the view *appadmin/select/db?query=your query* actually the table with the resulting rows is wrapped in a div with overflow:auto. Therefore if you have more columns than the width of the browser a horizontal scrollbar will be shown and the table will scroll horizontally. The

[web2py] Re: Why does appadmin have css overflow: hidden in database results?

2014-04-13 Thread User
Sorry you're right it's auto not hidden that was a typo. But why not make it visible? On Sunday, April 13, 2014 5:37:53 AM UTC-4, Paolo Caruccio wrote: If you mean the view *appadmin/select/db?query=your query* actually the table with the resulting rows is wrapped in a div with

[web2py] Database compute fields

2014-04-13 Thread horridohobbyist
I have the following table: db.define_table('cart', Field('quantity','integer'), Field('in_stock','integer',writable=False,represent=lambda v, r: 'Pre-ordered' if v 0 else '√'), Field('price','float',writable=False,represent=lambda v, r:

[web2py] Networkx draw graph

2014-04-13 Thread Luis Fontes
I am trying to plot a graph using NetworkX draw function but using cStringIO.StringIO(). I have read how to do it in web2py Application Development Cookbook. Let's say I have something like: import matplotlib.pyplot as plt import networkx as nx G = nx.path_graph(8) nx.draw(G) plt.show() This

[web2py] form help

2014-04-13 Thread Cristian Re
Hello to all, assuming I have in db.py these tables: db.define_table('items', Field('item', requires=IS_NOT_EMPTY()), format='%(item)s' ) db.define_table('types', Field('type_name', requires=IS_NOT_EMPTY()),

[web2py] Re: Can't edit default.py after upgrade to 2.8.2

2014-04-13 Thread Michael Sounhein
Apparently there was a fix discovered here. https://www.mail-archive.com/web2py@googlegroups.com/msg129910.html append the following line to /etc/apache2/apache2.conf Header always append X-Frame-Options SAMEORIGIN On Thursday, December 19, 2013 5:14:03 PM UTC-6, Richard Brown wrote: Yes,

[web2py] Error when implementing search_widget for SQLFORM.smartgrid

2014-04-13 Thread Seth J
Hello again, I apologize for potentially naive question as I am new to web2py. I am trying to implement a custom search_widget on SQLFORM.smartgrid and ran into an error. My table is defined in db.py as such: ## We prepend f_ to fieldnames for disambiguity

[web2py] web2py startup and shutdown of server to call function that starts and stops ROS

2014-04-13 Thread Jacoby Larson
I am running a web application that connects to ROS and streams images and data from rostopics. To send and receive ROS data in python with rospy, you need to call the init_node() function (e.g. rospy.init_node('web2py', anonymous=True, disable_signals=True) ). This function basically hangs

Re: [web2py] Re: unique entry or null validation

2014-04-13 Thread Claudio Cocciarelli
If you want the items in field1 to be uinique then you cannot allow update to put a duplicate value in there. If you get that message, find the duplicate value in the database and do something about that. Regards Johann As I mentioned, it's difficult to explain :) I don't want

[web2py] Illegal character in encryption salt

2014-04-13 Thread Louis Amon
I'm trying to migrate from another framework to web2py but can't make any of the previous user accounts work : passwords don't match even tho I have the correct salt and algorithm. After much research, I think the issue is in the way web2py stores passwords : 'alg$salt$pwd' My salt uses the

[web2py] How to load processed values in same page as form exists ?

2014-04-13 Thread Ramesh Aj
I have created a form that takes server ip, username and password. I use pexpect to ssh into remote server, run a particular command and get basic data related to that server. I am creating the form using controller and also doing ssh in same controller and returning both form and processed

[web2py] Re: Install in hostgator

2014-04-13 Thread RTBS
Hey Criss, Great testimonial and I would love to use hostgator. However, I would also like to use web2py. Currently, a complete tutorial does not exist to make these two work together. It seems some people have been able to get this to work, unfortunately, I am not one of them. The

[web2py] Web2Py vs Django - powered sites.

2014-04-13 Thread digirew
Hello Everyone, I am in the process of evaluating Web2py and Django frameworks for our application. So far I like what I see with Web2py. I will need to build a business case for one vs the other. Few initial questions if you have some input: 1. is there any large enterprise

[web2py] great news: Sphinx Documentation

2014-04-13 Thread Massimo Di Pierro
Great news! We are finally moving to Sphinx. http://web2py.readthedocs.org/en/latest/ Kudos to Simone (niphlod) who single handedly ported all the docstrings and made this possible. Thank you Simone! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Can't edit default.py after upgrade to 2.8.2

2014-04-13 Thread Massimo Di Pierro
Can you submit a patch to the scripts/setup-web2py-* scripts? On Thursday, 10 April 2014 00:26:14 UTC-5, Michael Sounhein wrote: Apparently there was a fix discovered here. https://www.mail-archive.com/web2py@googlegroups.com/msg129910.html append the following line to

[web2py] Re: unique entry or null validation

2014-04-13 Thread Massimo Di Pierro
This will be deprecated as we are moving to Sphinx. On Friday, 4 June 2010 03:53:18 UTC-5, dlin wrote: By the way, I found http://127.0.0.1:8000/examples/static/epydoc/index.html also have such document. But, I missed it. I should click on the left upper corner to choose validator at

Re: [web2py] Illegal character in encryption salt

2014-04-13 Thread Jonathan Lundell
On 11 Apr 2014, at 6:38 AM, Louis Amon moo...@msn.com wrote: I'm trying to migrate from another framework to web2py but can't make any of the previous user accounts work : passwords don't match even tho I have the correct salt and algorithm. After much research, I think the issue is in the

[web2py] Re: Illegal character in encryption salt

2014-04-13 Thread Massimo Di Pierro
The problem is not really that you use $ in salt. The probably is that web2py and the framework you moved from must have different conventions for storing the salt. We use 'alg$salt$pwd'. What do they use? What is the framework? If we know we can convert it. On Friday, 11 April 2014 08:38:38

[web2py] Re: Web2Py vs Django - powered sites.

2014-04-13 Thread Massimo Di Pierro
Django has been around longer (at least 5 years longer) and therefore there are more users. In terms of scalability they are very similar. They are both solid. web2py is easier to start with and requires less coding than Django. web2py includes much more stuff in the standard distribution while

[web2py] Re: Networkx draw graph

2014-04-13 Thread Massimo Di Pierro
Not sure but look into https://github.com/mdipierro/canvas On Saturday, 12 April 2014 04:10:42 UTC-5, Luis Fontes wrote: I am trying to plot a graph using NetworkX draw function but using cStringIO.StringIO(). I have read how to do it in web2py Application Development Cookbook. Let's say I

[web2py] Re: Why does appadmin have css overflow: hidden in database results?

2014-04-13 Thread Paolo Caruccio
With overflow:auto the scrollbars (vertical and horizontal) are visible only when it is necessary. Making scrollbars visible only when you need them is for aesthetic reasons. Indeed not all the tables have a great number of columns. Il giorno domenica 13 aprile 2014 13:32:41 UTC+2, User ha

[web2py] deployment error

2014-04-13 Thread Richard
Gooed evening, When I call an app on my domain the index view is returned. But having an SSL connection In Chrome I do get the following error (In IE 11 I do not get an error) Any clus what may cause this? I run from the latest source version of web2py. Thank you in advance TICKET ID

[web2py] Re: great news: Sphinx Documentation

2014-04-13 Thread pallav
Much neater! Thank you. On Sunday, April 13, 2014 11:43:26 AM UTC-4, Massimo Di Pierro wrote: Great news! We are finally moving to Sphinx. http://web2py.readthedocs.org/en/latest/ Kudos to Simone (niphlod) who single handedly ported all the docstrings and made this possible. Thank you

[web2py] GAE Select Ignores cache and cacheable arguments?

2014-04-13 Thread pallav
It seems like the 'cache' and 'cacheable' arguments to the .select() statement do not work on GAE. This is even after setting cache.ram=cache.memcache (following the code in the book and multiple examples in this forum) I tested on a GAE app, and explicitly setting memcache works, but the

[web2py] Re: form help

2014-04-13 Thread pallav
Your way will work, but you can do it easier by just using sqlform.smartgrid - the tables will be automatically generated. It works for the simple case where you want to give people the ability to add an item, add a category, and also associate any item with any category. On Friday, April 11,

[web2py] Broken migration

2014-04-13 Thread Wonton
Hello! I have a web2py application with a sqlite database. The structure of my db.py file is something like this: db = DAL('sqlite://storage.sqlite', migrate=False) ... db.define_table('table1', Field('field1'), Field('field2')) db.executesql('CREATE INDEX IF NOT EXISTS table1_field1 ON table1

[web2py] Re: Broken migration

2014-04-13 Thread Wonton
Wow, sorry for answering myself, but I managed to get it working. I've tried to add c8b1837fhj47blahblahblah_ before newtable.table file and now everything is working. Could it be a problem add this to my table file? On Sunday, April 13, 2014 11:49:17 PM UTC+2, Wonton wrote: Hello! I have

[web2py] Database compute fields

2014-04-13 Thread Anthony
I believe you have to provide the price field in your update as well. -- 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

[web2py] Re: Broken migration

2014-04-13 Thread 黄祥
just a suggestion, please put the create index in the controller because models is always execute everytime your application is execute, so includeing create index too e.g. *controllers/install.py* def index: db.executesql('CREATE INDEX IF NOT EXISTS table1_field1 ON table1 (field1)')

[web2py] Re: Networkx draw graph

2014-04-13 Thread Luis Fontes
On Saturday, April 12, 2014 11:10:42 AM UTC+2, Luis Fontes wrote: I am trying to plot a graph using NetworkX draw function but using cStringIO.StringIO(). I have read how to do it in web2py Application Development Cookbook. Let's say I have something like: import matplotlib.pyplot as

[web2py] Re: configuring routes for web2py behind reverse proxy

2014-04-13 Thread Jason Lee
What file am I supposed to add this to? default, weby2py, default-sll? On Thursday, November 14, 2013 6:48:05 PM UTC-5, DeanK wrote: For anyone in the future trying to do this with Apache2 on Ubuntu: ProxyHTMLInterp On LogLevel Debug ProxyHTMLLogVerbose On ProxyPass /link/

[web2py] Re: Networkx draw graph

2014-04-13 Thread Luis Fontes
Thank you very much for your help Massimo. The problem I have is not how to plot easily in matplotlib. My problem is how to display in my web2py view the NetworkX drawing made using nx.draw without saving the png file in disk but using some code like: canvas=FigureCanvas(fig)

[web2py] Nginx/passenger/web2py - 504 Gateway Timeout?

2014-04-13 Thread Krzysztof Socha
I am trying to setup (vanila) web2py on shared hosting with nginx and passenger with support for python. I put all the files from web2py folder in the folder expected by passenger, I created a file passenger_wsgi.py required by passenger, which I simlinked to wsgihandler.py (taken from the

[web2py] great news: Sphinx Documentation

2014-04-13 Thread Brian M
Great job niphlod! -- 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 subscribed to the Google Groups

[web2py] Personalize calendar for reservation

2014-04-13 Thread FERNANDO VILLARROEL
Dear all. I see the post; https://groups.google.com/forum/#!topic/web2py/IIYWWB0D7e4   I am think to do a reservation site, basically i need to input a date range : fromfate todate My probem is how i can show a calendar with days in green colors for available days and red colors for