RE: [Zope] Instance conversion
I am having trouble attempting to access a Confera Topic instance given it's string name.
I can: <!--#in "objectValues('Confera Topic')" skip_unauthorized=1 sort=bobobase_modification_time --> <!--#if sequence-var-has_items--> . . . <!--#/if--> <!--#/in objectValues-->
or: <!--#if "testConfera.has_items()"--> . . . <!--#/if-->
noting that testConfera is a <Topic Instance at xxx>
However, I can't figure out how to retrieve the Topic Instance given the string name 'testConfera'. I can get several different types of instances (such as <ResultSet instance at xx>, but not a Topic Instance.
How to??
Thanks Kent
If, for example, you passed in the name of the Confera in question as the form variable 'confera_name', you should be able to do either: <!--#var "_.getattr(this(), confera_name)"--> or simply: <!--#var "_[confera_name]"--> ...the main difference is that the second form will try to call the object automatically, which is in some cases not what you want - either method should work for a Confera though. Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com
participants (1)
-
Brian Lloyd