Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 779601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:57:10+00:00 2026-05-14T19:57:10+00:00

I have been looking around a bit for info on how to do this.

  • 0

I have been looking around a bit for info on how to do this. Essentially I have a Model:

class SharableUserAsset(db.Model):
  name = StringProperty()
  users = ListProperty(users.User)

My questions are:

  1. What is the best way to associate users to this value where they are not authenticated, visa vi invite from contacts list etc.?
  2. Is there a reasonable way to present a list control easily in a djangoforms.ModelForm?
  3. Once a user logs in I want to be able to check if that user is in the list for any number of SharableUserAsset class “records”, how do I do that?
  4. Does user evaluate as a match to an email address or is there a way to look up a valid user against an email address?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T19:57:10+00:00Added an answer on May 14, 2026 at 7:57 pm

    In a query, comparing a list property
    to a value performs the test against
    the list members: list_property =
    value tests if the value appears
    anywhere in the list

    http://code.google.com/appengine/docs/python/datastore/typesandpropertyclasses.html#ListProperty

    So to find all the SharableUserAssets associated with the current user just query like:

    user = users.get_current_user()
    assets = SharableUserAsset.gql("WHERE users = :1", user)
    

    Here’s another reference dealing with ListProperty objects.

    An App Engine User object contains an email address, and the email address can be retireved using the .email() method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been looking around the web for this but cannot really find a
I have been looking around the site a bit, but I didn't find any
Can't get my head around this Jquery problem I have.. I've been looking around
I have been messing around with HtmlUnit for a little bit and particularly this
I know this question has been asked a bit before. But looking around I
I have been playing around with SQLite a little bit and I was looking
I have been looking around for an answer to this and have not been
I have been looking around for a visualization framework that would aid graph visualization
I have been looking around for solutions, and tried to implement what is often
I have been looking around ocn Google and Stackoverflow but haven't found what I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.