Hi,
I'm doing something like that:
if auth.user:
my_org = db(db.t_org_members.f_org_member ==
auth.user.id).select(db.t_org_members.f_org_rep)
if my_org:
for m in my_org:
my_org_members = db(db.t_org_members.f_org_rep ==
m.f_org_rep).select(db.t_or
On 27 Dec 2013, at 9:53 AM, Avi A wrote:
> Hi,
> I'm doing something like that:
> if auth.user:
> my_org = db(db.t_org_members.f_org_member ==
> auth.user.id).select(db.t_org_members.f_org_rep)
> if my_org:
> for m in my_org:
> my_org_members = db(d
Thanks,
I wasn't wrong, this is what I need:
{{for member in org_member_data:}}
what do you mean by:
"org_member_data is set to a single member's data, so it ends up with the
last one it was set to. ?
or:
or perhaps collect org_member_data instances in a list?
i return it as a dict or as local
On 27 Dec 2013, at 10:23 AM, Avi A wrote:
> Thanks,
> I wasn't wrong, this is what I need:
>> {{for member in org_member_data:}}
> what do you mean by:
> "org_member_data is set to a single member's data, so it ends up with the
> last one it was set to. ?
> or:
> or perhaps collect org_member_da
Alright, I see what you mean. I'll give it a try. Thanks.
On Friday, December 27, 2013 8:37:55 PM UTC+2, Jonathan Lundell wrote:
>
> On 27 Dec 2013, at 10:23 AM, Avi A >
> wrote:
>
> Thanks,
> I wasn't wrong, this is what I need:
>
> {{for member in org_member_data:}}
>
> what do you mean by:
>
for case my_org is empty i wrote:
if my_org:
not good enough? (if not empty?)
On Friday, December 27, 2013 8:37:55 PM UTC+2, Jonathan Lundell wrote:
>
> On 27 Dec 2013, at 10:23 AM, Avi A >
> wrote:
>
> Thanks,
> I wasn't wrong, this is what I need:
>
> {{for member in org_member_data:}}
>
> wh
On 27 Dec 2013, at 10:53 AM, Avi A wrote:
> for case my_org is empty i wrote:
> if my_org:
> not good enough? (if not empty?)
If that happens, what does the view see?
>
>
> On Friday, December 27, 2013 8:37:55 PM UTC+2, Jonathan Lundell wrote:
> On 27 Dec 2013, at 10:23 AM, Avi A wrote:
>> Th
user logged in
the view:
if he is in a group:
till now he will see the group members' data and take some action later on.
else:
will sign up for a group.
after page refresh will see the group members' data.
(will have a different page for modifying subscription.)
On Friday, December 27, 2013 8:5
Now I am able to get the list as you suggested with append.
But i don't know how to render it.
This is what I try in the view but it says that NameError: name 'auth_user' is
not defined:
{{for member in org_member_data:}}
{{=member[auth_user.email]}}
{{pass}}
On Friday, December 27, 201
On 27 Dec 2013, at 2:20 PM, Avi A wrote:
> Now I am able to get the list as you suggested with append.
> But i don't know how to render it.
> This is what I try in the view but it says that NameError: name 'auth_user'
> is not defined:
> {{for member in org_member_data:}}
> {{=member[auth_us
member.auth_user.email throws the same error.
auth_user.email is defined in the select on the controller, as far as i
understand,
among other fields from the auth user table..
On Saturday, December 28, 2013 12:35:54 AM UTC+2, Jonathan Lundell wrote:
>
> On 27 Dec 2013, at 2:20 PM, Avi A > wrote
On 27 Dec 2013, at 2:42 PM, Avi A wrote:
> member.auth_user.email throws the same error.
> auth_user.email is defined in the select on the controller, as far as i
> understand, among other fields from the auth user table..
It's not.
Try member.email. If that doesn't work, just display member a
yes i tried that one too.
{{=member}} renders inside each option atable with expected data:
auth_user.phone_numauth_user.car_num_0
auth_user.emailauth_user.profile_image
auth_user.first_nameauth_user.last_name0548102940111aviavia4u+1@g...
fileAviAbramovitch
On Saturday, December 28, 2013 12:35
I created a dict instead of a list and I'm getting there...thanks.
On Saturday, December 28, 2013 12:44:09 AM UTC+2, Jonathan Lundell wrote:
>
> On 27 Dec 2013, at 2:42 PM, Avi A > wrote:
>
> member.auth_user.email throws the same error.
> auth_user.email is defined in the select on the controlle
14 matches
Mail list logo