I want to store user page size preference for when there is a list view of
items that needs pagination and have that preference persist between
logins. Two questions about this:
1. I decided to add an extra field to my auth.table. Is this the best place
to store this type of data
I think by default, functions with arguments are not exposed. From:
http://stackoverflow.com/questions/3003449/web2py-controllers-with-parameters
web2py specifically detects valid controller functions as those functions
that have no arguments
On Thursday, November 14, 2013 9:03:34 PM UTC-5,
On my user registration form I'd like to add an ajax username availability
control similar to how twitter does. After each character you type on
twitter registration you get either Username is available. or This
username is already taken! Does web2py have something like this already?
I know
a field with time type is the IS_TIME validator added as a
single validator or as a list with length 1?
On Wednesday, November 13, 2013 11:48:57 AM UTC-5, Niphlod wrote:
db.table.field.requires.append(what_you_need)
On Wednesday, November 13, 2013 6:43:38 AM UTC+1, User wrote:
So since a time
Why is the source code for the navbar function
http://web2py.com/examples/static/epydoc/web2py.gluon.tools-pysrc.html#Auth.navbar
different than the code for
http://code.google.com/p/web2py/source/browse/gluon/tools.py#1318
For example, the latter has nested functions such as Anr(), menu(), and
1. On the line:
{{=SPAN(A(T('Process 3'), _href=URL('revert(ids)' ) ) ) }}
You have the function call inside a string so it will just be treated as a
string. If you wanted to call it as a function you would probably need to
do like this:
{{=SPAN(A(T('Process 3'), _href=URL(revert(ids) ) ) )
I think by default, functions with arguments are not exposed. From:
http://stackoverflow.com/questions/3003449/web2py-controllers-with-parameters
web2py specifically detects valid controller functions as those functions
that have no arguments
On Thursday, November 14, 2013 9:03:34 PM UTC-5,
I have some code that was working before but I can't quite pinpoint why
it's not working now. In any case it's a time field in a table and when I
insert into this field the database shows '00:00:00' in the field (by
looking at the record in an SQLite admin tool)
. Does this sound like what
the problem is? If so, how do I get around it?
On Tuesday, November 12, 2013 3:24:36 AM UTC-5, User wrote:
I have some code that was working before but I can't quite pinpoint why
it's not working now. In any case it's a time field in a table and when I
insert
+1, User wrote:
Just realized I added the following lines after my db.define_table
statement:
db.sometable.start_time.notnull = True
db.sometable.start_time.requires = IS_NOT_EMPTY()
I'm thinking that my assignment of IS_NOT_EMPTY() overwrote the default
IS_TIME() validator associated
standard_fields.modified_on.update = request.now
it will not make a difference in appadmin so it seems like using compute
may be the best option
On Saturday, October 5, 2013 9:06:53 PM UTC-4, Anthony wrote:
On Saturday, October 5, 2013 8:04:54 PM UTC-4, User wrote:
I do have writable=False and I
Actually unless I'm missing something I don't think using a computed field
will work for the create_on field because this seems to modify the field
any time you update the record. However it does work for the modified_on
field.
On Thursday, October 24, 2013 2:30:44 AM UTC-4, User wrote
I have cloned the web2py mercurial repository and hg updated to R-2.7.4.
I'm using TortoiseHg on windows. Now when I want to create a new
application based on the welcome app how should I go about doing this? what
is the normal workflow for this? I'm guessing the idea is that I would
create
When I click the Versioning link I get Sorry, could not find mercurial
installed although I have TortoiseHg installed. Does this work for you?
On Monday, October 21, 2013 5:56:28 PM UTC-4, Dave S wrote:
On Monday, October 21, 2013 12:15:05 PM UTC-7, User wrote:
I have cloned the web2py
I see web2py seems to have both mercurial and git repositories. I'm more
familiar with hg but I can get more familiar with git if need be. Is one
preferred over the other? Any pros/cons with respect to web2py? Which is
path of least resistance?
On Saturday, October 19, 2013 3:13:29 PM
I want to get code completion working in my editor (currently using Komodo
Edit). I have seen that at the top of my files I need to put something
like:
if 0:
from gluon.sql import *
from gluon.sqlhtml import *
from gluon.html import *
db = DAL()
#optionally use table references
Woah if you're on Windows and can't use python I wouldn't choose PHP as my
first choice. Try C#/ASP.NET with either webforms or mvc (
http://www.asp.net/mvc). You can use free Visual Studio express IDE. Very
easy/powerful development IMO and a large community with plenty of examples.
If
('created_on', 'datetime', default=request.now))
You might also want to set writable=False.
Anthony
On Tuesday, October 1, 2013 11:26:08 PM UTC-4, User wrote:
Using table inheritance to define a common set of fields. Given the
following code:
standard_fields = db.Table(db, 'standard_fields
I do have writable=False and I understand that will work for normal
forms, but it still shows up in appadmin
On Saturday, October 5, 2013 6:28:08 PM UTC-4, Anthony wrote:
If you don't want the user to see or be able to edit the created_on value,
just set readable=writable=False
Using table inheritance to define a common set of fields. Given the
following code:
standard_fields = db.Table(db, 'standard_fields',
Field('created_on', 'datetime'),
)
standard_field._before_insert.append(lambda fields: fields['created'] =request
.now)
db.define_table('payment',
Am I doing something wrong in setting up routes?
On Saturday, September 28, 2013 12:29:33 AM UTC-4, User wrote:
Using web2py Version 2.6.4-stable+timestamp.2013.09.22.17.43.26 with
Python 2.7. I've got web2py up and running with a simple app. Now I'm
trying to get routes working. What
Will this work with Komodo Edit 8.5? How would I install it?
On Thursday, October 22, 2009 7:14:16 PM UTC-4, Richard Penman wrote:
I have uploaded my web2py extension file to that thread (http://
community.activestate.com/files/codeintel_web2py.py_.txt).
Let me know if you have problems
Using web2py Version 2.6.4-stable+timestamp.2013.09.22.17.43.26 with
Python 2.7. I've got web2py up and running with a simple app. Now I'm
trying to get routes working. What I did was copy
routes.patterns.example.py from web2pyroot/examples to the web2pyroot
folder and rename to routes.py.
? And is it still safer from user injected code? At
first glance it looks like someone could possibly inject something
(myobject.name ultimately comes from user input). Maybe I can just strip
out double quotes to make sure they can't close the string?
On Thursday, September 26, 2013 12:02:55 PM UTC-4
of this.
On Thursday, September 26, 2013 5:14:40 PM UTC-4, User wrote:
Yes I by viewing source I could see that generated javascript string had
the character entity in it, so I knew the question was how to get web2py to
output it correctly. Using XML works! thank you. By using XML the
generated
I have a model with latitude and longitude fields. The lat and lng should
be computed from the address via Google geocoding. Whenever the model is
inserted or updated I want to update the lat and lng from the address of
the model.
In Yii PHP framework there a number of events that you can
I'm using the google map javascript api (v3). I have a google map in one of
my views. I want to display the location name as the marker title (used
when hovering over the marker). I'm using the following code in my view:
script type=text/javascript
function init_map() {
var
I'm trying to use the custom CRUD form processing but am getting a strange
result. For a simple two field form, the default form of the crud behaves
as expected. The custom form doesn't process. Why are they different?
Thank you for any help.
{{=crud_form}}
{{=crud_form.custom.begin}}
I noticed a thread over in web2py-developers web3py -
important!https://groups.google.com/forum/?fromgroups=#!topic/web2py-developers/RCeiRd3Rzs0
which
was exciting to read. I've flirted with web2py and there's a lot that I
like about it. For some reason I find web2py exciting whereas django
I have some sites that I implemented using Drupal. However as cool as
Drupal is I've never been satisfied with coding in it mostly because
it's in PHP and I've wanted to work with python. I've flirted with
Django but I just recently discovered web2py and it's definitely
caught my eye. Seems like
101 - 130 of 130 matches
Mail list logo