Git-Host / gaeframework

Automatically exported from code.google.com/p/gaeframework
0 stars 0 forks source link

Set required value with Forms after form will created #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create new model with required field
2. create a form to work with this model
3. try to create form instance without passing required fields. For example, we 
need create form for user with user name (we give this data from session) and 
we not have information about user location (city).

What is the expected output? What do you see instead?
I want to get form object and add information to form in the next few lines of 
code. But, instead, I see that we need pas all required parameters now, and all 
not required parameters we can pass later. This is not normal as I see.

Please use labels and text to provide additional information.
I have fixed this problem in previous time in db.__init__.py where I have 
changed Model class method "__init__" by changind last lines to this: 
http://code.google.com/p/gaeframework/source/browse/src/gae/db/__init__.py#110

This lines create a problem if we need set defalt (None) value for 
SelfReferenceProperty. For example, we need create category without parent, or 
delete parent category.

Original issue reported on code.google.com by anton.danilchenko on 24 Jan 2011 at 2:24

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by anton.danilchenko on 24 Jan 2011 at 2:24