This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
cookbooks:3.2.x:transformations [2011/12/15 16:17] 85.178.75.55 [{s.prefixes.quoted[,len]}] |
cookbooks:3.2.x:transformations [2018/07/12 08:31] gaaf [{re.subst,expression}] |
||
---|---|---|---|
Line 185: | Line 185: | ||
$var(x) = " | $var(x) = " | ||
$(var(x){s.replace, | $(var(x){s.replace, | ||
+ | </ | ||
+ | |||
+ | ==== {s.ftime, | ||
+ | |||
+ | |||
+ | Format the epoch in the pv according to the parameter. The parameter has to be strftime formatting string. | ||
+ | | ||
+ | <code c> | ||
+ | $(TS{s.ftime, | ||
</ | </ | ||
===== URI Transformations ===== | ===== URI Transformations ===== | ||
Line 198: | Line 207: | ||
==== {uri.host} ==== | ==== {uri.host} ==== | ||
- | (same as [b]{uri.domain}[/b]) | + | (same as **{uri.domain}**) |
Return the domain part | Return the domain part | ||
Line 331: | Line 340: | ||
===== To-Body Transformations ===== | ===== To-Body Transformations ===== | ||
- | <hi #c0c0c0>This transformation class is exported by **pv** module.</ | + | <fc #0000ff>This transformation class is exported by **pv** module.</ |
Access parts of a ToBody-like structure. | Access parts of a ToBody-like structure. | ||
Line 362: | Line 371: | ||
===== Regular Expression Transformations ===== | ===== Regular Expression Transformations ===== | ||
- | <hi #c0c0c0>This transformation class is exported by **textops** module.</ | + | <fc #0000ff>This transformation class is exported by **textops** module.</ |
==== {re.subst, | ==== {re.subst, | ||
- | Perform | + | Perform |
<code c> | <code c> | ||
Line 394: | Line 403: | ||
===== SQL Transformations ===== | ===== SQL Transformations ===== | ||
- | <hi #c0c0c0>The transformations in this class are exported by the **sqlops** module.</ | + | <fc #0000ff>The transformations in this class are exported by the **sqlops** module.</ |
==== {sql.val} ==== | ==== {sql.val} ==== | ||
Line 445: | Line 454: | ||
</ | </ | ||
- | * Test if whether is un-registration or not | + | * Test whether is un-registration or not |
< | < |