xlate¶
-
class
dbbase.utils.
xlate
[source]¶ This function translates a name to camel case or back.
- Default:
xlate(key, camel_case=True)
Example
camel_case is True: start_date would become startDate startdate would remain startdate
camel_case is False: startDate would become start_date startdate would remain startdate
- Parameters
key – (str) : the key that would be converted
camel_case – (bool) : True to convert to camel case
- Returns
key (str) – the converted string