better handling for not-defined items in Genshi
authorgfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Sun, 8 Mar 2009 20:01:43 +0000 (20:01 +0000)
committergfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Sun, 8 Mar 2009 20:01:43 +0000 (20:01 +0000)
commitdaabb45c304f77eef1fa3cd12281d704a8fc0cd5
tree7d9aa4353b1cc5db4c059a987cceb6751a555117
parent663364e4fea5084c3deb7d3c5990a800a3a04c77
better handling for not-defined items in Genshi

In days of yore, Genshi had special handling for references to
undefined variables. They were basically treated as null/empty values;
they would evaluate as False in tests; and they would display as
''. That changed out from underneath me, somewhere along the Genshi
path. The modern way is to use a test, "defined('foo')" before
attempting to access 'foo'.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@151 6d9bc8c9-1ec2-4278-b937-99fde70a366f
conifer/syrup/views.py
conifer/templates/auth/login.xhtml