| Context Index | ||||
|---|---|---|---|---|
| cookie Functions: ==> | ||||
| OVERVIEW | get | getvals | load_session | set |
| expire | getlog | get_session_name | save_session | |
| Overview Of: cookie | Top | Context Index | Next Function |
|
General: intialize as object = cookie.cookie(<**keywords>) Note: **kw is generally not used. Use get(name) and set |
| Function: obj.expire | Top | Context Index | Previous Function | Next Function |
|
syntax: cky.expire(<cookie_name>) description: Expire a cookie by setting an expiration date in the past. |
| Function: obj.get | Top | Context Index | Previous Function | Next Function |
|
syntax: cky.get(<name>) Retrieve and parse cookie by name. If found, return Dict |
| Function: obj.getlog | Top | Context Index | Previous Function | Next Function |
|
syntax: cky.getlog(<name>) from: cooky name return email and password - in that order. |
| Function: obj.getvals | Top | Context Index | Previous Function | Next Function |
|
syntax: cky.getvals(<name>,<*keys>) return values for keys. |
| Function: obj.get_session_name | Top | Context Index | Previous Function | Next Function |
|
syntax: cky.get_session_name(<name>) Get session name for cookie |
| Function: obj.load_session | Top | Context Index | Previous Function | Next Function |
|
syntax: cky.load_session(<name>) Load session info from pickle file. |
| Function: obj.save_session | Top | Context Index | Previous Function | Next Function |
|
syntax: cky.save_session(<name>,<D>) Save session info in pickle format. |
| Function: obj.set | Top | Context Index | Previous Function |
|
syntax: cky.set(<name-string>,<attrsD>,<prefix=''>) Example: cky.set("mycookie",{'email':email,'password':password},'set by kbDispatcher.py') Result: Following format.'prefix(key1|val1)(key2|val2) .... (keyn|valn)' where one pair will have the following (self.session_token|randomstring) |