AW: [Zope] Understanding dtml and/or its variables

Bartakovic, Damir Damir.Bartakovic@Dresdner-Bank.com
Wed, 21 Feb 2001 09:54:19 +0100


Hi, thanks.
I thought I have the lastest version :(
On zope.org ( =
http://www.zope.org/Members/zwork/Znolk_SQL_Wizard/index_html
) there is no version 0.1.3d!
After searching a bit on bluedynamics I found it.
Maybe someone can upload the newest version to zope.org or set a link =
to
bluedynamics.

Damir

> -----Urspr=FCngliche Nachricht-----
> Von: Philipp Auersperg [mailto:zope@philosoft.at]
> Gesendet: Mittwoch, 21. Februar 2001 04:32
> An: zope@zope.org; Damir Bartakovic
> Betreff: Re: [Zope] Understanding dtml and/or its variables
>=20
>=20
> Hi, I know of that problem, it seems that you have an old=20
> version of Znolk,=20
> because in the recent versions I have removed the '.' in the=20
> field names, so=20
> your solution for the future is just to download the newest=20
> Znolk version (0.1.3d)
> from www.bluedynamics.com or www.zope.org.
> ---------------------------------------------------------------------
>=20
> for your existing forms in the meanwhile you can help=20
> yourself with the following notation:
>=20
>  <dtml-unless "_['table.name']">
>=20
> Hope it helped
>=20
> Philipp Auersperg
> www.bluedynamics.com
>=20
> *********** REPLY SEPARATOR  ***********
>=20
> On 20.02.2001 at 18:18 Damir Bartakovic wrote:
>=20
> >Hi all,
> >
> >I am using ZnolkSQLWizard and it creates output like
> ><INPUT TYPE=3D"TEXT" NAME=3D"table.name"> ...
> >
> >Now I am trying to force the user not to leave the field blank.
> >Usually it works with <dtml-unless "somevariable"> ...  once again!
> >..</dtml-unless>
> >
> >but with <dtml-unless "table.name">  ... I get the error:
> >Error Type: NameError
> >Error Value: table (The Traceback is at the end)
> >
> >Like it seems it don't like the '.'?
> >
> >But for <dtml-var table.name> I'm getting the right value.
> >So what I'm not understanding? How can I solve it and is it=20
> a good idea to
> >use '.' in variables?
> >
> >Thanks
> >Damir
> >
> >
> >Traceback (innermost last):
> >  File=20
> /usr/local/share/zope/lib/python/ZPublisher/Publish.py, line 222, in
> >publish_module
> >  File=20
> /usr/local/share/zope/lib/python/ZPublisher/Publish.py, line 187, in
> >publish
> >  File /usr/local/share/zope/lib/python/Zope/__init__.py,=20
> line 221, in
> >zpublisher_exception_hook
> >    (Object: Traversable)
> >  File=20
> /usr/local/share/zope/lib/python/ZPublisher/Publish.py, line 171, in
> >publish
> >  File=20
> /usr/local/share/zope/lib/python/ZPublisher/mapply.py, line 160, in
> >mapply
> >    (Object: html_insert)
> >  File=20
> /usr/local/share/zope/lib/python/ZPublisher/Publish.py, line 112, in
> >call_object
> >    (Object: html_insert)
> >  File /usr/local/share/zope/lib/python/OFS/DTMLMethod.py,=20
> line 172, in
> >__call__
> >    (Object: html_insert)
> >  File=20
> /usr/local/share/zope/lib/python/DocumentTemplate/DT_String.py, line
> >528, in __call__
> >    (Object: html_insert)
> >  File=20
> /usr/local/share/zope/lib/python/DocumentTemplate/DT_Util.py, line
> >337, in eval
> >    (Object: table.name)
> >    (Info: table)
> >  File &lt;string&gt;, line 0, in ?
> >NameError: (see above)
> >
> >
> >_______________________________________________
> >Zope maillist  -  Zope@zope.org
> >http://lists.zope.org/mailman/listinfo/zope
> >**   No cross posts or HTML encoding!  **
> >(Related lists -=20
> > http://lists.zope.org/mailman/listinfo/zope-announce
> > http://lists.zope.org/mailman/listinfo/zope-dev )
>=20
>=20
>=20
>=20