Back to index

plone3  3.1.7
Variables
getXMLSelectVocab Namespace Reference

Variables

dictionary params = {param:value, 'display_list': True}
 Script (Python) "getXMLSelectVocab" bind container=container bind context=context bind namespace= bind script=script bind subpath=traverse_subpath parameters=method,param,value title=Get a DisplayList and format for XML request.
tuple vocab = getattr(context, method)
tuple site_encoding = context.plone_utils.getSiteEncoding()
 RESPONSE = context.REQUEST.RESPONSE
 translate = context.translate
list results = [(translate(vocab.getValue(item)),item) for item in vocab]
list item_strings = [u'^'.join(a) for a in results]
string result_string = u'|'

Variable Documentation

list getXMLSelectVocab.item_strings = [u'^'.join(a) for a in results]

Definition at line 21 of file getXMLSelectVocab.py.

dictionary getXMLSelectVocab.params = {param:value, 'display_list': True}

Script (Python) "getXMLSelectVocab" bind container=container bind context=context bind namespace= bind script=script bind subpath=traverse_subpath parameters=method,param,value title=Get a DisplayList and format for XML request.

Definition at line 10 of file getXMLSelectVocab.py.

getXMLSelectVocab.RESPONSE = context.REQUEST.RESPONSE

Definition at line 15 of file getXMLSelectVocab.py.

Definition at line 22 of file getXMLSelectVocab.py.

list getXMLSelectVocab.results = [(translate(vocab.getValue(item)),item) for item in vocab]

Definition at line 19 of file getXMLSelectVocab.py.

tuple getXMLSelectVocab.site_encoding = context.plone_utils.getSiteEncoding()

Definition at line 13 of file getXMLSelectVocab.py.

getXMLSelectVocab.translate = context.translate

Definition at line 17 of file getXMLSelectVocab.py.

tuple getXMLSelectVocab.vocab = getattr(context, method)

Definition at line 12 of file getXMLSelectVocab.py.