Package Camelot :: Package camelot :: Package view :: Module utils
[frames] | no frames]

Module utils

source code

Helper functions for the view subpackage
Classes
  ParsingError
Functions
 
local_date_format()
Get the local data format and cache it for reuse
source code
 
string_from_string(s) source code
 
bool_from_string(s) source code
 
date_from_string(s) source code
 
time_from_string(s, format='%H:%M') source code
 
datetime_from_string(s, format='%d-%m-%Y %H:%M') source code
 
int_from_string(s) source code
 
float_from_string(s) source code
 
pyvalue_from_string(pytype, s) source code
 
enumeration_to_string(value) source code
Variables
  logger = logging.getLogger('camelot.view.utils')
  operator_names = {<built-in function eq>: u'=', <built-in func...
  __package__ = 'Camelot.camelot.view'
Variables Details

operator_names

Value:
{<built-in function eq>: u'=',
 <built-in function ge>: u'>=',
 <built-in function gt>: u'>',
 <built-in function le>: u'<=',
 <built-in function lt>: u'<',
 <built-in function ne>: u'!=',
 <function between_op at 0x96a8a3c>: u'between',
 <function like_op at 0xb51472c>: u'like'}