OK this works only after adding config['pylons.strict_c'] = True to
environment.py:
%if not hasattr(c, 'name'):
c.name has no attribute 'name'
%else:
c.name has attribute ${c.name}
%endif
I still don't get why hasattr on c has to return True if pylons.strict_c
is turned off (well I do understand that if strict_c is turned off you
can enter c.anynonexistentname in template and get empty string, but is
it strictly necessary?)
Regards,
mki
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---