File: models.markdown

package info (click to toggle)
python-diaspy 0.6.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 352 kB
  • sloc: python: 1,600; makefile: 149
file content (12 lines) | stat: -rw-r--r-- 312 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#### `diaspy` models

Design of models in `diaspy` follow few simple rules.


##### Initialization

First argument is always `Connection` object stored in 
`self._connection`.  Parameters specific to each model go after it.

If model requires some king of id (guid, conversation id, post id) it is
 simply `id`.