[web2py] Re: apache windows 2.8.2 sending email blocks the server?

2014-02-18 Thread Tim Richardson
Ah, gotcha! That stuff about GIL and I/O is not 100% true. SMTP is blocking. Scheduler is the answer. On Tuesday, 18 February 2014 17:02:36 UTC+11, Tim Richardson wrote: I've noticed that apache 2.4 with mod_wsgi and python 2.7 does not respond to other requests while a controller is doing

[web2py] Remember me with login_bare?

2014-02-18 Thread Robin Manoli
Is there a way to use the functionality of remember me when using login_bare? If so, how? -- 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

[web2py] Cache related table

2014-02-18 Thread Robin Manoli
Hey, in one of my projects, the users have usernames, and the usernames are not to ever change. I also write out auth_user.username, as well as auth_user.first_name, so I wonder if these can be cached, even if they are a related table. 1. Is there a way to cache all usernames and first names?

[web2py] Eliminating Submit Button

2014-02-18 Thread horridohobbyist
I have a SQLFORM.grid that allows the user to select a query from a selection of queries. The user selects the query using this form: FORM(TABLE(TR(T(Choose Category:),SELECT([my_list ],_name='category',value=current)), TR(,INPUT(_type='submit' The grid is: SQLFORM.grid(query,

[web2py] SQLFORM.grid buttons as text

2014-02-18 Thread horridohobbyist
I've applied a layout that I downloaded from web2py.com. The layout turns the Edit and Delete buttons of SQLFORM.grid into textual links (anchors): Edit and Delete. However, the two text labels run together like so: EditDelete. I'd like to put some space between them, ie Edit Delete. I

[web2py] Is it ok (i.e. safe !?) to extend the crud class

2014-02-18 Thread Paul
Hi, The html form created by crud.search is great, but for some fields I wanted the right hand 'text' input field to be a autocomplete style field so users can see all the distinct values for a field that they can then pick. I've extended crud search in a class, this files is in in the

[web2py] Re: Is it ok (i.e. safe !?) to extend the crud class

2014-02-18 Thread Leonel Câmara
I don't see why it wouldn't be safe it's like extending any class. However, if you're doing this you might as well just make your own search controller function elsewhere. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code)

[web2py] Re: Remember me with login_bare?

2014-02-18 Thread Anthony
If you need to turn on long expiration manually, you can include the following code: session.auth.expiration = response.session_cookie_expires = auth. settings.long_expiration session.auth.remember = True If your code does an immediate redirect after login, then you don't need to set

Re: [web2py] A query too far? Inner join with group by...

2014-02-18 Thread Richard Vézina
So... You seem to be ready for a stored procedure... Or you need to thought to your problem into more then one step, maybe having a view for the sub query... I was to porpose the multiple subquery, since your query is already slow, I would try this option, just to see if it couldn't be a bit

Re: [web2py] cache issue

2014-02-18 Thread Richard Vézina
Need advice! Richard On Mon, Feb 17, 2014 at 4:11 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Nop! :( Richard On Mon, Feb 17, 2014 at 3:54 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Hmm, I think I find my issue... if form.process().accepts: db.commit()

Re: [web2py] Eliminating Submit Button

2014-02-18 Thread Richard Vézina
script type=text/javascript charset=utf-8 $(document).ready(function() { $(input#YourSelectFieldId).focus(); // not required $(button[type=submit]#ButtonSubmitId).hide(); $('form select[name=YourSelectFieldId]').on('change', function() {

[web2py] Re: Question on linking fields

2014-02-18 Thread Greg Vaughan
Hi Jim That was exactly what I needed thanks so much. Works perfectly. -- 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] What do you think?

2014-02-18 Thread Travis May
I wanted to bring to your attention an app that I built on PythonAnywhere that shows just how quickly you can build something useful with web2py using PythonAnywhere to deploy. http://travismay.pythonanywhere.com/bracket_builder/odds/bracket I built this app, which contains over 14,000 lines

Re: [web2py] Re: Question on linking fields

2014-02-18 Thread Jim Steil
Glad to help. On Tue, Feb 18, 2014 at 6:10 AM, Greg Vaughan greg.s.vaug...@gmail.comwrote: Hi Jim That was exactly what I needed thanks so much. Works perfectly. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code)

[web2py] expand_one not working

2014-02-18 Thread sasogeek
in db.py, the table status is defined as follows db.define_table( 'status', Field('status', 'text'), Field('file', 'upload'), Field('userid'), ) and in default.py, the download function is defined as def download(): allows downloading of uploaded files

[web2py] creating a model of a table (with a large amount of data) in a mysql db. is taking a very long time

2014-02-18 Thread John Philip
Hi there, I am trying to access a mysql database table with a very large amount of data. dbsql = DAL('mysql://myusername:mypasswrd@host/dbname', migrate=False) dbsql.define_table('evth', Field('datetime', 'integer'), Field('eventid','text'), Field('stream','integer'),

Re: [web2py] How can I run postgresql VACUUM from web2py?

2014-02-18 Thread Richard Vézina
postgresql.conf autovacuum = on Except you have particular need should be alright with postgres 9 + Richard On Mon, Feb 17, 2014 at 8:42 PM, User sourci...@gmail.com wrote: I'm trying to run postgresql vacuum from web2py (ultimately to be run by a scheduled task) and I get the following

[web2py] Re: creating a model of a table (with a large amount of data) in a mysql db. is taking a very long time

2014-02-18 Thread Anthony
The amount of data doesn't affect how long it takes the appadmin home page to load, as no data are being pulled from the database at that point. Even when you do select a specific table, it only loads the first 100 records, so again, nothing should hang. Note, defining the model of the table

[web2py] Re: how to get globals like request available in my own modules ?

2014-02-18 Thread Julio F Schwarzbeck
Just a clarification, the method I described is not intended to only allow the different environment variables within your app, but extend them by creating a wrapper in which you can create your common or helper methods available throughout your application. Agreed that If what you need is

[web2py] Is there a way to set the class in auth.register() form?

2014-02-18 Thread Tito Garrido
Hi Folks, I am trying to customize my registration form. Is there a way to set the class of the generated form of auth.register()? Thanks! Tito -- Linux User #387870 . _/_õ|__| ..º[ .-.___.-._| . . . . .__( o)__( o).:___ -- Resources: - http://web2py.com -

[web2py] Web2py Separating Controller and View Layer

2014-02-18 Thread Ykä Marjanen
Juslin, I've done it manually like in your example. Yes it's long, but gives full control on every field. I also define number of rows for each text box and have a placeholder text. Also classes and other parameters (e.g. Default values) are easier too define in view than in controller, so that

[web2py] Re: how to get globals like request available in my own modules ?

2014-02-18 Thread Anthony
What's the difference between your method and doing: In mymodule.py: from gluon import current def helper(): current.request.get('variable', ...) In a model file: from mymodule import helper from gluon import current current.auth = auth Anthony On Tuesday, February 18, 2014 11:42:41 AM

[web2py] web2py mini conference in Chicago

2014-02-18 Thread Massimo Di Pierro
Let's try this again I am planning to organize a one day web2py mini conference in Chicago. Would you be interested? If so, please let me know about your availability. http://doodle.com/nrgr3tt45m3vr5bg Massimo P.S. We may stream it. We may allow remote talks. We will definitively

Re: [web2py] Re: how to get globals like request available in my own modules ?

2014-02-18 Thread Jonathan Lundell
On 18 Feb 2014, at 10:15 AM, Anthony abasta...@gmail.com wrote: What's the difference between your method and doing: In mymodule.py: from gluon import current def helper(): current.request.get('variable', ...) In a model file: from mymodule import helper from gluon import

[web2py] Re: Is there a way to set the class in auth.register() form?

2014-02-18 Thread Anthony
def user: form = auth() if request.args(0) == 'register': form['_class'] = 'myclass' return dict(form=form) Anthony On Tuesday, February 18, 2014 12:54:46 PM UTC-5, Tito Garrido wrote: Hi Folks, I am trying to customize my registration form. Is there a way to set the

[web2py] Re: Redis caching

2014-02-18 Thread Derek
endless arguments just to win? I don't think it's that, I think that people who consider themselves idea men are people who are generally lazy who don't want to do any of the work, but want to take credit for it. They discount the amount of time that developers put into a project and state

[web2py] Re: only one session/login per user?

2014-02-18 Thread Donatas Burba
I need solution for allowing only one session for one username (not relying on IPs, just one username == one session). This is my quick solution, maybe it helps someone :) So in models/db.py: auth.settings.login_onvalidation.append(lambda form: delete_user_sessions(form.vars.username))

[web2py] Angular.js And other js lib

2014-02-18 Thread Arvind Gupta
Can we use angular.js with web2py, if yes can u point me to appropriate resources? -- 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

Re: [web2py] A query too far? Inner join with group by...

2014-02-18 Thread Derek
Joe, it seems to me all you need is this part here: select course, event_code, min(finals) as min_time from times where id_competitor= and finals0 group by course, event_code Or are you interested in returning other columns within the 'times' table? if so, just use min(other columns)

Re: [web2py] Eliminating Submit Button

2014-02-18 Thread horridohobbyist
It's not working. I get the alert() messages, but the button methods aren't doing anything. I inserted _id='fred' in the INPUT(_type='submit',...) call. I presume button[type=submit]#fred should correctly reference the object? On Tuesday, 18 February 2014 10:19:54 UTC-5, Richard wrote:

[web2py] Re: Angular.js And other js lib

2014-02-18 Thread Derek
and to note you can change the brackets in angular to use something else... see here: http://docs.angularjs.org/api/ng/service/$interpolate by default it uses {{ and }} as starting and ending brackets. On Tuesday, February 18, 2014 12:59:48 PM UTC-7, Derek wrote: Well, the problem you have

Re: [web2py] Re: Angular.js And other js lib

2014-02-18 Thread Richard Vézina
http://www.web2pyslices.com/slice/show/1922/web2py-angularjs Change angular {{ }} for {! !} Having to type to different character bug me though, but you need a closing tag... :( Richard On Tue, Feb 18, 2014 at 3:05 PM, Derek sp1d...@gmail.com wrote: and to note you can change the brackets

Re: [web2py] cache issue

2014-02-18 Thread Niphlod
did you try to short-circuit the code to delete the cached value and refill it with the new copy of the dict to see if it's a culprit of your code or of the cache ? Mind that cache.ram has some subtle differences because it just stores a pointer to the object, not the copy of the object like

Re: [web2py] Eliminating Submit Button

2014-02-18 Thread Richard Vézina
So remove button[type=submit] in $(button[type=submit]#ButtonSubmitId).hide(); $(#ButtonSubmitId).hide(); Should work with only the tag id Richard On Tue, Feb 18, 2014 at 3:05 PM, horridohobbyist horrido.hobb...@gmail.comwrote: It's not working. I get the alert() messages, but the button

[web2py] Re: Allow NULL in form validator with reference Field

2014-02-18 Thread Niphlod
does your backend support a foreign key with a null value ? not all of them can. As an alternative, you can Field('awc_pro_id', requires=IS_EMPTY_OR(IS_IN_DB())) On Monday, February 17, 2014 7:21:14 PM UTC+1, brahama von wrote: Hi, dunno why my previous post didn't make it. Here it

[web2py] Re: Email password on clear text?

2014-02-18 Thread Niphlod
who sends the email is totally unrelated to who the user is in fact, it's a service account that serves the only purpose of being an approved sender on the mail relay (a good rule of thumb, it shouldn't be backed by an inbox). If you disclose your app to others, feel free to put that in a

Re: [web2py] cache issue

2014-02-18 Thread Richard Vézina
if form.process().accepts: del(globals()['cached_dict']) return_cached_dict(900) I still get key error... :( Like if they were not executed... I test it and the factory in shell and everthing work fine there... Richard On Tue, Feb 18, 2014 at 3:19 PM, Niphlod niph...@gmail.com wrote:

Re: [web2py] Re: Angular.js And other js lib

2014-02-18 Thread Anthony
Note, you can also change the delimiters used in web2py templates by setting response.delimiters. Anthony On Tuesday, February 18, 2014 3:19:14 PM UTC-5, Richard wrote: http://www.web2pyslices.com/slice/show/1922/web2py-angularjs Change angular {{ }} for {! !} Having to type to different

Re: [web2py] cache issue

2014-02-18 Thread Derek
You are using the 'examples' to make your cache. That's good that you are following the examples, but you really should start by reading the book first. http://web2py.com/book/default/chapter/04#cache It's explained here what's happening and what you can do to invalidate the cache and special

[web2py] Re: SQLFORM.factory without a database table

2014-02-18 Thread Dave S
On Thursday, February 13, 2014 9:03:33 PM UTC-8, A36_Marty wrote: I would like to make a grid-like screen without an underlying database table. is this something interactive, where the user is entering data? Or is it just a display? If the latter, perhaps you just want the TABLE helper.

Re: [web2py] Re: Angular.js And other js lib

2014-02-18 Thread Derek
no, no, no, do not use that slice, it's a waste of time to edit the angular.js file itself. you want to do that every time a new version is released? also why not just use a cdn for angular.js? http://docs.angularjs.org/api/ng/provider/$interpolateProvider#startSymbol The above link shows how

Re: [web2py] cache issue

2014-02-18 Thread Richard Vézina
Wait! I made a mistake... It seems to be solve... Should be the pointer... My last error was here (in red): if form.process().accepts: del(globals()['cached_dict']) return_cached_dict(900) Should be 0 Also move the del in my factory : def

Re: [web2py] cache issue

2014-02-18 Thread Richard Vézina
@Derek I read that, what still bug me and seems not explicited (and may be cause of my lack of knowledge), is what happen if there is already an instance that use the cache.ram object at the same time I set time_expire to Zero or even worse, if I delete the variable... Richard On Tue, Feb 18,

[web2py] No module named ...

2014-02-18 Thread Maggs
Ok this is literally making me crazy. I'm running web2py 2.5.1 in python 2.7. On my dev box all is fine. I added a new module called cmgui that is just a wrapper for an outside custom module. Works fine on my dev box. Push it to my prod box and I'm getting no module named auth.modules.cmgui. In

Re: [web2py] Re: SQLFORM.factory without a database table

2014-02-18 Thread Richard Vézina
Don't understand your question... It generate a self validating form base on field validator defined in models if you clone you field from there or the Field() if you create field input on the fly... Do you want a form? or a Grid? If the latter there the TABLE() helper... Richard On Tue,

Re: [web2py] Re: Redis caching

2014-02-18 Thread Arnon Marcus
I like how in this medium people can talk behind your back and in your face at the same time! :P I actually invested about 2 weeks (both at work AND at home), experimenting with MANY different options of storing and retrieving data in redis, using all structure-types, using both generic

Re: [web2py] LDAP Auth

2014-02-18 Thread Maggs
Hi Richard, The modifications I ended up making to the framework were actually quite simple. This is web2py 2.5.1 and python 2.7 btw. In the ldap_auth.py file, I added the following to the ldap_auth function parameter list: cacert_file=None, cert_file=None, key_file=None. So now the function

Re: [web2py] Re: Angular.js And other js lib

2014-02-18 Thread Richard Vézina
Good point Derek, I saw it in angular.js file when I test the slice (that at least work), as you say it is a cleaner approach... :) Richard On Tue, Feb 18, 2014 at 4:01 PM, Derek sp1d...@gmail.com wrote: no, no, no, do not use that slice, it's a waste of time to edit the angular.js file

Re: [web2py] Re: SQLFORM.factory without a database table

2014-02-18 Thread Marty McCasland
Was aiming to create a grid. Just used an in-memory SQLite db to achieve the grid. Works great. Sent from my iPad On Feb 18, 2014, at 3:14 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Don't understand your question... It generate a self validating form base on field

Re: [web2py] No module named ...

2014-02-18 Thread Richard Vézina
Did you restart web2py? If you didn't it may be related to the issue with track change of module... Richard On Tue, Feb 18, 2014 at 4:06 PM, Maggs maggs.csom@gmail.com wrote: Ok this is literally making me crazy. I'm running web2py 2.5.1 in python 2.7. On my dev box all is fine. I added

Re: [web2py] No module named ...

2014-02-18 Thread Maggs
Yes I restarted web2py. I even completely removed the folder and re-installed it, thinking perhaps there was some caching going on that was causing an issue. On Tuesday, February 18, 2014 1:23:01 PM UTC-8, Richard wrote: Did you restart web2py? If you didn't it may be related to the issue

Re: [web2py] cache issue

2014-02-18 Thread Derek
It is clear as day to me, as written here: Setting time_expire=0 (or a negative value) forces the cached item to be refreshed (because the elapsed time since the last save will always be 0), and setting time_expire=None forces retrieval of the cached value, regardless of the time elapsed

Re: [web2py] No module named ...

2014-02-18 Thread Richard Vézina
So, clean the app by the admin! Or delete what in app/cache maybe? Richard On Tue, Feb 18, 2014 at 4:27 PM, Maggs maggs.csom@gmail.com wrote: Yes I restarted web2py. I even completely removed the folder and re-installed it, thinking perhaps there was some caching going on that was

Re: [web2py] Re: Is there a way to set the class in auth.register() form?

2014-02-18 Thread Tito Garrido
thanks! On Tue, Feb 18, 2014 at 4:20 PM, Anthony abasta...@gmail.com wrote: def user: form = auth() if request.args(0) == 'register': form['_class'] = 'myclass' return dict(form=form) Anthony On Tuesday, February 18, 2014 12:54:46 PM UTC-5, Tito Garrido wrote: Hi

[web2py] Re: Making a phone call from within Web2Py

2014-02-18 Thread Derek
well, that could introduce security issues as far as automatically dialing. a href=tel:555-555-555-555-/a that will bring up the dialer with the phone number already filled out. On Monday, February 17, 2014 9:11:15 PM UTC-7, NeoToren wrote: Maybe I am pushing the limits here...but I

Re: [web2py] No module named ...

2014-02-18 Thread Maggs
There's no app/cache folder as I'm not using any caching in this app. On Tuesday, February 18, 2014 1:30:14 PM UTC-8, Richard wrote: So, clean the app by the admin! Or delete what in app/cache maybe? Richard On Tue, Feb 18, 2014 at 4:27 PM, Maggs maggs.c...@gmail.com javascript: wrote:

Re: [web2py] cache issue

2014-02-18 Thread Richard Vézina
I still have the issue, I forgot this call (see arrow) # Model file def return_cached_dict(update_cached_dict_if_elapsed_time=900): del(globals()['cached_dict']) global cached_dict cached_dict = cache.ram('cached_dict', lambda: {r[0]: r[1] for r in

Re: [web2py] No module named ...

2014-02-18 Thread Richard Vézina
Hmmm... Your issue may come form there... I notice that web2py need all the default folder in app to be there to work properly... app/controllers app/cron app/databases app/errors app/languages app/models app/modules app/private app/sessions app/static app/uploads app/views Are they all there

Re: [web2py] No module named ...

2014-02-18 Thread Maggs
I found the issue. Somehow my __init__.py file did not get added in the main app folder (app/__init__.py) in git. I find this interesting because the app was running fine up until the point when I tried to add a module. If there was no __init__.py in the main app folder, you'd think the app

[web2py] Re: Setting default function in default controller with parametric router

2014-02-18 Thread HittingSmoke
I only just realized that I can set a routes.py file in the application directory. Got it all set up using the examples contained in applications/app/routes.example.py. On Monday, February 17, 2014 8:31:58 PM UTC-8, HittingSmoke wrote: I would like to change my 'index' function to 'page' so

Re: [web2py] No module named ...

2014-02-18 Thread Richard Vézina
:) On Tue, Feb 18, 2014 at 4:43 PM, Maggs maggs.csom@gmail.com wrote: I found the issue. Somehow my __init__.py file did not get added in the main app folder (app/__init__.py) in git. I find this interesting because the app was running fine up until the point when I tried to add a

Re: [web2py] How can I run postgresql VACUUM from web2py?

2014-02-18 Thread User
Good point seems autovacuum is already turned on, so not necessary. Although purely out of curiosity I'd still be interested to hear how to execute this statement if possible or is it not possible from web2py? On Tuesday, February 18, 2014 11:18:17 AM UTC-5, Richard wrote: postgresql.conf

[web2py] Pagination example from book. Make pages start at 1?

2014-02-18 Thread HittingSmoke
I followed the pagination tutorial in the web2py book and I have the following controller: def index(): if len(request.args): page=int(request.args[0]) else: page=0 items_per_page=6 limitby=(page*items_per_page,(page+1)*items_per_page+1) posts=db().select(db.post.ALL,

[web2py] Virtual Field Problem

2014-02-18 Thread Leandro E . Colombo Viña
Hi Guys! I've got a little problem trying to use Virtual Fields. I can't make them work. I follow the example in the book and nothing, I don't have a clue of what I'm doing wrong... The idea is to have a virtual field that calculates the age of the person based on his day of birth... Here is the

[web2py] Re: Pagination example from book. Make pages start at 1?

2014-02-18 Thread Derek
Well, this is really trivial isn't it? On Tuesday, February 18, 2014 3:18:14 PM UTC-7, HittingSmoke wrote: I followed the pagination tutorial in the web2py book and I have the following controller: def index(): if len(request.args): page=int(request.args[0]) else: page=1

[web2py] Web2py Integration with Multiple Oauth Logins

2014-02-18 Thread James Q
I have a feeling that this topic comes up often, but I cannot seem to Google a good solution to this. Essentially, I want users to be able to login using either the built in Auth, or login via some Oauth provider, like Twitter and Facebook. I have seen previous solutions using

Re: [web2py] Eliminating Submit Button

2014-02-18 Thread horridohobbyist
Well, we're *almost* there! The submit() isn't submitting; at least, I'm not getting through form.accepts(). On Tuesday, 18 February 2014 15:20:52 UTC-5, Richard wrote: So remove button[type=submit] in $(button[type=submit]#ButtonSubmitId).hide(); $(#ButtonSubmitId).hide(); Should work

[web2py] Version Control advice

2014-02-18 Thread Carlos Zenteno
Do you guys version control just the /applications directory or the whole web2py tree? What is better for auto-deployment when pushing to the production repo? Thanks... -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: Angular.js And other js lib

2014-02-18 Thread Arvind Gupta
@derek and @richard if we have to create generic support of other javascript libraries, what are the efforts one have to make? On Wed, Feb 19, 2014 at 2:48 AM, Richard Vézina ml.richard.vez...@gmail.com wrote: Good point Derek, I saw it in angular.js file when I test the slice (that at least

[web2py] Re: hostmonster, pythonanywhere, or gae for my current situation

2014-02-18 Thread Carlos Zenteno
The new link for the above Bruno Rocha instructions is: http://brunorocha.org/python/web2py/web2py-on-pythonanywhere.html -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

Re: [web2py] Eliminating Submit Button

2014-02-18 Thread horridohobbyist
Solved! I had to give the form an id, and then I could do a $(#form_id).submit(). Thanks. On Tuesday, 18 February 2014 19:47:46 UTC-5, horridohobbyist wrote: Well, we're *almost* there! The submit() isn't submitting; at least, I'm not getting through form.accepts(). On Tuesday, 18

[web2py] Re: Version Control advice

2014-02-18 Thread 黄祥
mine, just the some of web2py apps that i modify, put it on the sub folder of the environment and push it using management configuration (like puppet, cfengine, chef, etc) e.g. Web2py ├───Development │ ├───Application1 │ │ ├───controllers │ │ ├───languages │ │ ├───models │ │

[web2py] Pack on OSX, Import on Windows bug (binary only)

2014-02-18 Thread Brando
Ticket ID 127.0.0.1.2014-02-18.20-21-14.5e42032d-3fa0-4fc5-8a93-9ca1ef22e89f type 'exceptions.ImportError' No module named html Version web2py™ Version 2.8.2-stable+timestamp.2013.11.28.13.54.07 Python Python 2.7.5: \\vmware-host\Shared Folders\Desktop\web2py\web2py.exe (prefix: C:\Python27)

[web2py] Re: SQLFORM.grid buttons as text

2014-02-18 Thread horridohobbyist
Solved! I made a small modification to the row_buttons class: .web2py_grid .row_buttons a { line-height:20px; *margin-left:2px;* margin-right:2px; display:inline-block; padding:3px 5px 3px 5px; } On Tuesday, 18 February 2014 07:31:34 UTC-5, horridohobbyist wrote: I've applied a

[web2py] Re: Pack on OSX, Import on Windows bug (binary only)

2014-02-18 Thread Massimo Di Pierro
It isn't that. The problem is that when you use py2pp, the latter freezes the path of the build machine for the purpose of reporting errors. I hate it but I have not fund a solution. This is not cause of errors. This is case of incorrect paths in reported errors. The error is in your

[web2py] Re: expand_one not working

2014-02-18 Thread sasogeek
Help please... On Tuesday, 18 February 2014 16:08:57 UTC, sasogeek wrote: in db.py, the table status is defined as follows db.define_table( 'status', Field('status', 'text'), Field('file', 'upload'), Field('userid'), ) and in default.py, the download function is defined

Re: [web2py] Pagination example from book. Make pages start at 1?

2014-02-18 Thread Martin Weissenboeck
What do you mean with it reports as page 1? Do you mean the page number which is part of the URL? Or do you have a page numberin your view like {{=page}} 2014-02-18 23:18 GMT+01:00 HittingSmoke hittingsm...@gmail.com: I followed the pagination tutorial in the web2py book and I have the