If you can, please log in before submitting your issue.
#7 — Linguaplone references lost
|Submitted on||Jan 27, 2006|
The error occured during Update Schema (archetypes_tool) on a custom AT content type.
After updateing the schema, all Linguaplone references are lost.
The same behaviour seems to apply to the build in ATDocument .
My content type:
from AccessControl import ClassSecurityInfo
from Products.Archetypes.atapi import *
from Products.LinguaPlone.public import *
HAS_LINGUAPLONE = False
HAS_LINGUAPLONE = True
from Products.Employee.config import *
description="lastname_firstname (lower case letters only!)",
description="For example Division Head, Secretary, etc",
Employee_schema = BaseSchema + \
security = ClassSecurityInfo()
__implements__ = (getattr(BaseContent,'__implements__',()),)
# This name appears in the 'add' box
archetype_name = 'Employee'
meta_type = 'Employee'
portal_type = 'Employee'
allowed_content_types = 
filter_content_types = 0
global_allow = 1
allow_discussion = 0
#content_icon = 'Employee.gif'
immediate_view = 'base_view'
default_view = 'base_view'
suppl_views = ()
typeDescription = "Employee"
typeDescMsgId = 'description_edit_employee'
schema = Employee_schema
- Steps to reproduce:
- select archetype_tool
Update the following classes: myclass
Update: All objects
Added by Peter Nilsson on Feb 08, 2006 10:46 AMThis sounds like a problem we have had on our site. We seem to have lost Linguaplone references for some of our custom content types and until now I had no idea why.
Severity: Critical → Medium
Target release: 1.0 → None
Responsible manager: deo → (UNASSIGNED)
System Platform linux2
Linguaplone 0.9.0 Beta - r4895
Added by (anonymous) on Feb 14, 2006 06:26 PMHi
i have the same problems and i think the reason is that the update schema tool does a "create-copy" update. First ist creates a new object for your type and then it inserts the values from the old one into it and later renames the new oe after delting the old one. unfortunally the whole "is translation of" archetype ref's are not updated. At least that is what i think is going on.
as nobody in the malinglists had any help for me i just stoped using update schema. if you edit an old object new fields are ready to be used anyway. you just have to make shure to check in your programm logic if the fields are pressent in the current object and if not output some default value.
Added by Robert Andersson on Apr 07, 2006 01:20 PMwe have experienced the same problem att our site. using plone 2.1.2, zope 2.7.8, python 2.3.5.
Added by (anonymous) on Apr 07, 2006 05:45 PMThis should probably be reported in the plone tracker, as there are no "LinguaPlone references" - it uses Archetypes references, so if you lost the translation reference, you have most likely lost all references in your site.
Added by Alex Limi on Jun 17, 2006 06:25 AMLeaving for deo to comment.
Issue state: unconfirmed → open
Target release: None → 1.0
Responsible manager: (UNASSIGNED) → deo
Added by Alex Limi on Jun 28, 2006 02:03 PM
Issue state: postponed → open
Added by Harald Friessnegger on Oct 05, 2006 09:43 AMi could apply the patch to revision 9516 (somehere between the 0.9.0 beta and 0.9 final releases)
and can confirm that it solved the problem of lost references.
thank you sooooo much andreas!
Added by Alex Limi on Oct 05, 2006 05:18 PMSince this seems to be working for people, I'm escalating it. We should get a new release out in time for the Conference. :)
Issue state: postponed → in-progress
Severity: Medium → Critical
Added by Harald Friessnegger on Apr 05, 2007 02:46 PMis there any reason not to include this in trunk?
Added by Wichert Akkerman on Jun 14, 2007 10:34 AMThe patch has not been merged yet since it is lacking proper tests. I'll try to write a proper test and merge this soon.
Added by Wichert Akkerman on Jun 19, 2007 02:33 PMA test and a fix for those issue have been committed to svn and will be included in the upcoming 1.0 release.
Issue state: in-progress → resolved
No responses can be added.
If you can, please log in before submitting a reaction.