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 8245745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:17:14+00:00 2026-06-07T22:17:14+00:00

I am new with developing web applications with Google App Engine. I wanted to

  • 0

I am new with developing web applications with Google App Engine.

I wanted to check for entities in my datastore which have a null value set for a list property (db.ListProperty). However, when I tried to check anything against the entity.list GAE gives the error:

'super' object has no attribute 'list'.

After some search I saw in this SO question that setting an empty value for a list property of a GAE datastore entity is equivalent to not setting the property at all. This explains my error.

So I need to match entities in the datastore which do not have any list property set at all. Looking at the GAE documentation I still haven’t found any method which allows me to check whether an entity has a particular property set.

NOTE: I don’t have to do this with GQL. I can retrieve all entities with GQL, then check with python. But a GQL solution is also fine.

  • 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-06-07T22:17:15+00:00Added an answer on June 7, 2026 at 10:17 pm

    I can think of three ways around this.

    You’re probably running into this situation because originally your model did not have a ‘list’ attribute, and you added one later, so you might have older instances in the datastore without the ‘list’ attribute. You can write a mapreduce function that goes through your datastore and ensures all entities have the ‘list’ element.

    Otherwise, you can use the python hasattr function

    if hasattr(entity, 'list'):
        a = entity.list[0] # or whatever operation you want
    

    Thirdly, you can use an exception handler to catch the error case.

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

Sidebar

Related Questions

I'm developing new web app with Struts2 framework, eclipse, and I've mapped the db
I have this ajax web application I am developing that essentially calls the google
I'm working on developing new Spring web applications, on a team that's developed a
we have a production site like www.Domain1.com, and developing a new web application www.domain2.com,
I am currently developing GA reporting web app for my company using asp.net Google
I'm developing a web page with a Google maps application. Currently, I have a
I'm developing a web application for a new service, starting from Firefox 3.5. The
I'm new to web developing. This is part of a phone service, and I'm
I am a new ASP.NET developer and I am developing a web-based suggestions box
I'm developing a new set of web services at my company. My manager asked

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.