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
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/
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
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
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.
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
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
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.
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]
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
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
, 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
>&
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
...
> 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
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.
--
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
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
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:
>>
>
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
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
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
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
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
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
&
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
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
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
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
28 matches
Mail list logo