| |
- builtins.object
-
- Feed
- enum.Enum(builtins.object)
-
- FIELDS
class FIELDS(enum.Enum) |
|
FIELDS(value, names=None, *, module=None, qualname=None, type=None, start=1)
An enumeration. |
|
- Method resolution order:
- FIELDS
- enum.Enum
- builtins.object
Data and other attributes defined here:
- author = <FIELDS.author: 1>
- categories = <FIELDS.categories: 5>
- comments = <FIELDS.comments: 7>
- description = <FIELDS.description: 3>
- guid = <FIELDS.guid: 0>
- link = <FIELDS.link: 4>
- pubDate = <FIELDS.pubDate: 6>
- title = <FIELDS.title: 2>
Data descriptors inherited from enum.Enum:
- name
- The name of the Enum member.
- value
- The value of the Enum member.
Readonly properties inherited from enum.EnumMeta:
- __members__
- Returns a mapping of member name->value.
This mapping lists all enum members, including aliases. Note that this
is a read-only view of the internal mapping.
|
class Feed(builtins.object) |
|
Feed(environ: os._Environ, user: ~User, server: ~Server, category: str, arguments: Dict[str, Dict[str, str]], inputs: List[str], csrf_token: str = None) -> Tuple[str, Dict[str, str], Iterable[bytes]]
This class implements the RSS feed. |
|
Class methods defined here:
- csv(environ: os._Environ, user: ~User, server: ~Server, category: str, arguments: Dict[str, Dict[str, str]], inputs: List[str], csrf_token: str = None) -> Tuple[str, Dict[str, str], str] from builtins.type
- This function prints the RSS feed content as CSV.
- generator(full_url: str, base_url: str, rss_path: str, category: str) -> Iterable[bytes] from builtins.type
- This generator returns RSS feed content.
- json(environ: os._Environ, user: ~User, server: ~Server, category: str, arguments: Dict[str, Dict[str, str]], inputs: List[str], csrf_token: str = None) -> Tuple[str, Dict[str, str], str] from builtins.type
- This function prints the RSS feed content as JSON.
Static methods defined here:
- __new__(cls: type, environ: os._Environ, user: ~User, server: ~Server, category: str, arguments: Dict[str, Dict[str, str]], inputs: List[str], csrf_token: str = None) -> Tuple[str, Dict[str, str], Iterable[bytes]]
- This function prints the RSS feed.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes defined here:
- __annotations__ = {'default': typing.List[str], 'optional': typing.List[str], 'required': typing.List[str], 'rss_path': <class 'str'>}
- default = ['author', 'guid', 'pubDate', 'lastBuildDate']
- optional = ['comments']
- required = ['title', 'description', 'link', 'categories']
- rss_path = None
| |