Dakila ha scritto:
> At what is says, check if the the visit_key column has
> 958ca26af66ca17a2bc09229f49674715a5291e1 isin your visit table.  Not
> sure why it happens, but maybe you can also check if visit is on in
> your config/app.cfg
>   
My app.cfg has enabled the following items:

visit.on=True
visit.manager="sqlalchemy"
visit.saprovider.model = "myapp.model.Visit"
identity.saprovider.model.visit="myapp.model.VisitIdentity"

I don't know about others like the following:

# visit.timeout=20
# visit.cookie.name="tg-visit"
# visit.cookie.domain=None
# visit.cookie.path="/"
# identity.source="form,http_auth,visit"



> On Sep 15, 3:31 pm, jo <[EMAIL PROTECTED]> wrote:
>   
>> *Hi,
>>
>> from time to time TG gives me this error message. Any ideas how to solve
>> the problem?
>>
>> sqlalchemy.exceptions.SQLError: (IntegrityError) insert or update on
>> table "visit_identity" violates foreign key constraint
>> "visit_identity_visit_key_fkey" DETAIL: Key
>> (visit_key)=(958ca26af66ca17a2bc09229f49674715a5291e1) is not present in
>> table "visit". 'INSERT INTO visit_identity (visit_key, user_id) VALUES
>> (%(visit_key)s, %(user_id)s)' {'visit_key':
>> '958ca26af66ca17a2bc09229f49674715a5291e1', 'user_id': 1734}
>>
>> jo
>>
>> *
>>     
>
>
> >
>   


--~--~---------~--~----~------------~-------~--~----~
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