~lifeless/storm/bug-620615

« back to all changes in this revision

Viewing changes to storm/variables.py

Merging fixes from James.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
import re
25
25
 
26
26
from storm.exceptions import NoneError
27
 
from storm import Undef, psycer
 
27
from storm import Undef, has_cextensions
28
28
 
29
29
 
30
30
__all__ = [
322
322
        return value
323
323
 
324
324
 
325
 
try:
 
325
if has_cextensions:
326
326
    from storm.cextensions import Variable
327
 
except ImportError, e:
328
 
    if "cextensions" not in str(e):
329
 
        raise
330
327
 
331
328
 
332
329
class BoolVariable(Variable):
666
663
    if value is not None:
667
664
        result += timedelta(seconds=value)
668
665
    return result
669
 
 
670
 
 
671
 
psycer.bind(Variable)