Fwd: Today's question,

3 views
Skip to first unread message

Christian Boulanger

unread,
May 5, 2010, 9:31:13 AM5/5/10
to qxtran...@googlegroups.com, Yan Guiborat
Hello List,

forwarding an email from Yan - I think Oliver had the exact same problem as Yan -- can you post your solution again, cc'in Yan - Yan, I suggest you join the qxtransformer google group...

Thanks,
Christian

---------- Forwarded message ----------
From: Yan Guiborat <xxx>
Date: 2010/5/5
Subject: Today's question,
To: Christian Boulanger <xxxx>


I think I manage to set up my backend, but I have now a small pb while qxTransforming.

This is what I am getting using frontend files from tutorial:

============================================================================
    INITIALIZING: LICNET
============================================================================
>>> Configuration: config.json
>>> Jobs: transform
>>> Resolving config includes...
  - ! Shadowing job "libraries" with local one
  - ! Shadowing job "source-script" with local one
  - ! Shadowing job "build-script" with local one
  - ! Shadowing job "common" with local one
>>> Resolving jobs...
>>> Incorporating job defaults...
>>> Resolving macros...
>>> Resolving libs/manifests...

============================================================================
    EXECUTING: TRANSFORM
============================================================================
>>> Initializing cache...
>>> Executing shell command "python /opt/qooxdoo-contrib/QxTransformer/trunk/tool/bin/qxtransformer.py --dir source/class --out source/class -v 'main:INFO;dev:INFO;' -D 'dialect.json'"...
[INFO] - Your project directory: /home/www/licnet
[INFO] - QxTransformer directory: /opt/qooxdoo-contrib/QxTransformer/trunk/tool/bin
[INFO] - Processing directory /home/www/licnet/source/class
[INFO] - Processing file /home/www/licnet/source/class/licnet/Application.xml
[ERROR] - 'NoneType' object has no attribute 'get'
>>> Done

The pb diseapear if I remove the components belonging to licnet.components.* namespace. ( Body, toolbar and footer  )


Hopefully you won't be annoyed by this question !

Yan

 


--
You received this message because you are subscribed to the Google Groups "QxTransformer" group.
To post to this group, send email to qxtran...@googlegroups.com.
To unsubscribe from this group, send email to qxtransforme...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/qxtransformer?hl=en.

Oliver Friedrich

unread,
May 5, 2010, 11:59:16 AM5/5/10
to qxtran...@googlegroups.com, Yan Guiborat
Hi Yan,

hmm, don't know exactly what was wrong or what i have changed for this
special problem as i have experimented a lot ...

One thing were different namespace definitions in the component files
compared to the Application.xml.

I now use a similar "header" like these lines in my xml files:
> <?xml version="1.0" encoding="utf-8"?>
> <qxt:component
> xmlns:qx="http://www.qxtransformer.org/qooxdoo"
> xmlns:qxt="http://www.qxtransformer.org/extension"
> xmlns:qcl="http://www.qooxdoo.org/contrib/qcl/trunk"
> xmlns:components="app.components.*"
> className="app.ui.imageview.TiledImageView"
> tagName="tiledImageView"
> author="Oliver Friedrich"
> extend="app.ui.imageview.TiledImageViewClass">


Also my python and the lxml were updated during these days ...

Python 2.6.5
python-lxml 2.2.6


If this aren't the right hints, let me know. Perhaps i can remember for
something else ...

Cheers,
Oliver

netboz

unread,
May 5, 2010, 11:42:04 AM5/5/10
to QxTransformer
Hi,

I'm having this same problem about lxml python module: 'NoneType'
object has no attribute 'get'


I went through the previous topic and updated lxml to 2.2.6 but the
problem persists.
My python version is python-2.5.5 and my system is FreeBSD 7.1-
RELEASE.

So may be I should update my python to 2.6 but this version isn't
available through ports so may be someone could assert that this would
solve the problem.

I any case any help could be appreciated.

Sincerely,

Oliver Friedrich

unread,
May 5, 2010, 3:10:08 PM5/5/10
to qxtran...@googlegroups.com
Hi Yan,

Do you have checked the namespace definitions in your components xml
files like i have mentioned in my mail?

Cheers,
Oliver

netboz

unread,
May 5, 2010, 5:30:22 PM5/5/10
to QxTransformer
Hi, Oliver,

I decided to give a try to your solution before sleeping [ hoping it
would fix so that I could wake up happy :-) ... ] and it did the trick
for this pb.

My XML templates are now starting like you said:

<?xml version="1.0" encoding="utf-8"?>
<qx:application
xmlns:components="licnet.components.*"
className="licnet.Application"
author="Yan Guiborat"
....

And I managed to transform Toolbar.xlm, still a pb with Body.xml, but
this is another pb I think.

So Thanks !!

Yan.

Siarhei Barysiuk

unread,
May 6, 2010, 9:30:56 AM5/6/10
to qxtran...@googlegroups.com
Hi Yan,

Sorry for a late response. To find out what's exactly wrong you can
use debug logger level - you will get more information.

To enable debug level, please change QXT_VERBOSE property in your
config.json to

"QXT_VERBOSE": "main:DEBUG;dev:INFO;"

Let me know your output.

Thanks,
Serge
Reply all
Reply to author
Forward
0 new messages