MOAI Content Module

class moai.content.DictBasedContentObject

Simple Content object that gets its content from a python dictionary. Implements IContentObject

field_names()
get_assets()
get_values(field_name)
update(data, provider)
class moai.content.XMLContentObject

Content object that gets an xml string, parses it, and uses xpath expressions to extract the values. Implements IContentObject.

field_names()
get_assets()
get_values(field_name)
update(path, provider)
xpath(xpath, name, pytype, required=False, multi=False)
"Moai at Tongariki", photo: Vera & Jean-Christophe. Creative Commons License

Previous topic

MOAI Server Module

Next topic

MOAI Error Module

This Page

Quick search