gnue-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNUe-dev] forms import bug with patch candidate


From: chafar
Subject: Re: [GNUe-dev] forms import bug with patch candidate
Date: Thu, 10 Jun 2004 21:33:52 +0200
User-agent: Mutt/1.3.28i

Hello.

For information purposes about this bug, using the patch. With block
imports, at least, trigger namespace sucks: you can't use imported
blocks with triggers.

Another issue is that you can't use only imported pages, because
gnue-forms refuses running, saying about at least one page element is
needed.

This is changing _app for _instance in both places cited in my previous
post.

El lun, may 31, a las 10:22:59 address@hidden escribía:
> Hello.
> 
> I think someone is aware of import bug in gnue-forms, as there is a
> comment in GFForm.py about it.
> 
> I've tried a solution and works, but I can't know if it could have
> dangerous side-effects: in GImportItem::primaryInit
> from gnue-common/src/definitions/GParser.py, changing _app by _instance
> when self._xmlParser.loadFile is called.
> 
> There is another invocation that could be the same scenario, in
> GImport::primaryInit.
> 
> I'll attach a patch that changes only the former, which is the one I've
> tried (btw, just tried gnue-forms, not gnue-designer, nor the bug,
> neither the patch).
> 
> -- 
> José Esteban
> Granada - Spain
> http://alcances.net

> --- GParser-svn.py    Mon May 31 10:02:47 2004
> +++ GParser.py        Mon May 31 10:04:55 2004
> @@ -428,7 +428,9 @@
>       # Open the library and convert it into objects
>       #
>       handle = openResource(self.library)
> -     form = self._xmlParser.loadFile(handle, 
> self.findParentOfType(None)._app, initialize=0)
> +
> +     ######################  _app -> _instance
> +     form = self._xmlParser.loadFile(handle, 
> self.findParentOfType(None)._instance, initialize=0)
>       handle.close()
>       id = 'id'
>       if hasattr(self,'name'):

> _______________________________________________
> Gnue-dev mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/gnue-dev

greetings.
-- 
José Esteban
Granada - Spain
http://alcances.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]