Home | Trees | Indices | Help |
---|
|
object --+ | post_walk_rules.PostWalkRules --+ | ClientProps
This class is used by the main API class and should not be used directly. This class tries to extract properties provided from the client side component.
Copyright: Copyright (c) Afilias Technologies Limited 2021. All Rights Reserved.
Author: Afilias Technologies Limited
Nested Classes | |
Inherited from |
Instance Methods | |||
|
|||
|
|||
|
|||
Inherited from |
Class Variables | |
KEY_CP_RULES =
|
|
KEY_USER_AGENT =
|
|
Inherited from |
Properties | |
Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
Merge the tree walk properties with the client side properties and run any additional rules based on the client side and tree walk properties. The rules can define replacement or additional values for properties and can also provide a new User-Agent to be used for a second tree walk. This is a typically a fake User-Agent mapped to a device that cannot normally be detected such as the various iPhone models.
|
Parse the client side properties string into a dictionary, sets to Tree properties and returns the properties as dictionary. The client_side_properties is of the form:: bjs.webGl:1|sdeviceAspectRatio:16/10|iusableDisplayHeight:1050 Each key:value pair of the client_side_properties is checked for sanity, if it is not valid then the key:value will be ignored. The first character of the property name is the type of the value.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri May 7 16:22:21 2021 | http://epydoc.sourceforge.net |