[Zope-dev] z3c.rml test failures

Baiju M mbaiju at zeomega.com
Tue Oct 16 09:11:25 EDT 2007


Hi Stephan,
           I am getting some test failure in z3c.rml trunk.
One issue is due to the use of non-existing 'font' tag.
I can't find this tag in 'rml.dtd' and reference.
(But I can see a single use of 'font' tag in reference, but it
 is in a different context, I think should should be replaced
 as described below)

All the places where 'font' tag used is as a child of 'title' tag.
And 'face' is the only attribute used for the font tag in tests.

Now 'title' has a 'fontName' attribute, from the DTD and
reference I deduced that tests should use this instead of
'font' tag, is it correct ?

There is another issue when I run tests in level 2, this can be solved
by using few more arguments to Popen . (see the patch attached)

There is one more remaining issue while parsing 'tag-textField.xml'
I have given the trace back below, but if I parse this file individually,
there is no test failure !  May be this is due to tests are not cleaned up
properly.


Regards,
Baiju M

Error in test runTest (z3c.rml.tests.test_rml.tag-textField)
Traceback (most recent call last):
  File "/baiju/usr//lib/python2.4/unittest.py", line 260, in run
    testMethod()
  File "/home/baiju/office/z298i/z3c.rml/src/z3c/rml/tests/test_rml.py", 
line 60, in runTest
    rml2pdf.go(self._inPath, self._outPath)
  File "/home/baiju/office/z298i/z3c.rml/src/z3c/rml/rml2pdf.py", line 
64, in go
    doc.process(outputFile)
  File "/home/baiju/office/z298i/z3c.rml/src/z3c/rml/document.py", line 
281, in process
    self.canvas.save()
  File 
"/home/baiju/office/z298i/z3c.rml/src/reportlab/pdfgen/canvas.py", line 
877, in save
    self._doc.SaveToFile(self._filename, self)
  File 
"/home/baiju/office/z298i/z3c.rml/src/reportlab/pdfbase/pdfdoc.py", line 
219, in SaveToFile
    f.write(self.GetPDFData(canvas))
  File 
"/home/baiju/office/z298i/z3c.rml/src/reportlab/pdfbase/pdfdoc.py", line 
241, in GetPDFData
    return self.format()
  File 
"/home/baiju/office/z298i/z3c.rml/src/reportlab/pdfbase/pdfdoc.py", line 
384, in format
    IOf = IO.format(self)
  File 
"/home/baiju/office/z298i/z3c.rml/src/reportlab/pdfbase/pdfdoc.py", line 
778, in format
    fcontent = format(content, document, toplevel=1) # yes this is at 
top level
  File 
"/home/baiju/office/z298i/z3c.rml/src/reportlab/pdfbase/pdfdoc.py", line 
95, in format
    f = element.format(document)
  File 
"/home/baiju/office/z298i/z3c.rml/src/reportlab/pdfbase/pdfform.py", 
line 175, in format
    return proxy.format(document)
  File 
"/home/baiju/office/z298i/z3c.rml/src/reportlab/pdfbase/pdfpattern.py", 
line 54, in format
    L.append(format(value, document))
  File 
"/home/baiju/office/z298i/z3c.rml/src/reportlab/pdfbase/pdfdoc.py", line 
93, in format
    return document.Reference(element).format(document)
  File 
"/home/baiju/office/z298i/z3c.rml/src/reportlab/pdfbase/pdfdoc.py", line 
475, in Reference
    raise ValueError, "object named but not registered"
ValueError: object named but not registered

-------------- next part --------------
A non-text attachment was scrubbed...
Name: z3c-rml.diff
Type: text/x-patch
Size: 10208 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20071016/eb24fa85/z3c-rml-0001.bin


More information about the Zope-Dev mailing list