Re: [web2py] how to add a style to form tags

2013-10-28 Thread Mark Finkelstein
For a specific case, I'd rather have the css be inline, meaning in the tag as rather than in a css file or anywhere else on the page On Monday, October 28, 2013 6:05:36 PM UTC-4, Ramos wrote: > > if i understand you , use css in your view to acomplish that > > form { > ... > } > > > 2013/10/28

[web2py] How to put a style on a form tag

2013-10-28 Thread Mark Finkelstein
I was wondering how to put a style on a form tag. {{login_form.custom.begin['_style']="display:inline"}} fails with error ('XML' object does not support item assignment) Thank you in advance! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/

[web2py] How to suppress output from anyserver.py

2013-09-23 Thread Mark Finkelstein
I noticed that when running python anyserver.py -s gevent, there's a lot of logging data pushed out into stdio, which I use for my own debugging. Is there any way of suppressing the default output? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/we

[web2py] Is there a way to overload the Session table?

2013-08-12 Thread Mark Finkelstein
I was wondering if there was a way to overload the session table. Basically I do not want to use sessions, but I do want to use the functionality where I can set cookies by simple writing session.myvariable = "hello", I'm guessing this isnt possible. Otherwise I'd have to use the response.cooki

[web2py] How web2py deals with incoming requests

2013-08-09 Thread Mark Finkelstein
I was wondering, does web2py launch a separate thread for each web2py request to respond? -- --- 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.

Re: [web2py] Re: auth.user question

2013-08-04 Thread Mark Finkelstein
y drop your db tables in production. > > Anthony > > > On Sunday, August 4, 2013 4:58:40 PM UTC-4, Mark Finkelstein wrote: >> >> Yes, I thought this was so, my issue is more with the fact that after >> dropping the databases, this seems to give an invalid value, as show

[web2py] Re: auth.user question

2013-08-04 Thread Mark Finkelstein
n None, so you can't do > auth.user.id. Instead, you should use auth.user_id, which will return > None if not logged in. > > Anthony > > On Sunday, August 4, 2013 12:04:16 PM UTC-4, Mark Finkelstein wrote: >> >> I get the following error for trying

[web2py] Re: auth.user question

