Hello
How do i implement these conditional fields in a custom auth table? I tried
the following but does not seem to hide the grade field.
#Start of definition of custom Auth tables to be used instead of the
default ones.
auth = Auth(db)
db.define_table(auth.settings.table_user_name,
Hi Massimo
Just came across this post and got a bit alarmed, so when i check if a
record exists i don't have to use the usual '==' but instead '=' ?
On Monday, October 10, 2011 at 3:55:27 PM UTC+2, Massimo Di Pierro wrote:
>
> row = db.postcode_cache(postcode=postcode)
> if not row:
> db.postc
gt; On Tuesday, October 4, 2016 at 3:16:06 AM UTC-4, Meinolf wrote:
>>
>> Hi there,
>>
>> I need to update my table record only if the user is logged in with a
>> different session from the previous, but with the code i have, it keeps
>> updating when i thou
Hi there,
I need to update my table record only if the user is logged in with a
different session from the previous, but with the code i have, it keeps
updating when i thought the user still logged in with the same session.
problem is i can't view the session id which seem to be encrypted, i ca
wrote:
>
> On Wednesday, September 21, 2016 at 3:30:49 AM UTC-4, Meinolf wrote:
>>
>> OMG, Is this normal?
>> i got chills telling me it had something to do with the *For Loop*,
>> played around with the LBs and UBs and the following worked:
>>
>>
hat i know of starting from 0.
On Monday, September 19, 2016 at 7:59:27 PM UTC+2, Meinolf wrote:
>
> Hi There,
>
> When i test the code below, for a list that is supposed to have multiple
> items, i only get one result for the last item, did i miss something in the
> for loop or
r perhaps a bit longer, something like this...
>
> rows = db( db.item.id.belongs(getcourseids.values()) ).select(
>db.item.course_title)
>
> s = [r.course_title for r in rows]
>
>
>
> On Monday, 19 September 2016 18:59:27 UTC+1, Meinolf wrote:
>>
>&
Hi There,
When i test the code below, for a list that is supposed to have multiple
items, i only get one result for the last item, did i miss something in the
for loop or anywhere else?
for i in range(0, (len(getcourseids)-1)):
c = db.item.id==getcourseids[i].item_id
s.a
subbaraman.wordpress.com/about/
>
> On Mon, 19-09-2016 11:51 AM, Meinolf wrote:
>
> What could be wrong with my code below?
>
> sim = db((db.rates.item_id==request.args(0)) & ~(db.rates.user_id==
> auth.user.id)).select(db.rates.clicks.max()).first().clicks
>
> I ne
What could be wrong with my code below?
sim = db((db.rates.item_id==request.args(0)) &
~(db.rates.user_id==auth.user.id)).select(db.rates.clicks.max()).first().clicks
I need to access the value of the field *clicks* so that i can use it as a
parameter in another query. It keeps giving me
--
db.rated_items.id
> ==k).update(search_term=db.rated_items.search_term+'b')
>
> >>> print db.rated_items[k]
>
>
>
>
> you probably have None into the search_term field and it cannot be
> concatenated with string.
>
> On Friday, 16 September 201
eld('user_id', 'reference auth_user', default=auth.user and
auth.user.id),
Field('item_id', 'integer'),
Field('clicks', 'integer', default=0),
migrate=True,
)
On Friday, September 16, 2016 at 12:00:09 AM UTC+2, Meinolf wro
Hi there
So far i only know how to update a record by replacing the old field value
with the new value. Suppose i want to append the search_term string value
the corresponding text field so that both values are stored, how can i do
that in this code:
myrow = db((db.rated_items.user_id==auth.us
ote:
>
>
>
> On Monday, September 12, 2016 at 12:39:17 PM UTC-7, Meinolf wrote:
>>
>> Anyone knows the web2py's sqlite syntax to select database records using
>> wildcards such as %like% or contains instead of query = db.mytable.myfield
>> == 'value'
resolved, i completely changed the approach to something else.
--
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 s
Anyone knows the web2py's sqlite syntax to select database records using
wildcards such as %like% or contains instead of query = db.mytable.myfield
== 'value'?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://co
Now i have changed the idea.
My new idea is to track users' activity as they search for study courses,
depending on their search terms, i want to recommend to them some courses
they might be interested in.
Any idea of which tools in Web2Py i can make use of and how to use them:
Auth, session o
Hi
I am new to python and web2py. I have a small sqlite table of "career test"
questions that i need to be presented to a user in form of a quiz, one
question appearing at a time
Problems:
1. I can't figure out how to safely stop at the last record, it breaks and
after 3 more clicks, it takes m
18 matches
Mail list logo