| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
s3rest.S3Method --+
|
S3Organizer
Calendar-based CRUD Method
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
| Class Methods | |||
|
|||
| Static Methods | |||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
| Properties | |
|
Inherited from |
| Method Details |
Page-render entry point for REST interface.
|
Render the organizer view (HTML method)
|
Extract the resource data and return them as JSON (Ajax method)
@param r: the S3Request instance
@param attr: controller attributes
TODO correct documentation!
@returns: JSON string containing an array of items, format:
[{"id": the record ID,
"title": the record title,
"start": start date as ISO8601 string,
"end": end date as ISO8601 string (if resource has end dates),
"description": array of item values to render a description,
TODO:
"editable": item date/duration can be changed (true|false),
"deletable": item can be deleted (true|false),
},
...
]
|
Update or delete calendar items (Ajax method)
|
Parse the resource configuration and add any fallbacks
@param resource: the S3Resource
@returns: the resource organizer configuration, format:
{"start": S3ResourceField,
"end": S3ResourceField or None,
"use_time": whether this resource has timed events,
"title": selector or callable to produce item titles,
"description": list of selectors for the item description,
}
|
Parse an interval string of the format "<ISO8601>--<ISO8601>" into a pair of datetimes
|
Helper method to prefix an unprefixed field selector
|
|
Format a date/datetime as ISO8601 datetime string
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Mar 15 08:51:50 2019 | http://epydoc.sourceforge.net |