2013-08-04 Thread Mark Finkelstein
ro wrote: > > If you are not logged in db.auth_user[auth.user.id] is None. > > > On Sunday, 4 August 2013 09:10:09 UTC-5, Mark Finkelstein wrote: >> >> I have two lines of code that read as follows: >> >> if auth.user: >> if db.auth_user[auth.user.

[web2py] auth.user question

2013-08-04 Thread Mark Finkelstein
I have two lines of code that read as follows: if auth.user: if db.auth_user[auth.user.id]['image']=='' or db.auth_user[auth.user.id ]['image']==None: Recently, while logged in, I dropped all the tables, refreshed the page and then got an Internal Error saying if db.auth_user[auth.user.id]

[web2py] Re: minifying the view

2013-08-02 Thread Mark Finkelstein
ate lines, though that will result in less readable/maintainable > templates. Can you show a specific example of (a) some template code, (b) > the HTML it generates, and (c) the HTML you would prefer to see instead? > > Anthony > > On Thursday, August 1, 2013 9:23:52 PM UTC-4, Mark Fi

[web2py] Re: debugging with winpdb

2013-08-02 Thread Mark Finkelstein
yCharm 3.0 EAP build can > be used for free for a few more weeks. > > On Friday, 2 August 2013 02:21:46 UTC+1, Mark Finkelstein wrote: >> >> I've been trying to get winpdb to play nice with web2py, but I've gotten >> the following: >> >> >> win

[web2py] Re: minifying the view

2013-08-01 Thread Mark Finkelstein
, August 1, 2013 9:18:36 PM UTC-4, Anthony wrote: > > Can you give an example of what you are trying to achieve? > > On Thursday, August 1, 2013 9:14:41 PM UTC-4, Mark Finkelstein wrote: >> >> I actually meant minifying the view py file itself to remove the spaces >&

[web2py] debugging with winpdb

2013-08-01 Thread Mark Finkelstein
I've been trying to get winpdb to play nice with web2py, but I've gotten the following: winpdb python web2py.py -a password -p 8000 Failed to parse arguments: Unknown option -c I saw some previous posts seemingly getting this setup working, any tips? What debugging environments do other people

[web2py] Re: minifying the view

2013-08-01 Thread Mark Finkelstein
... > return htmlmin.minify(response.render(dict(...))) > > Anthony > > On Thursday, August 1, 2013 5:57:51 PM UTC-4, Mark Finkelstein wrote: >> >> I noticed that as it stands, the html response sent is filled with spaces >> due to formatting, I was wondering if th

[web2py] minifying the view

2013-08-01 Thread Mark Finkelstein
I noticed that as it stands, the html response sent is filled with spaces due to formatting, I was wondering if there was a way to 'minify' or remove all the spaces and compress the view file to decrease the size of the response and make it more aesthetically pleasing. Thank you in advance. --

[web2py] Adding to variable to globals() or locals()

2013-08-01 Thread Mark Finkelstein
I was wondering how I would go about adding a variable to globals() or locals() from a module or elsewhere so that it is available to the view. Thanks in advance. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this g

[web2py] Re: Accessing db from the module

2013-07-31 Thread Mark Finkelstein
Nevermind, thanks for all the help, I realized where the issue lies and it was rather foolish in the end. (I was looking at an older, archived database) On Wednesday, July 31, 2013 11:39:52 AM UTC-4, Mark Finkelstein wrote: > > As part of an HTTP request. > > On Wednesday, July 31

[web2py] Re: Accessing db from the module

2013-07-31 Thread Mark Finkelstein
As part of an HTTP request. On Wednesday, July 31, 2013 11:11:19 AM UTC-4, Anthony wrote: > > Is the module being accessed as part of an HTTP request to the app, or via > an external script? > > On Wednesday, July 31, 2013 9:50:56 AM UTC-4, Mark Finkelstein wrote: >> >

[web2py] Re: Accessing db from the module

2013-07-31 Thread Mark Finkelstein
t through the environment? It seems Auth<http://www.web2py.com.ar/examples/static/epydoc/web2py.gluon.tools-pysrc.html#Auth> does not do this. I may be wrong though? On Wednesday, July 31, 2013 9:03:17 AM UTC-4, Anthony wrote: > > Show some code. > > On Tuesday, July 30, 2013

[web2py] Accessing db from the module

2013-07-30 Thread Mark Finkelstein
I've been using current to access the db in my modules, but I would like to modularize my modules a bit so that I don't rely as much on current. I was wondering why db seems to not be accessible from the modules when passed by a caller and saved through the init statement. In other words, if I w

[web2py] Tags Plugin

2013-07-16 Thread Mark Finkelstein
The plugins site has been down for a rather long time now. I wanted to download the tags plugin to see how it is organized, where would I get that? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop re

Re: [web2py] Re: FormWidget and Validators

2013-07-10 Thread Mark Finkelstein
ednesday, July 10, 2013 7:28:49 PM UTC-4, Mark Finkelstein wrote: > >> I noticed that widget objects extending FormWidget are required to >> implement widget(), but couldn't find a place where that function is used. >> I was wondering what it would be for as it does not

[web2py] FormWidget and Validators

2013-07-10 Thread Mark Finkelstein
I noticed that widget objects extending FormWidget are required to implement widget(), but couldn't find a place where that function is used. I was wondering what it would be for as it does not seem necessary for implementing widgets. I was also wondering where validators are processed. I coul

[web2py] Re: custom formstyles

2013-07-06 Thread Mark Finkelstein
Sorry, small mistake there, I meant table and by 'stored in' I meant stored in the same way other formatting is stored, not in the DB. On Saturday, July 6, 2013 9:59:26 AM UTC-4, Mark Finkelstein wrote: > > Exactly what I was wondering! Thank you! Is there a way to add extra &

[web2py] Re: custom formstyles

2013-07-06 Thread Mark Finkelstein
2py/source/browse/gluon/sqlhtml.py#763. > > Anthony > > On Friday, July 5, 2013 8:32:02 PM UTC-4, Mark Finkelstein wrote: >> >> formstyles are great and all, but I was wondering if it was possible to >> create a custom formstyle without waiting until the form is generated

[web2py] custom formstyles

2013-07-05 Thread Mark Finkelstein
formstyles are great and all, but I was wondering if it was possible to create a custom formstyle without waiting until the form is generated and then setting necessary changes with elements or using custom form styling. -- --- You received this message because you are subscribed to the Googl

[web2py] how to select all users not in a group in web2py

2013-05-31 Thread Mark Finkelstein
I was wondering how to select all users not in a group with a certain role. I tried using: db(db.auth_group.role=='site_admin')(db.auth_membership.group_id==db.auth_group.id)(db.auth_membership.user_id!=db.auth_user.id).select(db.auth_user.id, db.auth_user.first_name, db.auth_user.last_name, d

[web2py] how to select all users not in a group in web2py

2013-05-31 Thread Mark Finkelstein
I was wondering how to select all users not in a group with a certain role. I tried using: db(db.auth_group.role=='site_admin')(db.auth_membership.group_id==db.auth_group.id)(db.auth_membership.user_id!=db.auth_user.id).select(db.auth_user.id, db.auth_user.first_name, db.auth_user.last_name, d