Skipole WSGI generator.


Introduction Getting Started Your Code start_call submit_data end_call PageData SectionData skicall Serving wsgi

Development at GitHub:


As well as page widgets and fields, you can also set section widget and field data into the skicall object.

To do this, create a SectionData object.

from skipole import SectionData

sd = SectionData("sectionalias") - sectionalias being the alias given to the section when inserted into a page.

This instance is a dictionary-like object that also has certain attributes. It can be set with data, and then inserted into the skicall object with:


or it can be inserted into a PageData instance with:


The keys of the SectionData instance sd are of the form:

sd[widgetname,fieldname] = value

This framework often refers to the key tuple (widgetname,fieldname) as a widgfield.

As well as dictionary keys, attributes can be set:

sd.hide - If True, the section will be hidden.

sd.multiplier - If set to a number, the section will be multiplied down the page.

sd.multiplier_tag - if multiplied, this sets the containing tag, typically "div".

sd.section_class - Sets the CSS class of the section. - Normally True, if set False, the section is not included in the page.



This classmethod returns an instance of the SectionData class given a dictionary as produced by the to_dict method.


Returns a dictionary containing all the information of the SectionData object, with keys as a string. This may be useful for storing the data in a cache or database.


Clears all data from the instance.


Returns a copy of this section with a new sectionalias


Sets the sd.multiplier to number and returns the given number of SectionData objects each with sectionalias of sectionalias_0, sectionalias_1,.. etc