On Mon, Apr 27, 2009 at 2:14 AM, OvermindDL1 <[email protected]> wrote:
>
> I was originally using what the quickstart built (Catwalk), but even
> when changed to the AdminController (as per the tg2 site
> documentation) I get the exact same issues.
>
> On any of my databases, if I click on new to create a new one, it
> seems it tried to create an empty row (which of course is going to
> fail rather miserably in the great majority of database schemas).  So,
> for example, if I try to create a new User, I get this nice error as
> soon as I click 'new' (which should not be doing any type of DB access
> at all):
> IntegrityError: (IntegrityError) is420_model_auth_user.user_name may
> not be NULL u'INSERT INTO is420_model_auth_user (user_name, password,
> created, first_name, last_name, address, city, state, zipcode,
> home_phone, cell_phone, birth_date) VALUES
> (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' [None, None, '2009-04-27
> 00:06:11.150000', None, None, None, None, None, None, None, None,
> None]
>
> So, how is this fixed?
>
This seems like a mismatch between your model class and your table schema.

> And no, some of the tables I am using cannot have null values on some
> of the columns (I do not control all the models, thus I cannot change
> those).
>
could you please post those?

> And yes, I searched this list, found someone mentioning this as a
> known bug many months ago, but nothing before or since.

link? please remenber tgadmin is very new and it may have some bugs on
edge cases.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to