Ignore:
Timestamp:
03/11/13 16:28:15 (13 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

When possible, node properties are now saved as python literal strings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/scheme/scheme.py

    r11385 r11391  
    562562        assert(not (self.nodes or self.links or self.annotations)) 
    563563 
    564     def save_to(self, stream, pretty=True): 
     564    def save_to(self, stream, pretty=True, pickle_fallback=False): 
    565565        """ 
    566566        Save the scheme as an xml formated file to `stream` 
     567 
     568        See also 
     569        -------- 
     570        .scheme_to_ows_stream 
     571 
    567572        """ 
    568573        if isinstance(stream, basestring): 
    569574            stream = open(stream, "wb") 
    570575 
    571         scheme_to_ows_stream(self, stream, pretty) 
     576        scheme_to_ows_stream(self, stream, pretty, 
     577                             pickle_fallback=pickle_fallback) 
    572578 
    573579    def load_from(self, stream): 
Note: See TracChangeset for help on using the changeset viewer.