+ 1 for Name only option.
What I do is create an extra field:
auth.settings.extra_fields['auth_user'] = [ Field('u_name') ]
Then define tables without username because I want to use email for login:
auth.define_tables(username=False, signature=True)
Then hide the first and last names by
Hello,
I have a simple app where I return data in XML and I'm wondering if I can
also include auth.user.
Here is some code:
def questions():
response.title = None
all_questions = questionsinmydatabase
try:
for question in all_questions:
if
Hi
I wrote example foe change timeout in LOAD
http://www.web2pyslices.com/slice/show/2009/change-timeout-interval-in-ajax-load
but that not need if i can reload data from server
Сделал изменение интервала обновления на лету в LOAD
НО
если мой сервер сам сможет посылать обновленные данные клиенту
yes. Please open a ticket and we will fix it soon.
On Friday, 23 January 2015 16:12:28 UTC-6, Dani wrote:
Hi:
What string type pass for this work?
file: gluon/serializers.py (from 25 Sep 2014)
line: 182
def safestr(obj, key, default=''):
return
Jose it works great but I don't understand
(1) where do you keep it so it persists in the navbar?How is 3_menu.py
called?
(2) How did you get your mail_count to run when user first logged in?
Where is that function located?
also, thanks to Richard for your suggestion.
Alex
--
From what I see on ruby's docs, Dal has it thanks to references. Don't know
what are you specifically asking, though
--
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
You could put it in the models directory. Everything in that folder is run with
each controller function.
Carlos
--
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
HI Alex,
(1) where do you keep it so it persists in the navbar?How is 3_menu.py
called?
My 3_menu.py file is located in the /your_application/models/ directory.
The files in the directory are processed in alphabetical order (which is
why I prefixed a number as my database models are
Hey,
You can do it like this:
movie_articles = db(db.article.title.startswith('Movie the article is
about')).select()
This is equivalent to:
movie_articles = db(db.article.title.like('Movie the article is
about%')).select()
I suggest you create an index on the article's title to make this
Carlos that's why that's not the preferable solution as you don't want to
be executing code needlessly.
Alex, you can append your function to *auth.settings.login_onaccept* the
functions on this list all get called with the form as argument when the
user logs in.
--
Resources:
-
Hi I got a filled db table with articles each article has a title which
looks like this: Movie the article is about - Topic discussed what I want
to list all articles which have the same first half of the title: Movie
the article is about
Thanks for your help.
--
Resources:
-
Very true about the needless execution. Learning how best to not use the models
directory is next on my list. I have to make sure all the important stuff works
first, the refactor as I go.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
Thanks.
how do you make an index?
--
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
I really like this solution to create indexes (works for sqlite and
postgres)
https://groups.google.com/forum/#!msg/web2py/CA35rzPrMc8/JrFvMW2rPgMJ
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
Niphlod:
Just a general question.
I will research web2py references.
Thanks for the information,
Joe
On Sat, Jan 24, 2015 at 1:02 AM, Niphlod niph...@gmail.com wrote:
From what I see on ruby's docs, Dal has it thanks to references. Don't
know what are you specifically asking, though
--
15 matches
Mail list logo