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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:58:23+00:00 2026-06-13T00:58:23+00:00

This should be a simple one. I am building a google app engine app.

  • 0

This should be a simple one. I am building a google app engine app. It makes a list of forms dyanmically using a list of entities called blocks. The blocks have various properties, the labels on the radio buttons, the size of the text area, that kind of thing. I iterate over a list of these blocks in a jinja template, picking out the particulars of the form from the properties of that particular block. That all works fine.

However, I would like to include a unique identifier for the block entity that I am using to build the form within the form. That will give me an efficient way of knowing what my user is responding to when he sends me a response.

I tried:

<form>
    <input type="hidden" name="qKey" value="{{block.id}}">

That returns the following to my browser:

<form>
    <input type="hidden" name="qKey" value="">

Then I tried:

    <form>
        <input type="hidden" name="qKey" value="{{block.key}}">

That returned:

<form>
    <input type="hidden" name="qKey" value="<bound method Block.key of <dynamicsurvey2.Block object at 0x10a092f10>>">

Any thoughts would be much appreciated.

  • 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-13T00:58:25+00:00Added an answer on June 13, 2026 at 12:58 am

    Jinja2 doesn’t automatically call functions for you, and .key() is a function, not a property.

    Instead of {{block.key}} you need to use {{block.key()}} to actually call the function and get the return value.

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

Sidebar

Related Questions

This should be a simple one: I have an observableArray object called To in
This should hopefully be a simple one. When using a date time picker in
This should be a simple one and I am dissapointed with myself but cant
This should be a simple one, but I'm a beginner with C#. Given a
Just starting out, this should be a simple one but I haven't been able
This should be a really, really simple one, I would assume. I'm throwing together
I'm building a simple drawing app using the new Meteor.js app platform and paper.js.
I'm building a simple app that allows the user to drag a list of
This should be simple. Question How do you get a pointcut in one project
I'm building a simple multi-user (multi-tenant?) App with ASP.NET MVC3 and EF4, one database,

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.