Hi Mario, thanks for the answer. Your explanations were quite enlightening, it do not know yet much about the internals of Plone.
Thanks for the patch, we will try and integrate it. Cheers, Andreas Mario Amelung wrote: > Hi Andreas, > > On 14.05.2008 18:41 Uhr, Andreas Abel wrote: >> now I have located the source of the bug: It is an unicodeError in >> the German grading email notification to the students. >> >> When the automatic notification is turned on, action "Grade" fails >> inbetween due to a unicode conversion error. > > This seems to be a problem with the 'translate' method in Plone 2.5. > Unlike Plone 2.1.x 'translate' in Plone 2.5 now returns an Unicode > string. This causes an Unicode error during the e-mail send process if > the message text contains special characters, e.g., German umlauts. > > I fixed the sendEmail method in ECABTool.py and added some more log > messages (see attached patch file). The CVS version already contains > this fix and it will be included in the next release. > >> The workflow information becomes inconsistent: >> >> - when viewing a single ECAssignment, it is displayed as "graded" >> >> - in the all_assignments listing it is display as "accepted" > > The workflow information for an Plone-object is also stored in Plone's > so-called 'portal catalog', as well as other meta information like > title, author or content type. Portal catalog is often used for > performance issues, e.g., if one want to display title and author for a > large number of objects it's not necessary to get the »real object« from > database (could be very slow). > > Showing a single ECAssignment the workflow information is obtained from > the real object. The all_assignments listing instead uses information > from the catalog. > > However, the above Unicode error (raised during workflow transition from > accepted to graded) prevented the portal catalog from being updated - in > my opinion an unpleasant problem in Plone. Therefore the workflow > information becomes inconsistent. > >> Current workaround: switch off notifications and perform the actions >> retract, accept, grade. > > An alternative is to set 'default language' (site setup -> portal > settings) to English, even though that students get English e-mail > messages. > > For now it would be the best to apply the attached patch for ECABTool.py > in <zope_instance>/Products/ECAssignmentBox/. > >> To the developers: >> >> [...] >> >> - However, there seems to be a design flaw in the workflow. The >> state of an assignment should not be saved in two different >> locations, because that might result in the database getting >> inconsistent. [...] > > See above; maybe someone should give an advice to the Plone developers. > > Best wishes, > Mario > -- Andreas Abel <>< Du bist der geliebte Mensch. Theoretical Computer Science, University of Munich http://www.tcs.informatik.uni-muenchen.de/~abel/ _______________________________________________ eduComponents mailing list [email protected] https://listserv.uni-magdeburg.de/mailman/listinfo/educomponents
