Export to GitHub

yadsel - issue #1

Supports recursive and field name as value of Update statement


Posted on Nov 16, 2007 by Swift Bear

As Jose Espedito says, when he uses following code:

{{{ Update('DESCRICOES_CONSUMO', Set(unidade=unidade) ).append_to(self) }}}

yadseltool raises this:

{{{ Driver: FirebirdDriver Upgrading... Traceback (most recent call last): File "yadseltool", line 204, in ? File "yadseltool", line 117, in do File "yadsel\core\versions.pyc", line 146, in upgrade File "yadsel\core\versions.pyc", line 69, in script_for_upgrade File "yadsel\core\versions.pyc", line 90, in __generate_script File "yadsel\core\versions.pyc", line 235, in do_up File "C:\Projetos\Phonus\Empresas 3\db\atualizacao\yadsel_versions\versao_111. py", line 51, in up Set(unidade=unidade) NameError: global name 'unidade' is not defined }}}

the reason is that 'unidade' attributed as value of arg, and it is not a valid statement.

We need to find a way to supports this.

Comment #1

Posted on Dec 10, 2007 by Swift Bear

A suggestion is works with a class called 'Same()' or 'ItSelf()' for recursive values.

Status: New

Labels:
Type-Defect Priority-Medium